:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --ink: #111315;
  --text: #20252d;
  --muted: #647082;
  --line: #d9dce1;
  --line-strong: #c5cad3;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --cyan: #38bdf8;
  --warm: #f59e0b;
  --green: #34a853;
  --shadow: 0 26px 80px rgba(17, 19, 21, 0.11);
  --max: 1290px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: Inter, "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes soft-pan {
  from {
    transform: scale(1.025);
  }

  to {
    transform: scale(1);
  }
}

.hero-copy,
.hero-image {
  animation: fade-up 760ms ease both;
}

.hero-image {
  animation-name: frame-in;
  animation-delay: 120ms;
}

.hero-image img {
  animation: soft-pan 1400ms ease both;
}

main,
section,
div,
article,
p,
h1,
h2,
h3,
a,
button,
li {
  min-width: 0;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(246, 243, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.brand img {
  display: block;
  width: 40px;
  height: auto;
  flex: 0 0 auto;
}

/*
.brand span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border: 2px solid var(--blue);
  background: var(--green);
  vertical-align: 1px;
}
  */

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 2.6vw, 36px);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

nav > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 2.6vw, 36px);
}

nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

nav a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  max-width: var(--max);
  min-height: 760px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) 28px clamp(34px, 5vw, 70px);
}

.hero > * {
  min-width: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(4rem, 9.4vw, 8.8rem);
  font-weight: 860;
  line-height: 0.86;
  letter-spacing: 0;
}

.role-line {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.5vw, 2.34rem);
  font-weight: 560;
  line-height: 1.15;
}

.lead {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--blue);
  font-size: clamp(1.14rem, 1.8vw, 1.34rem);
  font-weight: 780;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.hero-trust {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin-top: 28px;
}

.hero-trust span {
  position: relative;
  display: block;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.hero-trust span::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--blue);
}
/*
.hero-trust span:nth-child(2)::before {
  background: var(--green);
}

.hero-trust span:nth-child(3)::before {
  background: var(--warm);
}
  */

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(7, 25, 63, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.contact-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-color: var(--blue);
}

.button.primary:hover {
  color: white;
}

.hero-image {
  position: relative;
  height: clamp(500px, 47vw, 660px);
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    var(--surface-soft);
  background-size: 42px 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-image::before,
.hero-image::after {
  content: "";
  position: absolute;
  z-index: 2;
  border: 2px solid var(--blue);
  pointer-events: none;
}

.hero-image::before {
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.hero-image::after {
  right: 32px;
  bottom: 46px;
  width: 34%;
  height: 52px;
  border-top-color: transparent;
  border-right-color: transparent;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.95) contrast(1.02);
}

.hero-image figcaption {
  position: absolute;
  top: 78px;
  right: 34px;
  z-index: 3;
  display: grid;
  gap: 6px;
  color: rgba(7, 91, 255, 0.9);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.impact article {
  min-height: 150px;
  padding: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.impact article:first-child {
  border-left: 1px solid var(--line);
}

.impact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.impact span {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 640;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(74px, 10vw, 128px) 28px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading.narrow {
  max-width: 760px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.72fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: end;
  max-width: none;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.05rem, 4vw, 3.95rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.24rem, 1.7vw, 1.55rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.split-heading p,
.intro-grid p,
.project-panel p,
.timeline p,
.skill-grid p,
.education-list p,
.interest-columns p {
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  max-width: 1040px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}

.focus-section,
.projects-section,
.skills-section,
.interests-section {
  max-width: none;
  padding-right: max(28px, calc((100vw - var(--max)) / 2));
  padding-left: max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(238, 242, 247, 0.78);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.focus-section {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
  color: white;
}

.focus-section h2,
.focus-section .panel-label {
  color: white;
}

.focus-section .split-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.ecosystem-map {
  display: grid;
  grid-template-columns:
    minmax(220px, 0.56fr) minmax(0, 1fr)
    minmax(240px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

#current-focus img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  margin-top: 1rem;
}

.ecosystem-node,
.ecosystem-lanes span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.ecosystem-node {
  display: grid;
  align-content: center;
  min-height: 178px;
  padding: clamp(24px, 3vw, 34px);
}

.ecosystem-node span {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.ecosystem-node strong {
  color: white;
  font-size: clamp(1.35rem, 2.8vw, 2.4rem);
  line-height: 1.05;
}

.primary-node {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.62)),
    rgba(255, 255, 255, 0.07);
}

.ecosystem-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ecosystem-lanes span {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 16px;
  color: white;
  font-weight: 850;
  text-align: center;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.31fr) minmax(0, 1fr);
  gap: 30px;
}

.project-list {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  background: var(--surface);
}

.project-tab {
  width: 100%;
  padding: 24px 22px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.project-tab:last-child {
  border-bottom: 0;
}

.project-tab span,
.panel-label,
.education-list time {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-tab strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.24;
}

.project-tab.is-active,
.project-tab:hover {
  background:
    linear-gradient(90deg, rgba(7, 91, 255, 0.11), transparent 74%),
    var(--surface);
}

.project-tab.is-active {
  box-shadow: inset 4px 0 0 var(--blue);
}

.project-tab:hover {
  transform: translateX(2px);
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.82fr);
  gap: clamp(28px, 5vw, 62px);
  min-height: 460px;
  padding: clamp(30px, 4.5vw, 58px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    var(--surface);
  background-size: 34px 34px;
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.project-panel[hidden] {
  display: none;
}

.project-role,
.company {
  color: var(--ink);
  font-weight: 780;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 850;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.project-link:hover {
  color: white;
  background: var(--blue);
  transform: translateY(-1px);
}

.supporting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.supporting-grid article {
  min-height: 252px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.9);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.supporting-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--green);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
}

/*
.supporting-grid article:nth-child(2) span {
  color: var(--green);
}

.supporting-grid article:nth-child(3) span {
  color: var(--blue);
}
  */

.supporting-grid p {
  color: var(--muted);
}

.supporting-grid article:hover,
.skill-grid article:hover,
.education-list article:hover,
.interest-columns article:hover {
  transform: translateY(-4px);
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(17, 19, 21, 0.08);
}

.project-media {
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  box-shadow: 0 20px 60px rgba(7, 25, 63, 0.1);
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.project-wide {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 6px;
}

.detail-list {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 2px solid var(--blue);
  background: var(--surface);
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  padding: 28px 0 28px 34px;
  border-bottom: 1px solid var(--line);
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(7, 91, 255, 0.08);
}

.timeline article::after {
  content: "";
  position: absolute;
  top: 47px;
  bottom: -1px;
  left: 5px;
  width: 1px;
  background: var(--line-strong);
}

.timeline article:last-child::after {
  display: none;
}

time {
  color: var(--warm);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 820;
}

.timeline p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}

h3 a {
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 0.15em;
  transition:
    background-size 180ms ease,
    color 180ms ease;
}

h3 a:hover {
  color: var(--blue);
  background-size: 100% 0.55em;
}

.has-js .impact article,
.has-js .intro-grid p,
.has-js .focus-section .section-heading,
.has-js .ecosystem-node,
.has-js .ecosystem-lanes span,
.has-js .project-panel,
.has-js .supporting-grid article,
.has-js .timeline article,
.has-js .skill-grid article,
.has-js .education-list article,
.has-js .interest-columns article {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.has-js .impact article.is-visible,
.has-js .intro-grid p.is-visible,
.has-js .focus-section .section-heading.is-visible,
.has-js .ecosystem-node.is-visible,
.has-js .ecosystem-lanes span.is-visible,
.has-js .project-panel.is-visible,
.has-js .supporting-grid article.is-visible,
.has-js .timeline article.is-visible,
.has-js .skill-grid article.is-visible,
.has-js .education-list article.is-visible,
.has-js .interest-columns article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js .impact article:nth-child(2),
.has-js .ecosystem-lanes span:nth-child(2),
.has-js .supporting-grid article:nth-child(2),
.has-js .skill-grid article:nth-child(2),
.has-js .education-list article:nth-child(2) {
  transition-delay: 70ms;
}

.has-js .impact article:nth-child(3),
.has-js .ecosystem-lanes span:nth-child(3),
.has-js .supporting-grid article:nth-child(3),
.has-js .skill-grid article:nth-child(3),
.has-js .education-list article:nth-child(3) {
  transition-delay: 140ms;
}

.has-js .impact article:nth-child(4),
.has-js .ecosystem-lanes span:nth-child(4),
.has-js .skill-grid article:nth-child(4),
.has-js .education-list article:nth-child(4) {
  transition-delay: 210ms;
}

.has-js .supporting-grid article.is-visible:hover,
.has-js .skill-grid article.is-visible:hover,
.has-js .education-list article.is-visible:hover,
.has-js .interest-columns article.is-visible:hover {
  transform: translateY(-4px);
}

.skill-grid,
.interest-columns,
.education-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.skill-grid {
  grid-template-columns: repeat(4, 1fr);
}

.skill-grid article,
.interest-columns article,
.education-list article {
  background: rgba(255, 255, 255, 0.88);
}

.skill-grid article {
  min-height: 270px;
  padding: clamp(24px, 3vw, 34px);
}

.interest-columns {
  grid-template-columns: repeat(2, 1fr);
}

.interest-columns article {
  min-height: 190px;
  padding: clamp(24px, 3vw, 34px);
}

.education-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.education-list article {
  min-height: 166px;
  padding: clamp(22px, 3vw, 30px);
}

.education-list time {
  color: var(--warm);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  padding: clamp(72px, 10vw, 118px) max(28px, calc((100vw - var(--max)) / 2));
  color: white;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(56, 189, 248, 0.11) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
}

.contact-band h2 {
  max-width: 790px;
  color: white;
}

.contact-band p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-links {
  justify-content: flex-start;
  margin-top: 0;
  font-style: normal;
}

.contact-links a {
  color: white;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.contact-links a:hover {
  color: white;
  border-color: var(--cyan);
}

@media (max-width: 1020px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .split-heading,
  .project-layout,
  .project-panel,
  .ecosystem-map,
  .intro-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    height: 560px;
  }

  .impact,
  .skill-grid,
  .education-list,
  .supporting-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline article {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .timeline article > div {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 0px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(246, 243, 238, 0.94);
    box-shadow: 0 14px 34px rgba(17, 19, 21, 0.08);
  }

  nav {
    padding-top: 10px;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
  }

  .menu-toggle span:nth-child(3) {
    transform: translateY(6px);
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  nav {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.84rem;
    opacity: 0;
    transition:
      max-height 220ms ease,
      opacity 160ms ease;
  }

  .menu-open nav {
    max-height: 360px;
    opacity: 1;
  }

  nav > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    border: 0;
    background: rgba(255, 255, 255, 0.82);
  }

  .menu-open nav > div {
    margin-top: 10px;
    border: 1px solid var(--line);
  }

  nav a {
    min-height: 44px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
  }

  nav a:last-child {
    border-bottom: 0;
  }

  nav a:hover {
    background: rgba(37, 99, 235, 0.07);
  }

  .brand {
    gap: 10px;
    font-size: 0.95rem;
  }

  .brand img {
    width: 34px;
  }

  .site-header,
  .hero,
  .section,
  .focus-section,
  .projects-section,
  .skills-section,
  .interests-section,
  .contact-band {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero,
  .section,
  .focus-section,
  .projects-section,
  .skills-section,
  .interests-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-header,
  .contact-band {
    padding-right: 14px;
    padding-left: 14px;
  }

  .project-layout,
  .project-panel,
  .ecosystem-map,
  .skill-grid,
  .education-list,
  .interest-columns,
  .impact {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  h1 {
    font-size: clamp(3rem, 14vw, 3.65rem);
    line-height: 0.92;
    letter-spacing: 0;
  }

  .role-line {
    font-size: clamp(1.18rem, 5.2vw, 1.42rem);
  }

  .hero-image {
    height: 390px;
    width: 100%;
  }

  .hero-image figcaption {
    display: none;
  }

  .impact,
  .skill-grid,
  .education-list,
  .interest-columns,
  .supporting-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-map {
    gap: 10px;
  }

  .ecosystem-node {
    min-height: auto;
    padding: 18px;
  }

  .ecosystem-node span {
    margin-bottom: 8px;
    font-size: 0.66rem;
  }

  .ecosystem-node strong {
    font-size: 1.18rem;
    line-height: 1.18;
  }

  .ecosystem-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-lanes span {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 0.78rem;
    line-height: 1.18;
  }

  .project-panel {
    padding: 24px;
  }

  .lead {
    font-size: 0.9rem;
  }

  .hero-actions,
  .contact-links {
    gap: 10px;
  }

  .button,
  .contact-links a {
    min-height: 42px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  h3 {
    font-size: 1.06rem;
  }

  .timeline article {
    grid-template-columns: 1fr;
    padding-left: 28px;
  }

  .timeline article > div {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
