  html { background: #F2F4F7; }
  html[data-theme="dark"] { background: #0B1018; }
  :root {
    --ground: #F2F4F7;
    --surface: #FFFFFF;
    --ink: #0E1726;
    --muted: #56606E;
    --line: #D3D9E2;
    --antinode: #1F4E8C;
    --blood: #D70015;
    --node: #A86B12;
    --film: #18202C;
    --film-ink: #DCE3EE;
    --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --antinode: #1D4ED8;
    --on-accent: #FFFFFF;
    --r: 14px; --r-sm: 10px;
  }
  :root[data-theme="dark"] {
    --ground: #0B1018; --surface: #121A26; --ink: #E6EBF2; --muted: #95A1B3;
    --line: #243044; --antinode: #86AEE8; --blood: #FF453A; --node: #E0B25A; --film: #070A10; --film-ink: #D2DAE6;
    --antinode: #8AB4FF; --on-accent: #0B1018;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--ground); color: var(--ink);
    font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased;
    padding-inline: 20px;
  }
  .wrap { max-width: 1120px; margin-inline: auto; }
  a { color: inherit; text-decoration-color: var(--antinode); text-underline-offset: 3px; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--antinode); outline-offset: 3px; }

  h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
  h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
  h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.25; }
  p { margin: 0; }
  .label {
    font: 600 0.9rem/1.3 var(--mono); letter-spacing: -0.005em; color: var(--muted);
  }
  .prose { max-width: 64ch; display: grid; gap: 1em; }

  /* ---------- nav ---------- */
  header.top {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
    margin-inline: -20px; padding-inline: 20px;
  }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
  .mark { font: 600 1.02rem/1.1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
  .mark span { color: var(--antinode); }
  .mark { display: inline-flex; align-items: center; gap: 10px; }
  .mark .logo { width: 30px; height: 30px; flex: none; color: var(--ink); }
  .mark small { display: block; margin-top: 4px; font: 400 0.75rem/1 var(--mono); letter-spacing: 0; color: var(--muted); }
  .name-story { margin-top: 32px; padding: 22px 26px; border: 1px solid var(--line); display: grid; gap: 8px; max-width: 72ch; }
  .name-story p { font-size: 0.97rem; color: var(--muted); }
  .actions { display: flex; align-items: center; gap: 24px; }
  nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
  nav a { font: 400 0.88rem/1 var(--mono); text-decoration: none; color: var(--muted); }
  nav a:hover { color: var(--ink); }

  section { padding-block: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line); }
  .sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 16px 40px; margin-bottom: 40px; }
  @media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

  /* ---------- hero ---------- */
  .hero { padding-block: clamp(40px, 7vw, 80px) 40px; border-top: 0; }
  .hero .label { margin-bottom: 20px; }
  .hero h1 {
    font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 700;
    line-height: 1.04; letter-spacing: -0.035em; max-width: 20ch;
  }
  .hero h1 em { font-style: normal; color: var(--antinode); }
    .hero .lede { margin-top: 28px; font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 58ch; color: var(--ink); }
  .hero .lede.lede-2 { margin-top: 16px; }
  .independent {
    display: inline-flex; gap: 10px; align-items: center; margin-top: 28px;
    font: 500 0.78rem/1.3 var(--mono); color: var(--muted);
    border: 1px solid var(--line); padding: 8px 12px; border-radius: 2px;
  }
  .independent i { width: 8px; height: 8px; border-radius: 50%; background: var(--node); flex: none; }

  figure.film {
    margin: 48px 0 0; background: var(--film); color: var(--film-ink);
    border-radius: 3px; overflow: hidden;
  }
  .film canvas { display: block; width: 100%; height: clamp(170px, 26vw, 280px); }
  .film figcaption {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    padding: 12px 18px; font: 400 0.75rem/1.5 var(--mono); color: color-mix(in srgb, var(--film-ink) 70%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--film-ink) 14%, transparent);
  }
  .key { display: inline-flex; gap: 18px; flex-wrap: wrap; }
  .key b { font-weight: 500; }
  .key .a { color: #FF453A; } .key .n { color: #C9D2DE; }

  /* ---------- lineage ---------- */
  .lineage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
  .lineage li { padding: 20px 22px 8px 0; display: grid; gap: 10px; align-content: start; }
  .lineage li + li { padding-left: 22px; border-left: 1px solid var(--line); }
  .lineage .yr { font: 500 0.8rem/1 var(--mono); color: var(--antinode); font-variant-numeric: tabular-nums; }
  .lineage p { font-size: 0.97rem; color: var(--muted); }
  @media (max-width: 900px) {
    .lineage { grid-template-columns: 1fr 1fr; }
    .lineage li:nth-child(3) { padding-left: 0; border-left: 0; }
    .lineage li:nth-child(n+3) { border-top: 1px solid var(--line); }
  }
  @media (max-width: 520px) {
    .lineage { grid-template-columns: 1fr; }
    .lineage li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  }

  /* ---------- vocabulary table ---------- */
  .tbl { overflow-x: auto; margin-top: 44px; }
  table { width: 100%; border-collapse: collapse; min-width: 600px; }
  th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
  th { font: 600 0.82rem/1.2 var(--mono); letter-spacing: 0;  color: var(--muted); border-bottom: 2px solid var(--ink); }
  td:first-child { font-family: var(--display); font-weight: 650; white-space: nowrap; }
  .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; }

  /* ---------- aims ---------- */
  .aims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .aim { background: var(--surface); border: 1px solid var(--line); padding: 26px; display: grid; gap: 12px; align-content: start; }
  .aim .label { color: var(--antinode); }
  .aim p { font-size: 0.97rem; color: var(--muted); }
  @media (max-width: 860px) { .aims { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .aims { grid-template-columns: 1fr; } }

  .status { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
  .status > div { padding: 22px 26px; display: grid; gap: 10px; align-content: start; }
  .status > div + div { border-left: 1px solid var(--line); }
  .status ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.97rem; }
  @media (max-width: 700px) { .status { grid-template-columns: 1fr; } .status > div + div { border-left: 0; border-top: 1px solid var(--line); } }

  .retro { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; align-items: start; }
  .retro h3 { font-size: 1.5rem; }
  .findings { margin: 0; display: grid; }
  .findings div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .findings div:first-child { border-top: 2px solid var(--ink); }
  .findings dt { font: 700 2.2rem/1 var(--display); letter-spacing: -0.03em; color: var(--blood); font-variant-numeric: tabular-nums; }
  .findings dd { margin: 0; font-size: 0.97rem; }
  .findings dd span { display: block; margin-top: 4px; font: 400 0.72rem/1.3 var(--mono); color: var(--muted); }
  @media (max-width: 820px) { .retro { grid-template-columns: 1fr; } }

  /* ---------- flow patterns ---------- */
  .flows { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .flow-card { margin: 0; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
  .flow-canvas, .method-canvas { display: block; width: 100%; height: 100%; min-height: 220px; border-right: 1px solid var(--line); }
  .flow-card figcaption { padding: 28px 32px; display: grid; gap: 10px; align-content: center; }
  .flow-card p { font-size: 0.95rem; color: var(--muted); }
  .flow-card .src { font-size: 0.78rem; color: var(--muted); }
  .motion-toggle {
    justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
    padding: 6px 12px; font: 500 0.75rem/1 var(--mono); color: var(--muted);
    background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  }
  .motion-toggle:hover { color: var(--ink); border-color: var(--muted); }
  .film .motion-toggle { color: inherit; border-color: color-mix(in srgb, var(--film-ink) 30%, transparent); }
  @media (max-width: 820px) {
    .flow-card { grid-template-columns: 1fr; }
    .flow-canvas, .method-canvas { height: 190px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .flow-card figcaption { padding: 20px 22px 22px; }
  }

  /* ---------- people ---------- */
  .pi { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .person { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
  .portrait { position: relative; width: 96px; height: 96px; margin-bottom: 10px; border-radius: 50%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
  .portrait span { font: 750 1.6rem/1 var(--display); color: var(--muted); }
  .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .person .role { font: 600 0.85rem/1.2 var(--mono); letter-spacing: 0;  color: var(--antinode); }
  .person h3 { font-size: 1.45rem; }
  .person .aff { color: var(--muted); font-size: 0.95rem; }
  .person p.bio { font-size: 0.97rem; margin-top: 6px; }
  .board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
  .board .person { border-top-width: 1px; border-top-color: var(--line); }
  .board .person h3 { font-size: 1.15rem; }
  @media (max-width: 860px) { .pi { grid-template-columns: 1fr; } .board { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 460px) { .board { grid-template-columns: 1fr; } }
  .tbc { font: 400 0.72rem/1.3 var(--mono); color: var(--muted); }

  /* ---------- pubs ---------- */
  .pubs { list-style: none; margin: 0; padding: 0; }
  .pubs li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
  .pubs li:first-child { border-top: 2px solid var(--ink); }
  .pubs .yr { font: 500 0.85rem/1.6 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
  .pubs .t { font-weight: 600; line-height: 1.4; }
  .pubs .j { font-size: 0.93rem; color: var(--muted); margin-top: 4px; }
  .pubs .j i { font-style: italic; }
  .pubs .doi { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; }
  @media (max-width: 520px) { .pubs li { grid-template-columns: 1fr; gap: 4px; } }

  .stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 28px; }
  .stats div { display: grid; gap: 2px; }
  .stats b { font: 700 2.2rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

  /* ---------- join ---------- */
  .join { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .join ul { margin: 0; padding: 0; list-style: none; display: grid; }
  .join li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
  .join li:first-child { border-top: 2px solid var(--ink); }
  .join li span { color: var(--muted); font-size: 0.95rem; }
  .cta {
    display: inline-block; margin-top: 28px; padding: 14px 22px; background: var(--ink); color: var(--ground);
    font: 600 0.95rem/1 var(--display); text-decoration: none; border-radius: 2px;
  }
  .cta:hover { background: var(--antinode); }
  @media (max-width: 820px) { .join { grid-template-columns: 1fr; } }

  footer { border-top: 1px solid var(--line); padding-block: 32px 48px; }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font: 400 0.78rem/1.6 var(--mono); color: var(--muted); }
  footer p { max-width: 70ch; }

  /* ---------- theme toggle ---------- */
  .pill { display: inline-block; font: 500 0.72rem/1 var(--mono); padding: 5px 8px; border-radius: 2px; white-space: nowrap; border: 1px solid currentColor; }
  .pill.done { color: var(--antinode); }
  .pill.plan { color: var(--node); }
  .hero .stats { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
  #program .film { margin-top: 0; }
  .aims + .status, .tbl + .status { margin-top: 32px; }
  #trials .tbl { margin-top: 0; }
  #research .aims { row-gap: 20px; grid-template-columns: 1fr 1fr; }
  @media (max-width: 560px) { #research .aims { grid-template-columns: 1fr; } }

  .theme-toggle {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    width: 34px; height: 34px; padding: 0; border-radius: 2px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    cursor: pointer; justify-content: center;
  }
  .theme-toggle:hover { border-color: var(--antinode); }
  .theme-toggle svg { width: 16px; height: 16px; display: block; }
  .theme-toggle .sun { display: none; }
  .theme-toggle .moon { display: block; }
  html[data-theme="dark"] .theme-toggle .moon { display: none; }
  html[data-theme="dark"] .theme-toggle .sun { display: block; }

/* ---------- angiogram figures ---------- */
.dsa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dsa-card { margin: 0; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.dsa-img { display: block; height: 260px; background: #0B0E13; border-bottom: 1px solid var(--line); }
.dsa-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dsa-card figcaption { padding: 18px 22px 22px; display: grid; gap: 8px; align-content: start; }
.dsa-card p { font-size: 0.95rem; color: var(--muted); }
.dsa-card .src { font-size: 0.78rem; color: var(--muted); }
.dsa-note { margin-top: 20px; font-size: 0.82rem; color: var(--muted); max-width: 80ch; }
@media (max-width: 900px) { .dsa-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dsa-grid { grid-template-columns: 1fr; } }

/* ---------- labs ---------- */
.labs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lab { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--antinode); padding: 30px; display: grid; gap: 12px; align-content: start; }
.lab + .lab { border-top-color: var(--blood); }
.lab .label { color: var(--antinode); }
.lab h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.lab p { color: var(--muted); }
.lab ul { margin: 4px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.97rem; }
@media (max-width: 760px) { .labs { grid-template-columns: 1fr; } }

.pubs-head { font-size: 1.25rem; letter-spacing: -0.02em; margin: 40px 0 14px; }
.pubs-head:first-of-type { margin-top: 0; }

/* ---------- contact ---------- */
.contact { margin: 0; display: grid; max-width: 720px; }
.contact div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact div:first-child { border-top: 2px solid var(--ink); }
.contact dt { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.contact dd { margin: 0; }
@media (max-width: 1100px) { nav ul { gap: 4px 16px; } }

/* ---------- header actions & mobile menu ---------- */
.nav-cta {
  flex: none; padding: 9px 14px; background: var(--ink); color: var(--ground);
  font: 600 0.85rem/1 var(--display); text-decoration: none; border-radius: 2px;
}
.nav-cta:hover { background: var(--antinode); }
.menu-toggle {
  display: none; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 2px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 18px; height: 18px; display: block; }
@media (max-width: 980px) {
  .actions { gap: 10px; }
  .menu-toggle { display: inline-flex; }
  .actions nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .actions nav.open { display: block; }
  .actions nav ul { display: grid; gap: 0; }
  .actions nav a { display: block; padding: 14px 0; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .actions nav li:last-child a { border-bottom: 0; }
}
.only-menu { display: none; }
@media (max-width: 560px) { .nav-cta { display: none; } .only-menu { display: block; } }

/* ---------- hero actions ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .cta { margin-top: 0; }
.cta.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cta.ghost:hover { background: transparent; color: var(--antinode); box-shadow: inset 0 0 0 1px var(--antinode); }

/* ---------- solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.solution { padding: 24px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.solution + .solution { padding-left: 24px; border-left: 1px solid var(--line); }
.solution .num { font: 600 0.85rem/1 var(--mono); color: var(--antinode); font-variant-numeric: tabular-nums; }
.solution p { font-size: 0.97rem; color: var(--muted); }
@media (max-width: 900px) {
  .solutions { grid-template-columns: 1fr 1fr; }
  .solution:nth-child(3) { padding-left: 0; border-left: 0; }
  .solution:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .solutions { grid-template-columns: 1fr; }
  .solution + .solution { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- cards ---------- */
.aim, .lab, .flow-card, .dsa-card { transition: border-color .2s ease, box-shadow .2s ease; }
.aim:hover, .lab:hover, .flow-card:hover, .dsa-card:hover { border-color: var(--muted); box-shadow: 0 6px 24px -12px color-mix(in srgb, var(--ink) 35%, transparent); }
.lab:hover { border-top-color: var(--antinode); }
.lab + .lab:hover { border-top-color: var(--blood); }
#program .aims { margin-top: 20px; }
.board-label { margin-top: 44px; }

/* ---------- footer ---------- */
footer .foot-top { align-items: flex-start; padding-bottom: 28px; }
.foot-name { font: 600 1rem/1.2 var(--display); color: var(--ink); margin-bottom: 6px; }
footer nav ul { gap: 8px 22px; }
footer nav a { font-size: 0.85rem; }
footer .foot-legal { padding-top: 20px; border-top: 1px solid var(--line); }

/* =====================================================================
   Product refresh: AI product look, flow explorer, motion
   ===================================================================== */
body { overflow-x: clip; }
.label { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
nav a { font: 500 0.9rem/1 var(--body); }
footer .wrap { font-family: var(--body); font-size: 0.82rem; }
.sub-head { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 18px; }

/* shape */
.aim, .lab, .flow-card, .dsa-card, .status, figure.film { border-radius: var(--r); overflow: hidden; }
.cta, .nav-cta, .theme-toggle, .menu-toggle { border-radius: var(--r-sm); }
.pill { border-radius: 999px; padding: 5px 10px; }
.cta, .nav-cta { background: var(--antinode); color: var(--on-accent); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.cta:hover, .nav-cta:hover { background: var(--antinode); transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--antinode); }
.cta.ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cta.ghost:hover { box-shadow: inset 0 0 0 1px var(--antinode); }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px 56px; align-items: center; padding-block: clamp(40px, 6vw, 72px) 48px; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -60px calc(50% - 50vw) 0;
  background:
    radial-gradient(60% 70% at 78% 30%, color-mix(in srgb, var(--antinode) 16%, transparent), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(90% 90% at 60% 20%, #000 20%, transparent 78%);
          mask-image: radial-gradient(90% 90% at 60% 20%, #000 20%, transparent 78%);
  opacity: .7;
}
.hero h1 { font-size: clamp(2.4rem, 4.7vw, 3.9rem); max-width: 16ch; }
.hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin-top: 24px; }
.hero .lede.lede-2 { color: var(--muted); font-size: 1rem; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 12px;
  font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--node); flex: none; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--node) 55%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

.hero-visual {
  margin: 0; background: var(--film); color: var(--film-ink); border-radius: var(--r); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--film-ink) 16%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 55%, transparent), 0 0 0 6px color-mix(in srgb, var(--antinode) 8%, transparent);
}
.win-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.04em; color: color-mix(in srgb, var(--film-ink) 70%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--film-ink) 12%, transparent); }
.win-bar .dots { display: inline-flex; gap: 5px; }
.win-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--film-ink) 28%, transparent); }
.hero-visual .method-canvas { height: clamp(220px, 27vw, 320px); min-height: 0; border: 0; }
.hud { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid color-mix(in srgb, var(--film-ink) 12%, transparent); }
.hud li { padding: 12px 14px; display: grid; gap: 3px; font-size: 0.78rem; line-height: 1.35; color: color-mix(in srgb, var(--film-ink) 65%, transparent); }
.hud li + li { border-left: 1px solid color-mix(in srgb, var(--film-ink) 12%, transparent); }
.hud b { font: 600 0.7rem/1.2 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: #8AB4FF; }
.hud .alert b { color: #FF453A; }
.win-foot { padding: 8px 14px 10px; font-size: 0.7rem; color: color-mix(in srgb, var(--film-ink) 50%, transparent); border-top: 1px solid color-mix(in srgb, var(--film-ink) 12%, transparent); }

.hero .stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; padding-top: 0; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); }
.hero .stats div { padding: 20px 24px; gap: 6px; }
.hero .stats div + div { border-left: 1px solid var(--line); }
.stats b { font-size: 2rem; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } .hero h1 { max-width: 20ch; } }
@media (max-width: 640px) {
  .hero .stats { grid-template-columns: 1fr 1fr; }
  .hero .stats div:nth-child(3) { border-left: 0; }
  .hero .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hud { grid-template-columns: 1fr; }
  .hud li + li { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--film-ink) 12%, transparent); }
}

/* pipeline */
.pipeline { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pipeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; animation: step 10s linear infinite; }
.pipeline li:nth-child(2) { animation-delay: 2.5s; } .pipeline li:nth-child(3) { animation-delay: 5s; } .pipeline li:nth-child(4) { animation-delay: 7.5s; }
@keyframes step {
  0%, 25%, 100% { border-color: var(--line); box-shadow: none; }
  4%, 20% { border-color: var(--antinode); box-shadow: 0 0 0 4px color-mix(in srgb, var(--antinode) 12%, transparent); }
}
.pipeline li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 40px; width: 8px; height: 8px; border-top: 2px solid var(--antinode); border-right: 2px solid var(--antinode); transform: rotate(45deg); }
.pipeline svg { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--antinode) 10%, transparent); fill: none; stroke: var(--antinode); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pipeline svg .rev { stroke: var(--blood); }
.pipeline .num { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--antinode); }
.pipeline p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } .pipeline li::after { display: none; } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pipeline li, .badge i { animation: none; } }

/* flow explorer */
.explorer { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.ex-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.ex-tabs button {
  display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 10px 12px;
  font: 600 0.92rem/1.2 var(--body); color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.ex-tabs button + button { border-left: 1px solid var(--line); }
.ex-tabs button:hover { color: var(--ink); }
.ex-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--antinode); background: color-mix(in srgb, var(--antinode) 7%, transparent); }
.sw { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sw.fwd { background: var(--antinode); } .sw.rev { background: var(--blood); }
.sw.mix { background: linear-gradient(90deg, var(--antinode) 50%, var(--blood) 50%); }
.sw.wave { background: var(--node); }
.ex-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ex-stage { margin: 0; background: var(--film); color: var(--film-ink); display: grid; grid-template-rows: 1fr auto auto; }
.ex-canvas-wrap { position: relative; }
#exCanvas { display: block; width: 100%; height: clamp(240px, 30vw, 340px); }
.ex-spots { position: absolute; inset: 0; pointer-events: none; }
.ex-spot {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  font: 600 0.75rem/1 var(--mono); color: #0B1018; background: #FFFFFF; border: 0; cursor: pointer;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .22); animation: spot 2.2s ease-in-out infinite;
}
.ex-spot::after { content: ""; position: absolute; inset: -10px; }
.ex-spot:hover, .ex-spot[aria-pressed="true"] { background: #FFD66B; animation: none; box-shadow: 0 0 0 6px rgba(255, 214, 107, .35); }
.ex-spot:focus-visible { outline: 2px solid #FFD66B; outline-offset: 4px; }
@keyframes spot { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); } 50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
.ex-cycle { padding: 10px 18px 12px; display: grid; gap: 6px; border-top: 1px solid color-mix(in srgb, var(--film-ink) 12%, transparent); }
.ex-cycle label { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--film-ink) 60%, transparent); }
.ex-cycle input { width: 100%; margin: 0; accent-color: #8AB4FF; cursor: ew-resize; }
.ex-phases { display: grid; grid-template-columns: 6fr 4fr; font-size: 0.75rem; color: color-mix(in srgb, var(--film-ink) 65%, transparent); }
.ex-phases span + span { border-left: 1px solid color-mix(in srgb, var(--film-ink) 30%, transparent); padding-left: 8px; }
.ex-stage figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 18px 14px; font-size: 0.78rem; }
.ex-legend { display: inline-flex; gap: 16px; } .ex-legend b { font-weight: 500; }
.ex-legend .fwd { color: #7DB2FF; } .ex-legend .rev { color: #FF453A; }
.ex-stage .motion-toggle { color: inherit; border-color: color-mix(in srgb, var(--film-ink) 30%, transparent); }
.ex-panel { padding: 30px 32px; display: grid; gap: 12px; align-content: start; }
.ex-panel .label { color: var(--antinode); }
.ex-panel h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.ex-panel > p:not(.label) { color: var(--muted); font-size: 0.97rem; }
.ex-stat { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding-block: 14px; border-block: 1px solid var(--line); }
.ex-stat b { font: 700 2.3rem/1 var(--display); letter-spacing: -0.03em; color: var(--blood); font-variant-numeric: tabular-nums; white-space: nowrap; }
.explorer[data-mode="laminar"] .ex-stat b { color: var(--antinode); }
.ex-stat span { font-size: 0.9rem; }
.ex-note { display: grid; gap: 4px; padding: 14px 16px; font-size: 0.93rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--node) 12%, transparent); border: 1px solid color-mix(in srgb, var(--node) 35%, transparent); min-height: 5.2em; align-content: start; }
.ex-note.hint { color: var(--muted); background: transparent; border-style: dashed; border-color: var(--line); }
.ex-panel .src { font: 400 0.75rem/1.3 var(--mono); color: var(--muted); }
@media (max-width: 900px) { .ex-body { grid-template-columns: 1fr; } .ex-panel { padding: 22px; } }
@media (max-width: 640px) {
  .ex-tabs { grid-template-columns: 1fr 1fr; }
  .ex-tabs button:nth-child(3) { border-left: 0; }
  .ex-tabs button:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ex-tabs button { font-size: 0.85rem; }
}

/* scroll reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* acoustic map story */
.story canvas { height: clamp(260px, 32vw, 360px); }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid color-mix(in srgb, var(--film-ink) 14%, transparent); }
.story-steps li + li { border-left: 1px solid color-mix(in srgb, var(--film-ink) 14%, transparent); }
.story-steps button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; font: 600 0.9rem/1.2 var(--body); color: color-mix(in srgb, var(--film-ink) 60%, transparent); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.story-steps button i { font: 600 0.72rem/1 var(--mono); font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid currentColor; }
.story-steps button:hover { color: var(--film-ink); }
.story-steps button[aria-selected="true"] { color: #FFFFFF; border-bottom-color: #FF453A; background: rgba(255, 255, 255, .05); }
.story-steps button[aria-selected="true"] i { background: #FF453A; border-color: #FF453A; color: #0B1018; }
.story-steps button:focus-visible { outline-color: #FFD66B; outline-offset: -4px; }
.story-cap { padding: 16px 20px; min-height: 5.6em; font-size: 1rem; line-height: 1.55; color: var(--film-ink); border-top: 1px solid color-mix(in srgb, var(--film-ink) 14%, transparent); max-width: none; }
@media (max-width: 720px) {
  .story-steps { grid-template-columns: 1fr 1fr; }
  .story-steps li:nth-child(3) { border-left: 0; }
  .story-steps li:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--film-ink) 14%, transparent); }
  .story-steps button { font-size: 0.82rem; justify-content: flex-start; }
}

/* animations: full-width stage on top, caption and legend underneath */
.flow-card { grid-template-columns: 1fr; }
.flow-canvas, .method-canvas { height: clamp(240px, 32vw, 380px); min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
.flow-card figcaption { padding: 24px 28px 26px; align-content: start; }
.flow-card figcaption p { max-width: 86ch; }
.ex-body { grid-template-columns: 1fr; }
#exCanvas { height: clamp(280px, 34vw, 420px); }
@media (min-width: 901px) {
  .ex-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 32px; }
  .ex-panel > * { grid-column: 1; }
  .ex-stat { grid-column: 2; grid-row: 1 / span 4; align-self: start; grid-template-columns: 1fr; gap: 8px; padding: 0 0 0 28px; border-block: 0; border-left: 1px solid var(--line); }
  .ex-note { grid-column: 3; grid-row: 1 / span 4; align-self: start; }
}

/* ---------- flat, one-by-one animations ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.solutions { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .solutions { grid-template-columns: 1fr; } .solution:nth-child(3) { padding-left: 0; } .solution + .solution { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.explorers { display: grid; gap: 28px; }
.explorer { display: grid; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.explorer .ex-stage { border-radius: var(--r); overflow: hidden; display: block; }
.explorer canvas { display: block; width: 100%; height: clamp(230px, 30vw, 360px); }
.ex-bar { display: flex; align-items: center; gap: 16px; padding: 8px 12px 8px 16px; border-top: 1px solid color-mix(in srgb, var(--film-ink) 12%, transparent); color: var(--film-ink); }
.ex-cycle { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; }
.ex-cycle input { flex: 1; min-width: 0; }
.ex-cycle .ph { font: 500 0.68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--film-ink) 60%, transparent); }
.ex-legend { display: inline-flex; gap: 12px; font-size: 0.8rem; }
.ex-legend b { font-weight: 700; font-size: 1rem; line-height: 1; }
.explorer[data-mode="hammer"] .ex-legend b { font-size: 0.75rem; font-weight: 500; }
.ex-bar .key { flex: 1; display: inline-flex; gap: 16px; font: 500 0.75rem/1 var(--mono); }
.motion-slot:empty { display: none; }
.motion-toggle { width: 32px; height: 32px; padding: 0; justify-content: center; flex: none; border-radius: 50%; }
.ex-bar .motion-toggle { color: var(--film-ink); border-color: color-mix(in srgb, var(--film-ink) 30%, transparent); }

.explorer .ex-panel { padding: 18px 2px 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 6px 28px; align-items: start; background: transparent; }
.explorer .ex-panel > .label, .explorer .ex-panel > h3, .explorer .ex-panel > p, .explorer .ex-panel > .src { grid-column: 1; }
.explorer .ex-panel h3 { font-size: 1.35rem; }
.explorer .ex-stat { grid-column: 2; grid-row: 1 / span 4; grid-template-columns: 1fr; gap: 6px; padding: 0 0 0 24px; border: 0; border-left: 1px solid var(--line); }
.explorer .ex-stat b { font-size: 2rem; }
.explorer .ex-note { grid-column: 3; grid-row: 1 / span 4; min-height: 0; font-size: 0.88rem; padding: 12px 14px; }
@media (max-width: 860px) {
  .explorer .ex-panel { grid-template-columns: 1fr; }
  .explorer .ex-panel > * { grid-column: 1 !important; grid-row: auto !important; }
  .explorer .ex-stat { grid-template-columns: auto 1fr; align-items: center; padding: 10px 0; border-left: 0; border-block: 1px solid var(--line); }
}
@media (max-width: 520px) { .ex-cycle .ph { display: none; } }

.flow-card figcaption { padding: 18px 22px; gap: 6px; }
.flow-card figcaption .motion-toggle { position: absolute; top: 12px; right: 12px; background: var(--surface); }
.flow-card { position: relative; }
.flow-canvas, .method-canvas { height: clamp(220px, 26vw, 320px); }
.story canvas { height: clamp(240px, 28vw, 330px); }
.story-cap { display: block; min-height: 0; padding: 14px 18px; font-size: 0.95rem; }
.story-bar { border-top: 1px solid color-mix(in srgb, var(--film-ink) 12%, transparent); }
.story .key .a { color: #FF453A; } .story .key .n { color: #C9D2DE; }
.flow-card { position: static; }
.flow-card figcaption { position: relative; padding-right: 64px; }
.flow-card figcaption .motion-toggle { top: 16px; right: 16px; }
.explorer { margin: 0; }

/* hero without visual */
.hero { grid-template-columns: 1fr; }
.hero h1 { max-width: 18ch; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.hero .lede { max-width: 62ch; }

/* =====================================================================
   Apple-style system: SF Pro, #F5F5F7 / #1D1D1F, #0071E3, pill buttons,
   centered section heads, soft 18px cards, no rules or mono labels
   ===================================================================== */
html { background: #F5F5F7; }
html[data-theme="dark"] { background: #000000; }
:root {
  --ground: #F5F5F7; --surface: #FFFFFF; --ink: #1D1D1F; --muted: #6E6E73; --line: #D2D2D7;
  --antinode: #0071E3; --blood: #D70015; --node: #BF7B00; --on-accent: #FFFFFF;
  --film: #101114; --film-ink: #E8E8ED;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: var(--body);
  --r: 18px; --r-sm: 12px;
}
:root[data-theme="dark"] {
  --ground: #000000; --surface: #1C1C1E; --ink: #F5F5F7; --muted: #A1A1A6; --line: #38383A;
  --antinode: #2997FF; --blood: #FF453A; --node: #FFB340; --on-accent: #FFFFFF; --film: #0B0B0D; --film-ink: #E8E8ED;
}
body { font: 400 1.0625rem/1.47 var(--body); letter-spacing: -0.022em; color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -0.028em; }
h3 { letter-spacing: -0.02em; }

/* labels: small, sentence case, no mono */
.label, .badge, .pipeline .num, .solution .num, .hud b, .ex-cycle .ph, .ex-panel .src, .story-steps button i,
.pill, th, .pubs .yr, .findings dd span, .tbc, .pubs .doi, .win-bar, .ex-bar .key, .ex-cycle label, .lineage .yr, .person .role {
  font-family: var(--body); text-transform: none; letter-spacing: -0.01em;
}
.label { font-size: 0.875rem; font-weight: 600; color: var(--muted); }

/* nav: slim frosted bar */
header.top { background: color-mix(in srgb, var(--ground) 72%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top .wrap { min-height: 48px; }
.wrap { max-width: 1024px; }
.mark { font-weight: 600; font-size: 0.95rem; }
.mark span { color: inherit; }
.mark .logo { width: 24px; height: 24px; }
nav a { font: 400 0.8rem/1 var(--body); letter-spacing: -0.01em; color: var(--ink); opacity: .8; }
nav a:hover { opacity: 1; color: var(--ink); }
.nav-cta { padding: 6px 12px; font: 400 0.8rem/1 var(--body); border-radius: 980px; }
.theme-toggle, .menu-toggle { border: 0; background: transparent; border-radius: 50%; }

/* buttons: pills */
.cta, .nav-cta { border-radius: 980px; box-shadow: none; }
.cta { padding: 12px 22px; font: 400 1.0625rem/1 var(--body); letter-spacing: -0.02em; }
.cta:hover, .nav-cta:hover { background: color-mix(in srgb, var(--antinode) 88%, #000); transform: none; box-shadow: none; }
.cta.ghost { color: var(--antinode); box-shadow: inset 0 0 0 1px var(--antinode); background: transparent; }
.cta.ghost:hover { color: var(--on-accent); background: var(--antinode); box-shadow: none; }

/* sections: no rules, centered heads, generous space */
section { border-top: 0; padding-block: clamp(72px, 11vw, 132px); }
.sec-head { display: block; text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 6vw, 64px); }
.sec-head > .label { margin-bottom: 10px; color: var(--antinode); }
.sec-head .prose { max-width: none; justify-items: center; gap: 18px; }
.sec-head .prose p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.4; color: var(--muted); max-width: 44ch; }
#publications .sec-head .prose p, #trials .sec-head .prose p { max-width: 60ch; }

/* hero: centered, big */
.hero { text-align: center; justify-items: center; padding-block: clamp(64px, 11vw, 128px) clamp(40px, 6vw, 72px); }
.hero::before { display: none; }
.hero-copy { display: grid; justify-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 5rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; max-width: 14ch; }
.hero h1 em { color: inherit; background: linear-gradient(90deg, #0071E3, #D70015); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lede { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.35; color: var(--ink); max-width: 40ch; margin-top: 22px; letter-spacing: -0.02em; }
.hero .lede b { font-weight: 600; }
.hero .lede.lede-2 { font-size: 1.0625rem; color: var(--muted); max-width: 58ch; margin-top: 14px; }
.hero-actions { justify-content: center; margin-top: 34px; }
.badge { font-size: 0.8rem; font-weight: 500; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--muted); padding: 6px 14px; }

/* cards: soft, borderless */
.aim, .lab, .flow-card, .dsa-card, .status, .explorer .ex-stage, figure.film, .person, .contact, .join ul, .tbl {
  border: 0; border-radius: var(--r);
}
.aim, .flow-card, .dsa-card, .status { background: var(--surface); }
.aim, .lab, .flow-card, .dsa-card { transition: transform .3s ease, box-shadow .3s ease; }
.aim:hover, .lab:hover, .flow-card:hover, .dsa-card:hover { border-color: transparent; transform: scale(1.01); box-shadow: 0 12px 40px -18px rgba(0,0,0,.25); }
.aim { padding: 30px; }
.aim .label { color: var(--antinode); }
.aim p, .flow-card p, .dsa-card p, .solution p { color: var(--muted); }
.status > div + div { border-left-color: var(--line); }
.flow-canvas, .method-canvas { border-bottom-color: var(--line); }
.dsa-img { border-bottom: 0; }

/* what we build: three soft tiles */
.solutions { border-top: 0; gap: 20px; }
.solution, .solution + .solution { background: var(--surface); border: 0; border-radius: var(--r); padding: 32px 30px; }
.solution:nth-child(n) { border-top: 0; padding-left: 30px; }
.solution .num { font-size: 0.875rem; font-weight: 600; }
.solution h3 { font-size: 1.4rem; }

/* explorer text below stages */
.explorers { gap: 56px; }
.explorer .ex-panel { padding-top: 22px; }
.explorer .ex-panel h3 { font-size: 1.6rem; }
.explorer .ex-stat { border-left-color: var(--line); }
.ex-stat b, .findings dt { font-weight: 700; letter-spacing: -0.03em; }
.ex-note { border: 0; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ex-note.hint { border: 0; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.ex-spot { font-family: var(--body); font-weight: 600; }
.motion-toggle { font-family: var(--body); }

/* tables, lists, pubs */
.tbl { background: var(--surface); padding: 8px 24px; }
th { font-size: 0.8rem; font-weight: 600; border-bottom: 1px solid var(--line); }
th, td { border-bottom-color: var(--line); }
tr:last-child td { border-bottom: 0; }
.pill { font-size: 0.75rem; font-weight: 500; border: 0; padding: 4px 10px; }
.pill.done { background: color-mix(in srgb, var(--antinode) 12%, transparent); }
.pill.plan { background: color-mix(in srgb, var(--node) 14%, transparent); }
.findings div:first-child, .pubs li:first-child, .join li:first-child, .contact div:first-child, .person { border-top: 0; }
.pubs { background: var(--surface); border-radius: var(--r); padding: 4px 26px; }
.pubs li:last-child { border-bottom: 0; }
.pubs .t { font-weight: 600; }
.pubs-head { font-size: 1.3rem; margin: 48px 0 16px; }
.person { background: var(--surface); padding: 30px; }
.pi { gap: 20px; }
.person .role { font-size: 0.875rem; font-weight: 600; }
.board .person { padding: 22px; }
.join ul { background: var(--surface); padding: 6px 26px; }
.join li:last-child { border-bottom: 0; }
.contact { background: var(--surface); padding: 6px 26px; margin-inline: auto; }
.contact div:last-child { border-bottom: 0; }
.join .prose { align-content: center; }

/* story + film */
.story-steps button, .story-cap { font-family: var(--body); }
.story-steps button[aria-selected="true"] { border-bottom-color: #2997FF; }
.story-steps button[aria-selected="true"] i { background: #2997FF; border-color: #2997FF; color: #FFFFFF; }

footer { border-top: 1px solid var(--line); background: var(--ground); }
footer .wrap { font-size: 0.75rem; color: var(--muted); letter-spacing: -0.01em; }
.foot-name { font-size: 0.9rem; }


/* 3D reconstruction */
.flow3d .ex-stage { background: #101114; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
#flow3d { display: block; width: 100%; height: clamp(300px, 40vw, 480px); cursor: grab; touch-action: pan-y; }
#flow3d:active { cursor: grabbing; }
.cbar { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; color: color-mix(in srgb, var(--film-ink) 70%, transparent); }
.cbar i { width: clamp(70px, 14vw, 160px); height: 8px; border-radius: 4px; background: linear-gradient(90deg, #0A3DFF, #00C2FF, #2BE36B, #FFD60A, #FF453A); order: 2; }
.cbar .lo { order: 1; } .cbar .hi { order: 3; }
.cbar span:first-child { order: 0; margin-right: 6px; }
.hint3d { font-size: 0.75rem; color: color-mix(in srgb, var(--film-ink) 55%, transparent); }
@media (pointer: coarse) { .hint3d { display: none; } }

/* everyday water hammer */
.hammer-life { margin: 0 0 28px; }
.hammer-life .ex-stage { background: var(--film); border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
#hammerPipe { display: block; width: 100%; height: clamp(260px, 32vw, 380px); }
.pill-btn { flex: none; padding: 8px 16px; border-radius: 980px; border: 0; cursor: pointer; font: 500 0.85rem/1 var(--body); color: #FFFFFF; background: #0071E3; }
.pill-btn:hover { background: #0077ED; }
.pill-btn:disabled { background: color-mix(in srgb, var(--film-ink) 18%, transparent); color: color-mix(in srgb, var(--film-ink) 60%, transparent); cursor: default; }
.hammer-life .key .a { color: #FF453A; }
#stringWave { display: block; width: 100%; height: clamp(240px, 28vw, 340px); }
.seg-btns { display: inline-flex; border-radius: 980px; overflow: hidden; background: color-mix(in srgb, var(--film-ink) 12%, transparent); flex: none; }
.seg-btns button { padding: 8px 14px; border: 0; background: transparent; color: color-mix(in srgb, var(--film-ink) 75%, transparent); font: 500 0.82rem/1 var(--body); cursor: pointer; }
.seg-btns button[aria-pressed="true"] { background: var(--film-ink); color: #101114; border-radius: 980px; }
@media (max-width: 560px) { .hammer-life .ex-bar { flex-wrap: wrap; } }
.f3-legend { flex: 1; display: inline-flex; align-items: center; min-width: 0; }
.f3-legend .key { font: 500 0.75rem/1 var(--body); }
.f3-phase { font: 600 0.75rem/1 var(--body); padding: 6px 10px; border-radius: 980px; background: color-mix(in srgb, var(--film-ink) 12%, transparent); color: var(--film-ink); min-width: 64px; text-align: center; }
@media (max-width: 720px) { .flow3d .ex-bar { flex-wrap: wrap; } .hint3d { display: none; } }
.flow3d .ex-stage { position: relative; }
.zoom3d { position: absolute; top: 14px; right: 14px; display: grid; gap: 6px; }
.zoom3d button { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; font: 500 1.25rem/1 var(--body); color: #FFFFFF; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.zoom3d button:hover { background: rgba(255, 255, 255, .26); }
.f3-phase.slow { background: #FFD66B; color: #101114; }
