/* The home page (/): the film that unfolds into the instrument (concept D), then the doors.
   Linked after app.css: its fonts, colour tokens, scales, header and footer are used as they are.
   Every rule here is scoped to the page (its root `.home`, or `html.home`, the class views/home.js
   puts on the root while the page is shown): sheets stay loaded for the rest of a visit, so nothing
   here may reach another page.

   Colour rule. The story (the pinned picture and the words beside it) is night in either scheme, as
   the Live map is (.night-scope): it is a picture of the sky, made of light, and its words sit on the
   same ground. From the doors down, the page follows the visitor's scheme. The header wears the
   night while the story fills the top half of the window (views/home.js), the visitor's scheme below.

   Type (type.md): Newsreader for the tagline, headings and big figures (tabular figures by default:
   no digit tricks); Atkinson Hyperlegible Mono for the instrument's small labels and the clock;
   Atkinson Hyperlegible Next for everything read and every control.

   Three layouts, by the window (views/home.js WIDE is the same query):
     wide        (min-width: 900px) and (min-height: 560px): the words in a column on the left, the
                 picture across the window behind them, held as the words scroll
     tall phone  (max-width: 899px) and (min-height: 560px): the picture pinned over the lower part
                 of the window (html.pin, once there is one), the words read above it
     short       (max-height: 559px), any width (a laptop at 200% zoom, a phone on its side): nothing
                 pinned; the picture is a band in the flow of the page, as tall as its read-outs and
                 controls need, so every one of them can be scrolled to */

.home {
  --d-space: #070b17;            /* the sky: a little deeper than the app's night page, still navy */
  --signal: #c2380d;             /* the one accent: only ever marks what a sentence is about */
  --gutter: 20px;
  --stage-h: max(56svh, 340px);  /* phone: the picture is pinned over this much of the window */
  --col: 100vw;                  /* wide: the width of the column of words */
  display: block; overflow-x: clip;
}
@supports (color: light-dark(#000, #fff)) { .home { --signal: light-dark(#c2380d, #ff6b3d); } }
@media (min-width: 900px) and (min-height: 560px) { .home { --gutter: 48px; --col: max(420px, 38vw); } }
@media (max-width: 899px) and (max-height: 740px) { .home { --stage-h: max(58svh, 340px); } }

/* Just enough to beat the app's element defaults, and no more: every class below still wins. */
.home :where(p, h2, ul, ol, dl, dd) { margin: 0; padding: 0; max-width: none; }
.home :where(ul, ol) { list-style: none; }
.home .num, .home .fig td, .home .read { font-variant-numeric: tabular-nums lining-nums; }
.home h2 { letter-spacing: 0; font-variant-numeric: lining-nums proportional-nums; }
/* The instrument's small labels: the mono, upper case, a little apart. */
.home .label, .home .hud-fig, .home .hud-clock-label, .home .hud-key-head {
  font: 500 0.75rem/1.3 var(--font-mono); font-feature-settings: "zero" 1; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
}
.home .fine { font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.home .nowrap { white-space: nowrap; }
/* The drawn arrows: the arrow characters are in none of the site's fonts. */
.home .arrow { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.14em; color: var(--signal); transition: transform 0.25s var(--ease-out); }
.home .ctl .arrow { color: currentColor; }

/* Whatever the keyboard reaches in the words is brought into view with room for its focus ring
   (not the picture's controls: they are in view already, and must never move the page). */
.home :is(.step, .sec) :is(a, button, summary, [tabindex]) { scroll-margin-bottom: 8px; }

/* ---- The header on this page --------------------------------------------------------------------- */
/* Over the sky the bar is the sky's colour, a breath short of opaque (a fully opaque bar over the
   canvas made the headless test browser's compositor drop the picture beneath it). */
html.home .topbar.night-scope { background: rgb(7 11 23 / 0.995); border-bottom-color: rgb(255 255 255 / 0.08); }
html.home .topbar.night-scope .quick-search input[type="search"] { background-color: transparent; }
/* A phone (or a short window) has no room for a bar that follows you down the page: here it scrolls
   away, and the picture carries "Doors" instead. */
@media (max-width: 899px), (max-height: 559px) {
  html.home .topbar { position: relative; }
  html.home { scroll-padding-top: 12px; }
}

/* ---- The story ------------------------------------------------------------------------------------ */
.home .story { position: relative; display: block; background: var(--d-space); color: var(--ink); }
.home .step { position: relative; z-index: 2; padding: 18px var(--gutter) 0; }
.home .step-in { max-width: 30rem; padding-bottom: 44px; }
/* Before the picture is pinned (no script, or no picture): the hero's words fill the room above it,
   so the picture stands exactly where it will be pinned and nothing moves when it is. */
.home .step-hero { min-height: calc(100svh - var(--topbar-h) - var(--stage-h)); padding-top: 14px; }
.home .step-hero .step-in { padding-bottom: 8px; }
.home .step-notyet .step-in { padding: 24px 0 64px; }

.home .stage {
  position: relative; z-index: 3; height: var(--stage-h); min-height: 330px;
  background: var(--d-space); overflow: clip; border-top: 1px solid rgb(255 255 255 / 0.08);
}
/* Pinned (tall phone): the picture holds the lower part of the window; the words read above it and
   slide away under it. One grid cell per step, the picture across all of them. */
@media (max-width: 899px) and (min-height: 560px) {
  html.pin .home[data-state="full"] .story { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(7, auto); }
  html.pin .home[data-state="full"] .step { grid-column: 1; }
  html.pin .home .step:nth-of-type(1) { grid-row: 1; } html.pin .home .step:nth-of-type(2) { grid-row: 2; }
  html.pin .home .step:nth-of-type(3) { grid-row: 3; } html.pin .home .step:nth-of-type(4) { grid-row: 4; }
  html.pin .home .step:nth-of-type(5) { grid-row: 5; } html.pin .home .step:nth-of-type(6) { grid-row: 6; }
  html.pin .home .step:nth-of-type(7) { grid-row: 7; }
  html.pin .home .stage { grid-column: 1; grid-row: 1 / -1; align-self: start; position: sticky; top: calc(100svh - var(--stage-h)); top: calc(100dvh - var(--stage-h)); }
  html.pin .home .step { min-height: 66svh; }
  html.pin .home .step-hero { min-height: calc(100svh - var(--topbar-h)); }
  html.pin .home .step-in { padding-bottom: 24px; }
  /* The hero's words stay put while the globe unfolds under them, until the next words arrive. */
  html.pin .home .step-hero .step-in { position: sticky; top: 12px; padding-bottom: 0; }
  /* The story's last words must clear the picture before it scrolls away with them. */
  html.pin .home .step:last-of-type .step-in { padding-bottom: calc(var(--stage-h) + 24px); }
  /* A link or button in the words that the keyboard reaches stops clear of the pinned picture
     (WCAG 2.4.11). Only the words' own: the picture's controls are on the picture, already in
     view, and must never make the page jump (a scroll padding on the whole page did). */
  html.pin .home .step :is(a, button, summary, [tabindex]) { scroll-margin-bottom: calc(var(--stage-h) + 12px); }
}
/* Short: nothing pinned, the picture a band in the flow, as tall as its read-outs need. */
@media (max-height: 559px) {
  .home .stage { height: auto; min-height: var(--stage-h); }
  .home .hud { position: relative; inset: auto; min-height: var(--stage-h); }
  .home .step-hero { min-height: 0; }
}

.home .stage-gl, .home .stage-marks { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.home .stage-gl { opacity: 0; transition: opacity 900ms var(--ease-out); }
.home .stage.is-live .stage-gl { opacity: 1; }
/* Before the picture starts (and where it cannot): a still planet, the same size and place. */
.home .stage-still {
  --gr: max(24px, min(33vw, (var(--stage-h) - 250px) / 2 - 4px));
  position: absolute; left: 50%; top: calc(100px + (var(--stage-h) - 250px) / 2); width: calc(var(--gr) * 2); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 78% 42%, #2a4f7c 0%, #16294a 22%, #0b152b 48%, #070d1c 70%);
  box-shadow: 0 0 0 1px rgb(120 170 255 / 0.10), 6px 0 34px -6px rgb(70 130 255 / 0.35);
  transition: opacity 900ms var(--ease-out);
}
.home .stage.is-live .stage-still { opacity: 0; }
/* Catalogue but no orbits yet: the still planet, and why it is empty. */
.home .stage-empty { min-height: 0; height: auto; display: grid; grid-template-columns: minmax(0, 1fr); padding: 22px var(--gutter) 26px; }
.home .stage-empty .stage-still { position: relative; left: auto; top: auto; transform: none; width: min(42vw, 180px); justify-self: center; margin-bottom: 18px; }
.home .stage-note { max-width: 32rem; justify-self: center; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.home .stage-note-title { color: var(--ink); font-weight: 650; margin-bottom: 4px !important; }

/* ---- The picture's read-outs ------------------------------------------------------------------------ */
.home .hud {
  position: absolute; inset: 0; display: grid; padding: 10px 14px;
  grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
  grid-template-areas: "fig fig" "count count" ". ." "caption caption" "key key" "clock clock" "controls controls";
  pointer-events: none;
}
.home .hud > * { pointer-events: auto; min-width: 0; }
.home .hud[data-mode="instrument"] {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "fig fig" "clock clock" ". ." "nav controls";
}
.home .hud[data-mode="instrument"] :is(.hud-count, .hud-caption, .hud-key, .ctl-film) { display: none; }
/* Words over the picture sit on a veil of the sky's own colour (unseen over the empty sky): 4.5:1
   for small words and far above 3:1 for the big figures, whatever passes behind. */
.home :is(.hud-fig, .hud-caption, .hud-key, .hud-clock, .hud-total-w, .hud-total-n, .hud-year > span) { background: rgb(7 11 23 / 0.86); box-shadow: 0 0 0 3px rgb(7 11 23 / 0.86); }

.home .hud-fig { grid-area: fig; justify-self: start; color: var(--ink-2); }
.home .hud-count { grid-area: count; display: flex; align-items: flex-end; gap: 14px; margin-top: 4px; text-shadow: 0 0 14px var(--d-space), 0 0 4px var(--d-space); }
/* The counters: Newsreader's figures are all one width, so they change in place; each box holds its widest value. */
.home .hud-year { white-space: nowrap; font: 300 clamp(3.2rem, 15.5vw, 3.75rem)/0.9 var(--font-display); letter-spacing: -0.015em; padding-top: 0.14em; min-width: 2.3em; }
.home .hud-total { display: grid; gap: 3px; padding-bottom: 0.3em; font-size: 0.8125rem; line-height: 1.25; color: var(--ink-2); }
.home .hud-total-n { justify-self: start; font: 400 1.75rem/1 var(--font-display); color: var(--ink); min-width: 3.3em; white-space: nowrap; }
.home .hud-total-w { justify-self: start; max-width: 11.5em; text-shadow: none; }

.home .hud-caption {
  grid-area: caption; position: relative; align-self: end; justify-self: start; max-width: 32em; min-height: 2.8em; padding-left: 12px;
  font-size: 0.9375rem; line-height: 1.4; color: var(--ink); text-wrap: pretty;
}
.home .hud-caption::before { content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: 2px; background: var(--signal); transform-origin: top; }
.home .hud-caption.is-new::before { animation: home-tick 420ms var(--ease-out); }
@keyframes home-tick { from { transform: scaleY(0); } }
.home .hud-caption:empty::before { display: none; }

.home .hud-key { grid-area: key; justify-self: start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin-top: 8px; padding: 0 2px; font-size: 0.75rem; line-height: 1.5; color: var(--ink-2); }
.home .hud-key-head { color: var(--muted); }
.home .hud-key-list { display: flex; flex-wrap: wrap; gap: 0 12px; }
/* A name too long for a phone's row: the short one is shown, the long one is still read. */
.home .key-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home .hud-key li { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.home .hud-key .num { color: var(--ink); font-weight: 650; min-width: 3.1em; }
.home .swatch { width: 7px; height: 7px; align-self: center; flex: none; }
.home .k-work { background: #bcd4ff; } .home .k-deb { background: #ff6b3d; } .home .k-rest { background: #8f98b8; }

.home .hud-clock { grid-area: clock; justify-self: start; margin-top: 6px; padding: 0 2px; font-size: 0.75rem; line-height: 1.4; color: var(--ink-2); white-space: nowrap; }
.home .hud-clock-time { font-family: var(--font-mono); font-feature-settings: "zero" 1; font-weight: 500; }
.home .hud-clock-label { margin-right: 4px; }
.home .stage.is-still .hud-clock { white-space: normal; max-width: 30em; }
.home .stage.is-still .hud-clock-time { font-family: var(--font-text); }

/* The controls: their row keeps its height before they appear, so nothing moves when they do. */
.home .hud-controls { grid-area: controls; justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; min-height: 44px; }
.home .ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px;
  font: 600 0.8125rem/1.1 var(--font-text); letter-spacing: 0.01em; color: var(--ink); white-space: nowrap;
  background: rgb(7 11 23 / 0.88); border: 1px solid var(--field-border); border-radius: 2px; cursor: pointer;
}
.home .ctl:hover { border-color: var(--ink); }
.home .ctl svg { flex: none; }
.home .howto { position: static; }
.home .howto summary { list-style: none; }
.home .howto summary::-webkit-details-marker { display: none; }
.home .howto summary::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translateY(2px) rotate(-45deg); }
.home .howto[open] summary { border-color: var(--ink); }
.home .howto[open] summary::after { transform: translateY(-2px) rotate(135deg); }
.home .howto-panel {
  position: absolute; left: 14px; right: 14px; bottom: calc(44px + 18px); z-index: 5; max-height: min(58svh, 430px); overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 16px 14px; background: rgb(24 32 56 / 0.992); border: 1px solid var(--border);
  font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); text-align: left;
}
.home .howto-head { margin: 12px 0 4px !important; font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.home .howto-panel li { padding: 5px 0; border-top: 1px solid var(--hairline); }

.home .hud-chapters { grid-area: controls; align-self: end; justify-self: end; display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.home .hud[data-mode="instrument"] .hud-chapters { grid-area: nav; justify-self: start; }
/* The chapter numbers: a wide screen's (a phone has "Doors" only: its chapters are a scroll away). */
.home .hud-chapters ol { display: none; align-items: center; gap: 2px; }
/* On the same veil as the other words over the picture (unseen over the empty sky). */
.home .hud-chapters ol a {
  display: inline-grid; place-items: center; min-width: 36px; min-height: 44px; padding: 0 4px; color: var(--ink-2); text-decoration: none;
  background: rgb(7 11 23 / 0.86);
  font: 500 0.8125rem/1 var(--font-mono); font-feature-settings: "zero" 1; border: 1px solid transparent; border-radius: 2px;
}
.home .hud-chapters ol a:hover { color: var(--ink); border-color: var(--field-border); }
.home .hud-chapters ol a[aria-current] { color: var(--d-space); background: var(--signal); }
.home .hud-todoors {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: 2px;
  color: var(--ink); background: rgb(7 11 23 / 0.88); font: 600 0.8125rem/1 var(--font-text); text-decoration: none; white-space: nowrap;
}
.home .hud-todoors:hover { border-color: var(--ink); }
.home .hud-todoors .arrow { color: currentColor; }
/* On a phone (or a short window), during the film, the controls and "Doors" share one row: the
   buttons show their first word, and the rest of their name is still read. */
@media (max-width: 899px), (max-height: 559px) {
  .home .hud .ctl-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .home .hud[data-mode="film"] { grid-template-areas: "fig fig" "count count" ". ." "caption caption" "key key" "clock clock" "controls nav"; }
  .home .hud[data-mode="film"] .hud-chapters { grid-area: nav; }
  .home .ctl { padding: 0 9px; gap: 6px; }
  .home .hud-controls { gap: 5px; }
}

/* ---- The hero's words ------------------------------------------------------------------------------ */
.home .tagline {
  margin: 0; font: 400 clamp(1.3125rem, 5.9vw, 1.5625rem)/1.2 var(--font-display); letter-spacing: 0; text-wrap: balance; color: var(--ink); max-width: 17em;
}
.home .lead-doors { margin-top: 14px; border-top: 1px solid var(--ink); max-width: 26rem; }
.home .door-main {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 4px 2px;
  border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none; font: 600 1.0625rem/1.2 var(--font-text);
}
.home .lead-doors li:last-child .door-main { border-bottom-color: var(--ink); }
.home .door-main .arrow { width: 1.15em; height: 1.15em; }
.home .door-main:hover .arrow, .home .door-list a:hover .arrow { transform: translateX(5px); }
.home .more-doors { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.home .more-doors a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--ink-2); text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.home .more-doors a:hover { color: var(--ink); text-decoration-color: var(--signal); }
.home .scroll-cue { display: none; }

/* ---- A chapter's words ------------------------------------------------------------------------------- */
.home .step h2 { margin-top: 10px; font: 400 clamp(1.5rem, 6.4vw, 1.9rem)/1.12 var(--font-display); text-wrap: balance; }
.home .big { margin-top: 10px; font: 300 clamp(3.2rem, 17vw, 4.4rem)/1 var(--font-display); letter-spacing: -0.015em; color: var(--signal); }
.home .say { margin-top: 8px; font-size: 1rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
/* A chapter's table: a closed "The table" on a phone (the page stays short), shown on a wide screen. */
.home .fig-fold { margin-top: 14px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.home .fig-fold > summary { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.home .fig-fold[open] { border-bottom: 0; }
.home .fig { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.3; }
.home .fig th, .home .fig td { padding: 7px 0; border-top: 1px solid var(--hairline); border-bottom: 0; vertical-align: baseline; background: none; font-size: inherit; color: var(--ink); white-space: normal; }
.home .fig tbody tr:last-child :is(th, td) { border-bottom: 1px solid var(--hairline); }
.home .fig th { text-align: left; font-weight: 400; padding-right: 10px; letter-spacing: 0; }
.home .fig th small { display: block; font-size: 0.75rem; color: var(--muted); }
.home .fig td { text-align: right; white-space: nowrap; padding-left: 14px; width: 1%; }
.home .fig td:last-child { color: var(--ink-2); min-width: 3.4em; }
.home .fig thead th { font: 600 0.75rem/1.3 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: right; border-top: 0; padding-left: 12px; }
.home .fig thead th:first-child { text-align: left; padding-left: 0; }
.home .fig .is-key :is(th, td) { font-weight: 650; color: var(--ink); }
.home .fig .is-key th::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--signal); transform: translateY(-1px); }
.home .step .fine { margin-top: 12px; }
.home .step a { color: var(--ink-2); text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.home .step a:hover { color: var(--ink); text-decoration-color: var(--signal); }
.home .step .fine a { display: inline-block; padding: 4px 0; }
.home .reads { margin-top: 16px; border-top: 1px solid var(--hairline); }
.home .reads > div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.home .reads dt { font: 500 0.75rem/1.55 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.home .reads dd { font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); margin: 0; }
.home .step-act { margin-top: 16px; }
.home .seventy { margin-top: 18px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.home .seventy > summary { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.9375rem; }
.home .milestones { border-top: 1px solid var(--hairline); }
.home .milestones li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.home .ms-y { font: 500 1rem/1.3 var(--font-display); color: var(--ink); }
.home .ms-line { color: var(--ink); }
.home .seventy .fine { padding: 10px 0 12px; margin: 0; }

/* ---- Wide: words on the left, the picture across the whole width behind them ---------------------------- */
@media (min-width: 900px) and (min-height: 560px) {
  .home .story { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); }
  .home .step {
    grid-column: 1; min-height: calc(100svh - var(--topbar-h)); display: flex; align-items: center; padding: 40px 40px 40px var(--gutter);
    /* The words' own veil, under every word of the column (they end before 94% of it): nothing in
       the picture can come within 4.5:1 of them. */
    background: linear-gradient(90deg, rgb(7 11 23 / 0.84) 0 94%, rgb(7 11 23 / 0));
  }
  .home .step:nth-of-type(1) { grid-row: 1; } .home .step:nth-of-type(2) { grid-row: 2; } .home .step:nth-of-type(3) { grid-row: 3; }
  .home .step:nth-of-type(4) { grid-row: 4; } .home .step:nth-of-type(5) { grid-row: 5; } .home .step:nth-of-type(6) { grid-row: 6; }
  .home .step:nth-of-type(7) { grid-row: 7; }
  .home .step-in, html.pin .home .step-in, html.pin .home .step-hero .step-in { position: static; width: 100%; padding-bottom: 0; }
  html.pin .home .step { min-height: calc(100svh - var(--topbar-h)); }
  .home .stage, html.pin .home .stage {
    grid-column: 1 / -1; grid-row: 1 / -1; align-self: start; z-index: 1; position: sticky; top: var(--topbar-h);
    height: calc(100svh - var(--topbar-h)); border-top: 0;
  }
  .home .stage-still {
    --pw: calc(100vw - var(--col)); --sh: calc(100svh - var(--topbar-h)); --gr: min(var(--pw) * 0.285, var(--sh) * 0.305);
    left: calc(var(--col) + var(--pw) * 0.58); top: 54%;
  }
  .home .stage-empty { grid-column: 2; grid-row: 1 / -1; height: calc(100svh - var(--topbar-h)); position: sticky; align-content: center; background: transparent; padding: 40px var(--gutter); }
  .home .stage-empty .stage-still { left: auto; top: auto; width: min(22vw, 260px); }
  .home .hud {
    left: var(--col); padding: 22px var(--gutter) 22px 14px;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "fig fig" "count count" ". ." "caption key" "clock controls";
  }
  .home .hud[data-mode="instrument"] { grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "fig nav" ". ." "clock controls"; }
  .home .hud[data-mode="film"] .hud-chapters { grid-area: fig; align-self: start; justify-self: end; margin-top: -8px; }
  .home .hud[data-mode="instrument"] .hud-chapters { grid-area: nav; align-self: start; justify-self: end; margin-top: -8px; }
  .home .hud-chapters ol { display: flex; }
  .home .hud[data-mode="film"] .hud-chapters ol { display: none; }
  .home .hud-chapters .hud-todoors { margin-left: 8px; }
  .home .hud-count { display: grid; justify-items: start; gap: 10px; margin-top: 8px; }
  .home .hud-year { font-size: clamp(5rem, min(9.5vw, 18svh), 9rem); padding-top: 0.12em; }
  .home .hud-total { font-size: 0.9375rem; padding: 0; gap: 6px; }
  .home .hud-total-w { max-width: none; }
  .home .hud-total-n { font-size: clamp(2rem, 2.9vw, 2.75rem); }
  .home .hud-caption { font-size: 1.0625rem; max-width: 24em; min-height: 4.3em; align-self: end; }
  .home .hud-key { align-self: end; justify-self: end; display: grid; gap: 3px; font-size: 0.8125rem; margin: 0; }
  .home .hud-key-list { display: grid; gap: 3px; }
  .home .hud-key li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; column-gap: 8px; }
  .home .hud-key .num { text-align: right; min-width: 3.6em; }
  .home .key-long { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: nowrap; }
  .home .key-short { display: none; }
  .home .hud-clock { align-self: end; margin-top: 16px; font-size: 0.8125rem; display: grid; gap: 2px; }
  .home .hud-controls { justify-self: end; justify-content: flex-end; margin-top: 16px; }
  .home .howto-panel { left: auto; right: var(--gutter); width: min(23rem, calc(100vw - var(--col) - 2 * var(--gutter))); bottom: calc(22px + 44px + 8px); }
  .home .ctl { padding: 0 14px; }

  .home .tagline { font-size: clamp(1.9rem, 2.75vw, 2.75rem); line-height: 1.14; max-width: 13.5em; }
  .home .lead-doors { margin-top: 30px; }
  .home .door-main { min-height: 56px; font-size: 1.1875rem; }
  .home .more-doors { margin-top: 6px; font-size: 0.9375rem; }
  .home .scroll-cue { display: flex; align-items: center; gap: 12px; margin-top: 34px; font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
  .home .cue-line { flex: 0 0 44px; height: 1px; background: var(--signal); transform-origin: left; animation: home-cue 2.4s cubic-bezier(0.6, 0, 0.2, 1) 2; }
  .home .step h2 { font-size: clamp(1.9rem, 2.7vw, 2.6rem); margin-top: 14px; }
  .home .big { font-size: clamp(4.4rem, 7.2vw, 7rem); margin-top: 16px; }
  .home .say { font-size: 1.0625rem; margin-top: 12px; }
  /* The table is shown: its fold's content is drawn whether open or not, and its button is not needed. */
  .home .fig-fold { margin-top: 22px; border: 0; }
  .home .fig-fold::details-content { content-visibility: visible; display: contents; }
  .home .fig-fold > summary { display: none; }
}
/* A narrower wide window: the film's controls get a row of their own, so the clock is never under them. */
@media (min-width: 900px) and (max-width: 1179px) and (min-height: 560px) {
  .home .hud[data-mode="film"] { grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; grid-template-areas: "fig fig" "count count" ". ." "caption key" "clock clock" "controls controls"; }
  .home .hud[data-mode="film"] .hud-controls { margin-top: 10px; }
}
@keyframes home-cue { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
@media (min-width: 900px) and (min-height: 560px) and (max-height: 760px) {
  .home .step { padding-top: 20px; padding-bottom: 20px; }
  .home .big { font-size: clamp(3.4rem, 11svh, 5rem); margin-top: 8px; }
  .home .fig-fold { margin-top: 14px; } .home .fig :is(th, td) { padding: 5px 0; }
  .home .lead-doors { margin-top: 20px; } .home .scroll-cue { margin-top: 20px; }
}
/* A small phone: everything a little tighter, so the doors still sit above the picture. */
@media (max-width: 899px) and (max-height: 740px) {
  .home .tagline { font-size: 1.1875rem; } .home .lead-doors { margin-top: 10px; } .home .door-main { min-height: 44px; font-size: 1rem; }
  .home .hud-year { font-size: 3rem; } .home .hud-total-n { font-size: 1.5rem; } .home .hud-caption { font-size: 0.875rem; }
}
@media (max-width: 359px) { .home .ctl { padding: 0 8px; gap: 5px; } .home .hud-key, .home .hud-key-list { gap: 0 9px; } .home .hud { padding-left: 10px; padding-right: 10px; } }

/* ---- Below the story: the page follows the visitor's scheme ------------------------------------------------ */
.home .wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.home .sec { position: relative; padding: 56px 0 64px; border-top: 1px solid var(--hairline); background: var(--page); }
.home .doors { border-top: 0; }
.home .sec h2 { margin-top: 10px; font: 400 clamp(2rem, 6.4vw, 3.25rem)/1.06 var(--font-display); text-wrap: balance; }
.home .sec a { text-underline-offset: 0.2em; }
.home .sec-head { position: relative; }
.home .sec-head .fine { margin-top: 10px; }
.home .sec-back { margin-top: 6px; font-size: 0.875rem; }
.home .sec-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-2); }
.home .sec-back .arrow { color: currentColor; }

/* The doors: an index, not a grid of cards. */
.home .door-list { margin-top: 22px; counter-reset: door; border-top: 1px solid var(--ink); }
.home .door-list li { counter-increment: door; border-bottom: 1px solid var(--hairline); }
.home .door-list a { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 3px 8px; align-items: baseline; padding: 15px 0 16px; color: var(--ink); text-decoration: none; }
.home .door-list a::before { content: counter(door, decimal-leading-zero); grid-row: 1 / span 3; font: 500 0.75rem/1.9 var(--font-mono); font-feature-settings: "zero" 1; letter-spacing: 0.07em; color: var(--muted); }
.home .door-list .q { font: 400 1.3125rem/1.2 var(--font-display); text-wrap: balance; }
.home .door-list .a, .home .door-list .to { grid-column: 2; }
.home .door-list .a { font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.home .door-list .to { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 650; color: var(--ink); }
.home .door-list a:hover { background: var(--surface-2); }
.home .door-list a:hover .q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--signal); }
.home .also { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-size: 0.9375rem; }
.home .also .label { width: 100%; margin-bottom: 2px; }
.home .also a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.home .place { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hairline); display: grid; gap: 12px; max-width: 44rem; color: var(--ink-2); }
.home .place .label { display: block; margin-bottom: 6px; }
.home .place strong { color: var(--ink); }
.home .place-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.home .place-act a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* The live figures: read-outs between rules. */
.home .readouts { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
.home .readouts > div { padding: 18px 0 20px; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); gap: 4px 16px; align-items: baseline; }
.home .readouts dt { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.home .readouts dd { display: grid; gap: 4px; margin: 0; }
.home .read { font: 400 2.2rem/1.05 var(--font-display); }
.home .read.read-none { font: 600 1rem/1.4 var(--font-text); letter-spacing: 0; color: var(--ink-2); }
.home .read-unit { font: 500 1rem/1 var(--font-text); color: var(--ink-2); }
.home .read-say { font-size: 0.9375rem; line-height: 1.42; color: var(--ink-2); }
.home .readouts a { font-size: 0.875rem; font-weight: 600; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }

/* What this is. */
.home .what-grid { display: grid; gap: 22px; }
.home .what h2 { font-size: clamp(1.75rem, 5.6vw, 2.6rem); line-height: 1.1; }
.home .what-text { display: grid; gap: 14px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 36rem; }
.home .what-text p:first-child { color: var(--ink); }

@media (min-width: 900px) {
  .home .sec { padding: 96px 0 104px; }
  .home .sec-head { padding-right: 14rem; }
  .home .sec-back { position: absolute; right: 0; bottom: 0; margin: 0; }
  .home .door-list { margin-top: 34px; }
  .home .door-list a { grid-template-columns: 4rem minmax(0, 1.15fr) minmax(0, 1fr) 11rem; gap: 24px; padding: 20px 12px 21px 0; }
  .home .door-list a::before { grid-row: auto; line-height: 2.6; padding-left: 12px; }
  .home .door-list .q { font-size: 1.625rem; }
  .home .door-list .a { grid-column: 3; }
  .home .door-list .to { grid-column: 4; font-size: 0.9375rem; justify-content: flex-end; }
  .home .also .label { width: auto; margin: 0; }
  .home .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; }
  .home .readouts > div { grid-template-columns: minmax(0, 1fr); padding: 22px 28px 26px 0; gap: 12px; align-content: start; }
  .home .readouts > div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--hairline); }
  .home .read { font-size: 3.2rem; letter-spacing: -0.015em; }
  .home .what-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .home .what-text { padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .home .stage-gl, .home .stage-still, .home .arrow { transition: none; }
  .home .cue-line, .home .hud-caption.is-new::before { animation: none; }
}
