/* Hopecraft AI v10d: Option A with the naive and value side-by-side after the hero.
   Built from v9: same ground, palette, type and boxes. Order: hero, naive and value
   side by side, example 1 (a chat about quitting a job: two lanes,
   scrubbed), example 2 (a coding agent fixing a failing test: same grammar,
   shorter), the tie-back line, the three stages, why it matters (with the
   Goodhart figure), team, join.
   The lane grammar (.stage, .lane, .scene, .chip, .sc-*) is shared by both
   examples; each example then has its own short block. */
:root {
  --ink-bg: #070b1c;
  --ink-bg-2: #0b1230;
  --ink: #e8eaf3;
  --ink-muted: #a3abc7;
  --ink-faint: rgba(169, 177, 207, 0.3);
  --line: rgba(169, 177, 207, 0.22);
  --box: rgba(255, 255, 255, 0.025);
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --orange: #f97316;
  --orange-ink: #c2410c;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(1.25rem, 6vw, 7rem);
  --measure: 36rem;
  --wide: 68rem;
}

* { box-sizing: border-box; }
html { background: var(--ink-bg); scroll-behavior: smooth; scroll-padding-top: 4rem; -webkit-text-size-adjust: 100%; }
html.js-motion { scroll-behavior: auto; }   /* ScrollTrigger mis-measures under smooth scroll after a reload; scroll.js smooths the anchor links instead */
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ink-bg);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--violet); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--violet-deep); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -3rem; padding: .5rem .8rem; background: var(--violet); color: #000; z-index: 50; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- type scale ---------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); max-width: 26ch; }
h3 { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 48, "SOFT" 0; font-size: 1.2rem; line-height: 1.3; margin: 0 0 .5rem; }
.label { font-size: .85rem; color: var(--ink-muted); margin: 0 0 1rem; }
.lead { font-size: 1.1rem; line-height: 1.55; }

/* ---------- box: one frame for the program lanes and the stance halves ---------- */
.box { border: 1px solid var(--line); border-radius: 10px; background: var(--box); }

/* ---------- header ---------- */
/* transparent over the top of the page; the page colour, with a hairline, once scrolled */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
  pointer-events: none;
}
.top.is-scrolled { background: var(--ink-bg); border-bottom-color: rgba(169, 177, 207, 0.14); }
.top > * { pointer-events: auto; }
.brand img { display: block; height: 40px; width: auto; }
.menu { display: flex; gap: 1.75rem; font-size: .88rem; }
.menu a { text-decoration: none; color: var(--ink-muted); transition: color .15s ease; }
.menu a:hover { color: var(--ink); }
@media (max-width: 600px) { .top { padding: .85rem 1.25rem; } .menu { gap: .75rem; font-size: .76rem; white-space: nowrap; } .brand img { height: 28px; } }
/* small phones (360–400px): a smaller logo that never shrinks, a tighter menu and a minimum gap, so the two never touch */
@media (max-width: 400px) { .top { gap: 1rem; } .brand { flex-shrink: 0; } .brand img { height: 24px; } .menu { gap: .6rem; } }
/* very narrow phones (~300px): the menu wraps to two lines, so nothing runs past the edge (the figure's legend stacks: see the .fig.is-narrow rules) */
@media (max-width: 350px) { .menu { flex-wrap: wrap; justify-content: flex-end; gap: 0 .6rem; } }

/* ---------- hero: the headline beside the figure ---------- */
.hero {
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 7.5rem var(--gutter) 3rem;
  max-width: calc(var(--wide) + 6rem + 2 * var(--gutter));
  margin: 0 auto;
}
.kicker { font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 1rem; }
.hero-sub { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-muted); max-width: 24rem; margin: 1.25rem 0 0; text-wrap: pretty; }
.hero-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0 0; font-size: .95rem; font-weight: 500; }
.hero-links a { text-decoration: none; border-bottom: 1px solid var(--ink-faint); padding-bottom: .15rem; }
.hero-links a:first-child { border-color: var(--violet); }
.fig { margin: 0; width: 100%; max-width: calc(74svh * 4 / 3); justify-self: end; aspect-ratio: 4 / 3; }
/* the figure draws as you scroll: the hero is pinned while a spacer scrolls under it (wide screens, with motion) */
.js-motion .hero-wrap { position: relative; }
.js-motion .hero { position: sticky; top: 0; min-height: 100svh; }
.js-motion .hero-scrub { height: 110svh; }
@media (max-width: 760px) { .js-motion .hero { position: static; min-height: auto; } .js-motion .hero-scrub { height: 0; } }
.fig-canvas { display: block; width: 100%; height: 100%; }
/* the line labels: buttons over the canvas, placed beside the tips by figure.js; a legend row on phones */
.fig { position: relative; }
.fig-keys { position: absolute; inset: 0; pointer-events: none; }
.fig-key {
  position: absolute; transform: translateY(-50%); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0; padding: .15rem .3rem; border: 0; border-radius: 4px; background: transparent;
  font: 500 14px/1.2 var(--body); color: var(--ink); white-space: nowrap; cursor: default;
  transition: opacity .2s ease;
}
.fig-key:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.key-value { color: #c4b5fd; }
.key-naive { color: #fdba74; }
.key-swatch { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: currentColor; }
.fig-tip {
  position: absolute; right: 0; bottom: calc(100% + 8px); width: 15.5rem; max-width: 80vw;
  padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-bg-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font: 400 .85rem/1.45 var(--body); color: var(--ink); white-space: normal; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s ease; z-index: 5;
}
.fig-key:hover .fig-tip, .fig-key:focus-visible .fig-tip, .fig-key.is-open .fig-tip { opacity: 1; visibility: visible; }
.fig.is-narrow .fig-keys { inset: auto 0 28px 0; display: flex; justify-content: center; gap: 18px; position: absolute; }
.fig.is-narrow .fig-key { position: static; transform: none; opacity: 1; pointer-events: auto; font-size: 13px; padding: .1rem .2rem; }
.fig.is-narrow .fig-tip { left: 0; right: 0; bottom: calc(100% + 6px); margin: 0 auto; width: max-content; max-width: 100%; }
@media (max-width: 340px) { .fig.is-narrow .fig-keys { flex-direction: column; align-items: center; gap: 0; inset: auto 0 6px 0; } }   /* very narrow phones: the legend stacks (figure.js gives the axis more room) */
@media (max-width: 1100px) { .hero { grid-template-columns: minmax(16rem, 21rem) minmax(0, 1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 6rem; align-items: start; }
  .fig { max-width: 36rem; justify-self: stretch; margin-top: 1rem; }
}
@media (max-width: 760px) {
  .hero { padding-top: 5.5rem; }
  .fig { aspect-ratio: 1 / 1; }
}

/* ---------- sections ---------- */
section { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }

/* ---------- what it is: naive on the left, value on the right, one arrow through. The figures draw once and stay ---------- */
.vg { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.vg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 1.75rem); position: relative; align-items: stretch; }
.vg-card { padding: clamp(1.1rem, 2.2vw, 1.6rem); display: flex; flex-direction: column; }
.vg-name { font-family: var(--display); font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 400; margin: 0; }
.vg-naive .vg-name { color: var(--orange); }
.vg-value .vg-name { color: var(--violet); }
.vg-who { font-size: .85rem; color: var(--ink-muted); margin: .25rem 0 1rem; }
.vg-text { margin: 1rem 0 0; font-size: 1.02rem; line-height: 1.55; }
.vg-fig { width: 100%; height: auto; display: block; }
.vg-fig path { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.vg-div { stroke: var(--line); stroke-dasharray: 3 4; }
.vg-one { stroke: var(--ink-muted); }
.vg-naive .vg-sp { stroke: var(--orange); }
.vg-value .vg-dim { stroke: var(--ink-faint); stroke-width: 1; }
.vg-value .vg-lit { stroke: var(--violet); stroke-width: 2.4; }
.vg-notice { fill: none; stroke: var(--violet); stroke-width: 1.5; }
.vg-lab, .vg-phase { font-family: var(--mono); font-size: 11px; fill: var(--ink-muted); }
.vg-lab-lit { fill: var(--violet); }
.vg-arrow { position: absolute; left: 50%; top: 50%; width: 3rem; height: 3rem; transform: translate(-50%, -50%); z-index: 2; }
.vg-arrow svg { display: block; width: 100%; height: 100%; }
.vg-arrow circle { fill: var(--ink-bg); stroke: var(--violet); stroke-width: 1.5; }
.vg-arrow path { fill: none; stroke: var(--violet); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.js-motion .vg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease; }
.js-motion .vg-sp.vg-draw { transition-delay: .9s; }
.js-motion .vg-notice, .js-motion .vg-value .vg-lab { opacity: 0; transition: opacity .5s ease .9s; }
.js-motion .vg.is-in .vg-draw { stroke-dashoffset: 0; }
.js-motion .vg.is-in .vg-notice, .js-motion .vg.is-in .vg-value .vg-lab { opacity: 1; }
.js-motion .vg-arrow { opacity: 0; transition: opacity .6s ease 1.4s; }
.js-motion .vg.is-in .vg-arrow { opacity: 1; }
@media (max-width: 760px) {
  .vg-pair { grid-template-columns: 1fr; row-gap: .75rem; }
  .vg-arrow { position: static; margin: 0 auto; transform: rotate(90deg); }
}

/* ---------- why it matters: the stakes, then the converge figure ---------- */
.stakes { max-width: none; margin: 0; background: var(--ink-bg-2); padding-top: 0; }
.stakes > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.stakes-head { max-width: var(--wide); }
.converge { margin-left: auto; margin-right: auto; }
.stakes-head .lead { max-width: 40rem; }
.stakes-head h2 + .lead { margin-top: 1.5rem; }
.stakes-head .lead:last-child { margin-bottom: 0; }
/* the figure: three terms converge on one */
.converge {
  position: relative;
  max-width: var(--wide);
  height: clamp(17rem, 30vw, 22rem);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}
.cv-terms { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; }
.cv-terms li { font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1; white-space: nowrap; padding: .3rem .1rem; will-change: transform, opacity; }
.cv-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cv-line { fill: none; stroke: var(--violet); stroke-width: 1.25; opacity: .8; }
.cv-out { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); text-align: center; width: max-content; max-width: 100%; }
.cv-dest { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; margin: 0 0 .6rem; }
.cv-note { margin: 0; font-size: 1rem; color: var(--ink-muted); }
.cv-note strong { font-weight: 500; color: var(--ink); }
:root:not(.js-motion) .cv-terms li { opacity: .5; }        /* final frame without motion */
@media (max-width: 640px) {
  .converge { height: auto; min-height: 20rem; }
  .cv-terms { position: static; flex-direction: column; align-items: center; gap: .7rem; }
  .cv-terms li:nth-child(1) { align-self: flex-start; }
  .cv-terms li:nth-child(3) { align-self: flex-end; }
  .cv-terms li { font-size: 1.15rem; }
  .cv-out { position: static; transform: none; margin: 4rem auto 0; }
}


/* ---------- the examples: two lanes on one request (shared grammar for both examples) ----------
   .ex is a section: a short head, then .ex-wrap holding .stage (two .lane boxes and the dots) and the
   .scrub that drives the timeline. With motion and a wide screen the stage pins while the scrub
   scrolls under it; scroll.js scrubs each example's timeline (mountExample). The current-model lane
   has nothing where the value-generalising lane weighs the user and checks: blank space, on purpose. */
.ex { max-width: none; margin: 0; }
.ex-head { max-width: var(--wide); margin: 0 auto; }
.ex-head .lead { max-width: 36rem; margin-top: 1.5rem; }
.ex-wrap { max-width: var(--wide); margin: clamp(2rem, 4vw, 3rem) auto 0; }
.stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;                             /* both boxes take the taller one's height */
}
.js-motion .stage { position: sticky; top: 0; height: 100svh; align-content: center; padding: 3.5rem 0 1rem; }
.js-motion .scrub { height: 200svh; }               /* the scroll that scrubs the timeline */
.lane { min-width: 0; justify-self: center; width: min(100%, 30rem); padding: 1rem 1.25rem 1.1rem; display: flex; flex-direction: column; }
.lane h3 { font-family: var(--body); font-weight: 500; font-size: 1rem; font-variation-settings: normal; margin: 0 0 .75rem; text-align: center; }
.lane-a h3 { color: var(--orange); }
.lane-b h3 { color: var(--violet); }
.scene { width: 100%; height: auto; max-height: 56svh; overflow: visible; display: block; margin: 0 auto; }
.scene text { font-family: var(--body); font-size: 12.5px; fill: var(--ink); }
.scene .sc-small { font-size: 11px; fill: var(--ink-muted); }
.sc-msgbox { fill: rgba(255,255,255,0.04); stroke: var(--ink-faint); }
.sc-line { font-size: 12.5px; }
.sc-quote { fill: var(--ink-muted); }
.sc-mono { font-family: var(--mono); font-size: 11px; }
.sc-ring { fill: none; stroke-width: 1.5; }
.sc-ring-msg { stroke: var(--violet); }
.sc-ring-claim { stroke: var(--orange); }
.sc-flag { font-size: 12px; }
.lane-a .sc-flag { fill: var(--orange); }
.lane-b .sc-flag { fill: var(--violet); }
.chip rect { fill: none; stroke: rgba(169,177,207,0.45); }
.chip text { font-size: 12.5px; }
.chip.is-rel rect { fill: rgba(167,139,250,0.16); stroke: var(--violet); }
.chip.is-proxy rect { fill: rgba(249,115,22,0.14); stroke: var(--orange); }
.chip.is-not { opacity: .35; }
.sc-checkbox { fill: rgba(255,255,255,0.03); stroke: rgba(169,177,207,0.3); }
.sc-check-l { font-size: 12px; fill: var(--ink-muted); }
.sc-check-r { font-size: 13px; font-weight: 500; fill: var(--ink-muted); }
.sc-check-tick { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: none; }
.lane-b .sc-checkbox { stroke: var(--violet); }
.lane-b .sc-check-r { fill: #c4b5fd; }
.lane-b .sc-check-tick { display: inline; }
.sc-bubble rect { fill: rgba(255,255,255,0.03); stroke: var(--ink-faint); }
.sc-bubble-a rect { stroke: rgba(249,115,22,0.45); }
.sc-bubble-b rect { stroke: rgba(167,139,250,0.45); }
.sc-bubble text { font-size: 11.5px; }
.sc-boardbox { fill: var(--ink-bg-2); stroke: var(--ink-faint); }
.sc-board-fig { font-size: 14px; font-weight: 500; }
.lane-a .sc-board-fig { fill: #fdba74; }
.lane-b .sc-board-fig { fill: #c4b5fd; }
/* captions: the same structure under both boxes, centred. Static (no motion):
   all four listed. With motion: the four sit in one grid cell, so the block is
   as tall as the longest, and scroll.js crossfades them in step with the scrub;
   a label line is always reserved so the sentence sits at the same height on both sides */
.lane-steps li { text-align: center; }
.cap-n { display: block; font-size: .8rem; color: var(--ink-muted); margin: 0 0 .3rem; min-height: 1.3em; }
.cap-t { display: block; font-size: .98rem; line-height: 1.45; margin: 0; }
.lane-steps { list-style: none; margin: .9rem auto 0; padding: .9rem 0 0; max-width: 26rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.lane-steps li:first-child .cap-n { display: none; }                /* static list: no empty line above the first */
.js-motion .lane-steps { gap: 0; width: 100%; }
.js-motion .lane-steps li { grid-area: 1 / 1; will-change: opacity, transform; }
.js-motion .lane-steps li:first-child .cap-n { display: block; }
/* the step dots: one button per beat, under both lanes; only with motion (the static page lists every caption) */
.dots { display: none; }
.js-motion .dots { display: flex; justify-content: center; gap: .35rem; grid-column: 1 / -1; margin: 1rem 0 0; }
.dot { position: relative; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 1px solid var(--ink-muted); background: transparent; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.dot:hover::before { border-color: var(--ink); }
.dot[aria-current]::before { background: var(--violet); border-color: var(--violet); transform: scale(1.2); }
.dot:focus-visible { outline-offset: 0; }
@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .js-motion .stage { position: static; height: auto; padding: 0; }
  .js-motion .scrub { height: 0; }                   /* phones: the timeline plays once on entry */
  .lane { padding: .9rem .9rem 1rem; }
  .scene { max-height: none; }
  .js-motion .dots { margin-top: 0; }
}


/* ---------- example 1 (start): the chat ---------- */
.ex-chat { padding-top: 0; }
/* ---------- example 1 (end) ---------- */

/* ---------- example 2 (start): the coding agent, shorter ---------- */
.ex-code { padding-top: 0; }
.scene-s { max-height: 50svh; }
@media (min-width: 761px) { .js-motion .scrub-s { height: 120svh; } }   /* a shorter scroll: the reader has the pattern */
/* the tie-back line after the second example */
.tie { font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.4; max-width: 34rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; text-align: center; color: var(--ink); text-wrap: balance; }
/* ---------- example 2 (end) ---------- */

/* ---------- the program: three stages ---------- */
/* the turn: the program and the general case sit on a lighter ground than the problem, behind a hairline;
   the heading is the largest on the page after the h1, with a violet rule that draws in once on arrival */
.program { background: var(--ink-bg-2); }
.program { border-top: 1px solid rgba(169, 177, 207, 0.14); background-image: linear-gradient(rgba(124, 58, 237, 0.07), rgba(124, 58, 237, 0) 22rem); }
.program-head { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.turn-rule { display: block; width: 3.5rem; height: 3px; border-radius: 2px; background: var(--violet); margin: 0 0 1.5rem; transform-origin: 0 50%; }
.turn-label { color: var(--violet); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: .9rem; }
.turn-h { font-size: clamp(1.9rem, 3.3vw, 2.9rem); max-width: 22ch; }
.js-motion .turn-rule { transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.7,.2,1) .1s; }
.js-motion .turn.is-in .turn-rule { transform: none; }
.program-intro { color: var(--ink-muted); max-width: 52rem; margin: 1.5rem 0 0; }
/* the three stages, one sentence each, in a row under the intro; no boxes */
.stages { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); max-width: 56rem; }
.stages li { border-top: 1px solid var(--line); padding-top: .9rem; }
.stage-n { display: block; font-size: .85rem; color: var(--violet); margin: 0 0 .4rem; }
.stage-t { display: block; font-size: .98rem; line-height: 1.5; }
@media (max-width: 640px) { .stages { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; }
.team-intro { grid-column: 1 / -1; max-width: 50rem; }
.person { max-width: 34rem; }
.person .role { color: var(--ink-muted); font-size: .95rem; margin: 0 0 1rem; }
.person-links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .95rem; }
.person-links a:first-child { text-decoration: none; border-bottom: 1px solid var(--violet); padding-bottom: .1rem; }
.works { position: sticky; top: 5rem; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-faint); }
.ledger li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ink-faint); }
.year { font-size: .85rem; color: var(--ink-muted); padding-top: .2rem; }
.entry { display: grid; gap: .2rem; font-size: .95rem; }
.entry a { font-weight: 500; text-decoration: none; }
.entry a:hover { text-decoration: underline; }
.venue { font-size: .85rem; color: var(--ink-muted); }
.gloss { color: var(--ink-muted); }
@media (max-width: 860px) {
  .team { grid-template-columns: 1fr; }
  .works { position: static; }
}

/* ---------- join ---------- */
.join { background: var(--ink-bg-2); }
.join > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.routes h3 { margin-bottom: 1rem; }
.routes p { color: var(--ink-muted); max-width: 30rem; }
.cta { display: inline-block; margin-top: .5rem; padding: .7rem 1.2rem; background: var(--violet); color: #0b0820; font-weight: 500; font-size: .95rem; text-decoration: none; border-radius: 2px; }
.cta:hover { background: #c4b5fd; color: #0b0820; }
.cta-quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink-faint); }
.cta-quiet:hover { background: transparent; color: var(--violet); border-color: var(--violet); }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { padding: 3rem var(--gutter) 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: end; justify-content: space-between; color: var(--ink-muted); font-size: .88rem; background: var(--ink-bg-2); border-top: 1px solid rgba(169, 177, 207, 0.12); }
.foot-logo { height: 40px; width: auto; }
.foot p { margin: 0; }
.foot a { color: var(--ink-muted); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .stage { position: static; height: auto; padding: 0; }
  .js-motion .scrub { height: 0; }
  .js-motion .hero { position: static; min-height: 92svh; }
  .js-motion .hero-scrub { height: 0; }
}

/* ---------- "Who are we?": body copy in the hero, then "About Stuart" ---------- */
.hero-body { font-size: 1rem; line-height: 1.6; color: var(--ink); max-width: 26rem; margin: 1rem 0 0; text-wrap: pretty; }
.hero-sub + .hero-body { margin-top: 1.5rem; }
.about { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.about-person { max-width: 44rem; }
.about-person h2 { margin-bottom: 1.25rem; }
.about-name { font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.3; margin: 0 0 .25rem; }
.timeline { margin-top: 2rem; border-top: 1px solid var(--ink-faint); }
.timeline summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; font-weight: 500; font-size: .98rem;
}
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(45deg); transition: transform .2s ease; margin-right: .3rem; }
.timeline[open] summary::after { transform: rotate(-135deg); }
.timeline summary:hover { color: var(--violet); }
.timeline .ledger { margin-bottom: .5rem; }

/* ---------- "What's the problem?": header above the side-by-side ---------- */
.vg-head { max-width: var(--wide); margin: 0 0 clamp(2rem, 4vw, 3rem); }
.vg-subhead { margin: 0 0 clamp(1rem, 2vw, 1.5rem); }
.vg-sub { font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.4; max-width: 40rem; margin: 1.25rem 0 0; text-wrap: pretty; }
.vg-head .lead { color: var(--ink-muted); max-width: 40rem; margin: 1rem 0 0; }

/* ---------- Swaraag, advisors and "Join us" inside About ---------- */
.about-person { max-width: 52rem; }
.about-sub { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; margin: clamp(2.5rem, 5vw, 3.5rem) 0 .75rem; }
.person-sub { margin-top: 1.5rem; }
.adv-note { color: var(--ink-muted); margin: 0 0 1rem; }
.advisors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-faint); }
.bio { border-bottom: 1px solid var(--ink-faint); }
.person-sub .bio { border-top: 1px solid var(--ink-faint); }
.bio summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; padding: .9rem 2rem .9rem 0; position: relative; }
.bio summary::-webkit-details-marker { display: none; }
.bio summary::after { content: ""; position: absolute; right: .4rem; top: 1.25rem; width: .5rem; height: .5rem; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(45deg); transition: transform .2s ease; }
.bio[open] summary::after { transform: rotate(-135deg); }
.bio summary strong { font-weight: 600; }
.bio summary strong a { text-decoration: underline; text-decoration-color: var(--violet); }
.adv-title { color: var(--ink-muted); font-size: .92rem; }
.bio summary:hover strong { color: var(--violet); }
.bio p { color: var(--ink-muted); margin: 0 0 1.1rem; max-width: 44rem; }
.join-us .routes { margin-top: 1rem; }
.join-us h4 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin: 0 0 .75rem; }

/* ---------- "Researchers & Advisors" heading; Join us ---------- */
.about-sub.about-sub-lg { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-top: calc(clamp(2.5rem, 5vw, 3.5rem) + 1.5rem); }
.join-section { border-top: 1px solid rgba(169, 177, 207, 0.14); }
.join-section .about-sub { margin-top: 0; }

/* the problem heading: one size up from a section heading, on one line where it fits */
#vg-h { font-size: clamp(1.8rem, 3.2vw, 2.7rem); max-width: none; }

/* the stakes now open the page after the hero, so they need their own room above */
#stakes { padding-top: clamp(3.5rem, 8vw, 6rem); }
