/* ==========================================================================
   Lazarys
   ========================================================================== */

@font-face { font-family: "Disket"; src: url(/fonts/disket-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Disket"; src: url(/fonts/disket-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Oxanium"; src: url(/fonts/oxanium.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #e3e0db;
  --ink: #0a0b0b;
  --muted: #555;
  --tag: #cbd1dc;
  --orange: #fc8629;
  --red: #fb3a1c;
  --clay: #f0613e;
  --wine: #4a1612;
  --glass: rgba(150, 146, 140, .38);
  --mono: "Disket", ui-monospace, monospace;
  --display: "Oxanium", system-ui, sans-serif;
  --body: "Poppins", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: .14em; }

/* Page-to-page: the whole page (nav included) fades out to the paper colour, then the next one fades in.
   Chrome/Edge/Safari 18.2+ do it with a cross-document view transition; other browsers get the same
   look from site.js (fade out before leaving) + the .fade-in class set in the <head> boot script. */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation: none; }
::view-transition-old(root) { animation: page-out 1.1s cubic-bezier(.4, 0, .7, 1) both; }
::view-transition-new(root) { animation: page-in 1.6s .9s cubic-bezier(.2, 0, .2, 1) both; }
@keyframes page-out { to { opacity: 0; filter: blur(14px); } }
@keyframes page-in { from { opacity: 0; filter: blur(14px); } }
/* "backwards", not "both": a filter left on <body> afterwards would break the fixed nav */
html.fade-in body { animation: page-in 1.6s cubic-bezier(.2, 0, .2, 1) backwards; }
html.leaving body { opacity: 0; filter: blur(14px); transition: opacity 1.1s cubic-bezier(.4, 0, .7, 1), filter 1.1s cubic-bezier(.4, 0, .7, 1); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: minmax(136px, 1fr) minmax(0, 1000px) minmax(136px, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 18px var(--gutter);
}
/* once the page scrolls, content fades out beneath the nav: a plain colour gradient, no blur
   (a masked backdrop blur left a smudged, hard-edged band on mobile) */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: linear-gradient(rgb(227, 224, 219) 45%, rgba(227, 224, 219, .85) 65%, rgba(227, 224, 219, .4) 85%, rgba(227, 224, 219, 0));
}
.nav.scrolled::before { opacity: 1; }
.wordmark { display: block; width: 136px; flex: none; color: var(--ink); }
.wordmark svg { display: block; width: 100%; height: auto; }
.pill {
  height: 52px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  background: var(--glass); border-radius: 12px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  font: 400 11px/1 var(--mono); letter-spacing: .1em;
}
.pill a { justify-self: center; text-decoration: none; padding: 8px 6px 6px; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.pill a:hover, .pill a[aria-current="page"] { border-color: var(--ink); }
.pill i { width: 1px; height: 16px; background: var(--ink); opacity: .7; }
.pill .home { border: 0; padding: 0; display: grid; place-items: center; }
.pill .home img { width: 26px; height: 26px; will-change: transform; }
.nav-end { display: none; }

/* ---------- Atmosphere pages (cell background) ---------- */
.atmos { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.atmos .bg {
  position: absolute; inset: 0; z-index: -1;
  /* warm fallback so there is never a flash of plain beige before the photo decodes */
  background: url(/img/hero.jpg) center/cover no-repeat, radial-gradient(60% 55% at 50% 60%, #f8452a, #f6a57d 60%, #e7d9cc);
  transform: scale(calc(1.04 + .06 * var(--b, 0))) translateY(calc(var(--b, 0) * -1%));
}

/* Text on photos: a faint, tight glow only (the old feathered backdrop blur showed up as a smudgy shadow) */
.soft { position: relative; }

/* Text on photos is dark by default (it measures best); contrast.js flips anything that needs white */
.atmos .ink-light, .vision .ink-light { color: #fff; text-shadow: 0 0 10px rgba(120, 30, 10, .18); }
/* contrast.js may switch colours just after load: ease it instead of snapping */
.formpage h1, .field, .seg, .seg button, .slogan, .formnote, .prog-note, .picker .box, .thanks { transition: color .6s, border-color .6s, background-color .6s; }

/* ---------- Hero ---------- */
.hero { display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 140px; color: #fff; }
.hero-copy { padding: 20px 10px; }
.hero h1, .learn { text-shadow: 0 0 12px rgba(120, 30, 10, .18); }
.hero h1 { font: 400 clamp(34px, 4.1vw, 76px)/1.12 var(--display); letter-spacing: -.005em; }
.hero h1 .ln { display: block; }
.hero h1 .w { display: inline-block; animation: word-in 1.3s calc(.45s + var(--i) * .085s) cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes word-in { from { opacity: 0; filter: blur(12px); transform: translateY(.45em); } }
.hero .learn, .hero .backed { animation: soft-in 1.4s 1.5s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes soft-in { from { opacity: 0; filter: blur(6px); } }
.learn { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; text-decoration: none; font: 700 11px/1 var(--mono); letter-spacing: .12em; }
.learn:hover .down { transform: translateY(4px); }
.down { display: grid; place-items: center; width: 20px; height: 40px; border: 1.3px solid currentColor; border-radius: 12px; transition: transform .25s; }
.down svg { width: 10px; height: 22px; }
.backed { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); text-align: center; font-size: 11px; color: #fff; }
.backed img { width: 96px; margin: 6px auto 0; opacity: .7; }

/* ---------- Tags ---------- */
.tag { display: inline-block; font-weight: 400; min-width: 140px; padding: 10px 22px 9px; background: var(--tag); text-align: center; font: 400 14px/1 var(--mono); letter-spacing: .14em; color: var(--ink); }
.tag-row { display: flex; justify-content: center; padding: 72px var(--gutter) 0; }

/* ---------- Home sections ---------- */
section { position: relative; }
[id] { scroll-margin-top: 88px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { font-size: 15px; line-height: 1.45; max-width: 420px; }
.prose p + p { margin-top: 1.05em; }

/* Story: static two-row layout by default; story.js pins it and scrubs it with scroll */
.story-stage { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-areas: "a ctx" "bn b"; gap: 60px 50px; align-items: center; max-width: 1320px; margin: 0 auto; padding: 72px var(--gutter) 80px; }
.slot img { -webkit-mask: radial-gradient(closest-side, #000 82%, transparent); mask: radial-gradient(closest-side, #000 82%, transparent); }
.slot-a { grid-area: a; }
.slot-b { grid-area: b; }
.ch-context { grid-area: ctx; }
.ch-bottleneck { grid-area: bn; text-align: right; justify-self: end; }
.chapter { max-width: 440px; }
.chapter .tag { margin-bottom: 30px; }
.story-title { font: 400 clamp(30px, 3.4vw, 52px)/1.1 var(--mono); letter-spacing: .14em; margin-bottom: 26px; }
.beats { font-size: 15px; line-height: 1.5; }
.beat + .beat { margin-top: 1.05em; }
.story-rail, .story-next { display: none; }

.story.live .story-stage { position: sticky; top: 0; height: 100svh; max-width: none; padding: 0; display: block; overflow: hidden; }
.story.live .story-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.story.live .slot { position: absolute; top: calc(50% + 34px); transform: translateY(-50%); }
.story.live .slot-a { left: max(var(--gutter), 4vw); width: min(46vw, calc((100svh - 190px) * 1.18)); }
.story.live .slot-b { right: max(var(--gutter), 5vw); width: min(42vw, calc((100svh - 190px) * 1.066)); }
.story.live .chapter { position: absolute; top: calc(50% + 34px); transform: translateY(-50%); width: min(34vw, 480px); }
.story.live .ch-context { right: max(var(--gutter), 6vw); }
.story.live .ch-bottleneck { left: max(var(--gutter), 6vw); }
.story.live .chapter-head, .story.live .beat { opacity: 0; visibility: hidden; will-change: opacity, filter; }
.story.live .beats { position: relative; height: min(40svh, 15em); overflow: hidden; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5;
  -webkit-mask: linear-gradient(transparent, #000 2.2em, #000 calc(100% - 3em), transparent); mask: linear-gradient(transparent, #000 2.2em, #000 calc(100% - 3em), transparent); }
.story.live .beats .col { position: absolute; inset: 0 0 auto; padding-top: 2.4em; will-change: transform; }
.story.live .beat { margin: 0 0 1.6em; }
.story.live .story-rail { display: block; position: absolute; right: 22px; top: 50%; width: 2px; height: 140px; margin-top: -70px; background: rgba(10, 11, 11, .12); border-radius: 2px; overflow: hidden; }
.story.live .story-rail i { display: block; height: 100%; background: #3d3e40; transform-origin: top; transform: scaleY(0); }

.keytruda { text-align: center; padding: 100px var(--gutter) 40px; overflow: hidden; }
.keytruda h2 { font: 400 clamp(28px, 3.6vw, 52px)/1.2 var(--display); word-spacing: .18em; }
.money { margin-top: 28px; font: 700 clamp(16px, 1.6vw, 24px)/1 var(--mono); letter-spacing: .14em; background: linear-gradient(90deg, var(--orange), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.molecule { position: relative; max-width: 1320px; margin: 40px auto 0; aspect-ratio: 1024 / 380; }
.molecule .ghost { position: absolute; left: 20.1%; top: -44%; width: 59.8%; opacity: .022; pointer-events: none; }
.molecule .prot { position: absolute; left: 29.2%; top: 12.2%; width: 48.3%; max-width: none; pointer-events: none; animation: float 9s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-10px) rotate(-.6deg); } }
.molecule .leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* site.js draws these with the scroll: lines grow out from the protein, dots pop at each end */
.js .molecule .lead { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .molecule .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.stat { position: absolute; border: 1.4px solid var(--ink); padding: .75em 1em .65em; font: 400 clamp(10px, 1.05vw, 15px)/1 var(--mono); letter-spacing: .14em; white-space: nowrap; background: rgba(227, 224, 219, .55); transition: background .25s, color .25s; }
.stat:hover { background: var(--ink); color: var(--bg); }
.s1 { left: 68.7%; top: 15.3%; }
.s2 { left: 5.6%; top: 56%; }
.s3 { left: 75.3%; top: 64.7%; }
.callout { position: absolute; font: 700 clamp(8px, .7vw, 10px)/1.4 var(--mono); letter-spacing: .1em; text-align: right; }
.callout small { display: block; font: inherit; color: var(--muted); }
.c1 { right: 79.3%; top: 12.4%; }
/* centred on the dot at the end of its lead line (812, 338 of 1024 × 380) */
.c2 { left: 80.1%; top: 88.95%; transform: translateY(-50%); text-align: left; color: var(--muted); }

.question { text-align: center; padding: 30px var(--gutter) 110px; }
.question .rule { width: 1px; height: 54px; background: var(--ink); opacity: .6; margin: 0 auto 36px; }
.question p { font: 400 clamp(14px, 1.5vw, 20px)/1.4 var(--mono); letter-spacing: .12em; }

.platform { text-align: center; padding: 60px var(--gutter) 120px; }
.platform h2 { font: 400 clamp(26px, 3vw, 44px)/1.18 var(--display); max-width: 27em; margin: 0 auto; }
.platform .sub { margin-top: 30px; font: 400 13px/1.4 var(--mono); letter-spacing: .14em; }
.engines { position: relative; max-width: 1200px; aspect-ratio: 1200 / 880; margin: 34px auto clamp(70px, 9vw, 100px); }
.engines .loop { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* heartbeat travelling round the loop: --leg is the time one surge takes to run the length of an arrow;
   each arrow starts exactly when the previous one's surge arrives, so it reads as one pulse going round */
.engines { --leg: 2.4s; }
.engines .arc { fill: none; stroke-width: 1.4; stroke-linecap: round; opacity: .7;
  animation: beat calc(var(--leg) * 4) calc(var(--i) * var(--leg)) ease-out infinite backwards; }
.engines .spark { fill: none; stroke: #fb3a1c; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 18 140; stroke-dashoffset: 18; opacity: 0; filter: url(#glow);
  animation: surge calc(var(--leg) * 4) calc(var(--i) * var(--leg)) infinite backwards; }
/* 25% of the cycle = one leg; the surge eases in and out so the hand-off to the next arrow is seamless */
@keyframes surge {
  0% { stroke-dashoffset: 18; opacity: 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  2% { opacity: 1; } 22% { opacity: 1; }
  25% { stroke-dashoffset: -100; opacity: 0; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
/* the arrow swells as its pulse passes through */
@keyframes beat { 0% { stroke-width: 1.4; opacity: .7; } 5% { stroke-width: 2.5; opacity: 1; } 25%, 100% { stroke-width: 1.4; opacity: .7; } }
/* the lab photo glows faintly with the heart each time a pulse sets off */
.engines .photo { animation: breathe var(--leg) ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 rgba(251, 58, 28, 0); }
  18% { box-shadow: 0 0 46px rgba(251, 58, 28, .32); }
  60% { box-shadow: 0 0 18px rgba(251, 58, 28, .08); }
}
.engines .photo { position: absolute; left: 50%; top: 27.2%; width: 26.8%; aspect-ratio: 1; object-fit: cover; transform: translateX(-50%); margin: 0; }
.engine { position: absolute; width: 26%; transform: translateX(-50%); }
.engine h3 { font: 700 clamp(10px, .95vw, 12px)/1.3 var(--mono); letter-spacing: .14em; margin-bottom: 14px; white-space: nowrap; }
.engine p { font-size: clamp(13px, 1.15vw, 15px); line-height: 1.3; }
.e1 { left: 16.67%; top: 40.6%; }
.e2 { left: 50%; top: 85.6%; width: max(27%, 290px); }
.e3 { left: 83.33%; top: 40.6%; }
.btn-out { display: inline-flex; align-items: center; gap: 14px; border: 1.4px solid var(--ink); padding: 11px 14px 10px 20px; font: 400 14px/1 var(--mono); letter-spacing: .14em; text-decoration: none; }
/* hover: only the arrow moves */
.arrow { display: inline-grid; place-items: center; flex: none; width: 40px; height: 20px; border: 1.3px solid var(--clay); border-radius: 12px; background: none; color: var(--clay); cursor: pointer; transition: transform .2s; }
.arrow svg { width: 24px; height: 10px; }
.arrow:hover, a:hover > .arrow { transform: translateX(3px); }

/* ---------- People ---------- */
.people { padding-top: 28px; padding-bottom: 80px; overflow: hidden; }
.people .tag-row { padding-top: 0; }
.bigmark { position: absolute; right: -14vw; top: 140px; width: min(46vw, 640px); pointer-events: none; }
.team { position: relative; padding-top: 70px; }
.team h3 { font: 700 clamp(22px, 2vw, 28px)/1.2 var(--display); margin-bottom: 28px; }
.lede { color: var(--muted); max-width: 560px; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 40px; max-width: 980px; margin-bottom: 120px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.person b { display: block; font-weight: 600; }
.person span { display: block; color: var(--muted); line-height: 1.35; }
.person .arrow { margin-top: 10px; }

.mission { padding-top: 150px; padding-bottom: 160px; }
.mission .tag { margin-bottom: 36px; }
.mission .prose { max-width: 830px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.35; }

/* ---------- Vision / footer ---------- */
.vision { position: relative; text-align: center; padding: 240px 0 36px; background: var(--bg); isolation: isolate; overflow: hidden; color: #fff; }
/* Sunrise: the glow sits low and climbs into place as you reach the end of the page (site.js sets --rise 0→1) */
.vision .sun {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 40px, rgba(227, 224, 219, 0) 300px), url(/img/glow.jpg) center top/cover no-repeat;
  transform: translate3d(0, calc((1 - var(--rise, 1)) * 42%), 0) scale(calc(1.12 - .12 * var(--rise, 1)));
  transform-origin: 50% 100%; will-change: transform;
}
.vision .soft-text { text-shadow: 0 0 10px rgba(120, 30, 10, .18); }
.vision h3 { margin: 90px 0 22px; font: 700 clamp(18px, 1.5vw, 22px)/1 var(--display); }
.ticker { display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker ul { display: flex; flex: none; list-style: none; animation: ticker 40s linear infinite; }
.ticker li { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font: 400 13px/1 var(--mono); letter-spacing: .14em; }
.ticker li img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
@keyframes ticker { to { transform: translateX(-100%); } }
.foot { margin-top: 110px; }
.foot .wordmark { margin: 0 auto 18px; width: 140px; color: inherit; }
.foot p { font: 400 11px/1.6 var(--mono); letter-spacing: .14em; }
.foot-icons { display: flex; justify-content: center; gap: 22px; margin-top: 22px; }
.foot-icons a { display: grid; place-items: center; width: 40px; height: 40px; transition: transform .2s, opacity .2s; }
.foot-icons a:hover { transform: translateY(-2px); opacity: .7; }
.foot-icons svg { width: 24px; height: 24px; }

/* ---------- One-screen pages (programs, contact, join) ---------- */
html.locked, html.locked body { height: 100%; overflow: hidden; }
/* home, first load: no scrolling until the hero has faded in (the <head> script lifts it) */
html.intro, html.intro body { overflow: hidden; }
html.locked main.atmos { height: 100svh; min-height: 0; }

/* ---------- Programs ---------- */
.programs { display: grid; place-content: center; justify-items: center; padding: 88px var(--gutter) 24px; }
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; width: min(1100px, 100%); }
.wheel { --rows: 7; --row: clamp(44px, 6.4vh, 58px); }
.box { display: flex; align-items: center; height: var(--row, 58px); padding: 0 30px; border: 1.5px solid currentColor; font: 400 clamp(15px, 1.6vw, 24px)/1 var(--mono); letter-spacing: .14em; white-space: nowrap; }
.wheel { position: relative; height: calc(var(--row) * var(--rows) + 10px * (var(--rows) - 1)); overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); opacity: 0; transition: opacity .9s cubic-bezier(.45, 0, .25, 1); }
.wheel.ready { opacity: 1; }
.wheel ul { list-style: none; display: grid; gap: 10px; transition: transform .7s cubic-bezier(.65, 0, .25, 1); }
/* the wheel only turns on its own: no scrolling, clicking or swiping it */
.wheel { pointer-events: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.wheel .box { width: 100%; text-align: left; background: rgba(255, 255, 255, .04); opacity: .55; transition: background .3s, color .3s, opacity .3s; }
.atmos .wheel .box.on { opacity: 1; color: #fff; background: var(--ink); border-color: var(--ink); text-shadow: none; }
.prog-note { margin-top: clamp(24px, 5vh, 56px); text-align: center; font: 400 15px/1.4 var(--display); }
.prog-note .rule { width: 1px; height: 28px; background: currentColor; margin: clamp(10px, 2vh, 22px) auto; }
.prog-note .btn-out { margin-top: clamp(14px, 3vh, 28px); border-color: currentColor; }

/* ---------- Forms ---------- */
.formpage { display: grid; place-items: center; padding: 88px var(--gutter) 20px; }
.formpage h1 { text-align: center; font: 400 clamp(20px, 2.2vw, 30px)/1 var(--mono); letter-spacing: .16em; margin-bottom: clamp(12px, 2.4vh, 22px); }
.form-col { display: grid; justify-items: center; }
.form { width: min(440px, 100%); display: grid; gap: clamp(8px, 1.3vh, 12px); }
.field { width: 100%; height: clamp(44px, 6.6vh, 64px); padding: 0 18px; border: 1.5px solid rgba(10, 11, 11, .5); border-radius: 14px; background: rgba(255, 255, 255, .28); outline: none; font-size: 16px; transition: border-color .3s, background-color .3s, color .6s; }
textarea.field { height: clamp(70px, 14vh, 150px); padding: 14px 18px; resize: none; }
.field::placeholder { color: rgba(10, 11, 11, .62); }
.field:focus { border-color: var(--ink); background: rgba(255, 255, 255, .45); }
.field:user-invalid { border-color: #a3160a; background: rgba(255, 255, 255, .4); }
.atmos .field.ink-light { text-shadow: none; border-color: rgba(255, 255, 255, .7); background: rgba(70, 12, 0, .1); }
.atmos .field.ink-light::placeholder { color: rgba(255, 255, 255, .88); }
.submit { height: clamp(44px, 6vh, 56px); border: 1.5px solid rgba(0, 0, 0, .35); border-radius: 14px; background: var(--wine); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s, transform .1s; }
.submit:hover { background: #2b0c09; }
.submit:active { transform: scale(.99); }
.seg { display: grid; grid-template-columns: 1fr 1fr; height: clamp(36px, 5vh, 44px); border: 1.5px solid rgba(10, 11, 11, .5); border-radius: 14px; overflow: hidden; }
.seg button { background: none; border: 0; cursor: pointer; font: 400 11px/1 var(--mono); letter-spacing: .14em; color: rgba(10, 11, 11, .75); transition: background .2s, color .2s; }
.seg button + button { border-left: 1.5px solid rgba(10, 11, 11, .5); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.formnote { margin-top: clamp(18px, 5vh, 70px); text-align: center; font: 400 15px/1.4 var(--display); }
.formnote .rule { width: 1px; height: clamp(16px, 3vh, 28px); background: currentColor; margin: 0 auto clamp(10px, 2.4vh, 24px); }
.direct { margin-top: clamp(12px, 2.2vh, 20px); text-align: center; font: 400 12px/1.4 var(--mono); letter-spacing: .12em; transition: color .6s; }
.direct a { text-decoration: none; border-bottom: 1.2px solid currentColor; padding-bottom: 1px; }
.direct a:hover { border-bottom-color: transparent; }
.sent .direct { display: none; }
.thanks { display: none; text-align: center; width: min(440px, 100%); padding: 40px 24px; border: 1.5px solid rgba(10, 11, 11, .5); border-radius: 14px; background: rgba(255, 255, 255, .3); }
.thanks h2 { font: 400 20px/1.2 var(--mono); letter-spacing: .14em; margin-bottom: 12px; }
.sent .form { display: none; }
.sent .thanks { display: block; }

.join-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 70px); align-items: center; width: min(1400px, 100%); }
.slogans { display: grid; gap: clamp(60px, 15vh, 140px); }
.slogans.l { justify-items: end; }
.slogan { border: 1.5px solid currentColor; padding: 16px 18px; font: 400 clamp(15px, 1.5vw, 22px)/1.3 var(--mono); letter-spacing: .14em; }
.slogans.l .slogan { text-align: right; }
.slogan b { display: block; font-weight: 700; }

/* ---------- Reveal (only hides content once JS is known to be running) ---------- */
/* site.js drives these from scroll position every frame, so they fade back out if you scroll back up */
.js [data-reveal] { opacity: 0; will-change: opacity, transform; }

/* ---------- Bio drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(10, 11, 11, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .3s; }
.drawer aside { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); padding: 40px 40px 60px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); box-shadow: -20px 0 60px rgba(0, 0, 0, .15); animation: slide .45s cubic-bezier(.2, .8, .2, 1); }
.drawer h3 { font: 700 26px/1.2 var(--display); margin-top: 30px; }
.drawer .role { color: var(--muted); margin-bottom: 26px; }
.drawer .bio p + p { margin-top: 1em; }
.drawer .close { background: none; border: 1.4px solid var(--ink); padding: 9px 14px 8px; cursor: pointer; font: 400 12px/1 var(--mono); letter-spacing: .14em; }
.drawer .close:hover { background: var(--ink); color: var(--bg); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: flex; justify-content: space-between; }
  .nav-end { display: flex; align-items: center; gap: 8px; }
  .join-cta { display: grid; place-items: center; height: 46px; padding: 2px 18px 0; border-radius: 12px; background: var(--ink); color: var(--bg); text-decoration: none; font: 400 12px/1 var(--mono); letter-spacing: .12em; }
  .burger { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); cursor: pointer; }
  .burger img { width: 24px; height: 24px; transition: transform .4s; }
  .nav.menu .burger img { transform: rotate(135deg); }
  .pill { display: grid; position: absolute; top: 100%; left: 16px; right: 16px; height: auto; grid-template-columns: 1fr; padding: 10px; background: rgba(227, 224, 219, .96); font-size: 14px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
  .nav.menu .pill { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .pill i, .pill .home, .pill a[href="/join"] { display: none; }
  .pill a:nth-last-child(3) { border-bottom: 0; }
  .pill a { justify-self: stretch; padding: 16px 12px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
  .pill a:last-child { border-bottom: 0; }
  .pill a[aria-current="page"] { border-color: rgba(0, 0, 0, .08); font-weight: 700; }

  .story-stage { grid-template-columns: 1fr; grid-template-areas: "a" "ctx" "b" "bn"; gap: 32px; }
  .ch-bottleneck { text-align: left; justify-self: start; }
  .story.live .slot { top: 84px; left: 50%; right: auto; transform: translateX(-50%); }
  .story.live .slot-a { width: min(88vw, calc(40svh * 1.18)); }
  .story.live .slot-b { width: min(84vw, calc(40svh * 1.066)); }
  .story.live .chapter { top: calc(96px + 40svh); left: var(--gutter); right: var(--gutter); width: auto; transform: none; text-align: left; justify-self: stretch; }
  .story.live .story-title { font-size: clamp(26px, 7vw, 34px); margin-bottom: 14px; }
  .story.live .chapter .tag { margin-bottom: 16px; }
  .story.live .beats { font-size: 15px; height: max(150px, calc(60svh - 250px)); }
  /* phones: a bouncing arrow under the text says the page keeps going while the story is pinned */
  .story.live .story-next { display: grid; place-items: center; position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; color: var(--clay); pointer-events: none; }
  .story.live .story-next .down { animation: nudge 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
  @keyframes nudge { 50% { transform: translateY(8px); } }
  .story.live .story-rail { right: 8px; height: 90px; margin-top: 0; top: calc(96px + 40svh); }
  .grid, .grid.two { grid-template-columns: 1fr 1fr; }
  .bigmark { opacity: .08; right: -30vw; }

  .molecule { aspect-ratio: auto; display: grid; gap: 10px; justify-items: center; }
  .molecule .prot { position: static; width: 100%; margin: 0 0 24px; }
  .stat { position: static; }
  .callout, .leads, .molecule .ghost { display: none; }

  .picker { grid-template-columns: 1fr; }
  .picker > .box { justify-content: center; }
  .join-grid { grid-template-columns: 1fr; }
  .slogans { display: none; }
  .formnote { display: none; }
  .wheel { --rows: 5; }
}
@media (max-width: 420px) {
  .nav .wordmark { width: 112px; }
  .join-cta { height: 42px; padding: 2px 13px 0; font-size: 11px; letter-spacing: .1em; }
  .burger { width: 42px; height: 42px; }
  .nav-end { gap: 6px; }
}
@media (max-width: 700px) {
  .hero h1 .ln { display: inline; }
}
@media (max-height: 700px) {
  .wheel { --rows: 5; }
  .formnote, .slogans { display: none; }
}
@media (max-width: 560px) {
  .grid, .grid.two { grid-template-columns: 1fr; margin-bottom: 70px; }
  .box { padding: 0 18px; }
  .wheel { --row: 46px; }
  .ticker li { font-size: 11px; }
  .drawer aside { padding: 28px 22px 48px; }
  .backed { bottom: 32px; }

  /* tight mono tracking so labels and buttons don't break into stray one-word lines */
  .keytruda { padding-top: 72px; }
  .keytruda h2 { font-size: 26px; word-spacing: .04em; }
  .keytruda h2 br { display: none; }
  .money { font-size: 15px; line-height: 1.5; letter-spacing: .08em; }
  .stat { font-size: 11px; letter-spacing: .1em; }
  .question { padding-bottom: 80px; }
  .question p { font-size: 13px; letter-spacing: .08em; line-height: 1.6; }
  .question p br { display: none; }
  .platform { padding-bottom: 90px; }
  .platform h2 { font-size: 24px; }
  .engines { aspect-ratio: auto; display: grid; justify-items: center; gap: 0; margin: 34px auto 56px; }
  .engines .loop { display: none; }
  .engines .photo, .engine { position: static; transform: none; width: min(320px, 100%); }
  .engines .photo { margin-bottom: 36px; }
  .e2, .e3 { padding-top: 70px; }
  /* a short moving arrow between engines */
  .e2::before, .e3::before { content: ""; position: absolute; left: 50%; margin: -58px 0 0 -1px; width: 2px; height: 44px;
    background: repeating-linear-gradient(var(--clay) 0 4px, transparent 4px 7px); -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); animation: drip 1.4s linear infinite; }
  .engine { position: relative; }
  .engine h3 { white-space: normal; }
  .e1, .e2, .e3 { left: auto; top: auto; }
  @keyframes drip { from { background-position: 0 0; } to { background-position: 0 14px; } }
  .btn-out { font-size: 12px; letter-spacing: .1em; }
  .mission { padding-top: 90px; padding-bottom: 110px; }
  .vision { padding-top: 160px; }
  .vision h3 { margin-top: 64px; }
  .foot { margin-top: 80px; padding: 0 var(--gutter); }
  .foot p { font-size: 10px; letter-spacing: .1em; }

  .btn-out { gap: 10px; padding: 11px 12px 10px 16px; white-space: nowrap; font-size: 11px; letter-spacing: .08em; }
  .grid, .grid.two { margin-bottom: 56px; }
  .mission { padding-top: 64px; }

  /* forms use the full width */
  .form-col, .join-grid { width: 100%; justify-items: stretch; }
  .form, .thanks { width: 100%; }
  .form-col > .btn-out { justify-self: center; }
  .formpage h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .molecule .lead { stroke-dashoffset: 0; }
  .js .molecule .dot { transform: none; }
  @view-transition { navigation: none; }
}
