/* ---------- Tokens (brand: logo orange #F9942A, logo navy #023356) ---------- */
:root {
  --bg: #F7F5F0;
  --bg-tint: #EFEBE3;
  --surface: #FCFBF8;
  --ink: #0B1E31;
  --ink-2: #2B3949;
  --muted: #5B6775;
  --line: #E0DBD0;
  --line-strong: #CBC4B6;
  --accent: #A45200;
  --brand: #F9942A;
  --brand-soft: rgba(249, 148, 42, 0.16);
  --navy: #023356;
  --disc: #FDE9CF;
  --outcome-bg: rgba(249, 148, 42, 0.14);
  --hive-line: rgba(11, 30, 49, 0.10);
  --btn-bg: #023356;
  --btn-bg-hover: #0A4673;
  --btn-fg: #FFFFFF;
  --feature-bg: #023356;
  --feature-fg: #EEF2F6;
  --band-bg: #01192D;
  --band-fg: #EEF2F6;
  --band-muted: #9FB0C2;
  --hex-pattern: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='31.18' height='54.00' viewBox='0 0 31.18 54.00'><path d='M0.00 -18.00L15.59 -9.00L15.59 9.00L0.00 18.00L-15.59 9.00L-15.59 -9.00ZM31.18 -18.00L46.77 -9.00L46.77 9.00L31.18 18.00L15.59 9.00L15.59 -9.00ZM15.59 9.00L31.18 18.00L31.18 36.00L15.59 45.00L-0.00 36.00L0.00 18.00ZM0.00 36.00L15.59 45.00L15.59 63.00L0.00 72.00L-15.59 63.00L-15.59 45.00ZM31.18 36.00L46.77 45.00L46.77 63.00L31.18 72.00L15.59 63.00L15.59 45.00Z' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1'/></svg>");
  --org-card: #FFFFFF;
  --org-line: #E7E2D8;
  --org-ink: #0B1E31;
  --shadow: 0 1px 0 rgba(11, 30, 49, 0.04), 0 8px 24px -12px rgba(11, 30, 49, 0.14);

  --f-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #01192D;
    --bg-tint: #031F37;
    --surface: #062641;
    --ink: #EEF2F6;
    --ink-2: #C8D3DE;
    --muted: #8FA2B6;
    --line: #11304D;
    --line-strong: #1D4469;
    --accent: #F9942A;
    --brand: #F9942A;
    --brand-soft: rgba(249, 148, 42, 0.14);
    --disc: #0A3558;
    --outcome-bg: #072E4D;
    --hive-line: rgba(238, 242, 246, 0.08);
    --btn-bg: #F9942A;
    --btn-bg-hover: #FFA94D;
    --btn-fg: #01192D;
    --feature-bg: #023356;
    --feature-fg: #EEF2F6;
    --band-bg: #000F1C;
    --band-fg: #EEF2F6;
    --band-muted: #9FB0C2;
    --org-card: #EEF1F4;
    --org-line: transparent;
    --org-ink: #0B1E31;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #01192D;
  --bg-tint: #031F37;
  --surface: #062641;
  --ink: #EEF2F6;
  --ink-2: #C8D3DE;
  --muted: #8FA2B6;
  --line: #11304D;
  --line-strong: #1D4469;
  --accent: #F9942A;
  --brand: #F9942A;
  --brand-soft: rgba(249, 148, 42, 0.14);
  --disc: #0A3558;
  --outcome-bg: #072E4D;
  --hive-line: rgba(238, 242, 246, 0.08);
  --btn-bg: #F9942A;
  --btn-bg-hover: #FFA94D;
  --btn-fg: #01192D;
  --feature-bg: #023356;
  --feature-fg: #EEF2F6;
  --band-bg: #000F1C;
  --band-fg: #EEF2F6;
  --band-muted: #9FB0C2;
  --org-card: #EEF1F4;
  --org-line: transparent;
  --org-ink: #0B1E31;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #01192D; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
  text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: auto; height: 24px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 14px; color: var(--muted);
  padding: 6px 11px; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--brand-soft); }
.nav a.active { color: var(--ink); }
.theme-toggle, .menu-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); background: var(--brand-soft); }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* Mobile menu: a panel under the top bar, filling the rest of the screen */
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 64px); height: calc(100dvh - 64px);
  padding: 8px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
  font: 600 20px/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--ink);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-nav { animation: menu-in .18s ease; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 14px/1.4 var(--f-body); color: var(--muted);
  margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); flex: none; }
h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.lede {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 30ch;
  margin-bottom: 18px;
}
.hero-sub { color: var(--muted); max-width: 54ch; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  font: 500 15px/1 var(--f-body); text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; display: grid; place-items: center; }
#hive {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.portrait {
  position: relative; width: 74%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--disc) 70%, var(--bg)) 0%, var(--disc) 70%);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--brand), var(--shadow);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin: clamp(36px, 5vw, 64px) 0 0;
  border-top: 1px solid var(--line);
}
.stat { padding: 20px 16px 4px 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat dd {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1; letter-spacing: -0.02em;
}
.stat dt { font: 400 13.5px/1.45 var(--f-body); color: var(--muted); }

/* ---------- Organizations marquee ---------- */
.orgs { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.orgs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.orgs-head p { margin: 10px 0 0; max-width: 60ch; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.marquee-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.marquee-toggle[hidden] { display: none; }
.marquee-toggle:hover { border-color: var(--line-strong); background: var(--brand-soft); }
.marquee-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.marquee-toggle .i-play { display: none; }
.marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }

/* Without JS, or with reduced motion, the logos sit still in a wrapping row. */
.marquee { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.org-list { display: flex; flex-wrap: wrap; gap: 12px; }
.org-list + .org-list { display: none; }
.org {
  position: relative; display: flex; align-items: center; gap: 14px; flex: none;
  height: 88px; padding: 0 28px; border-radius: var(--radius);
  background: var(--org-card); border: 1px solid var(--org-line); color: var(--org-ink);
  font: 600 18px/1.2 var(--f-display); letter-spacing: -0.01em; white-space: nowrap;
}
/* A share of the card height, so logos scale with the card on phones. Full logos set their own --h. */
.org img { height: var(--h, 50%); width: auto; }
/* Logos that already carry the name keep it for screen readers only. */
.org--logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (prefers-reduced-motion: no-preference) {
  .js .marquee {
    max-width: none; padding: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .js .marquee-track { display: flex; width: max-content; }
  /* The trailing padding matches the gap, so the cloned list lines up seamlessly at -50%. */
  .js .org-list { flex-wrap: nowrap; gap: 16px; padding-right: 16px; }
  .js .org-list + .org-list { display: flex; }
  .marquee.is-moving .marquee-track { animation: marquee var(--marquee-dur, 120s) linear infinite; }
  .marquee.is-moving:hover .marquee-track,
  .marquee.is-paused .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--bg-tint); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 800px; }
.kicker { font: 600 12.5px/1.4 var(--f-display); color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.18; letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2-sm { font-size: clamp(22px, 2.4vw, 28px); }

.section-head--center { margin-inline: auto; text-align: center; }
.section-sub { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.section-head--center .section-sub { margin-inline: auto; max-width: 56ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
.about-grid .section-head { margin-bottom: 0; }
.now {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.now .kicker { margin-bottom: 12px; }
.now li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.now li a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.now li + li { margin-top: 10px; }
.now li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  background: var(--brand); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.now-meta { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--f-body); color: var(--muted); }

/* Services: a dark band, with four cards in a row where they fit and a snapping scroller where they don't */
.process { background: var(--band-bg); color: var(--band-fg); padding: clamp(64px, 9vw, 120px) 0; }
.process .kicker { color: var(--brand); }
.process-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(28px, 4vw, 44px); }
.process-head h2 { max-width: 20ch; }
.process-note { margin: 0; max-width: 36ch; color: var(--band-muted); font-size: 15.5px; line-height: 1.55; }
.process-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
}
.process-viewport:focus-visible { outline-offset: -2px; }
/* JS draws its own scroll hint, so the native bar only goes away when that's running. */
.js .process-viewport { scrollbar-width: none; }
.js .process-viewport::-webkit-scrollbar { display: none; }
.process-track {
  display: flex; gap: 20px; width: max-content;
  padding: 4px max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}
.process-card {
  flex: none; scroll-snap-align: start; position: relative; overflow: hidden;
  width: clamp(280px, 31vw, 410px); height: clamp(380px, 58vh, 480px);
  padding: 28px; border-radius: 20px; color: #FFFFFF;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--hex-pattern), linear-gradient(165deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
}
.process-card:nth-child(1) { --c1: #DE7206; --c2: #A84A00; --c3: #5C2400; }
.process-card:nth-child(2) { --c1: #D46A04; --c2: #9C4400; --c3: #522000; }
.process-card:nth-child(3) { --c1: #C86100; --c2: #8F3D00; --c3: #481C00; }
.process-card:nth-child(4) { --c1: #BB5900; --c2: #833700; --c3: #3F1800; }
.process-num { align-self: flex-end; font: 700 clamp(64px, 6.4vw, 92px)/0.9 var(--f-display); letter-spacing: -0.045em; }
.process-body h3 { font: 600 24px/1.2 var(--f-display); letter-spacing: -0.015em; margin-bottom: 10px; }
.process-body p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); margin: 0 0 16px; }
.process-body .process-proof { margin: 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.28); font: 500 13.5px/1.5 var(--f-body); color: #FFFFFF; }
.process-hint { display: none; align-items: center; gap: 12px; margin-top: 18px; }
.process-hint-bar { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.16); }
.process-hint-bar i { display: block; width: var(--thumb, 25%); height: 100%; border-radius: 3px; background: var(--brand); transform: translateX(var(--pos, 0%)); }
.process-hint-arrow { font: 600 18px/1 var(--f-body); color: var(--brand); }
.process.can-scroll .process-hint { display: flex; }
.process.can-scroll .process-viewport {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.process.at-end .process-viewport { -webkit-mask-image: none; mask-image: none; }
.process.at-end .process-hint-arrow { visibility: hidden; }
@media (min-width: 1280px) {
  .process-viewport { overflow: visible; scroll-snap-type: none; }
  .process-track {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: auto;
    max-width: var(--wrap); margin-inline: auto; padding: 4px var(--gutter);
  }
  .process-card { width: auto; height: auto; min-height: clamp(380px, 58vh, 480px); }
}

/* Selected work: cards stick and stack, each new one sliding over the last */
.case-tag { font: 600 12px/1.4 var(--f-display); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.stack { display: grid; gap: 28px; isolation: isolate; }
.stack-card {
  position: relative;
  display: grid; grid-template-columns: 1.08fr 1fr; min-height: 440px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); transform-origin: center top;
}
.stack-copy { padding: clamp(26px, 3.2vw, 42px); display: flex; flex-direction: column; }
.stack-copy h3 { font: 600 clamp(22px, 2.3vw, 29px)/1.2 var(--f-display); letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; }
.stack-desc { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
.stack-meta { margin-top: auto; }
.stack-meta div { padding: 14px 0; border-top: 1px solid var(--line); }
.stack-meta div:last-child { padding-bottom: 0; }
.stack-meta dt { font: 500 13px/1 var(--f-body); color: var(--muted); margin-bottom: 10px; }
.stack-meta dd { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 600 15.5px/1.3 var(--f-display); }
.stack-meta dd span { display: inline-flex; align-items: center; gap: 8px; }
.stack-meta dd span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.stack-cta { align-self: flex-start; margin-top: 22px; }
.stack-visual {
  position: relative; padding: clamp(26px, 3.2vw, 42px); color: #FFFFFF;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--hex-pattern), radial-gradient(120% 90% at 100% 0%, #0A4673 0%, #023356 45%, #011627 100%);
}
.stack-card:nth-child(even) .stack-visual { background: var(--hex-pattern), radial-gradient(120% 90% at 100% 0%, #E07A10 0%, #A84A00 48%, #4E1F00 100%); }
.stack-kicker { margin: 0 0 auto; padding-bottom: 20px; font: 600 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.stack-metric { margin: 0 0 6px; font: 700 clamp(64px, 8.4vw, 112px)/0.92 var(--f-display); letter-spacing: -0.05em; }
.stack-metric--long { font-size: clamp(50px, 6.4vw, 86px); }
.stack-metric-label { margin: 0 0 18px; font: 600 17px/1.35 var(--f-display); }
.stack-outcome { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.26); font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); max-width: 42ch; }
/* Stacking needs JS, motion and room for a whole card. Otherwise the cards are a plain list, so nothing is ever pushed away from the heading.
   Equal rows mean a card on top always covers the one below, and --covered (set in main.js) fades what would still peek out above it.
   Keep this query in step with `stacking` in main.js. */
@media screen and (min-width: 821px) and (min-height: 720px) and (prefers-reduced-motion: no-preference) {
  .js .stack { grid-auto-rows: 1fr; }
  .js .stack-card { position: sticky; top: calc(92px + var(--i, 0) * 14px); z-index: calc(var(--i, 0) + 1); }
  .js .stack-copy > *, .js .stack-visual > * { opacity: calc(1 - var(--covered, 0)); }
}

/* Platforms: the list scrolls past a pinned stage that shows the platform in focus */
.hood { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: clamp(32px, 5vw, 72px); }
.hood-list { grid-column: 1; grid-row: 1; }
.hood-item { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
.js .hood-item { opacity: .3; transition: opacity .45s ease; }
.js .hood-item.is-active { opacity: 1; }
.hood-idx { margin: 0 0 14px; font: 700 13px/1 var(--f-display); letter-spacing: .1em; color: var(--accent); }
.hood-item h3 { margin-bottom: 8px; font: 700 clamp(26px, 3vw, 38px)/1.1 var(--f-display); letter-spacing: -0.025em; }
.hood-label { margin: 0 0 16px; font: 500 14.5px/1.5 var(--f-body); color: var(--muted); }
.hood-text { margin: 0 0 20px; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.hood-stage {
  grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 96px;
  height: min(600px, calc(100vh - 128px)); display: flex; flex-direction: column;
  border-radius: 28px; overflow: hidden; color: #EEF2F6; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
  background: var(--hex-pattern), radial-gradient(110% 90% at 85% 10%, #0A4673 0%, #023356 45%, #011627 100%);
}
.stage-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 24px 28px 0; }
.stage-count { margin: 0; font: 600 13px/1 var(--f-display); color: rgba(238, 242, 246, 0.55); }
.stage-count b { font-size: 30px; letter-spacing: -0.03em; color: #F9942A; }
.stage-name { margin: 0; font: 600 14.5px/1 var(--f-display); color: rgba(238, 242, 246, 0.88); }
.stage-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 16px 28px 0; }
.stage-progress span { height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.stage-progress span::after { content: ""; display: block; height: 100%; background: #F9942A; transform: scaleX(var(--p, 0)); transform-origin: left; }
.stage-scenes { position: relative; flex: 1; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px 32px 32px; opacity: 0; visibility: hidden; }
.scene.is-active { opacity: 1; visibility: visible; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 12.5px/1 var(--f-body); color: var(--ink-2); }

/* Platform visuals */
.chat {
  width: min(100%, 400px); padding: 14px 16px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5;
  background: #0B2B47; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}
.chat-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.chat-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.chat-bar em { margin-left: 8px; font: 500 12.5px/1 var(--f-body); color: rgba(238, 242, 246, 0.6); font-style: normal; }
.chat-q { width: fit-content; max-width: 86%; margin: 0 0 10px auto; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #F9942A; color: #01192D; font-weight: 500; }
.chat-a { max-width: 94%; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, 0.07); }
.chat-src { display: inline-block; margin: 9px 6px 0 0; padding: 5px 8px; border-radius: 6px; background: rgba(249, 148, 42, 0.16); color: #FFC98F; font: 600 11.5px/1 var(--f-body); }
.chat-status { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 12.5px/1 var(--f-body); color: rgba(238, 242, 246, 0.62); }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16); }

.hc-art { width: 100%; max-width: 480px; height: auto; }
.hc-cells polygon { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; }
.hc-flows line { stroke: #F9942A; stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .75; animation: hc-flow 1.4s linear infinite; animation-delay: calc(var(--d) * -1); }
.hc-gw { fill: #F9942A; }
.hc-sensors circle { fill: #F9942A; transform-box: fill-box; transform-origin: center; animation: hc-ping 2.4s ease-out infinite; animation-delay: var(--d); }
@keyframes hc-flow { to { stroke-dashoffset: -20; } }
@keyframes hc-ping { 0%, 100% { opacity: .4; transform: scale(.7); } 30% { opacity: 1; transform: scale(1.2); } }

.sync { display: grid; gap: 12px; width: min(100%, 380px); }
.sync-row {
  display: grid; grid-template-columns: 12px 1fr; column-gap: 14px; align-items: center; margin: 0;
  padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.sync-row i { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; }
.sync-row b { font: 600 15px/1.3 var(--f-display); }
.sync-row span { font-size: 13.5px; color: rgba(238, 242, 246, 0.68); }
.sync-row .is-down { background: #8FA2B6; }
.sync-row .is-sync { background: #F9942A; animation: blink 1.2s ease-in-out infinite; }
.sync-row .is-ok { background: #3DDC97; }
@keyframes blink { 50% { opacity: .3; } }

.zt-art { width: 100%; max-width: 460px; height: auto; font-family: var(--f-body); }
.zt-links line { stroke: #F9942A; stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .8; animation: hc-flow 1.6s linear infinite; }
.zt-nodes rect { fill: #0B2B47; stroke: rgba(255, 255, 255, 0.18); }
.zt-nodes text { fill: #EEF2F6; font-size: 13px; font-weight: 500; text-anchor: middle; }
.zt-core { fill: #F9942A; }
.zt-core-t { fill: #01192D; font-size: 13px; font-weight: 700; text-anchor: middle; font-family: var(--f-display); }

.term {
  width: min(100%, 400px); margin: 0; padding: 18px 20px; border-radius: 14px; overflow: hidden;
  background: #00101F; border: 1px solid rgba(255, 255, 255, 0.1); color: #C8D3DE;
  font: 500 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre;
}
.t-line { display: block; }
.t-p { color: #F9942A; }
.t-ok { color: #3DDC97; }
.t-cursor { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: #C8D3DE; animation: blink 1s steps(1) infinite; }

.flow { display: grid; justify-items: center; gap: 14px; width: min(100%, 360px); }
.flow-node { padding: 14px 22px; border-radius: 12px; background: #0B2B47; border: 1px solid rgba(255, 255, 255, 0.16); font: 600 16px/1 var(--f-display); text-align: center; }
.flow-node--main { background: #F9942A; color: #01192D; border-color: transparent; }
.flow-links { position: relative; display: flex; gap: 10px; padding: 18px 0; }
.flow-links::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, #F9942A 0 4px, transparent 4px 10px); animation: flow-down 1s linear infinite; }
.flow-links span { position: relative; padding: 5px 9px; border-radius: 999px; background: #01192D; border: 1px solid rgba(255, 255, 255, 0.16); font: 500 12px/1 var(--f-body); color: rgba(238, 242, 246, 0.8); }
.flow-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.flow-note { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 500 13px/1 var(--f-body); color: rgba(238, 242, 246, 0.7); }
.flow-note i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16); }
@keyframes flow-down { to { background-position: 0 10px; } }

/* Each scene plays its entrance when it becomes the active one */
@media (prefers-reduced-motion: no-preference) {
  .js .scene { transform: translateY(18px) scale(.98); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .45s; }
  .js .scene.is-active { transform: none; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
  .js .scene .chat-q, .js .scene .chat-a, .js .scene .chat-status,
  .js .scene .sync-row, .js .scene .t-line, .js .scene .zt-nodes g, .js .scene .zt-hub,
  .js .scene .flow > *, .js .scene .hc-art {
    opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .5s ease;
  }
  .js .scene .zt-nodes g, .js .scene .zt-hub { transform-box: fill-box; transform-origin: center; transform: scale(.85); }
  .js .scene .hc-art { transform: scale(.94); }
  .js .scene.is-active :is(.chat-q, .chat-a, .chat-status, .sync-row, .t-line, .zt-nodes g, .zt-hub, .flow > *, .hc-art) { opacity: 1; transform: none; }
  .js .scene.is-active .chat-q { transition-delay: .2s; }
  .js .scene.is-active .chat-a { transition-delay: .8s; }
  .js .scene.is-active .chat-status { transition-delay: 1.3s; }
  .js .scene.is-active .sync-row:nth-child(1), .js .scene.is-active .zt-hub, .js .scene.is-active .flow > :nth-child(1) { transition-delay: .15s; }
  .js .scene.is-active .sync-row:nth-child(2), .js .scene.is-active .zt-nodes g:nth-child(1), .js .scene.is-active .flow > :nth-child(2) { transition-delay: .5s; }
  .js .scene.is-active .sync-row:nth-child(3), .js .scene.is-active .zt-nodes g:nth-child(2), .js .scene.is-active .flow > :nth-child(3) { transition-delay: .85s; }
  .js .scene.is-active .zt-nodes g:nth-child(3), .js .scene.is-active .flow > :nth-child(4) { transition-delay: 1.2s; }
  .js .scene.is-active .zt-nodes g:nth-child(4) { transition-delay: 1.5s; }
  .js .scene.is-active .hc-art { transition-delay: .1s; }
  .js .scene.is-active .t-line:nth-child(1) { transition-delay: .15s; }
  .js .scene.is-active .t-line:nth-child(2) { transition-delay: .55s; }
  .js .scene.is-active .t-line:nth-child(4) { transition-delay: 1s; }
  .js .scene.is-active .t-line:nth-child(5) { transition-delay: 1.4s; }
  .js .scene.is-active .t-line:nth-child(7) { transition-delay: 1.8s; }
}

/* How I work: connectors draw from step to step and each badge lights in turn */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step { position: relative; }
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 56px; width: calc(100% + 24px - 64px); height: 2px; border-radius: 2px;
}
.step:not(:last-child)::before { background: var(--line); }
.step:not(:last-child)::after { background: var(--brand); transform-origin: left center; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 50%; border: 2px solid var(--brand); background: var(--brand); color: #01192D;
  font: 700 14px/1 var(--f-display); box-shadow: 0 0 0 6px var(--brand-soft);
}
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .step-num { background: var(--bg); border-color: var(--line-strong); color: var(--muted); box-shadow: 0 0 0 0 var(--brand-soft); }
  .js .step:not(:last-child)::after { transform: scaleX(0); }
  .js .step h3, .js .step p { opacity: 0; transform: translateY(10px); }
  .js .step-num, .js .step h3, .js .step p { transition: all .5s ease; transition-delay: calc(var(--n) * .6s); }
  .js .step:not(:last-child)::after { transition: transform .55s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--n) * .6s + .3s); }
  .js .steps.play .step-num { background: var(--brand); border-color: var(--brand); color: #01192D; box-shadow: 0 0 0 6px var(--brand-soft); }
  .js .steps.play .step:not(:last-child)::after { transform: scaleX(1); }
  .js .steps.play .step h3, .js .steps.play .step p { opacity: 1; transform: none; }
}

/* Experience: a rail that fills as you scroll, lighting each role as you reach it */
.timeline { position: relative; --rail: 196px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: calc(var(--rail) - 1px); top: 10px; width: 2px; border-radius: 2px; }
.timeline::before { bottom: 10px; background: var(--line); }
.timeline::after { height: var(--tl, 0px); max-height: calc(100% - 20px); background: var(--brand); }
.job { position: relative; display: grid; grid-template-columns: 160px 1fr; column-gap: 72px; padding: 24px 0 32px; }
.job::before {
  content: ""; position: absolute; z-index: 1; left: calc(var(--rail) - 8px); top: 30px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.job.passed::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.job-when { font: 500 14px/1.6 var(--f-body); font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 4px; text-align: right; }
.job-when time { color: var(--ink); transition: color .3s ease; }
.job.passed .job-when time { color: var(--accent); }
.job h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 1.8vw, 21px); letter-spacing: -0.01em; line-height: 1.35; }
.job .at { display: inline; color: var(--accent); }
.job .at::before { content: " · "; color: var(--muted); }
.job-where { font-size: 14px; color: var(--muted); margin: 4px 0 12px; }
.job ul { max-width: 72ch; }
.job li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 15.5px; }
.job li + li { margin-top: 8px; }
.job li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1.5px; background: var(--line-strong); }
.job-body > :last-child { margin-bottom: 0; }

/* Speaking */
.speak-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.talk {
  background: var(--feature-bg); color: var(--feature-fg); border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  padding: clamp(26px, 3.4vw, 40px); position: relative; overflow: hidden;
}
.talk::after {
  content: ""; position: absolute; right: -36px; bottom: -40px; width: 190px; height: 150px;
  background: url("img/logo-mark.png") center / contain no-repeat; opacity: .16;
}
.talk-label { font: 600 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.talk h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 16px; max-width: 16ch; position: relative; z-index: 1; }
.talk p { opacity: .85; margin: 0; max-width: 40ch; position: relative; z-index: 1; font-size: 15.5px; }
.honors li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.honors li:first-child { padding-top: 4px; }
.honor-k { font: 600 12px/1.6 var(--f-display); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.honor-v { color: var(--ink-2); font-size: 15.5px; }
.honor-link { color: var(--accent); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.skill { background: var(--bg); padding: 22px; }
.skill h3 { font: 600 12.5px/1.3 var(--f-display); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.skill p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0; }

/* Education */
.edu { max-width: 760px; }
.edu li { padding: 18px 0; border-top: 1px solid var(--line); }
.edu-when { font: 500 13.5px/1 var(--f-body); color: var(--muted); margin-bottom: 8px; }
.edu h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 6px; }
.edu li p:not(.edu-when) { color: var(--ink-2); font-size: 15.5px; margin-bottom: 8px; }
.edu li p:last-child { margin-bottom: 0; }
.edu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.edu .edu-tags li {
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: 500 13px/1 var(--f-body); color: var(--ink-2);
}
.edu-spec {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--brand-soft);
  font-weight: 600; color: var(--ink) !important; margin: 4px 0 12px !important;
}
.edu-spec span {
  font: 600 10.5px/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em;
  background: var(--btn-bg); color: var(--btn-fg); padding: 6px 9px; border-radius: 999px;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact-h {
  font-size: clamp(44px, 8vw, 96px); line-height: 1; letter-spacing: -0.035em; margin-bottom: 20px;
}
.contact-lede { max-width: 56ch; color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.email {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 2.8vw, 30px); letter-spacing: -0.015em;
  text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.email:hover { text-decoration-thickness: 4px; }
.copy {
  font: 500 14px/1 var(--f-body); color: var(--ink); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.copy:hover { background: var(--brand-soft); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.contact-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.contact-links a:hover { color: var(--ink); }
.contact-photo {
  width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--brand);
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; font: 400 13.5px/1.5 var(--f-body); color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { height: 16px; width: auto; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hc-flows line, .hc-sensors circle, .zt-links line, .sync-row .is-sync, .t-cursor, .flow-links::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .nav a { padding: 6px 7px; }
}

@media (max-width: 1020px) {
  .skills { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .now { max-width: 560px; }
  /* Steps run down the page instead of across it */
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 640px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { margin-bottom: 0; }
  .step:not(:last-child)::before,
  .step:not(:last-child)::after { top: 56px; left: 23px; width: 2px; height: calc(100% - 64px); transform-origin: center top; }
}

@media (max-width: 1020px) and (prefers-reduced-motion: no-preference) {
  .js .step:not(:last-child)::after { transform: scaleY(0); }
  .js .steps.play .step:not(:last-child)::after { transform: scaleY(1); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .js .menu-toggle { display: grid; margin-left: -14px; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: 260px; justify-self: start; margin: -8px 0 4px -20px; }
  .process-head { flex-direction: column; align-items: flex-start; }
  .process-card { width: min(82vw, 360px); height: 420px; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; }
  .stack-visual { order: -1; min-height: 240px; }
  .hood { display: block; }
  .hood-stage { top: 72px; z-index: 2; height: 300px; border-radius: 20px; }
  .stage-bar { padding: 16px 20px 0; }
  .stage-count b { font-size: 24px; }
  .stage-progress { padding: 12px 20px 0; }
  .scene { padding: 12px 16px 18px; }
  .scene > * { scale: .78; }
  .scene--chat > * { scale: 1; }
  .scene--chat .chat { padding: 12px 14px; font-size: 13px; }
  .scene--chat .chat-bar { display: none; }
  .scene--chat .chat-a { margin-bottom: 10px; }
  .hood-item { min-height: 0; padding: 44px 0 20px; }
  .speak-grid { grid-template-columns: 1fr; }
  .timeline { --rail: 8px; }
  .job { grid-template-columns: 1fr; row-gap: 4px; padding-left: 40px; }
  .job::before { top: 28px; }
  .job-when { text-align: left; padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { order: -1; width: 160px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(n) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .skills { grid-template-columns: 1fr; }
  .honors li { grid-template-columns: 1fr; gap: 4px; }
  .org { height: 68px; padding: 0 20px; gap: 10px; font-size: 15.5px; }
  .contact-lede { font-size: 17px; }
  .brand span { font-size: 14px; }
  .term { font-size: 12.5px; padding: 14px 16px; }
  /* Too narrow for label and value on one line, so the pill becomes a small card with the label on top */
  .edu-spec { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: fit-content; padding: 12px 16px 13px; border-radius: 14px; line-height: 1.3; }
}
