.home-layout .site-header, .home-layout main {
  max-width: 1160px;
}

.home-layout main {
  padding-top: 64px;
}

.portfolio-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 100px;
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 56px;
  padding-bottom: 28px;
}

.profile-panel h1 {
  font-size: clamp(2.7rem, 4.6vw, 3.65rem);
  line-height: 1.1;
  letter-spacing: -.065em;
  margin: 14px 0;
}

.profile-period {
  color: var(--accent);
}

.profile-role {
  font-size: 1rem;
  font-weight: 550;
  margin: 0 0 22px;
}

.profile-summary {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
}

.section-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  margin: 48px 0;
}

.section-nav a {
  color: var(--muted);
  font-size: .84rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-nav a::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--border);
  transition: width 160ms ease, background 160ms ease;
}

.section-nav a span {
  font-size: .67rem;
  font-variant-numeric: tabular-nums;
}

.section-nav a:hover, .section-nav a[aria-current] {
  color: var(--accent);
}

.section-nav a[aria-current]::before {
  width: 48px;
  background: var(--accent);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.profile-links a {
  color: #3c4043;
  font-size: .84rem;
  text-decoration: none;
}

.portfolio-content {
  min-width: 0;
}

.home-section {
  scroll-margin-top: 40px;
  padding: 52px 0;
  border-top: 1px solid var(--soft-border);
}

.home-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.home-section h2 {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  font-size: 1.65rem;
  letter-spacing: -.04em;
  line-height: 1.45;
  word-break: keep-all;
}

.home-about h2 {
  font-size: 2.1rem;
  line-height: 1.35;
  margin-bottom: 28px;
}

.home-about > p:not(.section-label) {
  color: var(--text);
  font-size: .98rem;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
  margin: 0 0 18px;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 8px;
  color: var(--muted);
  font-size: .77rem;
}

.focus-list span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--accent);
  border-radius: 50%;
}

.home-section-heading {
  margin-bottom: 28px;
}

.home-section-heading h2 {
  margin-bottom: 10px;
}


.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 16px;
}

.category-filter {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: .8rem;
  padding: 9px 10px;
  cursor: pointer;
}

.category-filter:hover {
  border-color: #9dbcf8;
  color: var(--accent);
}

.category-filter[aria-pressed="true"] {
  color: var(--accent);
  background: #edf3ff;
  border-color: #9dbcf8;
}

[data-count] {
  margin-left: 5px;
  font-size: .75rem;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}

.filter-status {
  color: var(--text);
  font-size: .8rem;
  margin: 0 0 16px;
}

[data-project-empty] {
  margin-bottom: 18px;
}

.portfolio-footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.portfolio-footer a {
  font-size: .85rem;
  text-decoration: none;
}

.footer-credit {
  color: var(--muted);
  font-size: .7rem;
  margin-top: 28px;
}

.experience-list {
  margin-top: 24px;
}

.experience-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  padding: 25px 0;
}

.experience-row + .experience-row {
  border-top: 1px solid var(--tag);
}

.experience-date {
  font-size: .73rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 3px 0 0;
}

.experience-context {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .73rem;
}

.experience-row h3 {
  font-size: 1.12rem;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.experience-row h3 a {
  color: var(--ink);
  text-decoration: none;
}

.experience-row h3 a:hover {
  color: var(--accent);
}

.experience-summary {
  color: var(--text);
  font-size: .9rem;
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 1000px) {
  .experience-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portfolio-shell {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .home-layout main {
    padding-top: 32px;
  }

  .portfolio-shell {
    display: block;
  }

  .profile-panel {
    position: static;
    padding-bottom: 40px;
  }

  .profile-panel h1 {
    font-size: 3rem;
  }

  .section-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 28px 0;
  }

  .section-nav a {
    font-size: .78rem;
    padding: 4px 0;
  }

  .section-nav a::before {
    display: none;
  }

  .home-section:first-child {
    border-top: 1px solid var(--soft-border);
    padding-top: 36px;
  }

  .home-section {
    padding: 36px 0;
    scroll-margin-top: 20px;
  }

  .home-about h2 {
    font-size: 1.75rem;
  }

}
