/* Ephla Bio · site styles
   Paper edition (light, default) and ink edition (dark). One accent: HLA blue, which marks the target.
   Three voices: Newsreader (display), Hanken Grotesk (body), Martian Mono (labels, sequences). */

:root {
  --bg: #F4F6F8;
  --bg-2: #FBFCFD;
  --bg-3: #E8ECF1;
  --ink: #0B1220;
  --ink-2: #394557;
  --ink-3: #5A6678;
  --line: rgba(11, 18, 32, .13);
  --line-2: rgba(11, 18, 32, .07);
  --accent: #0066CC;
  --accent-strong: #0052A3;
  --on-accent: #FFFFFF;
  --accent-wash: rgba(0, 102, 204, .08);
  --shadow: 0 1px 0 rgba(11, 18, 32, .04), 0 18px 40px -24px rgba(11, 18, 32, .22);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --f-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-label: var(--f-display);
  --f-body: var(--f-display);

  --nav-h: 64px;
  --gutter: clamp(20px, 4vw, 56px);
  --shell: 1560px;
  color-scheme: light;
}
@media (min-width: 1920px) { :root { --shell: 1760px; } }

:root[data-theme="dark"],
.ink-surface {
  --bg: #070B14;
  --bg-2: #0D1422;
  --bg-3: #141D2E;
  --ink: #EAF0F7;
  --ink-2: #B7C2D1;
  --ink-3: #8996A8;
  --line: rgba(234, 240, 247, .15);
  --line-2: rgba(234, 240, 247, .08);
  --accent: #4D9FFF;
  --accent-strong: #7DB9FF;
  --on-accent: #04101F;
  --accent-wash: rgba(77, 159, 255, .11);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -24px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"] .ink-surface { --bg: #0D1422; --bg-2: #131C2D; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
/* no one-word last lines in running text */
p, li, dd, figcaption, blockquote, .tag > span, .strip__key span { text-wrap: pretty; }
.nw { white-space: nowrap; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent); }
.close :focus-visible { outline-color: var(--on-accent); box-shadow: 0 0 0 4px var(--accent), 0 0 0 6px var(--on-accent); }
::selection { background: var(--accent); color: var(--on-accent); }

.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 12px; }

/* Ground: a quiet wash and a well-plate lattice, so the page is never a flat sheet. */
.ground {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 88% -6%, var(--accent-wash), transparent 70%),
    radial-gradient(50vw 40vh at -8% 38%, var(--accent-wash), transparent 72%);
}
.ground::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0, transparent 70%);
  opacity: .8;
}

.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-size: clamp(2.4rem, 5.1vw, 5.3rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.display--long { font-size: clamp(2.05rem, 3.8vw, 4rem); line-height: 1.1; }
.h2 { font-family: var(--f-display); font-size: clamp(1.75rem, 3.2vw, 3.2rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.h3 { font-family: var(--f-display); font-size: clamp(1.2rem, 1.55vw, 1.45rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 500; }
.display em, .h2 em, .h3 em, .quote em { font-style: normal; color: var(--accent); font-weight: inherit; }
.lead { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.body { color: var(--ink-2); max-width: 66ch; }
.body + .body { margin-top: 1em; }
.label {
  display: inline-block;
  font: 700 .66rem/1.4 var(--f-label);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.label--quiet { opacity: .85; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 500 .98rem/1 var(--f-body); white-space: nowrap;
  transition: transform .5s var(--ease), background .25s, box-shadow .5s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-strong); box-shadow: 0 14px 30px -14px var(--accent); }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn:active, .iconbtn:active { transform: scale(.96); transition-duration: .08s; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn--sm { height: 40px; padding: 0 18px; font-size: .9rem; }
.btn--paper { background: var(--on-accent); color: var(--accent); }
.btn--paper:hover { background: var(--on-accent); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.link { color: var(--ink); font-weight: 500; display: inline-flex; gap: .5em; align-items: center; }
.link .arr { color: var(--accent); transition: transform .5s var(--ease); }
.link:hover .arr { transform: translateX(5px); }
.iconbtn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2); transition: background .25s, color .25s; }
.iconbtn:hover { background: var(--bg-3); color: var(--ink); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled, .nav.is-open { border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; color: var(--ink); margin-right: auto; }
.lockup { height: 38px; width: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a { position: relative; font-weight: 500; font-size: .95rem; color: var(--ink-2); padding: 8px 0; transition: color .25s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::before {
  content: ""; position: absolute; left: -13px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--accent);
}
.nav__tools { display: flex; align-items: center; gap: 8px; margin-left: clamp(8px, 2vw, 28px); }
#themeToggle { position: relative; }
#themeToggle .ico { position: absolute; inset: 0; margin: auto; transition: transform .7s var(--ease), opacity .35s; }
.ico--sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .ico--sun { opacity: 1; transform: none; }
[data-theme="dark"] .ico--moon { opacity: 0; transform: rotate(90deg) scale(.4); }
.nav__burger { display: none; }
.nav__burger .b1, .nav__burger .b2 { transition: transform .4s var(--ease); transform-origin: 12px 12px; }
.nav.is-open .b1 { transform: translateY(4px) rotate(45deg); }
.nav.is-open .b2 { transform: translateY(-4px) rotate(-45deg); }
.nav__sheet { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--bg); overflow: auto; overscroll-behavior: contain; padding: 20px 0 48px; }
.nav__sheet[hidden] { display: none; }
.nav__sheet:not([hidden]) { animation: sheet-in .5s var(--ease) both; }
.nav__sheet:not([hidden]) nav > a, .nav__sheet:not([hidden]) .nav__sheet-foot, .nav__sheet:not([hidden]) .nav__sheet-legal { animation: rise .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 55ms + 60ms); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.nav__sheet nav { display: flex; flex-direction: column; min-height: 100%; }
.nav__sheet-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }
.nav__sheet-foot .btn { justify-content: center; }
.nav__sheet-legal { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nav__sheet-legal a { padding-block: 11px; font-size: .95rem; color: var(--ink-2); }
.nav__sheet-legal a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (max-height: 720px) {
  .nav__sheet { padding: 8px 0 20px; }
  .nav__sheet nav.shell > a { font-size: 1.6rem; padding: 8px 0; }
  .nav__sheet-foot { padding-top: 18px; }
  .nav__sheet-foot .btn { height: 44px; }
  .nav__sheet-legal { margin-top: 12px; padding-top: 6px; }
  .nav__sheet-legal a { padding-block: 9px; }
}
.nav__sheet nav > a { font: 700 2.1rem/1.25 var(--f-display); letter-spacing: -.025em; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.nav__sheet nav > a[aria-current="page"] { color: var(--accent); }

/* ---------- interaction: the tap halo, the theme reveal, page to page ---------- */
.tap { position: fixed; z-index: 90; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1.5px var(--accent); animation: tap .7s var(--ease) forwards; }
@keyframes tap { from { transform: translate(var(--x), var(--y)) scale(.4); opacity: .85; } to { transform: translate(var(--x), var(--y)) scale(4.4); opacity: 0; } }

@view-transition { navigation: auto; }
html:not(.theme-swap) .nav { view-transition-name: nav; }
::view-transition-old(root) { animation: vt-out .26s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
html.theme-swap::view-transition-old(root) { animation: none; z-index: 0; }
html.theme-swap::view-transition-new(root) { animation: theme-reveal .85s var(--ease) both; z-index: 1; }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(var(--vr, 150vmax) at var(--vx, 50%) var(--vy, 0)); } }

/* ---------- reveals ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- bands ---------- */
.band { padding-block: clamp(44px, 4.6vw, 84px); }
.band--tight { padding-block: clamp(32px, 3.2vw, 56px); }
/* Section heads stack: the label, then the heading, then a lead that runs the full width between the margins. */
.band__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: clamp(24px, 2.6vw, 44px); align-items: start; }
.band__head .lead { margin-top: 1em; max-width: none; }
.band__head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 72px); align-items: end; }
.band__head--split .lead { margin-top: 0; }

/* Corner ticks: the instrument texture on bordered panels. */
.ticks {
  --tk: var(--ink-3);
  background-image:
    linear-gradient(var(--tk), var(--tk)), linear-gradient(var(--tk), var(--tk)),
    linear-gradient(var(--tk), var(--tk)), linear-gradient(var(--tk), var(--tk)),
    linear-gradient(var(--tk), var(--tk)), linear-gradient(var(--tk), var(--tk)),
    linear-gradient(var(--tk), var(--tk)), linear-gradient(var(--tk), var(--tk));
  background-repeat: no-repeat;
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(20px, 3vh, 40px)); padding-bottom: clamp(24px, 3vw, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(24px, 3vw, 64px); align-items: center; min-height: min(calc(100svh - var(--nav-h) - 96px), 720px); }
.hero__line { display: block; }
.hero__copy > * + * { margin-top: clamp(20px, 2.2vw, 32px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__viz { position: relative; width: 100%; max-width: 820px; justify-self: end; aspect-ratio: 1 / 1; }
.cell { position: absolute; inset: 0; width: 100%; height: 100%; }
.tag {
  position: absolute; z-index: 2; display: grid; gap: 8px; padding: 14px 18px 15px; max-width: 290px;
  background: color-mix(in srgb, var(--bg-2) 86%, transparent); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 14px; box-shadow: var(--shadow);
}
.tag b { font: 700 2.3rem/1 var(--f-display); letter-spacing: -.025em; }
.tag span { font-size: .84rem; line-height: 1.4; color: var(--ink-2); }
.tag .tag__say { margin-top: 2px; font-size: 1rem; line-height: 1.35; color: var(--ink); text-wrap: balance; }   /* the number reads on into this line */
.tag--a { left: -4%; top: -2%; }
.tag--b { right: -3%; bottom: -2%; }
.tag--b b { color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.dot--faint { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.dot--accent { background: var(--accent); }

/* ---------- outcomes strip ---------- */
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.outcome { padding: clamp(24px, 3vw, 44px) clamp(20px, 2.6vw, 44px) clamp(8px, 1vw, 16px); border-left: 1px solid var(--line); }
.outcome:first-child { border-left: 0; padding-left: 0; }
.outcome svg { width: 100%; height: 84px; margin-bottom: 22px; overflow: visible; }
.outcome .h3 { margin-bottom: 8px; }
.outcome p { color: var(--ink-2); font-size: .98rem; }
.g-line { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.g-faint { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; }
.g-acc { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.g-dot { fill: var(--ink-3); }
.g-dot-acc { fill: var(--accent); }
.g-ring { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.g-draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1.6s var(--ease) .25s; }
.in .g-draw, html:not(.js) .g-draw { stroke-dashoffset: 0; }
.g-pop { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s var(--ease) .9s; }
.in .g-pop, html:not(.js) .g-pop { transform: none; }

/* ---------- the chapter (the one ink inversion) ---------- */
.sheet { margin-inline: clamp(8px, 1vw, 16px); border-radius: clamp(20px, 2.4vw, 36px); clip-path: inset(0 round clamp(20px, 2.4vw, 36px)); }
.chapter { background: var(--bg); color: var(--ink); position: relative; }
.chapter::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.5px); background-size: 28px 28px;
}
.chapter__grid { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 88px); }
.chapter__stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); order: 2; display: grid; place-items: center; }
.chapter__stage .cellwrap {
  position: relative; width: 100%; height: min(100%, 880px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 16%), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.chapter__steps { order: 1; min-width: 0; padding-block: 6svh; }
.step { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 1.8vw, 26px); opacity: 1; }
.step p { color: var(--ink-2); font-size: clamp(1.05rem, 1.25vw, 1.22rem); line-height: 1.6; max-width: 46ch; }
.step__no { display: flex; align-items: center; gap: 14px; }
.step__no::after { content: ""; flex: none; width: 40px; height: 1px; background: var(--line); }
.split { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 48px); align-items: flex-end; }
.split div { display: grid; min-width: 0; gap: 4px; }
.split b { font: 700 clamp(3.4rem, 7vw, 7rem)/.9 var(--f-display); letter-spacing: -.025em; }
.split div:last-child b { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font: 700 .68rem/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip--fill { background: var(--accent); color: var(--on-accent); box-shadow: none; }
/* Text centred in its pill or circle: .tx trims its line box to the capitals (cap height to baseline), so the
   box centres the letters themselves, not the font's uneven ascent and descent. A negative end margin cancels
   the letter-spacing after the last letter. Firefox has no text-box yet: a measured nudge stands in. */
.tx { display: block; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) { .tx { position: relative; top: .07em; } }
.chip .tx { margin-right: -.08em; }
.station__no .tx { margin-right: -.1em; }
.chapter__rail { position: absolute; left: 0; bottom: 28px; display: flex; gap: 6px; }
.chapter__rail i { width: 28px; height: 3px; border-radius: 2px; background: var(--line); transition: background .5s, width .6s var(--ease); }
.chapter__rail i.is-on { background: var(--accent); width: 56px; }

/* ---------- platform loop ---------- */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); position: relative; }
.station { position: relative; border: 1px solid var(--line); background-color: var(--bg-2); padding: clamp(18px, 1.8vw, 28px); display: flex; flex-direction: column; gap: 18px; transition: border-color .6s, box-shadow .8s var(--ease), transform .8s var(--ease); }
.station.is-active { border-color: var(--accent); box-shadow: 0 30px 60px -40px var(--accent); transform: translateY(-4px); }
.station__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.station__no { font: 700 .66rem/1 var(--f-label); letter-spacing: .1em; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); transition: background .5s, color .5s; }
.station.is-active .station__no { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.station__viz { min-height: clamp(190px, 17vw, 260px); display: grid; place-items: center; }
.station p { color: var(--ink-2); font-size: .98rem; }
.station__arrow { position: absolute; right: calc(-1 * clamp(14px, 1.6vw, 28px)); top: 50%; width: clamp(14px, 1.6vw, 28px); height: 1px; background: var(--line); }
.station__arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); transform: rotate(45deg); }
.loop__return { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; color: var(--ink-3); }
.loop__return::before { content: ""; flex: 1; height: 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.loop__return::after { content: ""; flex: 1; height: 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }

.plate { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(3px, .45vw, 7px); width: min(100%, 360px); }
.plate i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background .5s, box-shadow .5s, transform .6s var(--ease); }
.plate i.on { background: var(--ink-3); box-shadow: none; opacity: .55; }
.plate i.hit { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); opacity: 1; transform: scale(1.12); }
.matrix { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; width: min(100%, 360px); }
.matrix i { aspect-ratio: 1.25; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity .5s, box-shadow .4s; }
.matrix i.top { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px var(--ink); }
.curve { width: min(100%, 360px); height: auto; aspect-ratio: 320 / 200; overflow: visible; }
.curve .ax { stroke: var(--line); stroke-width: 1; fill: none; }
.curve .c1 { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.curve .c2 { stroke: var(--ink-3); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-dasharray: 4 5; opacity: 0; }
.curve .pt { fill: var(--accent); opacity: 0; }
.curve text { font: 700 8px var(--f-label); letter-spacing: .1em; fill: var(--ink-3); text-transform: uppercase; }
.is-live .curve .c1 { animation: draw 6.4s var(--ease) infinite; }
.is-live .curve .c2 { animation: fade 6.4s linear infinite; }
.is-live .curve .pt { animation: pop 6.4s linear infinite; animation-delay: calc(var(--i) * .22s); }
@keyframes draw { 0% { stroke-dashoffset: 420; } 45%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fade { 0%, 12% { opacity: 0; } 30%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { 0%, 8% { opacity: 0; } 18%, 86% { opacity: 1; } 100% { opacity: 0; } }
.gives { margin-top: clamp(22px, 2.4vw, 36px); display: grid; gap: 14px; }
.gives__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.gives__top .note { margin-top: 0; }
.gives__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); }
.give { background: var(--accent); color: var(--on-accent); padding: clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 28px); display: grid; gap: 6px; align-content: start; }
.give b { font: 500 clamp(1.1rem, 1.4vw, 1.35rem)/1.2 var(--f-display); letter-spacing: -.03em; }
.give span { font-size: .95rem; line-height: 1.5; }

/* ---------- people ---------- */
.who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.who__copy > * + * { margin-top: clamp(18px, 2vw, 28px); }
.mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.mosaic a { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--bg-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .6s, transform 1s var(--ease); }
.mosaic a:nth-child(n+11) { transform: translateX(calc(100% + clamp(8px, 1vw, 16px))); }   /* 5, 5, then the last 3 centred */
.mosaic a:hover img, .mosaic a:focus-visible img { filter: none; transform: scale(1.05); }
.mosaic span { position: absolute; inset: auto 0 0 0; padding: 22px 10px 9px; font: 700 .62rem/1.3 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(4, 10, 20, .82)); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.mosaic a:hover span, .mosaic a:focus-visible span { opacity: 1; transform: none; }

.venn { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.venn--side { justify-self: end; max-width: 600px; }
.venn circle { fill: var(--accent-wash); stroke: var(--ink-3); stroke-width: 1; }
.venn .core { fill: var(--accent); stroke: none; }
.venn text { font: 500 9px var(--f-label); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink-2); text-anchor: middle; }

.why { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.quote { font: 700 clamp(1.85rem, 3.4vw, 3.5rem)/1.12 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: clamp(28px, 3vw, 48px); }
.way { padding: clamp(22px, 2.4vw, 36px) clamp(16px, 2vw, 32px) 0; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.way:first-child { border-left: 0; padding-left: 0; }
.way svg { width: 56px; height: 56px; overflow: visible; }
.way p { color: var(--ink-2); font-size: .96rem; }

/* ---------- closing band ---------- */
.close { background: var(--accent); color: var(--on-accent); position: relative; overflow: hidden; }
.close__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 72px); align-items: end; padding-block: clamp(44px, 4.6vw, 80px); position: relative; }
.close .h2 { font-size: clamp(1.85rem, 3.6vw, 3.7rem); }
.close .label { color: inherit; margin-bottom: 20px; }
/* The side column is as wide as its button and sits at the end; the line under the button is centred on it. */
.close__side { display: grid; gap: 18px; justify-self: end; justify-items: center; text-align: center; }
.close__mail { font: 700 .8rem/1 var(--f-label); letter-spacing: .06em; margin-right: -.06em; }
.close__dots { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.8px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }

/* ---------- footer ---------- */
.foot { padding-top: clamp(40px, 4vw, 64px); border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.foot__lockup { display: inline-block; color: var(--ink); }
.foot__lockup .lockup { height: 54px; }
.foot__tag { margin-top: 18px; font: 700 1.3rem/1.2 var(--f-display); letter-spacing: -.025em; color: var(--ink-2); }
.foot__col { display: grid; gap: 12px; align-content: start; justify-items: start; }
.foot__grid > .foot__col:last-child { justify-self: end; }   /* the last column ends on the right margin */
.foot__col .label { margin-bottom: 6px; }
.foot__col a { color: var(--ink-2); transition: color .25s; }
.foot__col a:hover { color: var(--accent); }
.foot__base { margin-top: clamp(28px, 3vw, 48px); padding-block: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 700 .66rem/1.5 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- page heads (inner pages) ---------- */
.phead { padding-top: calc(var(--nav-h) + clamp(32px, 5vh, 64px)); padding-bottom: clamp(20px, 2.4vw, 40px); }
.phead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.phead__copy > * + * { margin-top: clamp(18px, 2vw, 28px); }

/* science: the 20/80 strip */
.strip { border: 1px solid var(--line); background-color: var(--bg-2); padding: clamp(18px, 2vw, 28px); display: grid; gap: 18px; }
.strip__cells { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; }
.strip__cells i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-3); opacity: .5; transition: background .6s, opacity .6s, box-shadow .6s; transition-delay: calc(var(--n) * 6ms); }
.strip__cells i.s { background: var(--ink); opacity: 1; box-shadow: none; }
.strip.in .strip__cells i.h { background: var(--accent); opacity: 1; box-shadow: none; transition-delay: calc(900ms + var(--n) * 8ms); }
.strip__key { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; }
.strip__key b { display: block; font: 700 clamp(2rem, 2.7vw, 3rem)/1 var(--f-display); letter-spacing: -.025em; }
.strip__key div:last-child b { color: var(--accent); }
.strip__key span { font-size: .85rem; color: var(--ink-2); display: block; margin-top: 6px; }

/* science: how the inside gets seen */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 28px); counter-reset: f; }
.flow__node { border: 1px solid var(--line); background-color: var(--bg-2); padding: clamp(18px, 1.8vw, 28px); display: grid; gap: 14px; align-content: start; position: relative; }
.flow__node svg { width: 100%; height: clamp(130px, 12vw, 180px); overflow: visible; }
.flow__node p { color: var(--ink-2); font-size: .98rem; }
/* science: more than a platform, the drugs; the figure shows a diseased cell targeted and a healthy one left alone */
.drugs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.drugs__copy > * + * { margin-top: clamp(16px, 1.8vw, 24px); }
.drugs__fig { margin: 0; border: 1px solid var(--line); background-color: var(--bg-2); padding: clamp(18px, 2vw, 32px) clamp(18px, 2vw, 32px) clamp(16px, 1.6vw, 24px); display: grid; gap: 14px; position: relative; }
.drugs__fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.drugs__key { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
@media (max-width: 900px) { .drugs { grid-template-columns: 1fr; } }
.note { margin-top: 18px; font: 700 .66rem/1.6 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* Groove view: the HLA class I groove from above */
.groove { margin: 0; border: 1px solid var(--line); background-color: var(--bg-2); padding: clamp(18px, 2vw, 32px); display: grid; gap: clamp(14px, 1.6vw, 24px); position: relative; }
.groove__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.groove svg { display: block; width: 100%; height: auto; overflow: visible; }
.groove__narrow { display: none; }
.groove__key { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); font-size: .92rem; }
.groove__key span { display: inline-flex; align-items: center; gap: 10px; }
.groove__key svg { width: 22px; height: 22px; flex: none; }
.gv-floor { fill: var(--bg-3); }
.gv-helix { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gv-pocket { fill: none; stroke: var(--ink-3); stroke-width: 1.3; stroke-dasharray: 3 4; }
.gv-res-ring { fill: var(--bg-2); stroke: var(--ink-3); stroke-width: 1.6; }
.gv-halo { fill: var(--accent-wash); }
.gv-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: gv-pulse 2.8s var(--ease) infinite; }
@keyframes gv-pulse { from { transform: scale(.7); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.gv-res { font: 500 19px/1 var(--f-label); fill: var(--ink); text-anchor: middle; }
.gv-res--mut { fill: var(--accent); font-weight: 700; }
.gv-pos { font: 500 12px/1 var(--f-label); fill: var(--ink-3); text-anchor: middle; }
.gv-pl { font: 700 13px/1 var(--f-label); fill: var(--ink-3); text-anchor: middle; letter-spacing: .06em; }
@media (max-width: 759px) {
  .groove__wide { display: none; }
  .groove__narrow { display: block; }
  .groove__narrow .gv-res { font-size: 24px; }
  .groove__narrow .gv-pos { font-size: 15px; }
  .groove__narrow .gv-pl { font-size: 16px; }
}

/* science: one letter apart */
.dcell__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* science: what it gives */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.trio > div { padding: clamp(24px, 3vw, 44px) clamp(20px, 2.6vw, 44px) 0; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.trio > div:first-child { border-left: 0; padding-left: 0; }
.trio svg { width: 100%; height: 96px; overflow: visible; }
.trio p { color: var(--ink-2); font-size: .98rem; }

/* ---------- team ---------- */
/* Rows of four, the last row centred, so any headcount sits balanced. */
.people { --per: 4; --pg: clamp(14px, 1.6vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 2.4vw, 44px) var(--pg); }
.people > .person { flex: 0 0 calc((100% - (var(--per) - 1) * var(--pg)) / var(--per)); min-width: 0; }
.person { display: grid; gap: 16px; align-content: start; }
.person__img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); position: relative; }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.04); transition: filter .7s, transform 1.2s var(--ease); }
.person:hover .person__img img { filter: none; transform: scale(1.04); }
.person h3 { font: 500 clamp(1.15rem, 1.45vw, 1.4rem)/1.2 var(--f-display); letter-spacing: -.03em; }
.person p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.advisors { --per: 4; --pg: clamp(14px, 1.6vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 2.4vw, 44px) var(--pg); }
.advisors > .advisor { flex: 0 0 calc((100% - (var(--per) - 1) * var(--pg)) / var(--per)); min-width: 0; }
.advisor { display: grid; gap: 16px; align-content: start; }
.advisor img { width: 116px; height: 116px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.04); transition: filter .7s; }
.advisor:hover img { filter: none; }
.advisor h3 { font: 500 clamp(1.15rem, 1.45vw, 1.4rem)/1.2 var(--f-display); letter-spacing: -.03em; margin-bottom: 8px; }
.advisor p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.grouphead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.grouphead .label b { color: var(--ink); font-weight: 500; }

/* ---------- careers ---------- */
.roles { border: 1px solid var(--line); background-color: var(--bg-2); padding: clamp(22px, 3vw, 52px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.roles__side { display: grid; gap: 16px; justify-items: end; text-align: right; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.mailbig { display: inline-block; font: 700 clamp(1.25rem, 2.6vw, 2.7rem)/1.15 var(--f-display); letter-spacing: -.025em; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .3s; overflow-wrap: anywhere; }
.mailbig:hover { border-color: var(--accent); }
.copy-status { display: block; flex-basis: 100%; color: var(--ink-2); font-size: .875rem; }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.markbig { height: clamp(200px, 24vw, 340px); width: auto; color: var(--ink); justify-self: end; }

/* ---------- legal pages ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 6.4fr) minmax(0, 3.2fr); gap: clamp(20px, 4vw, 72px); align-items: start; }
.legal__nav { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; justify-items: start; }
.legal__nav a { color: var(--ink-2); transition: color .25s; }
.legal__nav a:hover { color: var(--accent); }
.legal__nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal__aside { position: sticky; top: calc(var(--nav-h) + 24px); border: 1px solid var(--line); background-color: var(--bg-2); padding: clamp(18px, 1.8vw, 26px); display: grid; gap: 10px; }
.legal__aside b { font: 700 1.5rem/1.2 var(--f-display); letter-spacing: -.025em; }
.legal__aside p { color: var(--ink-2); font-size: .95rem; }
.legal__aside a { color: var(--accent); overflow-wrap: anywhere; }
.prose h2 { font: 500 1.3rem/1.25 var(--f-display); letter-spacing: -.03em; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: .9em; }
.prose ul { margin-top: .7em; display: grid; gap: .5em; }
.prose li { position: relative; padding-left: 1.2em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot__legal a { display: inline-block; padding-block: 8px; transition: color .25s; }
.foot__legal a:hover { color: var(--accent); }

/* 404 */
.lost { min-height: 72svh; display: grid; align-content: center; gap: 24px; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .people { --per: 3; }
  .advisors { --per: 2; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way:nth-child(3) { border-left: 0; padding-left: 0; }
  .way:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__viz { justify-self: center; max-width: 620px; margin-top: 8px; }
  .band__head, .band__head--split, .who, .why, .close__in, .phead__grid, .contact, .roles, .gives { grid-template-columns: 1fr; }
  .outcomes, .trio { grid-template-columns: 1fr; }
  .outcome, .trio > div { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
  .outcome, .trio > div { padding-bottom: clamp(24px, 3vw, 44px); }   /* as much space under the text as above it */
  .phead__grid .markbig { justify-self: center; }
  .outcomes, .trio { border-top: 0; }
  .loop, .flow, .gives__grid { grid-template-columns: 1fr; }
  .station__arrow { display: none; }
  .chapter__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chapter__stage { order: 1; height: 46svh; z-index: 2; background: linear-gradient(var(--bg) 93%, transparent); }
  .chapter__steps { order: 2; padding-block: 4svh 10svh; }
  .step { min-height: 62svh; justify-content: flex-start; padding-top: 6svh; }
  .chapter__rail { display: none; }
  .venn--side { justify-self: center; max-width: 460px; }
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .legal__aside { position: static; }
  .roles__side { justify-items: start; text-align: left; }
  .close__side { justify-self: start; }
  .markbig { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .people { --per: 2; }
  .advisors { --per: 1; }
  .advisor { grid-template-columns: 96px 1fr; align-items: start; }
  .advisor img { width: 96px; height: 96px; }
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mosaic a:nth-child(8), .mosaic a:nth-child(11) { grid-column-start: 1; }
  .mosaic a:nth-child(n+5) { transform: translateX(calc(50% + clamp(4px, .5vw, 8px))); }   /* 4, then rows of 3 set in by half a tile */
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .ways { grid-template-columns: 1fr; }
  .way { border-left: 0; padding-left: 0; }
  .way + .way { border-top: 1px solid var(--line); margin-top: 24px; }
  .tag { padding: 10px 12px 11px; max-width: 206px; gap: 5px; }
  .tag b { font-size: 1.6rem; }
  .tag .tag__say { margin-top: 0; font-size: .86rem; }
  .tag span { font-size: .76rem; }
  .tag--a { left: -2%; top: -14px; }   /* fixed, so the tag clears the buttons above at every phone width */
  .tag--b { right: -2%; bottom: -14px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .lockup { height: 32px; }
  .grouphead { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.still *, .still *::before, .still *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
.still .rv { opacity: 1; transform: none; }
.still .step { opacity: 1; }
.still .curve .c1, .still .g-draw { stroke-dashoffset: 0; }
.still .curve .c2, .still .curve .pt { opacity: 1; }
.still .g-pop { transform: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .tap { display: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .step { opacity: 1; }
  .curve .c1 { stroke-dashoffset: 0; }
  .curve .c2, .curve .pt { opacity: 1; }
  .g-draw { stroke-dashoffset: 0; }
  .g-pop { transform: none; }
  .gv-pulse { opacity: 0; }
}
