/* build/ -- the landing page for builders.
   Its own stylesheet rather than style.css: this page is a run of
   full-screen scenes, not an article, and shares almost nothing with the
   rest of the site but the logo and the palette's spirit. The vhost CSP is
   default-src 'none' with style-src/script-src/img-src 'self': no web fonts,
   no inline styles, no off-origin anything. System font stacks only.

   Dark on purpose, in both colour schemes: it is a stage, and the
   animations are drawn for one background. */

:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --bg2: #13151b;
  --fg: #ecedf2;
  --muted: #9a9daa;
  --rule: #262a35;
  --card: #171a22;
  --accent: #7fb8dd;      /* the site's dark-mode link colour */
  --accent2: #c9a3e6;
  --ok: #9fcf8a;
  --bad: #e57f7f;
  --glow: rgba(127, 184, 221, .35);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: #a8d2ee; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

code { font-family: var(--mono); font-size: .9em; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--fg); color: var(--bg); padding: .4rem .8rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

/* ---- top bar ---------------------------------------------------------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(var(--bg) 30%, rgba(13, 14, 18, 0));
}
.bar a { text-decoration: none; }
.bar-home { display: flex; align-items: center; gap: .55rem; color: var(--fg); font-weight: 600; }
.bar-home img { display: block; }
.bar-nav { display: flex; align-items: center; gap: 1.2rem; font-size: .92rem; }
.bar-nav a { color: var(--muted); }
.bar-nav a:hover { color: var(--fg); }
.bar-nav .bar-cta {
  color: var(--bg); background: var(--accent); padding: .35rem .85rem;
  border-radius: 999px; font-weight: 600;
}
.bar-nav .bar-cta:hover { color: var(--bg); background: #a8d2ee; }

/* ---- breadcrumb trail ------------------------------------------------- */

.trail {
  position: fixed; right: clamp(.75rem, 2vw, 1.75rem); top: 50%; z-index: 20;
  transform: translateY(-50%);
}
.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.trail a {
  display: flex; align-items: center; justify-content: flex-end; gap: .7rem;
  padding: .25rem 0; text-decoration: none; color: var(--muted); font-size: .8rem;
}
.trail a::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--muted); flex: none;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.trail span {
  opacity: 0; transform: translateX(6px);
  transition: opacity .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.trail:hover span, .trail a:focus-visible span, .trail a[aria-current] span { opacity: 1; transform: none; }
.trail a[aria-current] { color: var(--fg); }
.trail a[aria-current]::after {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.35); box-shadow: 0 0 12px var(--glow);
}
.trail a.done::after { background: var(--muted); }
.trail a.done[aria-current]::after { background: var(--accent); }

/* The scroll progress line, for narrow screens where the trail is hidden.
   build.js sets --p on it; without the script it stays empty. */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 40; display: none; }
.progress-bar {
  height: 100%; width: 100%; transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

@media (max-width: 760px) {
  .trail { display: none; }
  .progress { display: block; }
  .bar-nav a:not(.bar-cta) { display: none; }
}

/* ---- scenes ----------------------------------------------------------- */

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 5.5rem clamp(1rem, 6vw, 5rem) 4rem;
  scroll-snap-align: start;
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
/* Every scene sits on the same background; the rule above each one does the
   separating. --scene-bg is that background, for anything that has to fade
   into it or hide what's behind it. */
.scene { --scene-bg: var(--bg); }
.scene-inner { width: 100%; max-width: 64rem; margin: 0 auto; padding-right: 3rem; }
@media (max-width: 760px) { .scene-inner { padding-right: 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.step {
  margin: 0 0 .6rem; font-family: var(--mono); font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
h1, h2 { margin: 0 0 1rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); max-width: 20em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cfd1da; max-width: 36em; margin: 0 0 1rem; }
.aside { color: var(--muted); font-size: .95rem; max-width: 40em; margin-top: 1.5rem; }
.more { font-size: .95rem; margin-top: 1.5rem; color: var(--muted); }

/* ---- hero ------------------------------------------------------------- */

.hero { border-top: 0; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
/* On a narrow screen the stack goes under the text, smaller, rather than
   away: it is half of what this slide says. The selectors are one step
   more specific than the stack rules further down, which would otherwise
   win by coming later. */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero .stack-wrap { width: min(100%, 20rem); margin: 0 auto; }
  .hero .stack { --gap: 4px; --bh: 2.9rem; }
  .stack .block { font-size: .8rem; }
}
/* The stack: four blocks dropped one on top of the other, bottom first.
   What a reader can relate to rather than our repository names: the
   bootstrap, the community's base OS on it, your repo on that, and your OS
   on top. */
.stack-wrap { overflow: hidden; padding: 1.5rem 0 0; }
/* Always as tall as four blocks, with the blocks at the bottom: when a
   frame has fewer, the ones above settle down onto the base, and nothing
   around the stack moves -- not the caption, not the controls, and not the
   stack itself, which the hero would otherwise re-centre at every change. */
.stack {
  --gap: 8px; --bh: 4.2rem;
  height: calc(4 * var(--bh) + 3 * var(--gap));
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: var(--gap);
}
.block {
  width: var(--w); height: var(--bh); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .95rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  white-space: nowrap; overflow: hidden;
  animation: drop .7s var(--ease) both;
}
/* The markup lists them top down, b4 to b1, so the delays run the other
   way: the bottom block lands first and each one lands on the last. */
.b1 { --w: 100%; animation-delay: .2s; }
.b2 { --w: 84%; animation-delay: .5s; }
.b3 { --w: 68%; animation-delay: .8s; }
.b4 { --w: 52%; animation-delay: 1.1s; }
@keyframes drop {
  from { opacity: 0; transform: translateY(-120px) rotate(-3deg); }
  70%  { transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* What a block is: the community's (plain), yours (outlined), or the OS
   that comes out on top. */
.k-yours { border-color: var(--accent); }
.k-os {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--bg); font-weight: 700; border-color: transparent;
  box-shadow: 0 0 30px var(--glow);
}
.k-os span { animation: pulse 3s 2.1s ease-in-out infinite; }

/* Once the drop is over, build.js marks the stack .live and takes it from
   frame to frame with these: a block slides out to one side (.off-l,
   .off-r), and its replacement comes in from the other. A block the next
   frame does not have slides out and then collapses (.gone), taking its
   share of the gap with it, while the rest re-taper through --w. .snap
   moves a block without a transition, from one side to the other while it
   is out of sight. */
.stack.live .block {
  animation: none;
  transition: transform .85s var(--ease), opacity .85s, width 1s var(--ease),
              height .7s var(--ease), margin .7s var(--ease), border-width .7s;
}
.stack.live .block.snap { transition: none; }
.stack .block.off-l { transform: translateX(-140%); opacity: 0; }
.stack .block.off-r { transform: translateX(140%); opacity: 0; }
.stack .block.gone { height: 0; margin-top: calc(-1 * var(--gap)); border-width: 0; box-shadow: none; }

.stack-caption {
  margin: 1.2rem 0 0; min-height: 3.2em; text-align: center;
  font-size: .9rem; color: var(--muted); transition: opacity .6s;
}
.stack-caption.fade { opacity: 0; }

/* The dots (one per frame) on one row, and previous, pause/play and next
   under them. Out of sight until the pointer is over the stack or a control
   has keyboard focus, so the hero stays quiet for anyone just reading it;
   always shown on a touch screen, which has no hover to reveal them with.
   Hidden with opacity, not display, so nothing moves when they appear. */
.stack-controls {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: .6rem;
  opacity: 0; transition: opacity .3s;
}
.stack-wrap:hover .stack-controls, .stack-controls:focus-within { opacity: 1; }
@media (hover: none) { .stack-controls { opacity: 1; } }
.sc-steps { display: flex; align-items: center; gap: .5rem; }
.stack-controls button {
  font: inherit; color: var(--muted); background: none; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.stack-controls button:hover { color: var(--fg); border-color: var(--accent); }
.stack-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-step, .sc-play { width: 2rem; height: 2rem; padding: 0; line-height: 1; font-size: 1.1rem; }
.sc-play { font-size: .7rem; letter-spacing: -.1em; }
.sc-dots { display: flex; gap: .45rem; }
.stack-controls .sc-dot { width: .7rem; height: .7rem; padding: 0; background: var(--rule); border-color: transparent; }
.stack-controls .sc-dot[aria-current="true"] { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
@keyframes pulse { 50% { opacity: .7; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--muted); border-radius: 13px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--fg); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* ---- reveal on scroll -------------------------------------------------
   Only with the script: build.js adds .js to <html> before first paint and
   .in to each .reveal as it scrolls into view. Without it, nothing here
   applies and every scene is simply visible. */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }
.js .reveal:nth-child(5) { transition-delay: .32s; }
.js .reveal:nth-child(6) { transition-delay: .4s; }

/* ---- 01 factory: the chips --------------------------------------------- */

.chips { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .3rem; max-width: 46rem; }
.chips li {
  position: relative;
  font-family: var(--mono); font-size: .72rem; line-height: 1.4;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: #cfd1da;
}
/* Each chip is a link to the post or doc about it; the link fills the
   chip, so all of it is clickable. */
.chips a { display: block; padding: .18rem .55rem; border-radius: inherit; color: inherit; text-decoration: none; }
.chips a:hover { color: inherit; }
.chips a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.js .chips li { opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--ease), border-color .6s, color .6s; }
.js .chips.in li { opacity: 1; transform: none; border-color: var(--accent); color: var(--fg); }
/* One after the other: build.js numbers them in --i, so the list can grow
   without a rule per chip. Once the last one is in, build.js marks the list
   .settled and the delays go, or hovering would wait for them too. */
.js .chips li { transition-delay: calc(.1s + var(--i, 0) * 45ms); }
.js .chips.settled li { transition: opacity .4s, transform .25s var(--ease), border-color .25s, color .25s, background .25s, box-shadow .25s; transition-delay: 0s; }

/* The last one is not a part but a shrug: dashed, so it reads as open. */
.js .chips.in li.chip-more, .chips li.chip-more { border-style: dashed; font-style: italic; }

/* The parts the CRA and CISA ask for, in the second accent, with the
   lede's key in the same colour. Before the hover rule, so hover wins. */
.chips li.cra, .js .chips.in li.cra { border-color: var(--accent2); color: var(--accent2); }
.cra-key { color: var(--accent2); font-weight: 600; }

/* Small to keep the list short, and each one grows under the pointer, or
   with keyboard focus. A scale, so nothing around it moves. */
.chips li:hover, .js .chips.in li:hover,
.chips li:focus-within, .js .chips.in li:focus-within {
  z-index: 2; transform: scale(1.45);
  background: var(--accent); border-color: var(--accent); color: var(--bg);
  box-shadow: 0 0 18px var(--glow);
}
.punch { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; margin: 1.5rem 0 0; }
.js .punch.in { transition-delay: 1.9s; }
.punch .arrow { color: var(--accent); display: inline-block; }
.js .punch.in .arrow { animation: nudge 1.6s 2.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ---- 01 the belt ------------------------------------------------------
   Isometric line art in one colour: boxes on a conveyor, taped shut by a
   robot on an arm and stamped with a check by a second one in front. Faces
   are filled with the scene's background, so nearer shapes hide the lines
   behind them.

   Nothing in it is ever redrawn while it runs. Every moving part is a whole
   layer, slid (transform) or faded (opacity), the two things browsers do on
   the GPU, smoothly between pixels; anything else redraws the SVG every
   frame, and at a fraction of a pixel a frame that stutters. So:

     .belt-slide  the boxes and belt dashes, at one steady speed: a box
                  step of 6 units is 72.75, 42 in the viewBox, 21.038% and
                  13.316% of its 345.8 x 315.4. A percentage, so it scales
                  with the picture. Drawn past its viewBox (overflow
                  visible) to have boxes ready to slide in; .belt-stage
                  clips.
     .belt-tape   the tape of every box from the one taped this cycle on,
                  sliding with the boxes behind a fixed clip-path: the side
                  of the roll the boxes travel into. Tape shows once it has
                  passed under the roll, which is when it would be laid.
     .belt-fresh  the check of the box stamped this cycle, sliding with it
                  and appearing at 86.7%, when the ram hits.

   The ram and the blinking eyes are the only animation inside an SVG: a
   few small shapes in the front layer, which never moves.

   The belt runs on a 2.5s cycle; the percentages in the keyframes below
   are of that, so the speed is those three durations and nothing else.
   The eyes keep a 5s pace of their own: blinking at belt speed looks
   nervous. */

@media (min-width: 861px) { .factory, .updates { grid-template-columns: 1.25fr 1fr; } }
.belt { --paper: var(--scene-bg); color: var(--accent); }
.belt-stage { position: relative; aspect-ratio: 345.8 / 315.4; overflow: hidden; }
.belt-stage > * { position: absolute; inset: 0; }
.belt-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Every layer is the full size of the stage, the nested one inside
   .belt-tape too: the slide is a percentage of the layer's own size, so a
   layer with no height would slide sideways only and leave its boxes. */
.belt-slide { position: absolute; inset: 0; will-change: transform; animation: belt-slide 2.5s linear infinite; }
.belt-slide svg { overflow: visible; }
.belt-tape { clip-path: polygon(100% 3.48%, 100% 100%, 0% 100%, 0% 66.78%); }
.belt-fresh { animation: belt-slide 2.5s linear infinite, fresh 2.5s infinite; }

.belt .iso { fill: var(--paper); stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.belt .iso-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.belt .iso-thin { fill: none; stroke: currentColor; stroke-width: .9; }
.belt .belt-run { stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 7 7; }
.belt .tape { fill: none; stroke: currentColor; stroke-width: 4; stroke-linejoin: round; }
.belt .stamp-mark { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.belt .eye { fill: currentColor; stroke: none; }

.ram      { animation: ram 2.5s infinite; }
.eyes     { animation: blink 5s infinite; transform-box: fill-box; transform-origin: center; }
.eyes-2   { animation-delay: -1.7s; }

/* The dashes repeat every 14 units along the belt and a box step is 84,
   so the loop lands on a whole number of them and does not jump. */
@keyframes belt-slide {
  from { transform: translate(0, 0); }
  to   { transform: translate(21.038%, 13.316%); }
}
@keyframes fresh {
  0%, 86.6% { opacity: 0; }
  86.7%, 100% { opacity: 1; }
}
/* In and out along the y axis, 1.1 units: 13.34, -7.7 on screen. Fast in,
   a moment's contact, back out. */
@keyframes ram {
  0%, 84% { transform: translate(0, 0); animation-timing-function: ease-in; }
  86.7%, 87.5% { transform: translate(13.34px, -7.7px); animation-timing-function: ease-out; }
  91%, 100% { transform: translate(0, 0); }
}
@keyframes blink {
  0%, 30%, 33%, 72%, 75%, 100% { transform: scaleY(1); }
  31.5%, 73.5% { transform: scaleY(.1); }
}

/* Only while the slide is on screen. Without the script there is no .in to
   wait for, and it simply runs. */
.js .belt:not(.in) * { animation-play-state: paused; }

/* ---- code blocks ------------------------------------------------------ */

.code {
  margin: 0; padding: 1.4rem 1.5rem; overflow-x: auto;
  background: #0a0b0f; border: 1px solid var(--rule); border-radius: 10px;
  font-family: var(--mono); font-size: .88rem; line-height: 1.65; color: #d7d9e0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.code .k { color: var(--accent2); }
.code .s { color: var(--ok); }
.code .prompt { color: var(--accent); }
.code .dim { color: var(--muted); }
.code .ok { color: var(--ok); font-weight: 700; }
.term { position: relative; }
/* The output lines of the terminal land one after another. */
.js .term .line { opacity: 0; transition: opacity .3s; }
.js .term.in .line { opacity: 1; }
.js .term.in .t1 { transition-delay: .9s; }
.js .term.in .t2 { transition-delay: 1.4s; }
.js .term.in .t3 { transition-delay: 1.6s; }
.js .term.in .t4 { transition-delay: 1.8s; }
.js .term.in .t5 { transition-delay: 2s; }
.js .term.in .t6 { transition-delay: 2.2s; }
.js .term.in .t7 { transition-delay: 2.4s; }
/* The record and key hashes are longer than the column is wide: they run
   off under a fade instead of putting a scrollbar on the terminal. */
.proof-term { overflow: hidden; font-size: .8rem; min-width: 0; }
.proof-term::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 4rem; pointer-events: none;
  border-radius: 0 10px 10px 0; background: linear-gradient(to right, rgba(10, 11, 15, 0), #0a0b0f);
}

/* ---- 02 the recipe stack ---------------------------------------------- */

/* A pile of real recipes. Each card shows only its top-left corner, at a
   size you can read: it fades out to the right and the bottom, outline
   and all, into the slide's background. The cards behind sit a little higher and to the right,
   so their top edges peek out above the top one. Every card is solid, so
   the next recipe is already there underneath when the top one drops.
   Every four seconds
   build.js drops the top card (.drop), moves it to the bottom of the pile,
   and the rest step forward; the steps are transitions on transform and
   opacity, so they stay smooth. The last card in the markup is on top. */
@media (min-width: 861px) { .recipe { grid-template-columns: .8fr 1.2fr; } }
.recipe-stack { margin: 0; min-width: 0; }
.rcards { position: relative; height: 22rem; margin-top: 1.6rem; }
.rcard {
  position: absolute; inset: 0; display: block;
  color: inherit; text-decoration: none;
  background: #0a0b0f; border: 1px solid var(--accent); border-radius: 12px;
  transition: transform .7s var(--ease), opacity .7s;
}
/* The fade is laid over the card, running into the slide's own background,
   outline included -- not a mask, which would make the card see-through
   and show the pile behind it. The card stays solid. It must not clip
   (no overflow: hidden on .rcard; the code clips itself), or the clip
   would cut the fade off just inside the outline. */
.rcard::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(to right, transparent 45%, var(--scene-bg) 92%),
    linear-gradient(to bottom, transparent 40%, var(--scene-bg) 95%);
}
.rcard .code {
  margin: 0; height: 100%; overflow: hidden; white-space: pre;
  border: 0; border-radius: 0; box-shadow: none; background: none;
  font-size: .88rem; line-height: 1.6;
}
.rcard:focus-visible { outline: none; border-color: var(--fg); }

/* The pile: the top card, then two peeking out above it, then the rest
   hidden behind those. */
.rcard:nth-last-child(2) { transform: translate(.8rem, -.8rem); opacity: .55; }
.rcard:nth-last-child(3) { transform: translate(1.6rem, -1.6rem); opacity: .25; }
.rcard:nth-last-child(n+4) { transform: translate(1.6rem, -1.6rem); opacity: 0; }
.rcard.drop { transform: translateY(70%) rotate(7deg); opacity: 0; transition: transform .8s cubic-bezier(.5, 0, .9, .4), opacity .8s; }
.rcard.snap { transition: none; }

.recipe-stack figcaption { margin-top: .9rem; font-size: .85rem; color: var(--muted); font-family: var(--mono); transition: opacity .3s; }
.recipe-stack figcaption.fade { opacity: 0; }

/* ---- 06 testing -------------------------------------------------------- */


/* Four runners, each testing a different image with its own stages: .n3 or
   .n4 says how many, which places the dividers on the track and spaces the
   labels under it. The fill is a scaleX and the check an opacity, so it
   stays smooth; each runner has its own loop length, so they drift apart
   and never move in step. */
.runners { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.runners ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.runners li { --n: 4; display: grid; grid-template-columns: 1fr 1.5rem; align-items: center; row-gap: .35rem; }
.runners li.n3 { --n: 3; }
.runner-name { grid-column: 1 / -1; margin: 0; color: var(--fg); }
.runner-name span { color: var(--accent); margin-left: .4rem; }
.runner-track {
  height: 10px; border: 1px solid var(--accent); border-radius: 999px;
  overflow: hidden; position: relative;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 1px),
                                        var(--accent) calc(100% / var(--n) - 1px) calc(100% / var(--n)));
}
.runner-fill { position: absolute; inset: 0; background: var(--accent); opacity: .55; transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.runner-ok { color: var(--accent); font-size: 1rem; text-align: center; opacity: 0; }
.runner-stages { display: grid; grid-template-columns: repeat(var(--n), 1fr); font-size: .72rem; }
.runner-stages span { padding-left: .3rem; }
.runners.in .runner-fill { animation: runner-fill 4.4s infinite; }
.runners.in .runner-ok { animation: runner-ok 4.4s infinite; }
.runners li:nth-child(2) > span { animation-duration: 5.2s; animation-delay: -1.3s; }
.runners li:nth-child(3) > span { animation-duration: 3.1s; animation-delay: -.6s; }
.runners li:nth-child(4) > span { animation-duration: 3.7s; animation-delay: -2.4s; }
.runners li:nth-child(2) .runner-fill { animation-duration: 5.2s; animation-delay: -1.3s; }
.runners li:nth-child(3) .runner-fill { animation-duration: 3.1s; animation-delay: -.6s; }
.runners li:nth-child(4) .runner-fill { animation-duration: 3.7s; animation-delay: -2.4s; }
@keyframes runner-fill {
  0%   { transform: scaleX(0); }
  75%  { transform: scaleX(1); }
  95%  { transform: scaleX(1); opacity: .55; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes runner-ok {
  0%, 74% { opacity: 0; }
  77%, 95% { opacity: 1; }
  100% { opacity: 0; }
}
/* Without the script there is no .in: show them finished, not empty. */
html:not(.js) .runner-fill { transform: none; }
html:not(.js) .runner-ok { opacity: 1; }

/* ---- 03 gates: a change running them, one at a time --------------------- */

/* build.js drives this: it moves the package down by setting --at to the
   index of the gate it's in, and marks each dot .busy, then .ok or .fail.
   Every other run fails a gate, and the next starts over from the top.
   Always a column of fixed-height rows, so gate i's centre is
   i * --row + --row / 2 down, and the rail runs from the first to the last. */
.gates {
  --at: 0; --row: 2.9rem;
  list-style: none; padding: 0; margin: 0; position: relative;
  width: max-content; max-width: 100%; justify-self: center;
}
.gates::before {
  content: ""; position: absolute; left: 11px; width: 2px;
  top: calc(var(--row) / 2); bottom: calc(var(--row) / 2); background: var(--rule);
}
/* The package. It passes behind the gates, which are opaque, so it's hidden
   while one is checking it. */
.gates::after {
  content: ""; position: absolute; left: 5px; width: 14px; height: 14px; border-radius: 3px;
  top: calc(var(--at) * var(--row) + var(--row) / 2 - 7px);
  background: var(--accent); box-shadow: 0 0 16px var(--glow); opacity: 0;
  transition: top .6s var(--ease), opacity .4s;
}
.gates.run::after { opacity: 1; }
.gates.reset::after { transition: none; }
.gates li {
  position: relative; z-index: 1; display: flex; align-items: center;
  height: var(--row); padding-left: 2.6rem; font-size: .95rem; color: #cfd1da;
}
.gate-dot {
  position: absolute; top: 50%; left: 0; margin-top: -12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--rule);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
/* Opaque tints of --ok and --bad over --bg, so the package stays hidden. */
.gate-dot.busy { border-color: var(--accent); box-shadow: 0 0 14px var(--glow); }
.gate-dot.ok { border-color: var(--ok); background: #313e30; }
.gate-dot.fail { border-color: var(--bad); background: #432a2d; box-shadow: 0 0 14px rgba(229, 127, 127, .4); }
/* The check is an L turned 45 degrees; the cross is two bars. */
.gate-dot::before, .gate-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; opacity: 0; transition: opacity .25s;
}
.gate-dot.ok::before {
  opacity: 1; width: 25%; height: 48%; margin-top: -1px;
  border: solid var(--ok); border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.gate-dot.fail::before, .gate-dot.fail::after {
  opacity: 1; width: 55%; height: 2px; background: var(--bad);
  transform: translate(-50%, -50%) rotate(45deg);
}
.gate-dot.fail::after { transform: translate(-50%, -50%) rotate(-45deg); }
.gates li:last-child { color: var(--fg); font-weight: 600; }


/* ---- 05 images: the composition, and what it makes --------------------- */

/* One file per image, stacked; build.js shows the one whose card is .on, and
   hovering or focusing a card picks it. Faded off at the right and bottom
   into the slide, like the recipe cards, so the code stays a readable size. */
.comp { position: relative; height: 20rem; margin: 0; min-width: 0; }
.comp-file {
  position: absolute; inset: 0; display: block; color: inherit; text-decoration: none;
  background: #0a0b0f; border: 1px solid var(--accent); border-radius: 12px;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s;
}
.comp-file.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.comp-file::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(to right, transparent 50%, var(--scene-bg) 95%),
    linear-gradient(to bottom, transparent 45%, var(--scene-bg) 95%);
}
.comp-file .code { margin: 0; height: 100%; overflow: hidden; white-space: pre; border: 0; border-radius: 0; box-shadow: none; background: none; font-size: .82rem; line-height: 1.6; }
.comp-file:focus-visible { outline: none; border-color: var(--fg); }

.cards { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } }
.cards li, .who li, .promises li {
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 1.2rem;
  display: flex; flex-direction: column; gap: .35rem;
  transition: transform .3s var(--ease), border-color .3s;
}
.cards li:hover, .who li:hover, .promises li:hover { transform: translateY(-4px); border-color: var(--accent); }
.cards li.on { border-color: var(--accent); box-shadow: 0 0 18px var(--glow); }
.cards strong, .who strong, .promises strong { font-size: 1.05rem; }
.cards strong a { color: var(--fg); text-decoration: none; }
.cards strong a:hover { color: var(--accent); }
.cards span, .who span, .promises span { color: var(--muted); font-size: .92rem; }

/* ---- 08 depth: a gauge you set, and what that depth takes ------------- */

/* --v is the depth, 1 to 5; build.js sets it. The fill and the level are
   each a full-height layer moved by a percentage of their own height, so
   the line lands at --v * 20% from the top and the box is filled above it.
   Transform only, so it glides on the GPU. */
.depth-tiers { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.depth-tiers li { border-left: 2px solid var(--accent); padding: .1rem 0 .1rem .9rem; }
.depth-tiers b { font-family: var(--mono); color: var(--accent); }
.depth-tiers strong { color: var(--fg); font-size: 1.1rem; }
.depth-tiers span { display: block; margin-top: .25rem; color: var(--muted); }
.js .depth-tiers li { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.js .depth-tiers li.on { opacity: 1; visibility: visible; transition: opacity .3s; }

.gauge {
  --v: 1; --rail: 1.6rem; --box: 4.5rem;
  position: relative; height: calc(5 * var(--box)); width: calc(var(--rail) + .6rem + var(--box) + 1rem + 10.5rem);
  justify-self: center; touch-action: none; user-select: none;
}
.gauge::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rail) / 2 - 1px); width: 2px;
  background: var(--rule); border-radius: 1px;
}
.gauge-box {
  position: absolute; top: 0; left: calc(var(--rail) + .6rem); width: var(--box); height: 100%;
  border: 1px solid var(--accent); border-radius: 8px; overflow: hidden; background: var(--card); cursor: pointer;
}
.gauge-fill, .gauge-level {
  transform: translateY(calc(var(--v) * 20% - 100%)); transition: transform .6s var(--ease); will-change: transform;
}
.gauge-fill { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(127, 184, 221, .2), rgba(127, 184, 221, .45)); }
.gauge-level {
  position: absolute; top: 0; left: 0; height: 100%; width: calc(var(--rail) + .6rem + var(--box));
  box-sizing: border-box; border-bottom: 2px solid var(--accent); pointer-events: none;
}
.gauge-knob {
  position: absolute; bottom: 0; left: calc(var(--rail) / 2); width: 20px; height: 20px; border-radius: 50%;
  transform: translate(-50%, calc(50% + 1px)); background: var(--accent); box-shadow: 0 0 14px var(--glow);
  pointer-events: auto; cursor: grab;
}
.gauge-knob:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.gauge-stops { position: absolute; top: 0; height: 100%; left: calc(var(--rail) + .6rem + var(--box) + 1rem); list-style: none; margin: 0; padding: 0; }
.gauge-stops li { position: absolute; left: 0; transform: translateY(-50%); }
.gauge-stops li:nth-child(1) { top: 20%; }
.gauge-stops li:nth-child(2) { top: 40%; }
.gauge-stops li:nth-child(3) { top: 60%; }
.gauge-stops li:nth-child(4) { top: 80%; }
.gauge-stops li:nth-child(5) { top: 100%; }
.gauge-stops button {
  font: inherit; font-size: .85rem; color: var(--muted); background: none; border: 0; padding: .25rem 0;
  cursor: pointer; white-space: nowrap; transition: color .3s;
}
.gauge-stops button:hover { color: var(--accent); }
.gauge-stops button.on { color: var(--fg); font-weight: 600; }

/* ---- 08 timeline ------------------------------------------------------ */

.timeline { list-style: none; padding: 0; margin: 2rem 0 0; position: relative; max-width: 40rem; }
.timeline::before {
  content: ""; position: absolute; left: 5.2rem; top: .6rem; bottom: .6rem; width: 2px;
  background: linear-gradient(var(--accent), var(--ok)); transform-origin: top;
}
.js .timeline::before { transform: scaleY(0); transition: transform 1.6s .3s var(--ease); }
.js .timeline.in::before { transform: none; }
.timeline li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 2rem; padding: .6rem 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 4.85rem; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--accent);
}
.timeline li:last-child::before { border-color: var(--ok); background: var(--ok); }
.timeline time { font-family: var(--mono); color: var(--accent); text-align: right; }
.timeline span { color: #cfd1da; }

/* ---- 09 / 10 grids ---------------------------------------------------- */

.who, .promises { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.who { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.promises { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.promises strong { color: var(--accent); }

/* 10: the five kinds of builder are pillars holding up one beam, the
   community, on a shared plinth. When it scrolls in, the pillars rise
   one after another and the beam settles onto them. Below 760px the
   pillars become stacked slabs; the beam and plinth stay. */
.temple { margin-top: 2rem; }
.beam {
  position: relative; z-index: 1; margin: 0; padding: 1.1rem 1.5rem 1.2rem; text-align: center;
  background: linear-gradient(180deg, #222838, #181c26);
  border: 1px solid var(--accent); border-radius: 6px;
  box-shadow: 0 0 32px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.beam strong { display: block; font-size: 1.5rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg); }
.beam span { display: block; margin-top: .3rem; color: var(--muted); font-size: .92rem; }
.temple .who { margin: 0; padding: 0 1rem; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.temple .who li {
  position: relative; min-height: 15rem; padding: 1.6rem .9rem 1.4rem; border-radius: 0;
  border-top: 0; border-bottom: 0;
  background: repeating-linear-gradient(90deg, #191c25 0 9px, #1e222d 9px 11px);
  transform-origin: bottom;
}
/* capital and base: slabs a little wider than the shaft */
.temple .who li::before, .temple .who li::after {
  content: ""; position: absolute; left: -.45rem; right: -.45rem; height: .55rem;
  background: #2b3140; border: 1px solid #353c4d; border-radius: 2px;
}
.temple .who li::before { top: 0; }
.temple .who li::after { bottom: 0; }
.temple .who li:hover { transform: none; border-color: var(--accent); }
.temple .who strong { font-size: .98rem; }
.plinth { height: .8rem; margin: 0 -.25rem; background: #2b3140; border: 1px solid #353c4d; border-radius: 2px; }
.plinth::after { content: ""; display: block; height: .7rem; margin: calc(.8rem - 1px) -.75rem 0; background: #232836; border: 1px solid #2f3545; border-radius: 2px; }

.js .temple .who li { transform: scaleY(0); transition: transform .7s var(--ease), border-color .3s; }
.js .temple .who li > * { opacity: 0; transition: opacity .5s var(--ease); }
.js .temple .beam { opacity: 0; transform: translateY(-2.5rem); transition: opacity .6s var(--ease) .95s, transform .6s cubic-bezier(.3, 1.4, .5, 1) .95s; }
.js .temple.in .who li { transform: none; }
.js .temple.in .who li > * { opacity: 1; transition-delay: 1.3s; }
.js .temple.in .beam { opacity: 1; transform: none; }
.temple .who li:nth-child(2) { transition-delay: .1s; }
.temple .who li:nth-child(3) { transition-delay: .2s; }
.temple .who li:nth-child(4) { transition-delay: .3s; }
.temple .who li:nth-child(5) { transition-delay: .4s; }

@media (max-width: 760px) {
  .temple .who { grid-template-columns: 1fr; gap: 1.1rem; padding: 0 .6rem; }
  .temple .who li { min-height: 0; }
  .temple .who li:first-child { margin-top: 1rem; }
  .temple .who li:last-child { margin-bottom: 1rem; }
}

/* ---- 03 the AI callout ------------------------------------------------ */

.callout { margin: 2.5rem 0 0; max-width: 44rem; color: #cfd1da; font-size: .97rem; }
.callout p { margin: 0; }
.callout .callout-title { color: var(--fg); font-weight: 700; font-size: 1.1rem; margin-bottom: .35rem; }

/* ---- 11 compared: one rival at a time -----------------------------------
   The right half of the split. One table holds every rival; once build.js
   has added the buttons it marks .vs as .ready, and only the chosen rival's
   column and note show, beside Dispatcher's. The line under the chosen
   button fills over 5s and, when it ends, build.js moves on to the next
   rival. Hovering or focusing the table pauses it (.hold); clicking a
   button stops it there (.pinned). Without the script, or before .ready,
   the whole table shows and scrolls sideways inside its box. */

.vs-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.vs-tabs button {
  position: relative; overflow: hidden; font: inherit; font-size: .85rem; cursor: pointer;
  color: var(--muted); background: var(--card); border: 1px solid var(--rule); border-radius: 999px;
  padding: .35rem .8rem; transition: color .2s, border-color .2s;
}
.vs-tabs button:hover { color: var(--fg); }
.vs-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vs-tabs button.on { color: var(--fg); border-color: var(--accent); }
.vs-tabs button.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
  animation: vs-tick 5s linear forwards;
}
.vs.hold .vs-tabs button.on::after { animation-play-state: paused; }
.vs.pinned .vs-tabs button.on::after { animation: none; transform: none; }
@keyframes vs-tick { to { transform: scaleX(1); } }

.vs-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.vs-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.matrix { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 40rem; }
.vs.ready .matrix { min-width: 0; }
.matrix th, .matrix td { padding: .55rem .7rem; text-align: center; border-bottom: 1px solid var(--rule); }
.matrix thead th { color: var(--fg); font-weight: 600; font-size: .9rem; vertical-align: bottom; }
.matrix tbody th { text-align: left; font-weight: 500; color: #cfd1da; white-space: nowrap; position: sticky; left: 0; background: var(--card); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td.y { color: var(--ok); }
.matrix td.p { color: #d8c48a; }
.matrix td.d { color: var(--muted); }
.matrix td.n { color: #555a68; }
.matrix td.v { color: var(--bad); font-weight: 600; }
.matrix .us { background: rgba(127, 184, 221, .12); font-weight: 600; }
.matrix thead .us { color: var(--accent); }

.vs-note { margin: .9rem 0 0; color: var(--muted); font-size: .9rem; min-height: 4.2em; }
.vs-note b { color: var(--fg); font-weight: 600; }
.more b { color: var(--fg); font-weight: 600; }
/* The legend's words in the colours of the table's cells. */
.more b.y { color: var(--ok); }
.more b.p { color: #d8c48a; }
.more b.d { color: var(--muted); }
.more b.v { color: var(--bad); }

.vs.ready [data-r]:not(.on) { display: none; }
/* The notes share one grid cell, so the box is as tall as the longest
   and nothing above or beside it moves when the rival changes. */
.vs.ready .vs-notes { display: grid; }
.vs.ready .vs-note { grid-area: 1 / 1; min-height: 0; }
.vs.ready .vs-note:not(.on) { display: block; visibility: hidden; }
.vs.ready [data-r].on { animation: vs-in .45s var(--ease); }
@keyframes vs-in { from { opacity: 0; transform: translateX(.5rem); } }

/* ---- further reading: a floating <details> ----------------------------
   Bottom left, out of the way of the trail on the right. Open, the panel
   grows upwards from the button and scrolls on its own. */

.reading { position: fixed; left: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); z-index: 35; }
.reading summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(23, 26, 34, .9); border: 1px solid var(--rule); color: var(--fg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s;
}
.reading summary::-webkit-details-marker { display: none; }
.reading summary:hover, .reading[open] summary { border-color: var(--accent); }
.reading summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reading-panel {
  position: absolute; left: 0; bottom: calc(100% + .6rem);
  width: min(24rem, calc(100vw - 1.5rem)); max-height: min(70vh, 40rem); overflow-y: auto;
  padding: 1.2rem 1.3rem; border-radius: 14px;
  background: rgba(19, 21, 27, .97); border: 1px solid var(--rule);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  font-size: .9rem; line-height: 1.5;
}
.reading[open] .reading-panel { animation: rise .3s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.reading h2 { font-size: 1.1rem; margin: 0 0 .4rem; letter-spacing: 0; }
.reading h3 { font-size: .8rem; margin: 1.2rem 0 .4rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.reading p { margin: 0 0 .8rem; color: var(--muted); }
.reading ol, .reading ul { margin: 0; padding-left: 1.4rem; }
.reading li { margin: .25rem 0; }
.reading li span { color: var(--muted); font-size: .85em; }
.path li::marker { color: var(--accent); font-family: var(--mono); font-size: .85em; }

/* ---- 12 finale -------------------------------------------------------- */

.finale h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
/* Four equal boxes: four across, two by two below 860px, one column on a
   phone. grid-auto-rows keeps every row as tall as the tallest box, and
   each link fills its cell. */
.go { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 1rem; }
@media (max-width: 860px) { .go { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .go { grid-template-columns: 1fr; } }
.go li { display: flex; }
.go li > a { flex: 1; }
.go a {
  display: block; padding: 1.5rem; border-radius: 14px;
  background: var(--card); border: 1px solid var(--rule); text-decoration: none; color: var(--fg);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.go a:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 0 30px var(--glow); color: var(--fg); }
.go strong, .go span { display: block; }
.go strong { font-size: 1.2rem; }
.go span { color: var(--muted); font-size: .93rem; }
.go li:first-child a { background: linear-gradient(135deg, rgba(127, 184, 221, .2), rgba(201, 163, 230, .12)); }

.foot {
  padding: 2rem clamp(1rem, 6vw, 5rem); border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .85rem; text-align: center;
}
.foot p { margin: .3rem 0; }

/* ---- motion off ------------------------------------------------------- */

/* The hero's facts: three numbers a lead can repeat, in place of the old
   animated stack. */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.facts li { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: .9rem 1.1rem; }
.facts strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--fg); line-height: 1.1; }
.facts span { display: block; margin-top: .3rem; color: var(--muted); font-size: .95rem; }

/* A plain list of short claims (03, 08). Not .depth-tiers: with the script
   on, that one hides every item until the depth slider picks one. */
.points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.points strong { color: var(--fg); font-size: 1.1rem; }
.points span { display: block; margin-top: .25rem; color: var(--muted); }

/* What it takes: a plain three-column table, in the matrix's frame. */
.costs { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 34rem; }
.costs th, .costs td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.costs thead th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.costs tbody th { color: var(--fg); font-weight: 600; }
.costs td { color: #cfd1da; }
.costs tbody tr:last-child th, .costs tbody tr:last-child td { border-bottom: 0; }
#cost .vs-wrap { margin-top: 1.8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .chips li, .js .term .line { opacity: 1; transform: none; }
  .js .timeline::before { transform: none; }
  .js .temple .who li, .js .temple .beam { transform: none; opacity: 1; }
  .js .temple .who li > * { opacity: 1; }
  .runner-fill { transform: none !important; }
  .runner-ok { opacity: 1 !important; }
}
