:root {
  --c-surface: #F3E9D7;
  --c-surface-raised: #FBF5E9;
  --c-surface-sunken: #EBDFC9;
  --c-ink: #2B1B12;
  --c-ink-muted: #6A5546;
  --c-ink-faint: #9B8875;
  --c-ink-inverse: #FBF5E9;
  --c-line: rgba(207,192,163,0.7);
  --c-line-strong: #CFC0A3;
  --c-scrim: rgba(43,27,18,0.5);
  --c-scrim-strong: rgba(43,27,18,0.72);
  --c-shadow: rgba(43,27,18,0.2);
  --c-accent: #1F4B8E;
  --c-warn: #D9A03A;
  --c-danger: #B8492A;
  --c-accent-text: #1F4B8E;
  --c-warn-text: #8A5A12;
  --c-danger-text: #A63F22;
  --c-accent-wash: rgba(157,180,218,0.45);
  --c-warn-wash: rgba(217,160,58,0.18);
  --c-danger-wash: rgba(184,73,42,0.09);
  --c-accent-line: rgba(31,75,142,0.35);
  --c-warn-line: rgba(217,160,58,0.5);
  --c-danger-line: rgba(184,73,42,0.35);
  --c-on-accent: #FBF5E9;
  --c-wash: #9DB4DA;
  --c-rail-surface: #1F4B8E;
  --c-rail-ink: #FBF5E9;
  --c-rail-ink-muted: rgba(251,245,233,0.72);
  --c-rail-line: rgba(251,245,233,0.22);
  --c-rail-raised: rgba(251,245,233,0.1);
  --c-rail-danger: #F3B39C;
  --c-rail-warn: #F0C35C;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 14px;
  --sp-lg: 20px;
  --sp-xl: 28px;
  --sp-xxl: 40px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-pill: 999px;
  --f-read: 'Libre Caslon Text', Georgia, serif;
  --f-ui: Jost, 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --f-mono: ui-monospace, Menlo, Consolas, monospace;
  --t-display-family: var(--f-read);
  --t-display-size: 34px;
  --t-display-lh: 40px;
  --t-display-weight: 400;
  --t-display-ls: -0.4px;
  --t-title-family: var(--f-ui);
  --t-title-size: 28px;
  --t-title-lh: 32px;
  --t-title-weight: 500;
  --t-title-ls: -0.3px;
  --t-heading-family: var(--f-ui);
  --t-heading-size: 21px;
  --t-heading-lh: 26px;
  --t-heading-weight: 500;
  --t-heading-ls: -0.2px;
  --t-body-family: var(--f-read);
  --t-body-size: 16px;
  --t-body-lh: 25px;
  --t-body-weight: 400;
  --t-body-ls: 0px;
  --t-bodyLarge-family: var(--f-read);
  --t-bodyLarge-size: 18px;
  --t-bodyLarge-lh: 28px;
  --t-bodyLarge-weight: 400;
  --t-bodyLarge-ls: 0px;
  --t-label-family: var(--f-ui);
  --t-label-size: 14px;
  --t-label-lh: 18px;
  --t-label-weight: 600;
  --t-label-ls: 0px;
  --t-button-family: var(--f-ui);
  --t-button-size: 13px;
  --t-button-lh: 16px;
  --t-button-weight: 600;
  --t-button-ls: 1.3px;
  --t-button-transform: uppercase;
  --t-cardTitle-family: var(--f-ui);
  --t-cardTitle-size: 17px;
  --t-cardTitle-lh: 22px;
  --t-cardTitle-weight: 600;
  --t-cardTitle-ls: -0.2px;
  --t-labelSmall-family: var(--f-ui);
  --t-labelSmall-size: 12px;
  --t-labelSmall-lh: 15px;
  --t-labelSmall-weight: 600;
  --t-labelSmall-ls: 0px;
  --t-eyebrow-family: var(--f-ui);
  --t-eyebrow-size: 11px;
  --t-eyebrow-lh: 14px;
  --t-eyebrow-weight: 600;
  --t-eyebrow-ls: 1.6px;
  --t-eyebrow-transform: uppercase;
  --t-mono-family: var(--f-ui);
  --t-mono-size: 13px;
  --t-mono-lh: 17px;
  --t-mono-weight: 500;
  --t-mono-ls: 0px;
  --t-monoSmall-family: var(--f-ui);
  --t-monoSmall-size: 11px;
  --t-monoSmall-lh: 14px;
  --t-monoSmall-weight: 400;
  --t-monoSmall-ls: 0px;
  --t-cookTitle-family: var(--f-ui);
  --t-cookTitle-size: 24px;
  --t-cookTitle-lh: 28px;
  --t-cookTitle-weight: 500;
  --t-cookTitle-ls: -0.3px;
  --t-cookBody-family: var(--f-read);
  --t-cookBody-size: 17px;
  --t-cookBody-lh: 25px;
  --t-cookBody-weight: 400;
  --t-cookBody-ls: 0px;
  --t-cookMono-family: var(--f-ui);
  --t-cookMono-size: 15px;
  --t-cookMono-lh: 18px;
  --t-cookMono-weight: 600;
  --t-cookMono-ls: 0px;
  --min-target: 44px;
}

@font-face { font-family: 'Jost'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/jost-400.5a2728ff.ttf') format('truetype'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/jost-500.07aebfbb.ttf') format('truetype'); }
@font-face { font-family: 'Jost'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/jost-600.668ce71a.ttf') format('truetype'); }
@font-face { font-family: 'Libre Caslon Text'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/libre-caslon-text-400.912cda29.ttf') format('truetype'); }
@font-face { font-family: 'Libre Caslon Text'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/libre-caslon-text-400-italic.a32b7d83.ttf') format('truetype'); }
@font-face { font-family: 'Libre Caslon Text'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/libre-caslon-text-700.ddff4604.ttf') format('truetype'); }
/*
 * The website's stylesheet. Colours, spacing, radii and type come from the app's tokens
 * (tokens-css.ts writes them as custom properties ahead of this file); nothing here names a
 * hex. The visual language is STYLE.md §8: cream ground, paper surfaces, umber ink, grout
 * lines, cobalt for structure; controls are pills, cards are square; Jost for anything
 * scanned, Libre Caslon Text for anything read.
 *
 * Phone first: one column with a 16px gutter and no horizontal scroll; the wide layouts are
 * added at 760px.
 */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--c-surface);
  color: var(--c-ink);
  font-family: var(--f-read);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
}

a { color: var(--c-accent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }

/* ---- header and footer ------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--c-line); background: var(--c-surface-raised); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); min-height: 64px; }
/* The header is the horizontal lockup at its smallest: the bare mark, the plain tier at 32px,
   and the name in the wordmark's tracked caps. */
.brand { display: inline-flex; align-items: center; gap: var(--sp-sm); text-decoration: none; color: var(--c-ink); font-family: var(--f-ui); font-weight: 600; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: var(--sp-md); }
.site-nav a { font-family: var(--f-ui); font-size: var(--t-label-size); font-weight: 500; color: var(--c-ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
/* The pill in the nav keeps the button's own text: `.site-nav a` above outranks `.button` (a
   class and an element against one class) and was setting umber on cobalt, 1.9:1, on every page
   but the front. The stage header's outline variant (`.stage-header .button.outline`, three
   classes) still wins there. */
.site-nav .button { color: var(--c-on-accent); }

.site-footer { margin-top: auto; border-top: 1px solid var(--c-line); padding: var(--sp-xl) 0; color: var(--c-ink-muted); font-family: var(--f-ui); font-size: var(--t-label-small-size); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--sp-sm) var(--sp-lg); align-items: center; }
.site-footer a { color: var(--c-ink-muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .wordmark { margin-right: auto; color: var(--c-ink); }

/* ---- type ----------------------------------------------------------------- */

h1, h2, h3 { margin: 0; font-family: var(--f-ui); font-weight: 500; }
h1 { font-family: var(--f-read); font-weight: 400; font-size: var(--t-display-size); line-height: var(--t-display-lh); letter-spacing: var(--t-display-ls); }
h2 { font-size: var(--t-title-size); line-height: var(--t-title-lh); letter-spacing: var(--t-title-ls); }
h3 { font-size: var(--t-heading-size); line-height: var(--t-heading-lh); letter-spacing: var(--t-heading-ls); }
p { margin: 0; }
p + p, .prose p + p { margin-top: 1em; }
.lead { font-size: var(--t-body-large-size); line-height: var(--t-body-large-lh); }
.eyebrow { font-family: var(--f-ui); font-size: var(--t-eyebrow-size); line-height: var(--t-eyebrow-lh); font-weight: var(--t-eyebrow-weight); letter-spacing: var(--t-eyebrow-ls); text-transform: uppercase; color: var(--c-accent-text); }
.muted { color: var(--c-ink-muted); }
.ui { font-family: var(--f-ui); }

/* Long-form pages (the legal pages are Markdown). */
.prose h2 { margin-top: var(--sp-xxl); }
.prose h3 { margin-top: var(--sp-xl); }
.prose h2 + p, .prose h3 + p { margin-top: var(--sp-sm); }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-xl) 0; }
.prose code { font-family: var(--f-mono); font-size: 0.9em; }

/* ---- controls ------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--sp-xl);
  border-radius: var(--r-pill); border: 1.5px solid var(--c-accent);
  background: var(--c-accent); color: var(--c-on-accent);
  font-family: var(--f-ui); font-size: var(--t-button-size); font-weight: var(--t-button-weight); letter-spacing: var(--t-button-ls); text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.outline { background: transparent; color: var(--c-accent-text); }
.button.danger { background: transparent; color: var(--c-danger-text); border-color: var(--c-danger); }
.button:disabled { opacity: 0.5; cursor: default; }
.buttons { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }

/* Forms: the deletion page and the support page. A field is a label over a control; the
   control is the reading face, as the app's search field is. */
.field { display: block; margin-top: var(--sp-lg); }
.field > span { display: block; font-family: var(--f-ui); font-size: var(--t-label-size); font-weight: var(--t-label-weight); line-height: var(--t-label-lh); margin-bottom: var(--sp-xs); }
.field input, .field textarea {
  width: 100%; min-height: var(--min-target); padding: 0 var(--sp-md);
  border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-surface-raised);
  font: inherit; color: var(--c-ink);
}
.field textarea { min-height: 10rem; padding: var(--sp-sm) var(--sp-md); line-height: var(--t-body-lh); resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
/* The honeypot (pages/support.tsx): off the page for people, in the markup for bots. Not
   display:none, which the cruder bots skip too. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: var(--sp-lg); }
.note { margin-top: var(--sp-md); font-family: var(--f-ui); font-size: var(--t-label-size); line-height: 20px; }
.note.error { color: var(--c-danger-text); }
.note.ok { color: var(--c-accent-text); }
[hidden] { display: none !important; }

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

/* Top and bottom only: the shorthand would reset the gutter `.wrap` sets. */
.page { padding-top: var(--sp-xl); padding-bottom: var(--sp-xxl); }
.page-head { margin-bottom: var(--sp-xl); }
.page-head .eyebrow { margin-bottom: var(--sp-sm); }
.page-head p { margin-top: var(--sp-md); }

.hero { padding: var(--sp-xxl) 0; }
.hero .eyebrow { margin-bottom: var(--sp-md); }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-top: var(--sp-lg); max-width: 40ch; }
.hero .buttons { margin-top: var(--sp-xl); }

.feature { padding: var(--sp-xl) 0; border-top: 1px solid var(--c-line); }
.feature .eyebrow { margin-bottom: var(--sp-sm); }
.feature p { margin-top: var(--sp-md); max-width: 44ch; }
.feature figure { margin: var(--sp-lg) 0 0; }
.feature figure img { border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-surface-raised); }
.feature figcaption { margin-top: var(--sp-sm); font-family: var(--f-ui); font-size: var(--t-label-small-size); color: var(--c-ink-muted); }

.card { background: var(--c-surface-raised); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--sp-lg); }
.card + .card { margin-top: var(--sp-md); }
.card h2, .card h3 { margin: 0; }
.card p { margin-top: var(--sp-sm); }
.card .buttons { margin-top: var(--sp-md); }
.card .status { margin-top: var(--sp-sm); font-family: var(--f-ui); font-size: var(--t-label-size); color: var(--c-ink-muted); }

.facts { margin: var(--sp-lg) 0 0; padding: 0; list-style: none; font-family: var(--f-ui); font-size: var(--t-label-size); line-height: 22px; }
.facts li { padding: var(--sp-sm) 0; border-top: 1px solid var(--c-line); }
.facts li:last-child { border-bottom: 1px solid var(--c-line); }

/* ---- wide ----------------------------------------------------------------- */

@media (min-width: 760px) {
  .hero { padding: 72px 0; }
  .hero h1 { font-size: 48px; line-height: 54px; letter-spacing: -0.6px; }
  .feature { padding: var(--sp-xxl) 0; }
  .feature-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-xxl); align-items: center; }
  .feature.flip .feature-inner > .text { order: 2; }
  .feature figure { margin: 0; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
  .cards .card + .card { margin-top: 0; }
}

/* ---- the front page's stage ------------------------------------------------
   Walls of tiles, one board (client/stage.ts). The hero, the cards and the plate are in the
   HTML; the script sets the scroll length, builds the tiles, and shows each card in its turn.
   Without it (the `stage-on` class is the script's) the same markup is a plain column. */

.stage-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border: 0; background: transparent; --on: var(--c-ink); }
.stage-header .bar { position: absolute; inset: 0; background: var(--c-surface-raised); border-bottom: 1px solid var(--c-line); opacity: 0; }
.stage-header .wrap { position: relative; max-width: none; margin: 0; }
.stage-header .brand, .stage-header .site-nav a { color: var(--on); }
.stage-header .button.outline { border-color: var(--on); color: var(--on); background: transparent; }
.stage-header .mark { position: relative; width: 32px; height: 32px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; }
.stage-header .mark > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-header .mark svg { opacity: 0; }
@media (max-width: 899px) { .stage-header .bar { opacity: 1; } }

.stage-wrap { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--c-surface); }
.wall { position: absolute; inset: 0; contain: layout paint; }
.wall .t { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; overflow: hidden; contain: layout paint; }
.wall .f { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; }
.tile-defs { position: absolute; width: 0; height: 0; }

/* The hero: the brand's opening act on cobalt. The lockup, the headline and the way in on the
   left; three tickets hanging from a paper rail beside them when the hero is wide enough, under
   them when it is not, and not at all on a phone. The tickets are the feature graphic's, sized
   in em so one font-size scales the whole rail. */
.stage-hero { position: absolute; z-index: 40; left: 16px; right: 16px; top: 64px; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; container-type: inline-size; }
.stage-hero .inner { width: 100%; display: flex; flex-direction: column; gap: var(--sp-lg); }
.stage-hero .hero-text { display: flex; flex-direction: column; gap: var(--sp-md); max-width: 52ch; min-width: 0; flex: 1 1 auto; }
.stage-hero .lockup { display: grid; grid-template-columns: auto 1fr; column-gap: var(--sp-md); align-items: center; margin-bottom: var(--sp-xs); }
.stage-hero .lockup img { grid-row: 1 / span 2; width: 72px; height: 72px; }
.stage-hero .lockup-name { align-self: end; font-family: var(--f-ui); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-on-accent); }
.stage-hero .lockup-line { align-self: start; margin-top: 6px; font-family: var(--f-read); font-style: italic; font-size: 18px; line-height: 1.2; color: var(--c-rail-danger); }
.stage-hero h1 { font-family: var(--f-ui); font-weight: 600; font-size: clamp(28px, 3.2vw, 52px); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; color: var(--c-on-accent); }
.stage-hero .lead { color: var(--c-rail-ink-muted); max-width: 46ch; text-wrap: pretty; }
.stage-hero .buttons { margin-top: var(--sp-sm); }
.stage-hero .button { background: var(--c-surface-raised); border-color: var(--c-surface-raised); color: var(--c-accent-text); }
.stage-hero .button.outline { background: transparent; color: var(--c-on-accent); border-color: var(--c-on-accent); }

.stage-hero .tickets { display: none; flex: 0 0 auto; font-size: 11px; width: max-content; color: var(--c-ink); }
.stage-hero .tickets .rail { height: 1.5em; border-radius: 1em; background: var(--c-surface-raised); margin-bottom: 0.75em; }
.stage-hero .tickets .row { display: flex; align-items: flex-start; gap: 1.25em; padding: 0 1.6em; }
.stage-hero .ticket { display: flex; flex-direction: column; padding: 1em; }
.stage-hero .ticket.prep { width: 8em; min-height: 13.4em; background: var(--c-rail-danger); }
.stage-hero .ticket.oven { width: 9.4em; min-height: 21.25em; background: var(--c-surface-raised); }
.stage-hero .ticket.next { width: 8em; min-height: 9.4em; background: var(--c-rail-warn); }
.stage-hero .ticket .kicker { font-family: var(--f-ui); font-weight: 600; font-size: 0.69em; letter-spacing: 0.15em; text-transform: uppercase; }
.stage-hero .ticket.oven .kicker { color: var(--c-accent-text); }
.stage-hero .ticket .name { margin-top: 0.6em; font-family: var(--f-read); font-size: 1.19em; line-height: 1.2; }
.stage-hero .ticket .figure { margin-top: 0.6em; font-family: var(--f-ui); font-weight: 600; font-size: 1.375em; font-variant-numeric: tabular-nums; }
.stage-hero .ticket .figure.big { font-size: 1.875em; color: var(--c-accent-text); }
.stage-hero .ticket .step { font-family: var(--f-ui); font-size: 0.81em; line-height: 1.4; }
.stage-hero .ticket .step:first-of-type { margin-top: 0.8em; }
.stage-hero .checks { list-style: none; margin: 0.6em 0 0; padding: 0.4em 0 0; border-top: 1px solid var(--c-line-strong); font-family: var(--f-ui); font-size: 0.81em; line-height: 1.4; }
.stage-hero .checks li { position: relative; padding-left: 1.7em; margin-top: 0.5em; color: var(--c-ink-muted); }
.stage-hero .checks li::before { content: ''; position: absolute; left: 0; top: 0.15em; width: 1em; height: 1em; border-radius: 0.2em; border: 1.5px solid var(--c-line-strong); }
.stage-hero .checks li.done::before { background: var(--c-accent); border-color: var(--c-accent); }
.stage-hero .checks li.done::after { content: ''; position: absolute; left: 0.32em; top: 0.38em; width: 0.5em; height: 0.26em; border-left: 1.5px solid var(--c-on-accent); border-bottom: 1.5px solid var(--c-on-accent); transform: rotate(-45deg); }
.stage-hero .checks li.next { color: var(--c-ink); font-weight: 600; }
.stage-hero .checks li.next::before { border-color: var(--c-accent); }
/* Under the text on a wide screen whose hero is narrow, and only when the screen is tall enough
   to hold both; beside the text once the hero itself is wide enough for both. The hero's width
   is set by the script (the column of tiles takes the rest), so the second query is on the
   container, not the viewport. */
@media (min-width: 900px) and (min-height: 860px) {
  .stage-hero .tickets { display: block; }
}
@container (min-width: 800px) {
  .stage-hero .tickets { display: block; font-size: 12px; }
  .stage-hero .inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-xl); }
}
@media (max-width: 899px) {
  .stage-hero .lockup img { width: 56px; height: 56px; }
  .stage-hero .lockup-name { font-size: 22px; }
  .stage-hero .lockup-line { font-size: 16px; margin-top: 4px; }
}

.stage-cue { position: absolute; z-index: 40; left: 16px; bottom: 20px; display: flex; align-items: center; gap: 10px; opacity: 0; color: var(--c-rail-ink-muted); }
.stage-cue span { font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.stage-on .stage-cue { opacity: 1; }

/* A card on a wall, and the plate at the end: paper on a cobalt hairline, as the prototype's
   plate. Hidden until the script shows it; on a wide screen a card sits to one side so the
   wall shows. */
.stage-card, .stage-plate { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 70; opacity: 0; visibility: hidden; pointer-events: none;
  --card-max: 560px; width: calc(100% - 32px); max-width: var(--card-max); padding: var(--sp-xl) var(--sp-xl);
  background: var(--c-surface-raised); border: 1.5px solid var(--c-accent); border-radius: var(--r-sm);
  box-shadow: 0 26px 64px rgba(31, 75, 142, 0.28); }
.stage-card .eyebrow { margin-bottom: var(--sp-sm); }
.stage-card h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.stage-card p + p, .stage-card h2 + p { margin-top: var(--sp-md); }
.stage-card .shot { margin: var(--sp-lg) 0 0; overflow: hidden; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-surface); }
.stage-card .shot img { width: 100%; height: auto; }
/* Cut at a height that keeps the whole card on a short laptop screen; a capture's top is
   where the screen's chrome and its first rows are, which is the part that reads. */
.stage-card .shot-tablet { max-height: calc(100svh - 24rem); }
.stage-card .shot-phone { max-height: 40vh; }
.stage-card:has(.shot-tablet) { --card-max: 760px; }
.stage-card:has(.shot-phone) { --card-max: 720px; }
.stage-plate { display: flex; flex-direction: column; align-items: center; gap: var(--sp-md); text-align: center; padding: var(--sp-xl) var(--sp-xxl); }
.stage-plate .lead { font-size: var(--t-body-size); line-height: var(--t-body-lh); color: var(--c-ink-muted); }
@media (min-width: 900px) {
  /* A card's centre sits at a third or two thirds of the width, but never so far that its edge
     leaves the 16px gutter: at 1024px a 760px card centred at 34% began 32px off the left edge
     and cut the headline's first letters, and the right-hand cards ran off the right edge the
     same way, up to about 1165px. The clamp is the card's half width (its cap, or what the
     gutter leaves of the stage) in from either edge; past that width the thirds apply as before. */
  .stage-card { --half: calc(min(var(--card-max), 100% - 32px) / 2); }
  .stage-card[data-side="left"] { left: max(34%, calc(16px + var(--half))); }
  .stage-card[data-side="right"] { left: min(66%, calc(100% - 16px - var(--half))); }
  /* A phone capture stands beside the words, full height, cut at the card's bottom edge. */
  .stage-card:has(.shot-phone) { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: var(--sp-xl); align-items: start; }
  .stage-card:has(.shot-phone) .shot-phone { grid-column: 2; grid-row: 1 / span 4; margin: 0; max-height: 58vh; }
  .stage-card:has(.shot-phone) > :not(.shot-phone) { grid-column: 1; }
}

/* Without the script: one column, in reading order, under the fixed header. */
html:not(.stage-on) .stage { position: static; height: auto; overflow: visible; padding: 80px 0 40px; }
html:not(.stage-on) .wall, html:not(.stage-on) .stage-cue { display: none; }
html:not(.stage-on) .stage-hero { position: static; display: block; padding: var(--sp-xl) 16px; max-width: 64rem; margin: 0 auto; background: var(--c-accent); }
html:not(.stage-on) .stage-card, html:not(.stage-on) .stage-plate { position: static; translate: none; opacity: 1; visibility: visible; pointer-events: auto; margin: var(--sp-lg) auto 0; }

/* Narrow: the band at the top is cue enough, and the hero's buttons need the foot of the
   screen; the pill loses some padding so the brand, Support and the button share 360px. */
@media (max-width: 899px) {
  .stage-cue { display: none; }
}
@media (max-width: 479px) {
  .site-nav { gap: var(--sp-sm); }
  .site-nav .button { padding: 0 var(--sp-lg); }
}
