/* decktalk.ai. Colour, type and motion tokens come from tokens.css, generated with the brand.
   The room is dark and the film is the brightest thing in it. The voice colour, tungsten gold, means
   one thing on the page: a picture has landed on its word. A landed word and its tick on the hero's
   track, a cue time in a transcript as its picture lands. The one other gold on the site is the
   accent in the mark, the bar under the picture. Everything else that needs emphasis (the rebuilt
   section, the changed word, the playing sound) takes the paper white, so a landing is never
   mistaken for anything else.

   Three faces, three roles. Instrument Serif is the voice of the page: titles, the measured figures,
   film titles, and every word a film speaks (the hero's track, the transcripts, the scripts). IBM Plex
   Mono is the machine: commands, file names, timecodes, cue ids and the kicker over each heading.
   Instrument Sans carries everything else. Bricolage Grotesque is kept for the wordmark alone. */

/* ---- faces. Self-hosted subsets with metric-matched fallbacks, so the text never shifts. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 500;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-500.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plex-mono-400.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url(fonts/plex-mono-500.woff2) format("woff2");
}
/* Fallbacks sized to the brand faces: size-adjust from the measured width of the headline and the subhead
   in each face against its fallback in Chromium, and the ascent and descent overrides from the faces'
   hhea metrics (Bricolage 930/270, Instrument Serif 990/310, Instrument Sans 970/250, Plex Mono
   1025/275 on 1000) over that size. Instrument Serif is far narrower than any system serif, hence 76%. */
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia"), local("Times New Roman"), local("Liberation Serif");
  size-adjust: 76.2%;
  ascent-override: 130%;
  descent-override: 40.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 93.7%;
  ascent-override: 99.3%;
  descent-override: 28.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 101.6%;
  ascent-override: 95.5%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Fallback";
  src: local("Menlo"), local("Consolas"), local("Courier New");
  size-adjust: 100%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

:root {
  --font-title: "Instrument Serif", "Serif Fallback", var(--dt-font-title);
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", var(--dt-font-display);
  --font-text: "Instrument Sans", "Instrument Fallback", var(--dt-font-text);
  --font-mono: "IBM Plex Mono", "Plex Fallback", var(--dt-font-mono);
  --beat: 472ms; /* the mean gap between word starts in the Halfway take; app.js sets it from data.js */
  --cut: calc(var(--beat) / 2);
  --stagger: calc(var(--beat) / 4);
  /* The width system. One wrap for every page, so the brand, the first word of every heading and
     the left edge of every film sit on one line across the site. The gutter grows with the window
     (16 px at 390, 31 at 768, 58 at 1440, 72 at 1920) and the content runs to 1600 px, so a wide
     screen is used rather than framed. Inside the wrap is a twelve-column grid; sections place
     their parts on multiples of four columns (a third) or the 4 + 8 split the hero sets. Text never
     follows the width: every paragraph holds its own measure. */
  --gutter: clamp(16px, 4vw, 72px);
  --wrap: 1600px;
  --col-gap: clamp(16px, 2.2vw, 40px);
  --measure: 62ch;
  --measure-lead: 56ch;
  /* Spacing: one 8 px scale. Every margin and gap below is one of these, so the page has a rhythm
     rather than a list of numbers. --section is the pad above and below every section: 56 px on a
     phone, 86 at 1440, 104 at 1920. --head is the space between a section's heading group and its
     content, and --stack the space between parts of that content. --hero-air is the room between
     the promise and the film it introduces: the founder asked for the top not to be crammed. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --section: clamp(56px, 6vw, 104px);
  --head: clamp(32px, 3.4vw, 56px);
  --stack: clamp(24px, 2.2vw, 40px);
  --hero-air: clamp(24px, 1.7vw, 40px);
  /* The type scale. Fluid between a 390 px phone and a 1440 px window, where the content column stops
     growing, so each size is fixed past 1440 and no breakpoint has to restate it: min + slope x vw,
     clamped, with the slope (max - min) / 1050 px. Display is the hero alone and outranks every
     figure; a page title outranks every h2. */
  --t-display: clamp(40px, 28.11px + 3.048vw, 72px); /* 40 -> 72, the hero headline */
  --t-figure: clamp(38px, 29.83px + 2.095vw, 60px);  /* 38 -> 60, the proof figures, a step under the headline */
  --t-title: clamp(36px, 27.09px + 2.286vw, 60px);   /* 36 -> 60, every other page's h1 */
  --t-h2: clamp(30px, 24.06px + 1.524vw, 46px);      /* 30 -> 46 */
  --t-h3: clamp(21px, 18.4px + 0.667vw, 28px);       /* 21 -> 28, chapter heads, film titles */
  --t-spoken: clamp(19px, 16.77px + 0.571vw, 25px);  /* 19 -> 25, words a film speaks, in the serif */
  --t-lead: clamp(17px, 15.89px + 0.286vw, 20px);    /* 17 -> 20, the paragraph under a heading */
  --t-body: 16px;
  --t-small: 14px;
  --t-micro: 12px;                                   /* the smallest size on the site, mono labels only */
  --rule-link: var(--dt-text-dim);                   /* a link's underline: 3:1 on the ground, quiet but seen */
}

/* ---- ground */
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dt-bg);
  color: var(--dt-text);
  font-family: var(--font-text);
  font-size: var(--dt-size-md);
  line-height: var(--dt-leading-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
/* Headings are the title card: Instrument Serif, one weight, and a tenth of the display sans's negative
   tracking, because the face is already drawn tight. Its cap height is taller than the sans's at the
   same size, so the sizes below did not move. */
h1, h2, h3 { margin: 0; font-family: var(--font-title); font-weight: 400; letter-spacing: var(--dt-tracking-title); text-wrap: balance; }
h1 { font-size: var(--t-title); line-height: 1.05; max-width: 20em; }
h2 { font-size: var(--t-h2); line-height: 1.1; max-width: 22em; }
h3 { font-size: var(--t-h3); line-height: var(--dt-leading-snug); }
code, kbd, pre, .mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }
code { font-size: 0.92em; }
button { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-family: var(--font-mono); font-size: 13px; font-weight: 400; letter-spacing: 0.01em; color: var(--dt-text-3); }
/* Under a kicker, a heading starts close: the two are one unit. */
.kicker + h1, .kicker + h2 { margin-top: 10px; }
.fine { font-size: var(--dt-size-sm); color: var(--dt-text-3); }
.sub { color: var(--dt-text-2); }

/* Focus: one visible ring everywhere, 3:1 against the ground. */
:focus-visible { outline: 2px solid var(--dt-focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: var(--gutter); top: -60px; padding: 10px 14px; background: var(--dt-paper); color: var(--dt-paper-ink); border-radius: 8px; font-weight: 500; z-index: 10; }
.skip:focus { top: 12px; }

/* Off the stage, sections appear once with a half-beat opacity cut and no transform. */
.js .cut { opacity: 0; }
.js .cut.in { opacity: 1; transition: opacity var(--cut) linear; }

/* ---- buttons: paper white, never the voice colour. */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--dt-border); background: transparent; color: var(--dt-text);
  font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--dt-focus); }
.btn.solid { background: var(--dt-paper); color: var(--dt-paper-ink); border-color: var(--dt-paper); }
.btn.solid:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* The sound control, one control shown in two places. Its waveform glyph is gold only while sound plays,
   and app.js scales each bar from the clip's measured loudness at the playhead. */
.wave { display: inline-flex; gap: 2.5px; align-items: center; height: 18px; }
.wave i { display: block; width: 2.5px; height: 14px; border-radius: 1.5px; background: currentColor; transform-origin: center; transform: scaleY(0.35); }
.wave i:nth-child(1), .wave i:nth-child(5) { transform: scaleY(0.3); }
.wave i:nth-child(2), .wave i:nth-child(4) { transform: scaleY(0.55); }
.wave i:nth-child(3) { transform: scaleY(0.8); }
[aria-pressed="true"] .wave { color: var(--dt-paper); }
/* A sound control's label holds its own cell, so a press never changes the control's width. */
.sound .lbl { display: inline-grid; justify-items: center; white-space: nowrap; }

/* ---- nav */
.nav { height: 64px; }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 24px; height: 24px; }
.nav nav { margin-left: auto; }
.nav ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--dt-text-2); }
.nav ul a { white-space: nowrap; padding: 6px 0; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--dt-text); }
/* Where you are, said by a hairline and not by colour alone. */
.nav ul small { color: var(--dt-text-3); font-size: var(--t-micro); margin-left: 6px; }
.nav ul a[aria-current] { text-decoration: underline; text-decoration-color: var(--dt-text-3); text-decoration-thickness: 1px; text-underline-offset: 8px; }

/* ---- hero. Stacked and centred: the promise, then room, then the film with the phrase being spoken
   under it, then the one line to install. GitHub and the licence are in the nav; what it costs is
   its own section further down. The whole stack fits the first screen of a 1440 x 900 laptop
   (founder, batch 4): the film takes the wrap's width, or the 16:9 width of the height left once
   everything else in the hero is counted (--hero-chrome, measured), whichever is smaller. A taller
   window gives the film more. */
.hero { padding: var(--s4) 0 var(--s8); overflow: clip; }
.hero .head { display: grid; justify-items: center; text-align: center; }
.hero .kicker { color: var(--dt-text-2); }
.hero h1 { margin-top: var(--s3); font-size: var(--t-display); line-height: 0.98; max-width: none; letter-spacing: -0.015em; }
.hero .sub { margin-top: var(--s3); font-size: var(--t-lead); max-width: 64em; color: var(--dt-text-2); text-wrap: balance; }
.hero .get { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2) var(--s5); margin-top: var(--s5); text-align: center; }
.hero .get .pill, .film-top .get .pill { margin-top: 0; max-width: 100%; }
.hero .get .fine { max-width: 46ch; }
/* The one solid control on the page is the one that installs it: the hero's Copy. The transport,
   the sound button and the link to /how are all outlined or plain, so the eye ends on the command. */
.hero .get .pill button { background: var(--dt-paper); color: var(--dt-paper-ink); }
.hero .get .pill button:hover { background: #fff; }
.hero .get .pill code { text-align: left; }
.hero .get .fine a, .hero .caption a { color: var(--dt-text-2); text-decoration: underline; text-decoration-color: var(--rule-link); text-underline-offset: 3px; }
.hero .get .fine a:hover, .hero .caption a:hover { color: var(--dt-text); }
/* ---- the command component. One pill holds every command the site shows: the hero's, the four in
   the install section, and the film pages'. It wraps rather than clips, because the one line is
   44 characters and a phone is 358 px wide. The prompt is written so a reader sees a shell, and is
   not selectable, so a hand-selection yields `curl …` and not `$ curl …`, which no shell runs.
   The copy button is appended by app.js into .copy, so a page with no script shows the command and
   no button that cannot do what its label says. */
.pill {
  margin-top: 18px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  min-height: 44px; padding: 5px 6px 5px 16px; max-width: 100%;
  border: 1px solid var(--dt-border); border-radius: 12px; background: var(--dt-surface); font-family: var(--font-mono); font-size: 14px;
}
.pill code { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.pill .p { color: var(--dt-text-3); user-select: none; -webkit-user-select: none; }
.pill .copy:empty { display: none; }
/* A part of a command that must not break across lines. */
.pill .nb { white-space: nowrap; }
.pill button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--dt-surface-2); color: var(--dt-text); font-size: 13px; font-weight: 500; cursor: pointer; }
.pill button:hover { background: var(--dt-border); }
/* The stage: the film at the wrap's full width, with room above it. A glow sits behind it, capped
   well under the film's own lightness, so the picture is always the brightest thing on the page. */
.stage {
  --hero-chrome: 486px; /* measured: everything in the hero but the film is 462 px at 1440 x 900 and 470 at 1920 x 1080 */
  --film-w: min(100%, max(560px, (100svh - var(--hero-chrome)) * 16 / 9));
  position: relative; margin: var(--hero-air) 0 0;
}
.stage .frame, .stage .saying, .stage .under { width: var(--film-w); margin-inline: auto; }
.screen { position: relative; display: grid; }
.screen::before {
  content: ""; position: absolute; inset: -18% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(251, 246, 238, 0.06), rgba(251, 246, 238, 0) 70%);
}
.frame {
  position: relative; z-index: 1; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px;
  background: var(--dt-bg); box-shadow: 0 0 0 1px rgba(251, 246, 238, 0.15), 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  width: 100%;
}
.frame video, .frame .poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--dt-bg); }
.frame .poster[hidden] { display: none; }
/* The sound control on the picture: the first thing a muted film needs, so it is large and says
   what it does. Paper, not gold: gold on this page means a landing and nothing else. It leaves with
   a short fade once sound is on, and comes back if sound goes off. It fades out, never in, so
   nothing waits on it. */
.frame .unmute {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(21, 17, 14, 0.86);
  border: 1px solid var(--dt-text-3); color: var(--dt-text); font-size: 15px; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: opacity 180ms linear, visibility 0s;
}
.frame .unmute:hover { background: rgba(21, 17, 14, 0.96); border-color: var(--dt-text-2); }
.frame .unmute svg { width: 18px; height: 18px; }
.frame .unmute .short { display: none; }
.sounding .frame .unmute { opacity: 0; visibility: hidden; transition: opacity 180ms linear, visibility 0s 180ms; }
.failed .frame .unmute { display: none; }
/* With no script, or no film data, nothing can play: the poster stays and the caption links to the film's page. */
.no-js .hero .transport, .no-js .frame .unmute, .nodata .transport, .nodata .frame .unmute { display: none; }
[data-sound] .on { display: none; }
.sounding [data-sound] .on { display: inline; }
.sounding [data-sound] .off { display: none; }
.transport .sound .spk { width: 16px; height: 16px; }
.sounding .transport .sound { color: var(--dt-text); border-color: var(--dt-text-3); }

/* The phrase under the film. One line of speech at a time, still: words light where they stand, a
   cue's words turn gold on their landing frame, and the measured offset sits under the cue. Lines
   share one grid cell, so the outgoing and incoming phrase crossfade in place. Set in the serif,
   the face every spoken word on the site takes. */
.saying { margin-top: var(--s3); }
.said-band { position: relative; display: grid; max-width: 1080px; margin: 0 auto; padding-bottom: var(--s4); text-align: center; }
.said-band .line { grid-area: 1 / 1; margin: 0; align-self: start; }
.said-band .line.probe { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; }
.said-band .who { display: block; margin-bottom: var(--s1); font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.01em; color: var(--dt-text-3); }
.said-band .said { display: block; font-family: var(--font-title); font-size: var(--t-spoken); line-height: 2.05; color: var(--dt-unsaid); text-wrap: balance; }
/* A long line carries its break as data: its two halves are each one piece, so a screen too narrow
   for the whole line breaks it where a captioner would (after a comma, before "and"), never after
   "the" or "in". On a wide screen the halves sit on one line. */
.said-band .half { display: inline-block; }
.said-band .w { cursor: pointer; }
.said-band .w.lit { color: var(--dt-text); }
/* The underline is under the cue's words, not its comma or full stop. */
.said-band .w.cue .u { text-decoration: underline; text-decoration-color: var(--dt-text-dim); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.said-band .w.landed { color: var(--dt-voice); }
.said-band .w.landed .u { text-decoration-color: var(--dt-voice); }
.said-band .ph { position: relative; display: inline-block; white-space: nowrap; line-height: 1.3; }
.said-band .tick {
  position: absolute; left: 0; top: calc(100% + 3px); display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: var(--t-micro); line-height: 1; letter-spacing: 0; color: var(--dt-text-3); white-space: nowrap;
}
.said-band .tick i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--dt-text-3); }
.said-band .ph.landed .tick { color: var(--dt-voice); }
.said-band .ph.landed .tick i { border-color: var(--dt-voice); background: var(--dt-voice); }
/* Two phrases never share the cell: the old one is gone in 90 ms, then the new one fades in, done
   before its first word is said (hero.js sets --in from the line's lead; a short lead cuts). */
.said-band .line.in { animation: line-in var(--in, 140ms) linear 90ms backwards; }
.said-band .line.out { animation: line-out 90ms linear forwards; pointer-events: none; }
@keyframes line-in { from { opacity: 0; } }
@keyframes line-out { to { opacity: 0; } }

/* The transport and the film's caption share a row; on a narrow film the caption takes its own. */
.hero .under { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s1) var(--s5); margin-top: var(--s1); }
.hero .under .transport { flex: 1 1 320px; margin-top: 0; }
.hero .caption { flex: 0 1 auto; font-size: var(--t-small); color: var(--dt-text-3); }
.transport { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.transport .ctl { width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1px solid var(--dt-border); background: transparent; color: var(--dt-text); cursor: pointer; display: inline-grid; place-items: center; }
.transport .ctl:hover { border-color: var(--dt-focus); }
.transport .ctl svg { width: 16px; height: 16px; }
.transport .ctl .i-play, .transport .ctl .i-replay, .transport .ctl .i-pause { display: none; }
.transport .ctl[data-state="playing"] .i-pause, .transport .ctl[data-state="paused"] .i-play, .transport .ctl[data-state="ended"] .i-replay { display: block; }
/* The voice loads only on press, so a cold cache or a slow host leaves a gap the viewer has to
   be able to see. The play glyph holds and dims rather than the control going blank. */
.transport .ctl[data-state="loading"] .i-play { display: block; opacity: 0.45; }
.transport .ctl[data-state="loading"] { cursor: progress; }
.transport .tc { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--dt-text-3); min-width: 8ch; font-variant-numeric: tabular-nums; }
.transport .sound { height: 40px; padding: 0 12px; min-width: 44px; justify-content: center; border-radius: 10px; }
.scrub { flex: 1; height: 40px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.scrub::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--dt-border); }
.scrub::-moz-range-track { height: 3px; border-radius: 2px; background: var(--dt-border); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: var(--dt-paper); border: 0; }
.scrub::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--dt-paper); border: 0; }

/* ---- sections */
/* The rule between sections is the width of the content, not of the window: a full-bleed hairline
   on a wide screen is twice the width of anything it separates and reads as a stray line. */
section.block { position: relative; padding: var(--section) 0; }
section.block::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - var(--gutter) * 2, var(--wrap));
  height: 1px; background: var(--dt-border);
}
section.block .lead { margin-top: var(--s4); color: var(--dt-text-2); font-size: var(--t-lead); max-width: var(--measure-lead); }

/* ---- films: one row of small cards, each a link to the film's own page. */
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--stack) var(--col-gap); margin: var(--head) 0 0; padding: 0; list-style: none; }
.card { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-content: start; }
.card img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--dt-surface); box-shadow: 0 0 0 1px rgba(251, 246, 238, 0.15); margin-bottom: 8px; }
.card b { align-self: baseline; font-family: var(--font-title); font-weight: 400; font-size: var(--t-h3); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .lbl { display: block; grid-column: 1; font-size: var(--dt-size-xs); color: var(--dt-text-3); }
.card .dur { grid-column: 2; grid-row: 2; align-self: baseline; font-family: var(--font-mono); font-size: var(--dt-size-xs); color: var(--dt-text-3); font-variant-numeric: tabular-nums; }
.card .from { grid-column: 1 / -1; margin-top: 4px; font-size: var(--dt-size-xs); color: var(--dt-text-2); }
.card:hover b { text-decoration: underline; text-decoration-color: var(--rule-link); text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---- how it works: five chapters scroll by on the left, the stage stays pinned on the right by native scroll alone. */
/* The run-out under the last chapter, so the panel is still pinned while chapter 5 is being read. It has to
   clear the panel's own height above the fold: anything shorter and sticky lets go mid-chapter. */
.how { --chapter-tail: 240px; }
.how .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: var(--head); align-items: start; }
.how .chapters { grid-column: 1 / span 5; }
.how .pinned { grid-column: 6 / -1; }
.chapters { display: grid; padding-bottom: var(--chapter-tail); }
/* Every chapter parks the stage on a moment only it shows, so the column is paid for by the chapter count,
   not by its height: 42vh is a screenful of reading between two different frames. The tail is what keeps the
   promise the sticky panel makes: the last chapter is the one with a new frame to show, and without a run-out
   below it the panel releases and slides off the top of the screen exactly as that frame arrives. The two come
   out of the same budget: the four chapters give up what the tail takes, so the section is no longer than before. */
.chapter { min-height: 42vh; display: grid; align-content: center; gap: 14px; padding: 24px 0; }
.chapter:first-child { min-height: 38vh; align-content: start; padding-top: 8px; }
.chapter .n { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; color: var(--dt-text-3); }
.chapter h2 { font-size: var(--t-h3); }
.panel {
  margin: 0; padding: 14px 16px; border: 1px solid var(--dt-border); border-radius: 10px; background: var(--dt-surface);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.55; color: var(--dt-text-2); overflow: auto;
}
.panel .fn { display: block; margin-bottom: 8px; font-size: var(--dt-size-xs); color: var(--dt-text-3); }
.panel pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.panel .hl { color: var(--dt-text); }
.panel .cue { color: var(--dt-text); }
.panel .t { color: var(--dt-text-3); }
.panel .ok { color: var(--dt-ok); }
.pinned { position: sticky; top: 24px; display: grid; gap: 16px; }
/* The deck itself, drawn at its own 1920 x 1080 and scaled to the frame (app.js sets --s). */
.stage-deck { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; transform: scale(var(--s, 0.4)); overflow: hidden; background: #15110e; }
.stage-deck .scene { position: absolute; inset: 0; }
.stage-deck .scene[hidden] { display: none; }
.stage-deck [data-in] { will-change: opacity, transform; }
.stagepin { display: contents; }
.pinned .frame { max-width: 100%; }
.pinned .verify { font-family: var(--font-mono); font-size: 13px; color: var(--dt-text-2); min-height: 20px; }
.pinned .verify b { font-weight: 500; color: var(--dt-text); }

/* Chapters 4 and 5 write on the stage. At 4 each picture carries the `data-in` it was authored with, the
   attribute the panel beside it quotes, and at 5 the same badge carries what `decktalk verify` measured for
   that landing. Sizes are in the deck's own 1920 px space, so they scale with the frame like the deck's labels.
   Colours come from the stage's own palette, which is fixed dark whichever scheme the page is in.
   Where a badge sits is the picture's business, so each picture carries its own corner rather than the badge
   rule carrying a list of exceptions: the wordmark is a full-bleed row and hangs its badge under its middle. */
.pinned .stage-deck .scene > [data-in] { --tag-x: 0; --tag-y: -58px; --tag-shift: 0; }
.pinned .stage-deck .scene > .mark { --tag-x: 50%; --tag-y: calc(100% + 10px); --tag-shift: -50%; }
.pinned .stage-deck.named .scene > [data-in]::after,
.pinned .stage-deck.measured .scene > [data-in][data-cue-ms]::after {
  position: absolute; left: var(--tag-x); top: var(--tag-y); transform: translateX(var(--tag-shift)); z-index: 2;
  padding: 0 16px; height: 48px; border-radius: 10px;
  font: 500 34px/48px var(--dt-font-mono); letter-spacing: 0.02em; white-space: nowrap;
}
.pinned .stage-deck.named .scene > [data-in]::after {
  content: attr(data-in);
  background: var(--dt-bg); color: var(--dt-text); box-shadow: 0 0 0 3px var(--dt-border);
}
.pinned .stage-deck.measured .scene > [data-in][data-cue-ms]::after {
  content: attr(data-cue-ms);
  background: var(--dt-paper); color: var(--dt-paper-ink); box-shadow: 0 0 0 3px var(--dt-bg);
}

.catchup { display: grid; gap: 12px; }
.picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: var(--dt-text-3); }
.picker [role="radio"] { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--dt-border); background: transparent; color: var(--dt-text-2); cursor: pointer; font-family: var(--font-mono); font-size: 13px; }
.picker [role="radio"][aria-checked="true"] { background: var(--dt-paper); color: var(--dt-paper-ink); border-color: var(--dt-paper); }
.transcript { font-family: var(--font-title); font-size: var(--t-spoken); line-height: 1.55; color: var(--dt-text-2); }
.transcript .w { display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 3px; }
.transcript .w:hover { color: var(--dt-text); }
.transcript:focus-within .w.cursor { outline: 2px solid var(--dt-focus); outline-offset: 2px; }
.transcript .w.said { color: var(--dt-text); }
.transcript .w.live { color: var(--dt-text); text-decoration: underline; text-decoration-color: var(--dt-paper); text-underline-offset: 5px; }
.transcript .phrase { text-decoration: underline; text-decoration-color: var(--dt-border); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.transcript .at { font-family: var(--font-mono); font-size: 11px; vertical-align: super; line-height: 0; margin-left: 2px; color: var(--dt-text-3); text-decoration: none; }
.transcript .at:hover { color: var(--dt-text); }
.transcript .at.live { color: var(--dt-voice); }
.catchup .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.catchup .row .btn { height: 36px; padding: 0 12px; font-size: 14px; }
.catchup .help { font-size: var(--dt-size-xs); color: var(--dt-text-3); }

/* ---- change a sentence */
.takes { display: grid; gap: 12px; margin-top: 28px; }
.take { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--dt-border); border-radius: 10px; background: var(--dt-surface); }
.take .btn { height: 36px; padding: 0 12px; font-size: 14px; }
.take .line { font-family: var(--font-title); font-size: var(--t-spoken); }
.take .line .rest { color: var(--dt-text-3); }
.take .line mark { background: none; color: var(--dt-text); text-decoration: underline; text-decoration-color: var(--dt-border); text-underline-offset: 4px; }
.take.after .line mark { color: var(--dt-text); text-decoration-color: var(--dt-paper); }
/* The hash is the take's cache key, so it says so: it is the reason the lanes below read "cached". */
.take .hash { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--dt-text-3); }
.take .hash b { font-weight: 400; color: var(--dt-text-2); }
.edit .files-note { margin-top: 16px; max-width: 92ch; }
/* The two disclosures: the diff and the build log. Native <details>, so they open with the script
   dead, and the marker is the only thing the summary borrows from the button style. */
.drop { margin-top: 10px; }
.drop > summary { display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 6px 2px; font-size: var(--dt-size-sm); color: var(--dt-text-3); cursor: pointer; list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::before { content: ""; width: 7px; height: 7px; flex: none; border-right: 1.5px solid currentcolor; border-bottom: 1.5px solid currentcolor; transform: rotate(-45deg); transition: transform var(--cut) linear; }
.drop[open] > summary::before { transform: rotate(45deg); }
.drop > summary:hover { color: var(--dt-text); }
.drop[open] > summary { color: var(--dt-text-2); }
/* The edit, file by file: the words that changed, with the words either side of them dimmed.
   The file name is a column on a wide screen and a line of its own on a phone. */
.diff { margin-top: 14px; display: grid; gap: 10px; list-style: none; padding: 0; }
.diff .file { display: grid; grid-template-columns: 148px 1fr; gap: 10px 14px; align-items: baseline; }
.diff .fn { font-family: var(--font-mono); font-size: 12px; color: var(--dt-text-3); }
.diff .rows { display: grid; gap: 6px; min-width: 0; list-style: none; padding: 0; margin: 0; }
.diff .row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; min-width: 0; }
/* --dt-text-dim is 3.02:1 and the generator calls it decorative by design; this is read, so it
   takes --dt-text-3 at 5.86:1. No opacity on top: it composites back down below 4.5:1. */
.diff .at { font-family: var(--font-mono); font-size: 11.5px; color: var(--dt-text-3); }
.diff .at i { font-style: normal; color: var(--dt-text-3); }
.diff .txt { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--dt-text-2); overflow-wrap: anywhere; }
.diff .ctx { color: var(--dt-text-3); }
.diff s { text-decoration-color: var(--dt-text-dim); color: var(--dt-text-3); }
.diff b { font-weight: 500; color: var(--dt-text); }

.lanes { display: grid; grid-template-columns: 90px repeat(4, 1fr); gap: 6px; margin-top: 24px; font-family: var(--font-mono); font-size: 12px; }
.lanes .hd { color: var(--dt-text-3); padding-bottom: 4px; }
.lanes .hd b { display: block; font-weight: 500; color: var(--dt-text-2); }
.lanes .rl { color: var(--dt-text-3); display: flex; align-items: center; }
.lanes .cell { height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--dt-surface); border: 1px solid var(--dt-border); color: var(--dt-text-2); }
.lanes .cell.live { background: var(--dt-surface-2); border-color: var(--dt-text-2); color: var(--dt-text); }
.lanes .cell.span { grid-column: 2 / -1; }
.js .lanes .cell { opacity: 0; }
.js .lanes.in .cell { opacity: 1; transition: opacity var(--cut) linear; transition-delay: calc(var(--k) * var(--stagger)); }
/* The rebuild's price, out of the log and onto the page: it is the claim, not a build artifact. */
.cost-line { margin-top: 22px; font-size: var(--dt-size-md); color: var(--dt-text-2); max-width: 78ch; }
.cost-line b { font-weight: 500; color: var(--dt-text); }
.cost-line code { font-family: var(--font-mono); font-size: 14px; color: var(--dt-text-3); }
/* A log line can be longer than the box that holds it, so each line is a block that wraps under a
   hanging indent. Nothing runs off the right edge of a phone, at any width, and the tab stop and
   its name stay for the case where something unbreakable still scrolls. */
.log:focus-visible { outline: 2px solid var(--dt-focus); outline-offset: 3px; }
.log { margin: 14px 0 0; padding: 16px 18px; border: 1px solid var(--dt-border); border-radius: 10px; background: var(--dt-surface); font-size: 12.5px; line-height: 1.55; color: var(--dt-text-2); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.log .ln { display: block; padding-left: 4.5ch; text-indent: -4.5ch; }
.log .p { color: var(--dt-text-3); }
.log .ln.gloss { margin-top: 10px; padding-left: 0; text-indent: 0; color: var(--dt-text-3); }
.log .live { color: var(--dt-text); }
.edit .after-line { margin-top: 28px; font-family: var(--font-title); font-size: var(--t-h3); line-height: 1.25; max-width: 40ch; }

/* ---- the proof on the landing page: the claim, three measured figures on the grid's thirds, each
   with the place it was measured, and the way to the explanation. */
.proof .figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s5); margin: var(--head) 0 0; }
.proof .figures > div { display: grid; grid-template-rows: auto auto 1fr; border-top: 1px solid var(--dt-border); padding-top: var(--s5); }
.proof .figures dt { font-family: var(--font-title); font-size: var(--t-figure); line-height: 1; letter-spacing: var(--dt-tracking-title); color: var(--dt-text); font-variant-numeric: lining-nums; }
.proof .figures dt small { font-size: 0.5em; margin-left: 0.08em; color: var(--dt-text-2); }
.proof .figures dd { margin: var(--s4) 0 0; max-width: 36ch; color: var(--dt-text-2); font-size: var(--t-body); }
.proof .figures .src { margin-top: var(--s3); align-self: end; font-family: var(--font-mono); font-size: var(--t-micro); line-height: 1.5; color: var(--dt-text-3); max-width: 44ch; }
.proof .more { margin-top: var(--head); }
.proof .more a { color: var(--dt-text); text-decoration: underline; text-decoration-color: var(--rule-link); text-underline-offset: 4px; }
.proof .more a::after { content: " \2192"; color: var(--dt-text-3); }
.proof .more a:hover { text-decoration-color: currentColor; }

/* ---- install: the numbered run in the first seven columns, what comes after it in the last four. */
.install-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: var(--head); align-items: start; }
.install-grid .run { grid-column: 1 / span 7; }
.install-grid .later { grid-column: 9 / -1; }
.run { counter-reset: step; display: grid; gap: var(--s6); margin: 0; padding: 0; list-style: none; }
.run li { counter-increment: step; display: grid; gap: var(--s3); position: relative; padding-left: 52px; }
.run li::before {
  content: counter(step); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--dt-border); font-family: var(--font-mono); font-size: 13px; color: var(--dt-text);
}
.run li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: calc(var(--s6) * -1 + 4px); width: 1px; background: var(--dt-border); }
.run .step { display: flex; align-items: baseline; gap: var(--s3); }
.run .step b { font-weight: 600; }
.run .when { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--dt-text-3); }
.run .pill { margin-top: 0; justify-self: stretch; width: 100%; justify-content: space-between; }
.run code { color: var(--dt-text); }
.run .say { color: var(--dt-text-2); font-size: var(--t-body); max-width: var(--measure); }
.run .say a, .after a { color: var(--dt-text); text-decoration: underline; text-decoration-color: var(--rule-link); text-underline-offset: 3px; }
.after-h { font-size: var(--t-h3); }
.after { display: grid; margin: var(--s4) 0 0; }
.after > div { display: grid; gap: var(--s1); padding: var(--s4) 0; border-top: 1px solid var(--dt-border); }
.after dt { font-weight: 600; font-size: var(--t-body); }
.after dd { margin: 0; color: var(--dt-text-2); font-size: var(--t-body); max-width: 54ch; }
#install .next { margin-top: var(--head); }

/* ---- what it needs and what it costs: a ledger of six rows, two columns wide, one on a phone. */
.needs .ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); margin: var(--head) 0 0; }
.needs .ledger > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--dt-border); }
.needs .ledger dt { font-weight: 600; color: var(--dt-text); }
.needs .ledger dd { margin: 0; color: var(--dt-text-2); max-width: 54ch; }
.needs .ledger a { color: var(--dt-text); text-decoration: underline; text-decoration-color: var(--rule-link); text-underline-offset: 3px; }
.tag { display: inline-block; margin-right: var(--s2); padding: 1px 7px; border: 1px solid var(--dt-border); border-radius: 999px; font-family: var(--font-mono); font-size: var(--t-micro); line-height: 18px; color: var(--dt-text-3); vertical-align: 1px; }

/* ---- footer */
.foot { border-top: 1px solid var(--dt-border); padding: 28px 0 40px; font-size: var(--dt-size-sm); color: var(--dt-text-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.foot a:hover { color: var(--dt-text); }
.foot .brand { font-size: 16px; color: var(--dt-text-2); }
.foot .brand svg { width: 20px; height: 20px; }
.foot .links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }

/* ---- the film pages, and the install band that ends /how too. The film and the command share one
   screen: a visitor who clicked a poster lands on the film, and the line that makes one is the first
   thing under it, still in view when the film ends. Only the top and bottom pad, so .wrap's gutter
   survives on a phone. */
.film-page { padding-bottom: var(--section); }
/* The film pages take the home hero's shape: the title centred, room, the film at the wrap's full
   width, then the one line centred under it. */
.film-top { padding-top: var(--s7); display: grid; }
.film-top .pitch { display: grid; justify-items: center; text-align: center; }
.film-top h1 { margin-top: var(--s3); }
.film-top .sub { margin-top: var(--s4); font-size: var(--t-lead); max-width: var(--measure-lead); color: var(--dt-text-2); }
.film-page .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s4); margin-top: var(--s5); font-size: var(--t-small); color: var(--dt-text-3); }
.film-top .stage { margin-top: var(--hero-air); }
.film-page video { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; background: var(--dt-surface); box-shadow: 0 0 0 1px rgba(251, 246, 238, 0.15); }
.film-top > .get { margin-top: var(--stack); display: grid; justify-items: center; text-align: center; }
.film-top .get .cta-band { display: grid; justify-items: center; gap: var(--s3); max-width: 100%; }
.film-top .get .pill { width: auto; max-width: 100%; }
/* Under the film: the script in the first seven columns at its reading measure, and how the film
   was built, then where to go next, in the last four, pinned while the script scrolls. */
.film-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: var(--section); align-items: start; }
.film-body .script { grid-column: 1 / span 7; margin-top: 0; }
.film-body .aside { grid-column: 9 / -1; position: sticky; top: var(--s5); display: grid; gap: var(--s5); }
.film-body .aside .edit h2 { font-size: var(--dt-size-xl); }
.film-body .aside .next { margin-top: 0; }
/* The one-line install, reusing the pill. The prompt is not selectable, so a hand-selection yields a
   line that runs, and the pill wraps rather than clipping on a phone. */
/* A nav Install that lands here leaves a breath above the band rather than a flush edge. */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; scroll-margin-top: 24px; }
.make { scroll-margin-top: 24px; }
.cta-band .pill { grid-area: auto; margin-top: 0; max-width: 100%; height: auto; min-height: 44px; padding: 6px 6px 6px 16px; }
.cta-band .fine { flex: 1 1 24ch; }
.make h2 { margin-bottom: 18px; }
.script { margin-top: 26px; display: grid; gap: 24px; max-width: 64ch; }
.script h3 { display: flex; gap: 12px; align-items: baseline; }
.script h3 .t { font-family: var(--font-mono); font-size: var(--t-micro); font-weight: 400; color: var(--dt-text-3); letter-spacing: 0; }
.script p { font-family: var(--font-title); font-size: var(--t-spoken); line-height: 1.5; color: var(--dt-text-2); }
.script p .beat { color: var(--dt-text-3); font-family: var(--font-mono); font-size: var(--t-micro); margin: 0 4px; }
.script p mark { background: none; color: var(--dt-text); text-decoration: underline; text-decoration-color: var(--dt-border); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.note { color: var(--dt-text-2); max-width: 64ch; }
.note.about { font-family: var(--font-text); font-size: 16px; }
.note a, .next a { color: var(--dt-text); text-decoration: underline; text-decoration-color: var(--rule-link); text-underline-offset: 3px; }
.edit h2 { margin-bottom: 14px; }
.edit p + p { margin-top: 12px; }
/* Every secondary page ends on the same line: where to go next, after the thing it came for. */
.next { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--dt-border); max-width: none; color: var(--dt-text-2); }

/* ---- tablets and narrow windows: one column. The promise, the line, then the film at the full
   width of the wrap; the install run above what comes after it; the film pages the same. */
@media (max-width: 1099px) {
  .install-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--section); }
  .install-grid .run, .install-grid .later { grid-column: 1; }
  .install-grid .run { max-width: 72ch; }
  .film-body { grid-template-columns: minmax(0, 1fr); row-gap: var(--section); }
  .film-body .script, .film-body .aside { grid-column: 1; position: static; }
  .film-body .aside { max-width: 64ch; }
}

@media (max-width: 860px) {
  /* the file name and the cue each take their own line, so nothing truncates */
  .diff .file { grid-template-columns: 1fr; gap: 6px; }
  .diff .row { grid-template-columns: 1fr; gap: 2px; }
  .proof .figures { grid-template-columns: 1fr; row-gap: var(--s4); }
  .proof .figures > div { grid-template-columns: minmax(112px, 30%) 1fr; grid-template-rows: auto auto; column-gap: var(--s4); align-items: baseline; padding-top: var(--s4); }
  .proof .figures dt { grid-row: 1 / span 2; }
  .proof .figures dd { margin: 0; }
  .proof .figures .src { margin-top: var(--s2); }
  .how .grid { grid-template-columns: 1fr; row-gap: var(--s4); }
  .how .chapters, .how .pinned { grid-column: 1; }
  /* The stage is pinned here too, at the top instead of beside. It used to be `position: static`
     above the chapters, so on a phone it scrolled away before the first chapter was read and the
     five frames it now draws all changed off screen: the whole reason for the mechanic, spent
     where nobody could see it. Chapters keep a screen-ish height so each one holds the stage long
     enough to be looked at, and the run-out still frees the panel after the last. */
  .how { --chapter-tail: 160px; }
  .chapter, .chapter:first-child { min-height: 58vh; padding: 18px 0; }
  /* Only the frame and its measurement pin. The catch-up widget is 350 px of transcript and
     controls, and pinning that too left a phone about 240 px in which to read the chapter the
     stage is illustrating. It goes after the chapters instead, where it reads as the invitation
     it is rather than as part of the explanation. */
  .pinned { display: contents; }
  .stagepin {
    display: grid; gap: 8px; order: -1; position: sticky; top: 8px; z-index: 1;
    background: var(--dt-bg); padding-bottom: 10px;
  }
  .catchup { order: 1; }
  /* One line, always: the pin's height is what the chapters scroll under, and a verify line that
     wrapped to two or three lines by section moved them 32 px on every pick. The line scrolls
     sideways instead, so every landing is still reachable, and chapter 5 lists them all. */
  .pinned .verify { font-size: 11.5px; white-space: nowrap; overflow-x: auto; }
  .lanes { grid-template-columns: 64px repeat(4, 1fr); font-size: 11px; }
  .needs .ledger { grid-template-columns: 1fr; }
  .needs .ledger > div { grid-template-columns: 1fr; gap: var(--s1); }
}

/* ---- phones. The film runs edge to edge between the promise and the line: read the promise,
   watch it, take the line. */
@media (max-width: 600px) {
  .nav { height: 56px; }
  /* GitHub is the link a developer on a phone looks for first, so the header keeps it beside
     Films; How it works is one tap down the page, and the footer keeps Docs. */
  .nav ul { gap: 18px; margin-left: auto; font-size: 14px; }
  .nav ul li:nth-child(2), .nav ul li:nth-child(3) { display: none; }
  .hero { padding-top: var(--s5); padding-bottom: var(--s7); }
  /* The film runs edge to edge; its words, transport and the command keep the gutter. */
  .hero .stage { margin-inline: calc(var(--gutter) * -1); }
  .hero .saying, .hero .under { padding: 0 var(--gutter); }
  .frame { border-radius: 0; box-shadow: none; }
  .hero .sub { line-height: 1.4; max-width: 34ch; }
  /* On a phone the picture is 220 px tall: the control keeps its tap size and gives up words. */
  .frame .unmute { left: 10px; bottom: 10px; height: 36px; padding: 0 12px 0 10px; gap: 7px; font-size: 13px; }
  .frame .unmute svg { width: 16px; height: 16px; }
  .frame .unmute .long { display: none; }
  .frame .unmute .short { display: inline; }
  .transport .tc { display: none; }
  .transport .sound { min-width: 0; padding: 0 10px; gap: 7px; }
  /* One shape for every pill at this width: the command takes the row and the button the far
     edge, top aligned, whether the command wraps to two lines or fits on one. */
  .hero .get .pill, .run .pill, .cta-band .pill, .film-top .get .pill { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; justify-self: stretch; width: 100%; font-size: 13px; }
  .hero .get .pill code, .run .pill code { overflow-wrap: break-word; }
  .run li { padding-left: 38px; }
  .run li::before { top: -2px; width: 26px; height: 26px; font-size: 12px; }
  .run li:not(:last-child)::after { left: 13px; top: 30px; }
  /* A list of rows on a phone: all three films in one glance, none alone on a row. */
  .reel { grid-template-columns: 1fr; gap: var(--s4); }
  .card { grid-template-columns: 132px 1fr auto; column-gap: 12px; }
  .card img { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .card b { grid-column: 2; grid-row: 1; }
  .card .dur { grid-column: 3; grid-row: 1; }
  .card .lbl { grid-column: 2 / -1; grid-row: 2; }
  .card .from { grid-column: 2 / -1; grid-row: 3; margin-top: 0; }
  .film-top .stage { margin-inline: calc(var(--gutter) * -1); }
  .film-page video { border-radius: 0; box-shadow: none; }
  .foot .links { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; gap: 10px 18px; margin-left: 0; }
}

/* ---- reduced motion: cuts become plain visibility, the waveform holds still, nothing plays unasked. */
@media (prefers-reduced-motion: reduce) {
  .js .cut, .js .lanes .cell { opacity: 1; transition: none; }
  .frame .unmute, .sounding .frame .unmute { transition: none; }
  .said-band .line.in, .said-band .line.out { animation: none; }
  .pinned { position: static; }
  .how { --chapter-tail: 0px; }
  .chapter { min-height: 0; }
}

/* ---- asked first: the questions a developer brings from a link, two columns, one on a phone. */
.asked .qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); margin: var(--head) 0 0; }
.asked .qa > div { padding: var(--s4) 0; border-top: 1px solid var(--dt-border); }
.asked .qa dt { font-weight: 600; color: var(--dt-text); }
.asked .qa dd { margin: var(--s1) 0 0; color: var(--dt-text-2); max-width: 60ch; }
.asked .qa a { color: var(--dt-text); text-decoration: underline; text-decoration-color: var(--rule-link); text-underline-offset: 3px; }
@media (max-width: 860px) {
  .asked .qa { grid-template-columns: 1fr; }
}
