/* 20 Final: Deep Field's system (navy field that lights on into a clean white
   page), with the Scale film joined to the hero, a 3 + 3 builds figure, the
   Perfusion II liver → kidney circuit and the Assay Run credential cards.
   Pink is reserved for the liver and the compound; everything else is blue. */

:root{
  --bg-deep:#021a28;
  --glow:#66ccff;
  --glow-2:#14b1ff;
  --pink:#f09aa2;
  --pink-deep:#d9707d;
  --pink-ink:#ae5a64;               /* pink-deep darkened for text on white (4.7:1) */
  --on-dark:rgba(230,243,250,.78);  /* running text on navy */
  --on-dark-dim:rgba(230,243,250,.62);
  --label-dark:rgba(204,238,255,.58);  /* mono labels on navy */
  --blue-muted:#618ba0;             /* blue-950 at 62% on white: headings not in focus (AA large) */
  --col:max(var(--gutter),calc((100% - var(--maxw)) / 2 + var(--gutter)));   /* left edge of the page content column */
  --cap-b:64px;                     /* film captions: distance from the bottom of the screen */
}
html{background:var(--bg-deep)}
body{background:var(--white)}
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}

/* ---------- NAV ---------- */
.nav{position:fixed;inset:0 0 auto 0;z-index:50;display:flex;align-items:center;gap:32px;
  height:72px;padding:0 var(--gutter);color:#fff;transition:color .4s var(--ease-out),background-color .4s var(--ease-out),border-color .4s;
  border-bottom:1px solid transparent}
.nav[data-theme="light"]{color:var(--ink);background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);border-bottom-color:var(--hairline)}
.nav--ink{z-index:51;pointer-events:none;visibility:hidden;transition:none}   /* the light nav, clipped to the lights-on circle (main.js) */
.nav__brand{display:flex;align-items:center;gap:12px;margin-right:auto}
.nav__mark{width:22px;height:26px;color:var(--periwinkle)}
.nav[data-theme="light"] .nav__mark{color:var(--blue-950)}
.nav__word{font-weight:650;font-size:17px;letter-spacing:-.01em}
.nav__word span{font-weight:400;opacity:.6}
.nav__links{display:flex;gap:28px;font-size:14px;font-weight:500}
.nav__links a{opacity:.72;transition:opacity .2s}
.nav__links a:hover{opacity:1}
.nav__cta{font-size:14px;font-weight:600;color:var(--glow);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:7px;text-decoration-color:currentColor;transition:color .2s,text-underline-offset .2s}
.nav__cta:hover{text-underline-offset:10px}
.nav[data-theme="dark"] .nav__cta:hover{color:#fff}
.nav[data-theme="light"] .nav__cta{color:var(--blue-700)}   /* blue-700 on white is 5.4:1 (blue-600 was 4.45, just under AA) */
.nav[data-theme="light"] .nav__cta:hover{color:var(--blue-800)}
.nav[data-theme="dark"] :focus-visible{outline-color:var(--glow)}
.nav.is-solid{background:rgba(2,26,40,.84);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border-bottom-color:rgba(204,238,255,.08)}
.nav__menu{display:none;width:40px;height:40px;position:relative}
.nav__menu span{position:absolute;left:10px;right:10px;height:1.5px;background:currentColor;transition:transform .3s var(--ease-out)}
.nav__menu span:first-child{top:16px}.nav__menu span:nth-child(2){top:23px}
.menu-open .nav__menu span:first-child{transform:translateY(3.5px) rotate(45deg)}
.menu-open .nav__menu span:nth-child(2){transform:translateY(-3.5px) rotate(-45deg)}
.mobile-menu{position:fixed;inset:0;z-index:45;background:var(--bg-deep);display:flex;flex-direction:column;justify-content:center;gap:8px;padding:0 var(--gutter);
  opacity:0;visibility:hidden;transition:opacity .35s var(--ease-out),visibility .35s}
.mobile-menu a{color:#fff;font-family:var(--font-display);font-weight:300;font-size:44px;line-height:1.2}
.menu-open .mobile-menu{opacity:1;visibility:visible}
.menu-open .nav{color:#fff;background:transparent;border-bottom-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}

/* ---------- BUTTONS ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;padding:15px 22px;border-radius:5px;font-size:15px;font-weight:550;letter-spacing:-.005em;
  transition:background-color .15s var(--ease-out),color .15s,border-color .15s,box-shadow .2s}
.btn--light{background:#fff;color:var(--blue-950)}
.btn--light:hover{background:var(--blue-50)}
.btn--ghost{color:#fff;border:1px solid rgba(255,255,255,.3)}
.btn--ghost:hover{border-color:#fff}
.btn--ghost::after,.btn--down::after{content:"↓";font-size:14px;opacity:.8}

/* ---------- THE DARK STRETCH: hero + film on one pinned stage ---------- */
.dark{position:relative;z-index:0;background:var(--bg-deep)}
.stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:var(--bg-deep);color:#fff}
.stage :focus-visible{outline-color:var(--glow)}
.hero__canvas,.film__cv{position:absolute;inset:0;width:100%;height:100%}
.film__cv{opacity:0}
.no-webgl .hero__canvas,.no-webgl .film__cv{display:none}
.no-webgl .stage{background:radial-gradient(40% 44% at 66% 42%,rgba(102,204,255,.13),transparent 70%),var(--bg-deep)}
.hero__veil{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 90% at 18% 60%,rgba(2,26,40,.85) 0%,rgba(2,26,40,.35) 45%,rgba(2,26,40,0) 70%)}
.film__scrim{position:absolute;inset:0;pointer-events:none;opacity:0;
  background:
    radial-gradient(130% 100% at 50% 40%,rgba(2,26,40,0) 50%,rgba(2,26,40,.7) 100%),
    linear-gradient(0deg,rgba(2,26,40,.92) 0%,rgba(2,26,40,.72) 20%,rgba(2,26,40,.3) 40%,rgba(2,26,40,0) 56%)}
/* lights on, as in 01 Deep Field: a white disc opens behind the lattice's canvas (its cells turn
   to ink in field.js); the layer in front carries the navy Problem heading, clipped to the same circle */
.stage__disc{position:absolute;inset:0;background:#fff;clip-path:circle(0px at 50% 50%);pointer-events:none}
.stage__white{position:absolute;inset:0;z-index:4;clip-path:circle(0px at 50% 50%);pointer-events:none}
/* white counterpart of the film scrim: keeps the dots out from behind the heading once the lights are on */
.stage__white::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#fff 0%,rgba(255,255,255,.9) 20%,rgba(255,255,255,.45) 38%,rgba(255,255,255,0) 54%)}

.hero__copy{position:absolute;left:var(--gutter);right:var(--gutter);top:50%;transform:translateY(-44%);max-width:min(1000px,66vw)}
.phase{position:absolute;left:0;top:50%;transform:translateY(-50%);width:100%;opacity:0;visibility:hidden}
.phase.is-on{opacity:1;visibility:visible}
.eyebrow{font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--glow);margin-bottom:26px}
.hero__title{font-family:var(--font-display);font-weight:300;font-size:clamp(46px,min(6.6vw,10.6vh),112px);line-height:.96;letter-spacing:-.035em;text-wrap:balance}
.hero__title em{font-style:normal;font-weight:400;background:linear-gradient(95deg,#fff 0%,var(--glow) 55%,var(--glow-2) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.05em}
.hero__ctas{margin-top:clamp(36px,5vh,52px);display:flex;gap:12px;flex-wrap:wrap}
.phase__line{font-family:var(--font-display);font-weight:300;font-size:clamp(44px,min(6.4vw,11vh),104px);line-height:.98;letter-spacing:-.03em}
.phase__note{margin-top:26px;max-width:440px;font-size:17px;line-height:1.55;color:var(--on-dark)}
.phase__then{margin-top:.12em}   /* the second line sits right under the first, as one sentence */
/* the highlighted half of a hero line: the hero's "safer" blue, restarted on each line (clone) */
.t-hi{font-style:normal;background:linear-gradient(95deg,var(--glow) 0%,#3dbfff 60%,var(--glow-2) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-right:.05em}


/* film captions: one per stop, swapped whole with a quick crossfade */
.caps{position:absolute;z-index:3;left:var(--col);right:var(--col);bottom:var(--cap-b)}
.cap{position:absolute;left:0;right:0;bottom:0;opacity:0;transform:translateY(10px);pointer-events:none;
  transition:opacity .22s var(--ease-out),transform .22s var(--ease-out)}
.cap.is-on{opacity:1;transform:none;pointer-events:auto;transition:opacity .45s var(--ease-out) .1s,transform .6s var(--ease-expo) .1s}
.cap .eyebrow{margin-bottom:18px}
.cap__line{font-family:var(--font-display);font-weight:300;font-size:clamp(30px,min(3.4vw,6vh),54px);line-height:1.08;letter-spacing:-.025em;max-width:19ch;text-wrap:balance}
.cap[data-i="2"] .cap__line{max-width:21ch}
.t-liver{font-style:normal;color:var(--pink)}
.t-kidney{font-style:normal;color:var(--glow)}
.t-key{font-style:normal;color:var(--glow)}   /* a highlighted phrase in a caption (same blue, no organ meaning) */
.cap--ask .cap__line{max-width:22ch}
.cap__more{color:var(--on-dark-dim)}   /* the question leads; the follow-up reads as its quieter half */
.cap--problem .sec__num{margin-bottom:22px}
.cap--problem .sec__title{max-width:18ch}
/* the circle reveals the answer: the navy heading inside it replaces the question outside it */
.caps--ink .cap{opacity:1;transform:none;transition:none}
/* ...and on wide screens, where the question sits clear of the heading, the circle turns the question
   navy first; it then fades with the lattice (main.js) */
.caps--qink{display:none}
.caps--qink .cap__line{color:var(--blue-950)}
.caps--qink .cap__more{color:rgba(0,68,102,.62)}
/* On wide landscape screens (where the film moves its subject right, like the hero) the captions sit
   where the hero's lines do: on the left, just above the middle, over a veil like the hero's. Elsewhere
   they stay at the bottom, as the hero does on phones. The Problem heading in the lights-on layer always
   stays low, lined up with the section that continues it. */
@media (min-width:900px) and (min-aspect-ratio:1/1){
  .caps:not(.caps--ink){left:var(--gutter);right:auto;top:50%;bottom:auto;width:min(760px,52vw)}
  .caps:not(.caps--ink) .cap{top:0;bottom:auto;translate:0 -55%}
  .caps--qink{display:block}
  .film__scrim{background:
    radial-gradient(130% 100% at 50% 40%,rgba(2,26,40,0) 50%,rgba(2,26,40,.7) 100%),
    radial-gradient(70% 85% at 15% 52%,rgba(2,26,40,.88) 0%,rgba(2,26,40,.5) 42%,rgba(2,26,40,0) 72%)}
}
.caps--ink .cap--problem .sec__num{color:var(--blue-700)}
.caps--ink .cap--problem .sec__num span{color:var(--blue-950);border-color:var(--blue-100)}
.caps--ink .cap--problem .sec__title{color:var(--blue-950)}

/* the scroll track under the stage (heights set the pacing) */
.track{position:relative;margin-top:-100vh;margin-top:-100svh;pointer-events:none}
.track__hero{height:360vh}
.track__hand{height:40vh}
.beat{position:relative;height:75vh}
.beat[data-i="1"]{height:110vh}      /* the chip, then the pull-back where it splits into three */
.beat[data-i="2"]{height:100vh}       /* the organs, then the dive back into the tissue */
.beat[data-i="3"]{height:25vh}
.track__back{height:45vh}             /* the hand back: out to the finished lattice, under the question */
.track__wipe{height:150vh}
.anchor{position:absolute;left:0;top:12px;width:1px;height:1px}
.anchor--up{top:-100px}                 /* a section with no top padding: land with its eyebrow clear of the nav */
.track__wipe{position:relative}
.track__wipe .anchor{top:85vh}           /* the Problem link lands once the page is white, heading and text in view */

/* ---------- SECTIONS ---------- */
.sec{padding:clamp(56px,7vw,104px) 0;position:relative;background:var(--white)}
.sec__head{margin-bottom:clamp(28px,3.6vw,48px)}
.sec__num::before{content:"";width:28px;height:1px;background:currentColor;flex:none}
.sec__num--c::after{content:"";width:28px;height:1px;background:currentColor;flex:none}   /* centred label: a dash on each side */
.sec__num{display:flex;align-items:center;gap:14px;font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue-700);margin-bottom:28px}
.sec__num span{display:inline-grid;place-items:center;min-width:34px;height:22px;padding:0 6px;border:1px solid var(--blue-100);border-radius:4px;color:var(--blue-950);letter-spacing:.06em}
.sec__num--c{justify-content:center}
.sec__title{font-family:var(--font-display);font-weight:400;font-size:clamp(36px,5vw,76px);line-height:1.02;letter-spacing:-.025em;color:var(--blue-950);text-wrap:balance}
.lede{font-size:clamp(17px,1.35vw,20px);line-height:1.6;color:var(--ink-600)}
.fine{margin-top:14px;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-600)}
sup{font-size:.65em;color:var(--blue-700);margin-left:2px}

/* problem: continues straight under the film's last caption */
.problem{z-index:1;margin-top:calc(48px - var(--cap-b));padding-top:0}
.problem__grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(32px,6vw,96px);align-items:end}
.trial__row{display:grid;grid-template-columns:repeat(10,1fr);gap:clamp(6px,1vw,12px)}
.trial__row i{aspect-ratio:1/2.4;border-radius:999px;background:var(--blue-950);transition:background-color .6s,border-color .6s;border:1.5px solid var(--blue-950)}
.trial__row i.ok{background:var(--blue-600);border-color:var(--blue-600)}
.trial.is-failed .trial__row i:not(.ok){background:transparent;border-color:var(--ink-200)}
/* nine of ten drop out one after another: each pill sinks, hollows out, settles; the survivor lifts */
.trial__row i.fail{animation:pill-fail .9s var(--ease-out) forwards}
.trial__row i.ok.win{animation:pill-win .8s var(--ease-out)}
@keyframes pill-fail{0%{transform:none}35%{transform:translateY(10px) scaleY(.94);background:var(--blue-950);border-color:var(--blue-950)}100%{transform:none;background:transparent;border-color:var(--ink-200)}}
@keyframes pill-win{0%{transform:none}45%{transform:translateY(-8px)}100%{transform:none}}
.trial__cap{margin-top:18px;font-size:14px;color:var(--ink-600);line-height:1.5}
.stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:clamp(40px,5vw,72px);border-top:1px solid var(--blue-100)}
.stat{padding:32px 24px 8px;min-width:0;text-align:center}
.stat+.stat{border-left:1px solid var(--blue-100)}
.stat dt{font-family:var(--font-display);font-weight:300;font-size:clamp(46px,5.4vw,88px);line-height:1;letter-spacing:-.04em;color:var(--blue-950);white-space:nowrap}
.stat dd{margin:14px auto 0;font-size:15px;line-height:1.5;color:var(--ink-600);max-width:26ch}

/* why AccuCell: the advantage over a hand-seeded chip */
.gap{background:var(--ink-50)}
/* the three keywords in the heading, marked like the Mission's highlights */
.t-mark{font-style:normal;color:var(--blue-600);background:linear-gradient(transparent 84%,rgba(102,204,255,.45) 84%)}
/* steps on the left scroll past a sticky window on the right (the Technology section's pattern, mirrored) */
.why{display:grid;grid-template-columns:1fr 1.35fr;gap:clamp(32px,5vw,80px);margin-top:clamp(36px,4.4vw,64px)}
.why__visual{position:relative;min-width:0;order:2}
.why__win{position:sticky;top:max(88px,calc(50svh - .21 * min(100vw,var(--maxw))));background:#fff;border:1px solid var(--blue-100);border-radius:6px;overflow:hidden}
/* the two column names sit centred over their drawings: the same 310 · 20 · 310 split as the SVG */
.why__cols,.why__pair{display:grid;grid-template-columns:310fr 20fr 310fr;text-align:center}
.why__cols{padding:22px 10px 0}
.why__cols span{font-family:var(--font-display);font-weight:400;font-size:clamp(20px,1.75vw,26px);letter-spacing:-.01em;color:var(--ink-600)}
.why__cols span+span,.why__pair p+p{grid-column:3}
.why__cols span+span{color:var(--blue-700)}
.why__svg{display:block;width:100%;height:auto;aspect-ratio:640/300;padding:4px 10px 0;overflow:hidden}
.why__caps{display:grid;padding:6px 10px 22px}
.why__pair{grid-area:1/1;align-content:start;opacity:0;transition:opacity .35s var(--ease-out)}
.why__pair.is-on{opacity:1}
.why__pair p{padding:0 8px;font-size:14px;line-height:1.45;color:var(--ink-600)}
.why__pair p+p{color:var(--blue-950)}
/* the drawing (why.js) */
.why__panel{opacity:0;transition:opacity .4s var(--ease-out)}
.why__panel.is-on{opacity:1}
.w-div{stroke:var(--blue-100);stroke-dasharray:3 5}
.w-cad{fill:#f7fbfd;stroke:var(--blue-200);stroke-dasharray:6 4}
.w-lane{stroke:var(--blue-200);stroke-width:1;stroke-dasharray:2 5}
.w-tool{fill:#fff;stroke:var(--blue-950);stroke-width:1.4;stroke-linejoin:round}
.w-cell__b{fill:#e3f5fd;stroke:var(--blue-600);stroke-width:1}
.w-cell__n{fill:var(--pink)}
.w-axis{fill:none;stroke:var(--ink-300);stroke-width:1.2}
.w-ab{font-family:var(--font-mono);font-size:19px;fill:var(--ink-600)}
.w-dot--a{fill:var(--blue-600)}
.w-dot--b{fill:var(--pink-deep)}
.w-band rect{fill:var(--blue-600);fill-opacity:.1}
.w-band--b rect{fill:var(--pink)}
.w-band path{stroke:var(--blue-950);stroke-width:1.6}
.w-chip{fill:#fff;stroke:var(--blue-200);stroke-width:1;vector-effect:non-scaling-stroke}
.w-strand{stroke:var(--pink);stroke-width:1.7;stroke-linecap:round}
.w-clump{fill:var(--pink);fill-opacity:.85}
.wsteps{display:flex;flex-direction:column;min-width:0}

/* tech */
.tech__body{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(32px,6vw,96px);margin-top:clamp(36px,4.4vw,64px)}
.tech__visual{position:relative;min-width:0}
.device{position:sticky;top:max(88px,calc(50svh - .2 * min(100vw,var(--maxw))));aspect-ratio:600/460;border:1px solid var(--blue-100);border-radius:6px;background:linear-gradient(180deg,#fff,#f7fbfd)}
.device__svg{width:100%;height:100%;color:var(--blue-100)}
.device__label{position:absolute;left:18px;bottom:14px;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-700)}
.d-chip__top{fill:rgba(204,238,255,.28);stroke:var(--blue-600);stroke-width:1.2}
.d-chip__side{fill:rgba(0,126,189,.07);stroke:var(--blue-600);stroke-width:1.2}
.d-chip__side--r{fill:rgba(0,126,189,.13)}
.d-grid{transition:opacity .6s}
.d-channel{fill:none;stroke:var(--blue-600);stroke-width:3;stroke-linecap:round}
.d-port{fill:#fff;stroke:var(--blue-600);stroke-width:1.5}
.d-chamber{fill:rgba(255,255,255,.7);stroke:var(--blue-600);stroke-width:1.5}
.d-print path{fill:none;stroke:var(--blue-600);stroke-width:6;stroke-linecap:round;stroke-dasharray:80;stroke-dashoffset:80;transition:stroke-dashoffset 1.2s var(--ease-out)}
.d-print .d-print__l2{stroke:var(--blue-300);transition-delay:.5s}
.d-nozzle{fill:none;stroke:var(--ink);stroke-width:1.5;opacity:0;transform:translateY(-30px);transition:opacity .5s,transform .8s var(--ease-out)}
.d-nozzle path:last-child{fill:#fff}
.d-flow{opacity:0;transition:opacity .5s}
.d-flow__p{fill:var(--blue-400)}
.d-read{opacity:0;transform:translateY(10px);transition:opacity .5s,transform .6s var(--ease-out)}
.d-read rect{fill:#fff;stroke:var(--blue-100)}
.d-read__line{fill:none;stroke:var(--blue-600);stroke-width:2;stroke-dasharray:200;stroke-dashoffset:200;transition:stroke-dashoffset 1.4s var(--ease-out) .2s}
.d-read text{fill:var(--blue-700);font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.d-read__axis{fill:none;stroke:var(--blue-300);stroke-width:1}
.d-read__limit{fill:none;stroke:var(--blue-400);stroke-width:1;stroke-dasharray:3 3}
.d-read__pts circle{fill:#fff;stroke:var(--blue-600);stroke-width:1.4}
.d-read__pts{opacity:0;transition:opacity .5s .9s}
.device[data-step="3"] .d-read__pts{opacity:1}
.device[data-step="1"] .d-print path,.device[data-step="2"] .d-print path,.device[data-step="3"] .d-print path{stroke-dashoffset:0}
.device[data-step="1"] .d-nozzle{opacity:1;transform:none}
.device[data-step="2"] .d-flow,.device[data-step="3"] .d-flow{opacity:1}
.device[data-step="3"] .d-read{opacity:1;transform:none}
.device[data-step="3"] .d-read__line{stroke-dashoffset:0}
.device:not([data-step="0"]):not([data-step="1"]) .d-grid{opacity:.35}

.steps{display:flex;flex-direction:column;min-width:0}
/* every step stays readable; the one in focus (matching the diagram) takes the navy heading and a blue rule */
.step,.wstep{min-height:52vh;display:flex;flex-direction:column;justify-content:center;border-top:1px solid var(--blue-100);transition:border-color .5s var(--ease-out)}
.step:last-child,.wstep:last-child{min-height:40vh}
.step.is-active,.wstep.is-active{border-top-color:var(--blue-600)}
.step__n{font-family:var(--font-mono);font-size:12px;color:var(--blue-700);letter-spacing:.12em}
.step h3,.wstep h3{margin-top:14px;font-family:var(--font-display);font-weight:400;font-size:clamp(34px,3.6vw,54px);letter-spacing:-.02em;color:var(--blue-muted);transition:color .5s var(--ease-out)}
.step.is-active h3,.wstep.is-active h3{color:var(--blue-950)}
.step p,.wstep p{margin-top:14px;font-size:18px;line-height:1.6;color:var(--ink-600);max-width:38ch}

/* platform: the circuit (WebGL2 strip, Perfusion II look), then the organ cards */
.circuit{--xl:36%;--xk:67%;--yl:33%;--yk:70%;margin-top:clamp(20px,2.4vw,36px)}
.circuit__stage{position:relative;height:clamp(230px,19vw,270px)}
.circuit__cv,.circuit__svg{position:absolute;inset:0;width:100%;height:100%}
.circuit__svg{display:none}
.circuit__io{position:absolute;left:0;top:0;white-space:nowrap;pointer-events:none;font:400 11px/1 var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-600)}
.circuit__io--out{translate:-100% 0}
.circuit__io.is-side.circuit__io--out{translate:none}
.circuit__port{position:absolute;left:0;top:0;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:#fff;border:1.5px solid var(--blue-950);pointer-events:none}
.no-circuit .circuit__cv{display:none}
.no-circuit .circuit__svg{display:block}
.cs-ch{fill:none;stroke:#58aee0;stroke-width:14;stroke-linecap:round}
.cs-liver{fill:#f1c2cb;stroke:var(--blue-950);stroke-width:1.2;vector-effect:non-scaling-stroke}
.cs-kidney{fill:#c6dff1;stroke:var(--blue-950);stroke-width:1.2;vector-effect:non-scaling-stroke}
.circuit__labels{position:relative;min-height:104px;margin-top:0}
.circuit__lab{position:absolute;top:0;left:var(--xl);transform:translateX(-50%);width:min(250px,28%);text-align:center;font-size:15px;line-height:1.5;color:var(--ink-600)}
.circuit__lab b{display:block;margin-bottom:6px;font-family:var(--font-display);font-weight:600;font-size:22px;line-height:1.2;letter-spacing:-.01em;color:var(--blue-950)}
.circuit__lab--liver b{color:var(--pink-ink)}
.circuit__lab--kidney{left:var(--xk)}
.circuit__lab--kidney b{color:var(--blue-800)}

.organs{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:clamp(40px,5vw,64px)}
.organ{--hl:var(--blue-600);position:relative;min-width:0;background:#fff;border:1px solid var(--blue-100);border-radius:6px;padding:28px;overflow:hidden;transition:box-shadow .2s var(--ease-out),border-color .2s}
.organ--liver{--hl:#f09aa2}
.organ--kidney{--hl:#58aee0}
.organ--both{--hl:linear-gradient(90deg,#f09aa2,#e8b25e 50%,#58aee0)}
.organ::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--hl);transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease-expo)}
.organ:hover{box-shadow:0 12px 32px rgba(0,68,102,.08);border-color:var(--hl)}
.organ--both:hover{border-color:#e8b25e}
.organ:hover::before{transform:scaleX(1)}
.organ__g{width:120px;height:80px;fill:none;stroke:var(--blue-600);stroke-width:1.5;stroke-linecap:round;margin-bottom:36px}
.organ__status{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-800)}
.organ__status i{width:7px;height:7px;border-radius:50%;background:var(--blue-600)}   /* static: no ping */
.organ--liver .organ__status i{background:var(--pink-deep)}
.organ__status--road{color:var(--ink-600)}
.organ__status--road i{background:transparent;border:1.5px solid var(--ink-500)}
.organ h3{margin-top:14px;font-family:var(--font-display);font-weight:400;font-size:34px;letter-spacing:-.02em;color:var(--blue-950)}
.organ p:last-child{margin-top:10px;font-size:16px;line-height:1.55;color:var(--ink-600)}

/* matters */
.matters{padding-top:0}
.mi{display:block;width:84px;height:40px;margin-bottom:22px;fill:none;stroke:var(--blue-600);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.mi .mi__white{fill:#fff}
.mi .mi__dot{fill:var(--blue-600);stroke:none}
.sprite{position:absolute}
.matters__grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--blue-100);border-bottom:1px solid var(--blue-100)}
.matters__grid li{padding:34px 28px 38px 0;min-width:0}
.matters__grid li+li{padding-left:28px;border-left:1px solid var(--blue-100)}
.matters__grid h3{font-family:var(--font-display);font-weight:600;font-size:22px;line-height:1.2;letter-spacing:-.01em;color:var(--blue-950)}
.matters__grid p{margin-top:10px;font-size:15px;line-height:1.55;color:var(--ink-600)}

/* now */
.now{background:var(--ink-50)}
.timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:clamp(40px,5vw,72px);position:relative}
.timeline::before{content:"";position:absolute;left:0;right:0;top:calc(clamp(30px,3vw,44px) + 31px);height:2px;margin-top:-.5px;
  background:repeating-linear-gradient(90deg,var(--blue-300) 0 9px,transparent 9px 18px)}   /* dashed: it carries on past the last date */
.timeline::after{content:"";position:absolute;right:1px;top:calc(clamp(30px,3vw,44px) + 31px);width:11px;height:11px;margin-top:-5px;border-top:2px solid var(--blue-400);border-right:2px solid var(--blue-400);transform:rotate(45deg) translate(-3px,3px)}
.timeline li{position:relative;padding-right:40px}
.timeline li::before{content:"";position:absolute;left:0;top:calc(clamp(30px,3vw,44px) + 26px);width:11px;height:11px;border-radius:50%;background:#fff;border:1.5px solid var(--blue-600)}
.timeline li:last-child::before{background:var(--blue-600)}
.timeline time{display:block;font-family:var(--font-display);font-weight:300;font-size:clamp(30px,3vw,44px);letter-spacing:-.02em;color:var(--blue-600);line-height:1;margin-bottom:26px}
.timeline p{margin-top:42px;font-size:17px;line-height:1.55;color:var(--ink-700);max-width:34ch}

/* credentials (Assay Run cards in Deep Field dress) */
.creds{overflow:hidden;padding-bottom:clamp(24px,3vw,40px)}
.creds .sec__title{margin-bottom:clamp(28px,3.6vw,48px)}
.creds__band{overflow:hidden}
.creds__track{display:flex;gap:20px;padding:0 0 0 var(--gutter);width:max-content;will-change:transform}
/* drift mode: the cards roll sideways by themselves, endlessly (JS adds the copies and sets --roll, --roll-time) */
.creds[data-mode="drift"] .creds__track.is-rolling{animation:creds-roll var(--roll-time,40s) linear infinite}
.creds[data-mode="drift"] .creds__band:hover .creds__track,.creds[data-mode="drift"] .creds__track:focus-within{animation-play-state:paused}
@keyframes creds-roll{to{transform:translateX(calc(-1 * var(--roll)))}}
.cred{position:relative;flex:none;width:clamp(260px,26vw,360px);min-height:230px;padding:26px;background:#fff;border:1px solid var(--blue-100);border-radius:6px;overflow:hidden;
  display:flex;flex-direction:column;justify-content:space-between;gap:30px;transition:box-shadow .2s var(--ease-out),border-color .2s}
.cred__bg{position:absolute;inset:-10px;width:calc(100% + 20px);height:calc(100% + 20px);max-width:none;object-fit:cover;filter:blur(5px) saturate(.75);opacity:.3;z-index:0;pointer-events:none;
  transition:filter .7s var(--ease-out),opacity .7s var(--ease-out)}
.cred__bg--photo{object-position:50% 35%}
.cred--plain{background:linear-gradient(180deg,#f3f5f6,#e6eaec)}
.cred--plain::before{display:none}
.cred--plain:hover{box-shadow:none;border-color:var(--blue-100)}
.cred__bg--dark{object-fit:contain;background:#000;padding:0;inset:0;width:100%;height:100%;opacity:.22}
.cred__bg--logo{inset:0;width:100%;height:100%;object-fit:contain;padding:30px 28px;filter:blur(7px) saturate(.85);opacity:.36}
.cred:has(.cred__bg)::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.8));pointer-events:none;transition:opacity .5s var(--ease-out)}
.cred>b,.cred>span{position:relative;z-index:1;transition:opacity .35s var(--ease-out)}
/* hover, tap or keyboard focus: the picture comes into focus and the text steps aside */
.cred:is(:hover,:focus) .cred__bg{filter:none;opacity:1}
.cred:is(:hover,:focus):has(.cred__bg)::after,.cred:is(:hover,:focus):has(.cred__bg)>b,.cred:is(:hover,:focus):has(.cred__bg)>span{opacity:0}
.cred:focus{outline:none}
.cred:focus-visible{outline:2px solid var(--blue-600);outline-offset:3px}
.cred::before{z-index:2;content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--blue-600);transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease-expo)}
.cred:hover{box-shadow:0 12px 32px rgba(0,68,102,.08);border-color:var(--blue-200)}
.cred:hover::before{transform:scaleX(1)}
.cred b{font-family:var(--font-display);font-weight:400;font-size:clamp(30px,3vw,44px);letter-spacing:-.03em;line-height:1.02;color:var(--blue-950)}
.cred span{font-size:15px;line-height:1.5;color:var(--ink-600)}
.cred--photo{padding:0;border-style:dashed;border-color:var(--blue-200)}
.cred--photo::before{display:none}
.slot{flex:1;display:grid;place-items:center;text-align:center;padding:20px;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-800);line-height:1.8;
  background:repeating-linear-gradient(135deg,#fff 0 14px,#f6fafc 14px 15px)}
/* static: four cards in a row with the photo slot at the side, nothing moves */
.creds[data-mode="static"] .creds__band{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.creds[data-mode="static"] .creds__track{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,minmax(0,1fr));width:auto;padding:0;transform:none!important}
.creds[data-mode="static"] .cred{width:auto;min-height:220px;padding:22px}
.creds[data-mode="static"] .cred b{font-size:clamp(24px,2.1vw,32px)}
.creds[data-mode="static"] .cred--photo{order:-1;padding:0}

/* mission */
.mission{padding:clamp(40px,5vw,72px) 0 clamp(72px,9vw,128px);text-align:center;background:#fff}
.mission__text strong{font-weight:500;color:var(--blue-600);background:linear-gradient(transparent 82%,rgba(102,204,255,.45) 82%)}
.mission__text{margin:0 auto;max-width:28ch;font-family:var(--font-display);font-weight:300;font-size:clamp(30px,3.9vw,58px);line-height:1.16;letter-spacing:-.02em;color:var(--blue-950)}

/* team: blue duotone, full colour on hover (or while centred on touch screens) */
.people{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(16px,2vw,28px);margin-top:clamp(40px,5vw,72px)}
.person{min-width:0}
.person__img{position:relative;aspect-ratio:1;border-radius:6px;overflow:hidden;background:var(--blue-950)}
.person__img img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.05) brightness(1.02);mix-blend-mode:luminosity;opacity:.92;transition:filter .6s var(--ease-out),opacity .6s,transform 1s var(--ease-expo)}
.person__img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,126,189,.0) 40%,rgba(0,68,102,.35));pointer-events:none;transition:opacity .6s}
.person:hover .person__img img,.person.is-centred .person__img img{filter:none;mix-blend-mode:normal;opacity:1;transform:scale(1.03)}
.person:hover .person__img::after,.person.is-centred .person__img::after{opacity:0}
.person h3{margin-top:20px;font-family:var(--font-display);font-weight:600;font-size:22px;letter-spacing:-.01em;color:var(--blue-950)}
.person__role{margin-top:6px;font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue-700);line-height:1.5}
.person p:last-child{margin-top:12px;font-size:15px;line-height:1.6;color:var(--ink-600)}
.person__tbd{color:var(--ink-600)!important}

/* contact */
.contact{position:relative;background:var(--bg-deep);color:#fff;padding:clamp(72px,9vw,128px) 0;overflow:hidden}
.contact :focus-visible{outline-color:var(--glow)}
.contact__canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.8}
.contact__wrap{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,7vw,120px);align-items:start}
.contact .sec__num{color:var(--glow)}
.contact .sec__num span{color:#fff;border-color:rgba(204,238,255,.25)}
.contact__title{font-family:var(--font-display);font-weight:300;font-size:clamp(64px,9vw,150px);line-height:.92;letter-spacing:-.04em}
.contact__sub{margin-top:28px;max-width:40ch;font-size:18px;line-height:1.6;color:var(--on-dark)}
.contact__direct{margin-top:40px;display:flex;flex-direction:column;gap:10px;font-family:var(--font-mono);font-size:13px;letter-spacing:.04em;color:var(--on-dark)}
.contact__direct a{border-bottom:1px solid rgba(204,238,255,.3);padding-bottom:2px;transition:border-color .2s}
.contact__direct a:hover{border-color:#fff}
/* a bright white outline, so the form stands out on the dark field (Ethan's pick over a lighter raised panel) */
.form{display:flex;flex-direction:column;gap:22px;padding:clamp(24px,3vw,40px);border:1.5px solid rgba(255,255,255,.92);border-radius:6px;background:rgba(2,26,40,.55);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.form label{display:flex;flex-direction:column;gap:8px}
.form label span{font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--label-dark)}
.form input,.form textarea{background:transparent;border:0;border-bottom:1px solid rgba(204,238,255,.45);padding:10px 0;font-size:17px;color:#fff;resize:vertical;outline:none;transition:border-color .2s}
.form input:focus,.form textarea:focus{border-color:#fff;box-shadow:0 1px 0 #fff;border-radius:0}   /* focus: the underline turns white and doubles */
.form .btn{align-self:flex-start;margin-top:8px}
.form__status{font-size:14px;color:var(--glow);min-height:1.2em}
.form__note{margin-top:-10px;font-size:13px;color:var(--on-dark)}
.form__note a,.foot__copy a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(204,238,255,.45);transition:text-decoration-color .2s}
.form__note a:hover,.foot__copy a:hover{text-decoration-color:currentColor}
.form__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form .btn:disabled{opacity:.6;cursor:progress}

/* footer */
.foot{background:var(--bg-deep);color:var(--on-dark-dim);padding:0 0 40px}
.foot__wrap{display:grid;grid-template-columns:1fr 1.4fr;gap:40px;padding-top:40px;border-top:1px solid rgba(204,238,255,.12)}
.foot__brand{display:flex;gap:16px;align-items:flex-start;font-size:14px;line-height:1.6;color:#fff}
.foot__brand span{color:var(--on-dark-dim)}
.foot__mark{width:26px;height:31px;color:var(--periwinkle);flex:none}
.foot__src{list-style:decimal;padding-left:18px;font-size:12px;line-height:1.6;display:flex;flex-direction:column;gap:6px}
.foot__note{margin-top:18px;font:400 11px/1.65 var(--font-mono);color:var(--on-dark-dim)}
.foot__copy{grid-column:1/-1;font-size:12px}

/* reveals (shared/js/reveal.js): short, and finished the moment they are on screen */
.line-mask{display:block;overflow:hidden;padding-bottom:.06em;margin-bottom:-.06em}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1024px){
  .nav__links{display:none}
  .nav__menu{display:block}               /* tablets: the menu, beside Get in Touch */
  .people{grid-template-columns:repeat(2,1fr)}
  .creds[data-mode="static"] .creds__track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .creds[data-mode="static"] .cred--photo{grid-column:1/-1;min-height:160px}
}
@media (max-width:760px){
  :root{--cap-b:44px}
  .nav{height:64px;gap:12px}
  .nav__cta{display:none}
  .nav__menu{display:block}
  .nav__word span{display:none}
  .br-d{display:none}
  .track__hero{height:300vh}
  .hero__copy{top:auto;bottom:88px;transform:none;max-width:none}
  .phase{top:auto;bottom:0;transform:none}
  .hero__title{font-size:clamp(35px,10.2vw,46px);line-height:1}
  .phase__line{font-size:clamp(38px,11vw,48px)}
  .phase__note{font-size:16px}
  .hero__veil{background:linear-gradient(0deg,rgba(2,26,40,.92) 0%,rgba(2,26,40,.6) 40%,rgba(2,26,40,0) 70%)}
  .film__scrim{background:
    radial-gradient(140% 90% at 50% 30%,rgba(2,26,40,0) 50%,rgba(2,26,40,.6) 100%),
    linear-gradient(0deg,rgba(2,26,40,.97) 0%,rgba(2,26,40,.9) 34%,rgba(2,26,40,.5) 50%,rgba(2,26,40,0) 64%)}
  .stage__white::before{background:linear-gradient(0deg,#fff 0%,rgba(255,255,255,.95) 34%,rgba(255,255,255,.5) 50%,rgba(255,255,255,0) 64%)}
  .cap .eyebrow{margin-bottom:12px;font-size:11px}
  .cap__line{font-size:clamp(24px,6.8vw,30px);line-height:1.12}
  .cap--problem .sec__num{margin-bottom:16px}
  .cap--problem .sec__title{font-size:clamp(32px,9vw,40px)}
  .problem__grid,.tech__body,.contact__wrap,.foot__wrap{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .stat,.stat+.stat{padding:28px 0;border-left:0}
  .stat+.stat{border-top:1px solid var(--blue-100)}
  .tech__visual{position:sticky;top:64px;z-index:2;background:#fff;padding:12px 0}
  .device{position:relative;top:0}
  .step,.wstep{min-height:46vh}
  .why{grid-template-columns:1fr}
  .why__visual{order:-1;position:sticky;top:64px;z-index:2;background:var(--ink-50);padding:12px 0}
  .why__win{position:relative;top:0}
  .why__cols{padding:14px 6px 0}
  .why__cols span{font-size:17px}
  .why__caps{padding:4px 6px 14px}
  .why__pair p{padding:0 4px;font-size:12.5px}
  .circuit__stage{height:680px}
  .circuit__labels{position:absolute;inset:0;margin:0;min-height:0;pointer-events:none}
  .circuit{position:relative}
  .circuit__lab{left:88px;right:0;top:var(--yl);width:auto;transform:translateY(-50%);text-align:left;font-size:14px}
  .circuit__lab b{font-size:20px}
  .circuit__lab--kidney{left:88px;top:var(--yk)}
    .organs{grid-template-columns:1fr}
  .matters__grid{grid-template-columns:1fr}
  .matters__grid li,.matters__grid li+li{padding:26px 0;border-left:0}
  .matters__grid li+li{border-top:1px solid var(--blue-100)}
  .timeline{grid-template-columns:1fr;gap:36px}
  .timeline::before{left:5px;right:auto;top:0;bottom:0;width:1px;height:auto}
  .timeline li{padding:0 0 0 32px}
  .timeline li::before{top:12px}
  .timeline::after{right:auto;left:0;top:auto;bottom:-4px;transform:rotate(135deg)}
  .timeline time{margin-bottom:0}
  .timeline p{margin-top:10px}
  .people{grid-template-columns:1fr 1fr;gap:18px}
  .person p:last-child{font-size:14px}
}
/* credentials on phones (either mode): a 2 × 2 grid under the photo slot, no drift */
@media (max-width:760px){
  .creds .cred.is-copy{display:none}
  .creds .creds__track{animation:none!important}
  .creds .creds__band{padding:0 var(--gutter)}
  .creds .creds__track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:auto;padding:0;transform:none!important}
  .creds .cred{width:auto;min-height:170px;padding:18px;gap:18px}
  .creds .cred b{font-size:clamp(21px,5.9vw,26px)}
  .creds .cred span{font-size:13.5px}
  .creds .cred--photo{order:-1;grid-column:1/-1;min-height:150px;padding:0}
}
@media (max-width:760px) and (max-height:700px){
  .hero__sub{font-size:15px;margin-top:20px}
  .hero__ctas{margin-top:24px}
  .phase__note{margin-top:16px}
}
@media (max-width:420px){.people{grid-template-columns:1fr}}

@media (prefers-reduced-motion:reduce){
  .track__hero{height:220vh}
  .track__hand{height:30vh}
  .beat,.beat[data-i="1"],.beat[data-i="2"]{height:90vh}
  .beat[data-i="3"]{height:40vh}
  .cap,.cap.is-on{transition:none;transform:none}
  .step,.wstep{min-height:0;padding:32px 0}
  .step h3,.wstep h3{color:var(--blue-950)}
  /* no drift: the credentials use the static layout */
  .creds .cred.is-copy{display:none}
  .creds .creds__track{animation:none!important}
  .creds .creds__band{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
  .creds .creds__track{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,minmax(0,1fr));width:auto;padding:0;transform:none!important}
  .creds .cred{width:auto}
  .creds .cred--photo{order:-1}
}
@media (prefers-reduced-motion:reduce) and (max-width:1024px){
  .creds .creds__track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .creds .cred--photo{grid-column:1/-1;min-height:150px}
}
.organ--liver .organ__g{stroke:var(--pink-deep)}
