/* 2019 Camaro RS · Halcyon Motor Group (concept). One car, one stage, seven scenes, day or night.
   The page is complete as stills. When html has .live (set in the head: WebGL 2, motion allowed)
   each scene pins to the window over a live 3D stage (js/film.js) and scrolling moves the camera.
   Strict format, the same in every scene: label, claim, body, proof, action, in the same places,
   on a twelve-column grid with hairline rules. One unit (--u) keeps the type in proportion on any
   window. Day is paper and ink; html.night swaps the two. */
:root {
  --paper: #e8e5de; --ink: #0e0e0d; --dim: rgba(14, 14, 13, 0.56); --hair: rgba(14, 14, 13, 0.13); --card: rgba(244, 242, 236, 0.86);
  --acc: #b3121b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --u: min(100vw / 1440, 100svh / 900);
  --gut: clamp(18px, 2.8vw, 44px);
  --bar-h: 64px; --dock-h: 64px;
  --stack: 0;   /* 1 where the words stack under the car (narrow, tall windows); read by scenes/05 and 06 */
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
html.night { --paper: #050506; --ink: #f2f0ea; --dim: rgba(242, 240, 234, 0.56); --hair: rgba(242, 240, 234, 0.14); --card: rgba(12, 12, 14, 0.82); --acc: #ff4b3e; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: auto; transition: background-color 0.9s var(--ease); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color 0.9s var(--ease), color 0.6s var(--ease); }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; padding: 0; font-weight: inherit; }
ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-radius: 4px; }
.skip:focus { top: 12px; }
html:not(.live) .live-only { display: none !important; }

/* ---------- the stage ---------- */
/* the live car appears at once, under the loading picture, and the picture dissolves away on top of it:
   two layers fading at the same time would let the paper show through halfway and the car would dip.
   Without the picture (sent away, or its pictures not in yet) the car fades in on its own. */
#stage { position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; z-index: 0; opacity: 0; touch-action: pan-y; }
html.ready #stage { opacity: 1; }
html.live:not(.shown) #stage, html.away #stage { transition: opacity 1.1s var(--ease); }
/* The loading picture is scene 01's first live frame, put together at the window's own shape from
   stills/poster/ (baked by src/tools/bake-poster.mjs and build-poster.py, see src/tools/README.md), in three layers:
   1. the studio and the car, shown at the window's height and anchored where the camera's centre falls,
      (0.5 + ox) of the width: the car scales with the height (a fixed vertical field of view), so a
      picture baked at a wider shape lines up exactly at every narrower one;
   2. the giant word, by the same rule as js/look/word.js: 94% of the page's width but never taller than
      52% of the height nor wider than its 4090-pixel canvas, centred, its middle at wy of the height;
      masked where the car hides it;
   3. by night, the lens vignette, drawn at the window's own shape (the pictures are baked without it).
   The tall pictures follow tall() in js/film.js (narrower than 900 px, height above 0.9 of the width, and under 500 px wide or 680 px tall and more),
   where the camera has its own framing (ox 0, wy 0.29), and the phone car (tall, and a side under 600 px);
   the short ones follow short() (landscape phones and the other windows with the words left of the car), with a framing of their own too (wy 0.31).
   The lights in the pictures are half up, where the live intro starts (INTRO_FROM in js/film.js).
   It renders only for the live film (no download otherwise), shows once its pictures are in (.posted, set
   by the head script) and only at the top of the page (.away), and js/film.js removes it after the hand-over.
   The word layer is a real element (<i>), not ::after, so cqw resolves against .poster in every engine.
   "The window's height" above is 100svh, the frame the film is drawn for (measure() in js/film.js): the
   picture, the word and the mask are sized by it, while the element itself is 100lvh like the canvas, so on a
   phone the paper goes on under the picture where the canvas has more floor. */
.poster {
  --scene: url('stills/poster/wide-day.webp'); --mask: url('stills/poster/wide-mask.webp'); --word: url('stills/poster/word-day.webp');
  --ax: 53%; --wy: 0.345; --wa: 5.6545; --pw: 1vw;
  display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100lvh; z-index: 0;
  background: var(--paper) var(--scene) var(--ax) 0 / auto 100svh no-repeat;
  opacity: 0; transition: opacity 0.6s cubic-bezier(0.45, 0, 0.55, 1); pointer-events: none;
}
/* the page's width without a classic scrollbar, as the live canvas has it (1vw counts the scrollbar) */
@supports (width: 1cqw) { .poster { container-type: inline-size; --pw: 1cqw; } }
.poster > i {
  --ww: min(calc(94 * var(--pw)), calc(52svh * var(--wa)), 4090px);
  position: absolute; inset: 0;
  background: var(--word) no-repeat; background-size: var(--ww) auto;
  background-position: 50% calc(var(--wy) * 100svh - var(--ww) / var(--wa) / 2);
  -webkit-mask: var(--mask) var(--ax) 0 / auto 100svh no-repeat; mask: var(--mask) var(--ax) 0 / auto 100svh no-repeat;
}
html.night .poster { --scene: url('stills/poster/wide-night.webp'); --word: url('stills/poster/word-night.webp'); }
html.night .poster::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle farthest-corner at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.004) 55%, rgba(0,0,0,0.015) 60%, rgba(0,0,0,0.036) 65%, rgba(0,0,0,0.065) 70%, rgba(0,0,0,0.102) 75%, rgba(0,0,0,0.144) 80%, rgba(0,0,0,0.19) 85%, rgba(0,0,0,0.235) 90%, rgba(0,0,0,0.273) 95%, rgba(0,0,0,0.297) 100%, rgba(0,0,0,0.3) 105%);
}
html.live .poster { display: block; }
html.live.posted .poster { opacity: 1; }
html.live.ready .poster, html.live.away .poster { opacity: 0; transition: opacity 1.1s var(--ease); }
/* sent away before it ever showed (a link into another scene): not drawn, so not downloaded */
html.live.away:not(.posted) .poster { display: none; }
/* wider than 2.05: the widest picture (up to 3.6; past that the sides are plain paper, as live) */
@media (min-aspect-ratio: 41/20) {
  .poster { --scene: url('stills/poster/ultra-day.webp'); --mask: url('stills/poster/ultra-mask.webp'); }
  html.night .poster { --scene: url('stills/poster/ultra-night.webp'); }
}
/* tall windows (tall() in js/film.js) with the full car: tablets upright, up to 10/9 */
@media (max-width: 899.98px) and (max-aspect-ratio: 10/9) {
  .poster { --scene: url('stills/poster/tall-wide-day.webp'); --mask: url('stills/poster/tall-wide-mask.webp'); --ax: 50%; --wy: 0.29; }
  html.night .poster { --scene: url('stills/poster/tall-wide-night.webp'); }
}
/* tall windows with the phone car (js/film.js loads it when a side is under 600 px), up to 10/9 */
@media (max-width: 599.98px) and (max-aspect-ratio: 10/9), (max-width: 899.98px) and (max-height: 599.98px) and (max-aspect-ratio: 10/9) {
  .poster { --scene: url('stills/poster/tall-lite-day.webp'); --mask: url('stills/poster/tall-lite-mask.webp'); }
  html.night .poster { --scene: url('stills/poster/tall-lite-night.webp'); }
}
/* and phones proper, up to 3/5: a narrower picture, so fewer bytes */
@media (max-width: 599.98px) and (max-aspect-ratio: 3/5) {
  .poster { --scene: url('stills/poster/tall-narrow-day.webp'); --mask: url('stills/poster/tall-narrow-mask.webp'); }
  html.night .poster { --scene: url('stills/poster/tall-narrow-night.webp'); }
}
/* tall() is strict (height above 0.9 of the width) and max-aspect-ratio is not: exactly 10/9 is not tall. Under
   900 px wide that is a words-left window, and the short set below takes it over from this one */
@media (max-width: 899.98px) and (aspect-ratio: 10/9) {
  .poster { --scene: url('stills/poster/wide-day.webp'); --mask: url('stills/poster/wide-mask.webp'); --ax: 53%; --wy: 0.345; }
  html.night .poster { --scene: url('stills/poster/wide-night.webp'); }
}
/* words left of the car on a small window (short() in js/film.js: not tall(), and under 900 px wide or under
   470 px tall; the same windows as "words left" in the shape map below): scene 01 stands the car further
   back and higher there, its word at 0.31 of the height, so they have a set of their own, baked 3.0 wide (a window under 470 px tall and wider than that, 1440 x 460,
   gets the same set and its sides end before the window's) */
@media (max-width: 899.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-width: 899.98px) and (max-height: 679.98px), (max-height: 469.98px) and (min-aspect-ratio: 10/9) {
  .poster { --scene: url('stills/poster/short-day.webp'); --mask: url('stills/poster/short-mask.webp'); --ax: 53%; --wy: 0.31; }
  html.night .poster { --scene: url('stills/poster/short-night.webp'); }
}
/* squat (squat() in js/film.js; the shape map below has the four bands in words): a desktop window where
   scene 01's name would stand under the car's nose. Scene 01 frames the car as on a short window there, so
   the loading picture is the short set (scenes/01-arrival.css moves --word-mid for the same windows). */
@media (min-width: 900px) and (max-width: 1023.98px) and (min-height: 470px) and (max-height: 799.98px) and (max-aspect-ratio: 19499/10000), (min-width: 1024px) and (max-width: 1279.98px) and (min-height: 470px) and (max-height: 859.98px) and (max-aspect-ratio: 19499/10000), (min-width: 1280px) and (max-width: 1419.98px) and (min-height: 470px) and (max-height: 899.98px) and (max-aspect-ratio: 19499/10000), (min-width: 1420px) and (min-height: 470px) and (max-height: 899.98px) and (max-aspect-ratio: 15999/10000) {
  .poster { --scene: url('stills/poster/short-day.webp'); --mask: url('stills/poster/short-mask.webp'); --ax: 53%; --wy: 0.33; }
  html.night .poster { --scene: url('stills/poster/short-night.webp'); }
}
main { position: relative; z-index: 2; }
.rules { position: fixed; inset: 0 var(--gut); z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.rules i { border-left: 1px solid var(--hair); transition: border-color 0.6s var(--ease); }
.rules i:nth-child(4) { border-right: 1px solid var(--hair); }
.rules i:nth-child(5) { display: none; }
@media (max-width: 899px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) { .rules { grid-template-columns: repeat(2, 1fr); } .rules i:nth-child(n + 3) { display: none; } .rules i:nth-child(2) { border-right: 1px solid var(--hair); } }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar-h); padding: 0 var(--gut); display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); }
/* over the price card, and on the plain page without the film, the bar needs ground to stand on */
body[data-scene="listing"] .bar, html:not(.live) .bar { background: color-mix(in srgb, var(--paper) 80%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bar { transition: background-color 0.4s var(--ease); }
.brand { display: flex; flex-direction: column; gap: 7px; text-decoration: none; }
.brand b { font: 600 15px/1 var(--sans); letter-spacing: -0.01em; }
.brand span { font: 400 9.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 7px; }
.brand span i { width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.links { margin-left: auto; display: flex; gap: clamp(12px, 1.8vw, 28px); }
.links a { font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--dim); padding: 12px 0; transition: color 0.25s var(--ease); }
.links a:hover, .links a[aria-current] { color: var(--ink); }
@media (max-width: 1099px) { .links { display: none; } .bar .btn { margin-left: auto; } }
/* the smallest phones: a slimmer button, so the name keeps to two lines beside it */
@media (max-width: 359.98px) { .bar { gap: 10px; } .bar .btn { padding: 0 14px; letter-spacing: 0.08em; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid var(--hair); border-radius: 999px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.5s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn b { font-weight: 500; color: var(--acc); }

/* ---------- the dock: where you are, day or night, how far ---------- */
.dock { position: fixed; inset: auto 0 0; z-index: 20; height: var(--dock-h); padding: 0 var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease) 0.3s; }
html.ready .dock { opacity: 1; }
.dock > * { pointer-events: auto; }
.count { display: flex; align-items: baseline; gap: 8px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.count b { font: 500 13px/1 var(--mono); color: var(--ink); letter-spacing: 0.06em; }
.count em { font-style: normal; color: var(--ink); margin-left: 10px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 18px; border-radius: 999px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.seg button i { width: 6px; height: 6px; border-radius: 50%; background: #8f7cff; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.scrollhint { justify-self: end; display: flex; align-items: center; gap: 14px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.scrollhint i { position: relative; width: clamp(60px, 9vw, 130px); height: 1px; background: var(--hair); }
.scrollhint i b { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
/* over the price card the dock needs ground to stand on, and the scroll hint has done its job */
.dock::before { content: ''; position: absolute; inset: -28px 0 0; z-index: -1; background: linear-gradient(to top, var(--paper) 52%, transparent); opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none; }
body[data-scene="listing"] .dock::before { opacity: 1; }
body[data-scene="listing"] .scrollhint { visibility: hidden; }
@media (max-width: 899px), (max-height: 469.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-height: 469.98px) { .dock { grid-template-columns: auto 1fr; } .scrollhint span { display: none; } .scrollhint { order: 3; display: none; } .seg { justify-self: end; } .count em { display: none; } }

/* ---------- loader: a counter, bottom right, then the lights ---------- */
/* The counter waits in the dock's band at the bottom right: the place on the first screen that is empty
   until the car is lit (the dock shows only then, and scene 01's words end above the band). It is sized to
   the band (--ln) and centred in it, and the dock waits for it to leave. It steps out of the way where
   that band is not empty: when the visitor has left scene 01 (html.far, set in the head: a link into
   another scene, a restored or long scroll; it comes back with them), and on short windows narrower than
   500 px that are not wider than 10/9, where the words still stack and scene 01's reach down into the band
   (measured: below about 470 px of height at 480 px wide). There the drawn version keeps only its hairline,
   at the window's foot or, on those short windows, under the bar (src/fx/loader.css). Landscape phones (short
   and wider than 10/9) set the words beside the car and scene 01's end above the band (src/tools/band.mjs),
   so the counter stays there. */
.loader { --ln: calc((var(--dock-h) - 14px) / 0.9); position: fixed; right: var(--gut); bottom: calc((var(--dock-h) - 0.9 * var(--ln)) / 2); z-index: 30; display: none; align-items: baseline; gap: 14px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); transition: opacity 0.6s var(--ease); pointer-events: none; }
.loader b { font: 500 var(--ln)/0.9 var(--sans); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
html.live .loader { display: flex; }
html.live.ready .loader { opacity: 0; }
.loader > span:first-child, .loader > b { transition: opacity 0.35s var(--ease); }
html.live.far .loader > span:first-child, html.live.far .loader > b { opacity: 0; }
@media (max-width: 499.98px) and (max-height: 469.98px) and (max-aspect-ratio: 1111/1000) { html.live .loader > span:first-child, html.live .loader > b { opacity: 0; } }
html.snap .loader, html.snap .loader * { transition: none !important; }
/* the dock takes the band only once the plain counter has faded from it (the drawn one: src/fx/loader.css) */
html.live.ready:not(.far) .dock { transition-delay: 0.6s; }
/* and takes presses only once it starts to come in (.docked, set by js/film.js; the drawn counter: .fxl-clear), so a tap on the counter is not a press of the switch under it */
html.live.ready:not(.docked) .dock:not(:focus-within) > * { pointer-events: none; }
/* a keyboard that reaches the dock while it waits shows it at once (and the counter steps aside) */
html.live.ready .dock:focus-within { transition-delay: 0.12s; transition-duration: 0.3s; }
/* Until the car is lit the dock is not there to be pressed by a stray tap. A keyboard that reaches it shows
   it, only the switch (the count and the scroll hint are not set yet; ground under it over another scene), and a press
   then is kept (js/ui.js). The counter steps aside while it is shown and comes back once it has gone. */
html.live:not(.ready) .dock { transition-duration: 0.3s; transition-delay: 0s; }
html.live:not(.ready) .dock > * { pointer-events: none; }
html.live:not(.ready) .dock .count, html.live:not(.ready) .dock .scrollhint { visibility: hidden; }
html.live:not(.ready) .dock:focus-within { opacity: 1; transition-delay: 0.12s; }   /* just after the counter has stepped aside */
html.live:not(.ready) .dock:focus-within > * { pointer-events: auto; }
html.live.far:not(.ready) .dock:focus-within::before { opacity: 1; }               /* ground over another scene's words; scene 01's stay clear */
html.live:not(.ready) .loader { transition-delay: 0.3s; }
html.live:has(.dock:focus-within) .loader { opacity: 0; transition-delay: 0s; transition-duration: 0.15s; }
/* words to keep whole */
.nw { white-space: nowrap; }

/* ---------- a scene: strict slots ---------- */
.sc { position: relative; --e: 1; --p: 0; --x: 0; }
html.live .sc { height: calc(var(--len, 2.2) * 100svh); }
.pin { position: relative; min-height: 100svh; }
html.live .pin { position: sticky; top: 0; height: 100svh; overflow: clip; }
.still { width: 100%; height: auto; }
html.live .still { display: none; }
.grid { position: relative; padding: calc(var(--bar-h) + 18px) var(--gut) 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(10px, 1.4vw, 24px); row-gap: calc(22 * var(--u)); align-content: start; }
html.live .grid { position: absolute; inset: 0; padding-bottom: calc(var(--dock-h) + 22px); grid-template-rows: auto 1fr auto auto auto; align-content: stretch; }
.grid > * { grid-column: 1 / span 5; min-width: 0; }
.lab { grid-row: 1; font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); display: flex; gap: 12px; }
.lab .n { color: var(--ink); }
.claim { grid-row: 2; align-self: end; font: 700 calc(96 * var(--u))/0.9 var(--sans); letter-spacing: -0.04em; text-wrap: balance; }
.claim .ln { display: block; }
.claim em { font: italic 400 1.06em/0.9 var(--serif); letter-spacing: -0.02em; }
.body { grid-row: 3; max-width: 36ch; font-size: clamp(15px, calc(17 * var(--u)), 19px); line-height: 1.45; color: var(--dim); }
.body .lead { color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.proof { grid-row: 4; }
.act { grid-row: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 44px; }
.hint { font: 400 10.5px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.hint i { width: 22px; height: 1px; background: var(--acc); }
/* the words arrive with their scene and leave with it */
html.live .sc .grid > * { opacity: calc((var(--e) - 0.55) * 3 - var(--x) * 3); transform: translate3d(0, calc((1 - var(--e)) * 40px - var(--x) * 40px), 0); will-change: opacity, transform; }
/* a scene the film has not switched on takes no presses; until the film draws its first frame (.filming,
   js/film.js) every scene takes them, as on the plain page (the price card on a slow line) */
html.live.filming .sc:not(.on) .grid { pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(18 * var(--u)) clamp(14px, 2vw, 32px); }
.stats p { border-top: 1px solid var(--hair); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font: 600 calc(54 * var(--u))/0.95 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats b small { font: 500 0.42em/1 var(--sans); letter-spacing: 0; margin-left: 4px; color: var(--dim); }
.stats span { font: 400 10px/1.35 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* a note pinned to a point on the car: a scene places it each frame with a transform */
.note { position: absolute; left: 0; top: 0; z-index: 1; font: 400 10px/1.25 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.note b { display: block; font-weight: 500; }
.note span { color: var(--dim); }
html:not(.live) .note { display: none; }

/* narrow windows: a slimmer bar and dock, and the brand without its line of small type */
@media (max-width: 899px) {
  :root { --bar-h: 56px; --dock-h: 56px; }
  .brand span { display: none; }
}
/* THE SHAPE MAP (the same tests as tall(), short() and squat() in js/film.js; keep them in step):
     stacked     under 900 px wide and up to 10/9, and either 680 px tall or more, or narrower than 500 px
                 (measured, src/tools/stackfit.mjs: the stack's words fit from about 580 px of height, and the
                 car has 110 px above the headline only from about 680; under 500 px the left half is too
                 narrow for the words, so a phone stacks at any height).
                 The car takes the top, the words the bottom; the camera frames the car for the top (tall()).
     words left  every other window under 900 px wide, and short windows of any width: the camera frames the
                 car as on a wide window, to the right of the words.
     short       under 470 px tall and not stacked (landscape phones: 568 to 998 px wide when turned): a
                 slimmer bar and dock. (js/film.js's short() is wider than this: it is
                 "words left", the windows that get scene 01's short framing and the short loading picture.)
     squat       a desktop window (900 px and wider, 470 px and taller) under 1.95 to 1 and, by width: under
                 800 px tall up to 1023 px wide, under 860 px up to 1279 px, under 900 px up to 1419 px;
                 from 1420 px wide only under 1.6 to 1 and under 900 px tall. The desktop arrangement, with
                 scene 01's car stood back and up (js/film.js's squat(), scenes/01-arrival.js) and the short
                 loading picture: the car is sized by the height and the name by min(width / 1440,
                 height / 900), so on these windows the name's end stood under the car's nose.
   Until 2026-11-20 everything under 900 px wide and 470 px or taller stacked, also where the camera framed
   for a wide window (640 x 470, a foldable at 841 x 673: the car stood over the headlines) and where the
   stack cannot fit (520 x 470 and 540 x 600: Hold to rev was below the window, or the car had no room);
   and short stopped at 900 px wide, so the largest phones turned sideways (915 x 360, 932 x 380) got the
   desktop arrangement, which needs 500 px of height.
   Narrow, tall windows: the scenes' own stylesheets use the same condition, and scenes/05 and 06 read --stack. */
@media (max-width: 899px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) {
  :root { --u: calc(100vw / 560); --stack: 1; }
  html.live .grid { grid-template-rows: auto 1fr auto auto auto auto; row-gap: 12px; }
  .grid > * { grid-column: 1 / -1; }
  .claim { font-size: clamp(40px, calc(92 * var(--u)), 76px); }
  .body { font-size: 15px; max-width: 40ch; }
  .stats b { font-size: clamp(30px, calc(60 * var(--u)), 46px); }
}
/* Words left of the car (the shape map above). js/film.js's tall() is false, so the camera frames the car
   as on a wide window, to the right of the words; the words keep the wide window's place, the left half,
   with the type set to the window's height (--u from svh) and never larger than the left half's width
   carries (the vw term: 568 / 1065 is 320 / 600, so 568 x 320 and every window wider than its shape keep
   the height's size, and a squarer one has the proportions of 568 x 320 across, with height to spare). */
@media (max-width: 899.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-width: 899.98px) and (max-height: 679.98px), (max-height: 469.98px) and (min-aspect-ratio: 10/9) {
  :root { --u: min(100svh / 600, 100vw / 1065); }
  .grid { padding-top: calc(var(--bar-h) + 8px); row-gap: calc(14 * var(--u)); }
  html.live .grid { padding-bottom: calc(var(--dock-h) + 10px); }
  .grid > * { grid-column: 1 / span 6; }
  /* the headline has no room to spare at 320 px of height, and some with every pixel above it (measured);
     never so large for the left half's width that a line breaks in two */
  .claim { font-size: min(calc(48 * var(--u) + 0.18 * (100svh - 320px)), 5.6vw); }
  .body { font-size: clamp(12.5px, calc(24 * var(--u)), 15px); line-height: 1.4; max-width: 48ch; }
  .stats { row-gap: calc(12 * var(--u)); }
  .stats p { padding-top: 6px; gap: 4px; }
  .stats b { font-size: calc(36 * var(--u)); }
}
/* Short windows (landscape phones, any width): a slimmer bar and dock, arranged as under 900 px (the largest
   phones are wider than that when turned). Every scene's words and controls fit between the bar and the
   dock down to 568 x 320. */
@media (max-height: 469.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-height: 469.98px) {
  :root { --bar-h: 48px; --dock-h: 48px; }
  .brand span { display: none; } .bar .btn:focus-visible { outline-offset: 0; }
}

/* ---------- footer, lead form ---------- */
.foot { position: relative; z-index: 2; background: var(--paper); border-top: 1px solid var(--hair); padding: clamp(40px, 6vw, 90px) var(--gut) calc(var(--dock-h) + 40px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(10px, 1.4vw, 24px); font-size: 14px; line-height: 1.55; color: var(--dim); transition: background-color 0.9s var(--ease); }
.foot > div { grid-column: span 6; max-width: 62ch; }
.foot h4 { font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot p + p, .foot li + li { margin-top: 10px; }
.foot a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 899px) { .foot > div { grid-column: 1 / -1; } }
dialog { border: 1px solid var(--hair); border-radius: 14px; background: var(--paper); color: var(--ink); padding: 28px; width: min(92vw, 420px); }
dialog::backdrop { background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h3 { font: 700 26px/1.05 var(--sans); letter-spacing: -0.03em; padding-right: 36px; } /* clear of the close button */
dialog .sub { font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 8px 0 18px; }
dialog label { display: block; font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
dialog input { display: block; width: 100%; margin-top: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 8px; background: transparent; color: var(--ink); font: 400 16px/1 var(--sans); }
dialog .x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; font-size: 22px; }
dialog .ok { display: none; margin-top: 14px; font-size: 14px; color: var(--dim); }

/* 01-arrival: the giant word is the headline (it is drawn in the 3D scene, behind the car), so the
   words here stay small: a strip of facts under the bar, the car's name bottom left, and a spec
   row along the bottom on the page's four columns. */
.s-arrival .grid { grid-template-rows: auto 1fr auto auto; row-gap: calc(18 * var(--u)); }
html.live .s-arrival .grid { grid-template-rows: auto 1fr auto auto; }
.s-arrival .grid > * { grid-column: 1 / -1; }
.s-arrival dl { margin: 0; }
.s-arrival dt { font: 400 10px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.s-arrival .meta { grid-row: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-arrival .meta > div { grid-column: span 1; padding-left: 12px; }
.s-arrival .meta > div:first-child { grid-column: 2; }
.s-arrival .meta dd { font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.s-arrival .meta dd i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
/* The strip stands under the bar, and on a short or narrow window the giant word begins there (at
   1280 x 600 the facts ran into its letters). The word's middle is at --word-mid and it is 0.1662 of the width
   tall (0.94 / 5.6545), or 0.52 of the height if that is less (js/look/word.js); the strip's foot is 115 px
   down, 129 px where the model's name takes two lines (under about 1020 px wide). With less than 10 px between
   them the strip is left out, as it is on a phone. All or nothing: --room moves in steps of 0.0001 px from one
   whole-number window to the next, the 0.00005 px keeps it half a step off zero, and 3,000,000 px per px
   of room makes half a step more than the strip is tall (at 1000 px per px the strip was cut through its
   text at 221 window sizes). */
.s-arrival { --word-mid: 34.5svh; }
/* squat windows (src/base.css's shape map; squat() in js/film.js): the car and its word stand higher */
@media (min-width: 900px) and (max-width: 1023.98px) and (min-height: 470px) and (max-height: 799.98px) and (max-aspect-ratio: 19499/10000), (min-width: 1024px) and (max-width: 1279.98px) and (min-height: 470px) and (max-height: 859.98px) and (max-aspect-ratio: 19499/10000), (min-width: 1280px) and (max-width: 1419.98px) and (min-height: 470px) and (max-height: 899.98px) and (max-aspect-ratio: 19499/10000), (min-width: 1420px) and (min-height: 470px) and (max-height: 899.98px) and (max-aspect-ratio: 15999/10000) { .s-arrival { --word-mid: 33svh; } }
html.live .s-arrival .meta { --room: calc(var(--word-mid) - min(8.31vw, 26svh) - 125.00005px); max-height: clamp(0px, calc(var(--room) * 3000000), 64px); overflow: hidden; }
@media (max-width: 1019.98px) { html.live .s-arrival .meta { --room: calc(var(--word-mid) - min(8.31vw, 26svh) - 139.00005px); } }
.s-arrival .id { grid-row: 3; display: grid; gap: calc(10 * var(--u)); justify-items: start; }
.s-arrival .id .lab { grid-row: auto; }
.s-arrival .name { font: 600 calc(76 * var(--u))/0.92 var(--sans); letter-spacing: -0.045em; padding-bottom: 0.12em; }
.s-arrival .name em { font: italic 400 1.12em/0.8 var(--serif); letter-spacing: -0.02em; margin-left: 0.04em; }
.s-arrival .specrow { grid-row: 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); padding-top: calc(14 * var(--u)); align-items: end; }
.s-arrival .specrow > div { padding-left: 12px; }
.s-arrival .specrow > div:first-child { padding-left: 0; }
.s-arrival .specrow dd { font: 500 calc(26 * var(--u))/1.05 var(--sans); letter-spacing: -0.03em; margin-top: 6px; }
.s-arrival .specrow .go { justify-self: end; padding-left: 0; }
@media (max-width: 899px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) {
  .s-arrival .meta { display: none; }
  /* The name takes two lines on a phone ("Camaro ZL1" / "1LE") where the window is tall enough for them under
     the car. The camera sizes the car by the height, so its foot is at 0.49 of the height at every size, while
     these words keep their size: on a shorter window (a phone with the browser's bars showing, 390 x 664 or
     375 x 548; 500 x 680) the two lines climbed into the car. There the name goes on one line, at the size
     that fits the width (it is 6.2 em long). Two lines need more than 430 px + 0.862 of the width in height
     (390 px keeps the car's body off the label; the 40 px more keep the label out of the shadow under the
     nose, where it was hard to read at 360 x 704 and 393 x 745; measured, src/tools/README.md); the last term is 100,000 px per px to spare and starts 0.001 px late,
     half a step of a whole-number window, so it is one size or the other. The height is the pin's, 100svh,
     which is what the car is framed for (js/film.js). A browser that does not know svh keeps the two lines. */
  .s-arrival .name { font-size: clamp(44px, calc(96 * var(--u)), 80px); }
  @supports (height: 100svh) {
    .s-arrival .name { --two: clamp(44px, calc(96 * var(--u)), 80px); --one: calc((100vw - 2 * var(--gut)) / 6.35);
      font-size: min(var(--two), calc(var(--one) + max(0px, calc((100svh - 430.001px - 86.2vw) * 100000)))); }
  }
  .s-arrival .specrow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .s-arrival .specrow > div { padding-left: 0; }
  .s-arrival .specrow dd { font-size: clamp(17px, calc(34 * var(--u)), 24px); }
  .s-arrival .specrow .go { grid-column: 1 / -1; justify-self: stretch; }
  .s-arrival .specrow .go .btn { width: 100%; }
}
/* a phone under 600 px tall (an iPhone SE with both of the browser's bars showing is 375 x 548): the one-line
   name is not enough there, so the gaps between the rows close up too */
@media (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) and (max-height: 599.98px) {
  html.live .s-arrival .grid { row-gap: 8px; padding-bottom: calc(var(--dock-h) + 12px); }
  .s-arrival .id { gap: 5px; }
  .s-arrival .specrow { row-gap: 8px; padding-top: 6px; }
}
/* words left of the car (base.css's shape map; landscape phones among them): the car and its word take the
   top (on short windows with the short framing in 01-arrival.js), the name and the spec row the bottom,
   below the word. The strip of facts under the bar is left out, as on a phone. The spec row stays one row,
   the button at its end in a column of its own width. */
@media (max-width: 899.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-width: 899.98px) and (max-height: 679.98px), (max-height: 469.98px) and (min-aspect-ratio: 10/9) {
  .s-arrival .meta { display: none; }
  .s-arrival .grid { row-gap: calc(12 * var(--u)); }
  .s-arrival .id { gap: calc(15 * var(--u)); }   /* the italic 1LE's box stands a little above its line: keep it off the label */
  .s-arrival .name { font-size: calc(50 * var(--u)); }
  .s-arrival .specrow { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; padding-top: calc(12 * var(--u)); }
  .s-arrival .specrow dd { font-size: calc(32 * var(--u)); }
}

/* 02-form: the profile as a drawing. The words keep the page's strict slots on the left five
   columns; the three figures stand in one row at every size, like the foot of a drawing sheet.
   The two notes ride the dimension lines under the car (02-form.js draws the lines and places
   the notes). */
.s-form .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(10px, 1.2vw, 20px); }
/* three figures across a phone only fit a little smaller than the page's two; in return the
   words are a row shorter and the car has that room */
@media (max-width: 599px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) {
  .s-form .stats b { font-size: clamp(24px, 8.4vw, 46px); }
}
/* where the words stack, their rows sit closer: the long tail of the italic g in "tight." needs
   a little more room above the copy */
@media (max-width: 899px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) {
  .s-form .claim { padding-bottom: 0.08em; }
}
/* a note on a dimension line is one line of text. Its tracking leaves space after the last
   letter, so the same space goes in front and the note sits truly centred in the line's gap. */
.s-form .note { padding-left: 0.14em; transition: color 0.6s var(--ease); }
/* words left of the car (base.css's shape map; landscape phones among them): the headline's break before
   "tight." is left out (the space after it in 02-form.html then shows; where the break stands that space
   opens a line and is dropped), so it takes two lines, not three, and the words fit the left half's height
   down to 568 x 320 */
@media (max-width: 899.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-width: 899.98px) and (max-height: 679.98px), (max-height: 469.98px) and (min-aspect-ratio: 10/9) {
  .s-form .claim br { display: none; }
}

/* 03-power: the label, the claim and the four numbers use the base slots as they are. What this
   scene adds is its action row: a button to hold and, beside it, a tachometer drawn as a comb of
   hairline ticks with the rpm in mono digits under it. The row stands on the same two columns as
   the numbers above, so the tachometer reads as a fifth figure. */
.s-power .act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px clamp(14px, 2vw, 32px); align-items: center; }

/* the button: a finger may rest on it, so it must not select its text or open a menu */
.s-power .rev { justify-self: start; gap: 12px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.s-power .rev i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease); }
/* while it is held it is inked in, and its dot is the page's red */
.s-power .rev.held { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: scale(0.98); }
.s-power .rev.held i { background: var(--acc); border-color: var(--acc); }

/* the tachometer: the comb is drawn by the scene on a canvas, one device pixel per tick */
.s-power .tach { display: grid; gap: 8px; min-width: 0; }
.s-power .tach canvas { display: block; width: 100%; height: 14px; }
.s-power .rpm { display: flex; align-items: baseline; gap: 8px; font: 400 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.s-power .rpm b { font: 500 13px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* the horsepower and the torque each name an engine speed: while the needle is at or past it,
   that number's rule is inked in, drawn from the left */
.s-power .stats p { position: relative; }
.s-power .stats p::before { content: ''; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease); }
.s-power .stats p.at::before { transform: scaleX(1); }

/* phones: the tachometer goes above the button, where a thumb does not cover it, with its
   digits at the end of the comb; the button takes the full width */
@media (max-width: 599px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) {
  .s-power .act { grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
  .s-power .rev { justify-self: stretch; }
  .s-power .tach { order: -1; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
}
/* a phone with its browser's bars showing (an iPhone 14 is 390 x 664, an iPhone SE 375 x 548): the headline, the
   four numbers, the tachometer and the button took the whole window, and the car, which gets the band between
   the label and the headline, was a thumbnail 40 px tall whose tyre touched "Six-two," (375 x 548). Under 700 px
   of height the type and the gaps close up so the band is a car's height again. The height a media query sees
   on a phone is the window with the bars showing, as 100svh is. */
@media (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) and (max-height: 699.98px) {
  html.live .s-power .grid { row-gap: 8px; padding-bottom: calc(var(--dock-h) + 12px); }
  .s-power .claim { font-size: clamp(32px, calc(62 * var(--u)), 48px); }
  .s-power .stats { row-gap: 8px; }
  .s-power .stats p { padding-top: 6px; gap: 3px; }
  .s-power .stats b { font-size: clamp(24px, calc(42 * var(--u)), 32px); }
  .s-power .act { margin-top: 0; }
}
/* words left of the car (base.css's shape map; landscape phones among them): the words, the numbers and the
   action row do not all fit the left half's height, so the action row stands in the right half on the
   numbers' foot line, under the car (03-power.js keeps the car above it). Its first column is never
   narrower than the button: at 568 px the right half's two even columns are 123 px and the button is 146,
   which ran it into the tachometer (held, its fill covered the first digit: 6600 read 600). */
@media (max-width: 899.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-width: 899.98px) and (max-height: 679.98px), (max-height: 469.98px) and (min-aspect-ratio: 10/9) {
  .s-power .act { grid-column: 7 / -1; grid-row: 4; align-self: end; grid-template-columns: minmax(max-content, 1fr) minmax(0, 1fr); }
}

/* 04-light: the words keep the page's strict slots. What this scene alone adds is a parts drawing
   over the lit headlamp: two mono notes hung on the page's centre rule, above the car, and a
   hairline from each to its point on the lamp. scenes/04-light.js draws the lines and sets
   --lc (ink by day, pale by night), --lg (the ground behind) and --hp (one device pixel). */
.s-light .draw { position: absolute; inset: 0; pointer-events: none; }
.s-light .lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.s-light .lead path { fill: none; stroke: var(--lc, var(--ink)); stroke-width: var(--hp, 1px); stroke-dasharray: 1; stroke-dashoffset: 1; }
.s-light .lead .mk { opacity: 0; }
/* the mark at the point: a ring and a dot, on a faint plate of the ground so it reads on a lit lamp too */
.s-light .lead .plate { fill: rgb(var(--lg, 5 5 6) / 0.5); }
.s-light .lead .ring { fill: none; stroke: var(--lc, var(--ink)); stroke-width: var(--hp, 1px); }
.s-light .lead .dot { fill: var(--lc, var(--ink)); }
/* The accent line's own box is taller than the line it sets (the serif's descender room), and
   on tablets that box reaches into the body's. As an inline block its box is the line: nothing moves. */
.s-light .claim em { display: inline-block; }
.s-light .note { color: var(--lc, var(--ink)); left: calc(50% + 12px); }
/* the lamp sits 44% down the window (oy in the scene's state); the notes ride above the bonnet line */
.s-light .note[data-part="lens"] { top: calc(44% - 236 * var(--u)); }
.s-light .note[data-part="blade"] { top: calc(44% - 208 * var(--u)); }
/* the hint speaks of a cursor: only where there is one */
@media not all and (hover: hover) and (pointer: fine) {
  .s-light .act { display: none; }
}
/* narrow, tall windows: the notes hang from the left margin, under the label */
@media (max-width: 899px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) {
  .s-light .note { left: var(--gut); }
  .s-light .note[data-part="lens"] { top: calc(var(--bar-h) + 58px); }
  .s-light .note[data-part="blade"] { top: calc(var(--bar-h) + 80px); }
}
/* a short phone has no room for the drawing above the car: the scene reads without it (short windows of
   any width: the largest phones are over 900 px wide when turned) */
@media (max-width: 899px) and (max-height: 700px), (max-height: 469.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-height: 469.98px) {
  .s-light .draw { display: none; }
}
/* words left of the car, 700 px and taller (a window near 899 x 800): the notes keep the place they have on
   a 900 px window, where --u is the width's (the camera steps back with the width there, 04-light.js) */
@media (max-width: 899.98px) and (min-aspect-ratio: 10/9) and (min-height: 700.02px) {
  .s-light .note[data-part="lens"] { top: calc(44% - 236 * 100vw / 1440); }
  .s-light .note[data-part="blade"] { top: calc(44% - 208 * 100vw / 1440); }
}

/* 05-brakes: the words keep the page's strict slots. What this scene alone adds is a parts drawing
   over the wheel as it comes off: one dashed line along the axle, and three notes on the bottom
   row of the page, each joined to its part by a plumb hairline. scenes/05-brakes.js places the
   notes and draws the lines, and sets --lc (ink by day, pale by night), --lg (the ground behind)
   and --hp (one device pixel) on the section. */
.s-brakes .lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; }
.s-brakes .lead path { fill: none; stroke: var(--lc, var(--ink)); stroke-width: var(--hp, 1px); }
/* a note's line is drawn from its part to its words: one dash the length of the path, slid along */
.s-brakes .lead .fall { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* the axle is a centre line, so it is dashed; every other dash is the colour of the ground, which
   keeps it readable where it crosses the dark arch and the tyre as well as the bright rim */
.s-brakes .lead .axle { opacity: 0; }
.s-brakes .lead .axle path { stroke-dasharray: 7 7; }
.s-brakes .lead .axle .b { stroke: rgb(var(--lg, 232 229 222)); stroke-dashoffset: 7; }
/* the mark at a part: a ring and a dot, on a faint plate of the ground so it reads on chrome too */
.s-brakes .lead .mk { opacity: 0; }
.s-brakes .lead .plate { fill: rgb(var(--lg, 232 229 222) / 0.5); }
.s-brakes .lead .ring { fill: none; stroke: var(--lc, var(--ink)); stroke-width: var(--hp, 1px); }
.s-brakes .lead .dot { fill: var(--lc, var(--ink)); }
.s-brakes .note { color: var(--lc, var(--ink)); }
/* phones: three notes do not fit across the car, so only the axle's line is kept */
@media (max-width: 599px) {
  .s-brakes .lead [data-part], .s-brakes .parts { display: none; }
}
/* stacked words: the italic's box hangs a little under the headline's last line; keep it off the body */
@media (max-width: 899px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) {
  .s-brakes .claim { padding-bottom: 0.08em; }
}

/* 06-around: the label, the claim and the body use the base slots as they are. The car stands on
   the page's own rule (the third of the four; the middle one on a phone) and is turned by the
   scroll, by a hand on the stage or by the arrow keys. What this scene adds: the scale of a
   turntable on the floor under the car (the scene draws it on a canvas, one device pixel a line),
   the heading as a large, quiet mono counter hanging on that same rule, and a small Day / Night
   pair in the action row. */

/* the pinned stage takes a hand: sideways turns the car, up and down still scrolls the page */
html.live .s-around .pin { touch-action: pan-y pinch-zoom; }
html.live .s-around.on .pin { cursor: grab; }
html.live .s-around.turning .pin { cursor: grabbing; }
html.live .s-around.turning { -webkit-user-select: none; user-select: none; }

/* the two facts sit as two even lines, not one line and an orphan */
.s-around .body p { text-wrap: balance; }

/* the floor scale: a strip of canvas fixed to the window like the stage; the scene places it */
.s-around .dial { position: fixed; left: 0; top: 0; width: 100%; pointer-events: none; visibility: hidden; }

/* the action row: the hint, then the invitation to change the studio */
.s-around .act { column-gap: calc(30 * var(--u)); }
.s-around .dusk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }   /* the pair drops under the cue when the row is too long (280 px by night) */
.s-around .cue { font: 400 10.5px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
/* both texts sit in one cell and the cue keeps the longer one's width, so a press of the pair never changes
   how the row wraps (the pair would jump from under the finger at about 300 px) */
.s-around .cue { display: inline-grid; }
.s-around .cue > span { grid-area: 1 / 1; }
.s-around .cue .by-night, html.night .s-around .cue .by-day { visibility: hidden; }
html.night .s-around .cue .by-night { visibility: visible; }
/* two small buttons in one hairline capsule; each is 44 px to the finger, 28 px to the eye */
.s-around .pair { display: flex; }
.s-around .pair button { position: relative; isolation: isolate; min-width: 44px; min-height: 44px; padding: 0 12px 0 calc(12px + 0.14em); font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); transition: color 0.3s var(--ease); }
.s-around .pair button::before { content: ''; position: absolute; z-index: -1; inset: 8px 0; border: 1px solid var(--hair); transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.s-around .pair button:first-child::before { border-radius: 999px 0 0 999px; border-right: 0; }
.s-around .pair button:last-child::before { border-radius: 0 999px 999px 0; border-left: 0; }
.s-around .pair button:hover { color: var(--ink); }
.s-around .pair button[aria-pressed="true"] { color: var(--paper); }
.s-around .pair button[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); }

/* the heading: a slider for the keyboard and for screen readers, with large quiet figures as its
   face. Beside the words the figures hang on the rule the car stands on, fixed to the window like
   the floor scale (the scene places both and fades them together); the slider itself stays in the
   page, under the figures, so that reaching it with the Tab key scrolls the scene in. */
.s-around .heading { position: absolute; grid-column: auto; grid-row: auto; left: calc(var(--gut) + (100% - 2 * var(--gut)) * 0.75 + 12px); bottom: calc(var(--dock-h) + 22px); }
.s-around .heading input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.s-around .deg { display: block; font: 400 calc(60 * var(--u))/0.76 var(--mono); letter-spacing: -0.05em; text-indent: -0.055em; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 0.6s var(--ease); }
.s-around .deg::after { content: '°'; }
.s-around .heading input:focus-visible + .deg { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 4px; }
@media (min-width: 900px) and (min-height: 470px) {
  html.live .s-around .grid > .heading { opacity: 1; transform: none; will-change: auto; }
  .s-around .deg { position: fixed; opacity: 0; pointer-events: none; }
}

/* narrow windows: the counter becomes a small reading at the end of the label's line (on landscape phones
   too, whatever their width: the words fill the left half's height there, so the car and its scale take the
   right half, 06-around.js) */
@media (max-width: 899px), (max-height: 469.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-height: 469.98px) {
  .s-around .heading { left: auto; right: var(--gut); bottom: auto; top: calc(var(--bar-h) + 18px); }
  .s-around .deg { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.14em; text-indent: 0; color: var(--ink); }
}
/* narrow, tall windows: at its largest the italic's tail would reach into the body's first line */
@media (max-width: 899px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) {
  .s-around .claim { padding-bottom: 0.07em; }
}
/* words left of the car (landscape phones among them): the small reading on the label's line, and the
   action row's lines closer, so the pair stays above the dock at 568 x 320 */
@media (max-width: 899.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-width: 899.98px) and (max-height: 679.98px), (max-height: 469.98px) and (min-aspect-ratio: 10/9) {
  .s-around .heading { top: calc(var(--bar-h) + 8px); }
  .s-around .act { row-gap: 6px; }
  .s-around .dusk { row-gap: 6px; }
}

/* 07-listing: the price card beside the parked car */
.s-listing .pin { height: auto; min-height: 100svh; }
html.live .s-listing { height: auto; }
html.live .s-listing .pin { position: relative; height: auto; overflow: visible; }
html.live .s-listing .grid { position: relative; inset: auto; grid-template-rows: auto auto; padding-bottom: calc(var(--dock-h) + 48px); }
.s-listing .card { grid-column: 7 / -1; grid-row: 2; background: var(--card); border: 1px solid var(--hair); border-radius: 16px; padding: clamp(20px, 2.4vw, 36px); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; gap: 18px; transition: background-color 0.6s var(--ease); }
html.live .s-listing .grid > .card { opacity: 1; transform: none; }
.card .cpo { font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.card .cpo i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.card h2 { font: 700 clamp(28px, calc(44 * var(--u)), 46px)/1 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.card .sub { font-size: 14px; color: var(--dim); }
.card dl { display: grid; }
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; border-top: 1px solid var(--hair); padding-top: 16px; }
.facts dt, .stack dt { font: 400 10px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.facts dd { font: 500 15px/1.3 var(--sans); margin-top: 4px; }
.stack > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hair); }
.stack dd { font: 500 16px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; } /* "−$500" never splits at its sign */
.stack .total dt { color: var(--ink); }
.stack .total dd { font: 700 clamp(30px, calc(40 * var(--u)), 42px)/1 var(--sans); letter-spacing: -0.03em; }
.stack .cond dd, .stack .cond dt { color: var(--dim); }
.cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cta .btn { padding: 0 10px; }
.calc { border-top: 1px solid var(--hair); padding-top: 16px; display: grid; gap: 12px; }
.calc h3 { font: 600 17px/1.1 var(--sans); letter-spacing: -0.01em; }
.calc label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.calc output { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { grid-column: 1 / -1; width: 100%; height: 28px; accent-color: var(--ink); }
.term { display: flex; align-items: center; gap: 8px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.term span { margin-right: auto; }
.term button { min-width: 48px; min-height: 44px; border: 1px solid var(--hair); border-radius: 999px; font: 500 12px/1 var(--mono); color: var(--ink); }
.term button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pay { display: flex; justify-content: space-between; align-items: baseline; }
.pay span { font: 400 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.pay b { font: 700 30px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.disc { font-size: 11.5px; line-height: 1.5; color: var(--dim); }
@media (max-width: 899px) and (max-aspect-ratio: 1111/1000) and (min-height: 680px), (max-width: 499.98px) and (max-aspect-ratio: 1111/1000) { .s-listing .card { grid-column: 1 / -1; margin-top: 46svh; } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* narrow cards, decided by the card's own width (its padding changes with the window): nothing inside may
   push it wider than its column. The card's one track is minmax(0, 1fr), so a wide child cannot stretch it;
   the four buttons go one under the other when "Confirm availability" (the longest label) no longer fits
   half the card; the term buttons drop under their label when four of them and the label no longer fit
   one row (the smallest phones, 280 px). */
.s-listing .card { grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
/* browsers without container queries (Safari 15): the same steps by the window's width, where the card's
   content is the window less 78 px (phones under 643 px) */
@media (max-width: 439.98px) { .cta { grid-template-columns: minmax(0, 1fr); } }
/* words left of the car (base.css's shape map): the card is the right half, and three columns of facts are about
   60 px each on a 568 px phone ("H24-" / "0658"): two columns, as where the words stack */
@media (max-width: 899.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-width: 899.98px) and (max-height: 679.98px), (max-height: 469.98px) and (min-aspect-ratio: 10/9) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 331.98px) {
  .term { flex-wrap: wrap; row-gap: 10px; }
  .term span { flex: 0 0 100%; margin: 0; }
  .term button { flex: 1 1 0; min-width: 44px; }
}
@container (max-width: 361.98px) { .cta { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 253.98px) {
  .term { flex-wrap: wrap; row-gap: 10px; }
  .term span { flex: 0 0 100%; margin: 0; }
  .term button { flex: 1 1 0; min-width: 44px; }
}

/* fx/cursor: the pointer (js/fx/cursor.js). Fine pointers only; it never takes a field, a label or
   the dialog, and the system cursor is hidden only on the stage while the ring stands in for it. */
.cur-ring, .cur-dot { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; contain: layout style; }
.cur-ring { width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 17px; display: grid; place-items: center; overflow: hidden; opacity: 0;
  transition: opacity 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease), scale 0.4s var(--ease); }
.cur-ring em { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; padding-left: 0.16em; color: var(--paper); opacity: 0; transition: opacity 0.2s var(--ease); white-space: nowrap; }
.cur-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity 0.25s var(--ease); }
.cur-ring[data-mode="ring"], .cur-ring[data-mode="free"], .cur-ring[data-mode="wrap"] { opacity: 1; }
.cur-ring[data-mode="free"] { opacity: 0.35; }
.cur-dot[data-mode="ring"] { opacity: 1; }
/* over a control: a hairline drawn round its own box */
.cur-ring[data-mode="wrap"] { border-color: var(--ink); }
/* over words: a caret the height of the type */
.cur-ring[data-mode="caret"] { opacity: 1; border-color: transparent; background: var(--ink); }
/* the walk-around: a disc that says what the hand does */
.cur-ring[data-mode="drag"] { opacity: 1; border-color: var(--ink); background: var(--ink); }
.cur-ring[data-mode="drag"] em { opacity: 1; transition-delay: 0.12s; }
body:has(.s-around.turning) .cur-ring[data-mode="drag"] { scale: 0.84; }
/* the lamp scene: the pointer is a lamp, so it is a small warm light, not a ring */
.cur-ring[data-mode="glow"] { opacity: 1; border-color: transparent; background: radial-gradient(circle, #fff6e6 0 22%, #ffc98a 48%, rgba(255, 170, 90, 0) 72%);
  box-shadow: 0 0 26px 10px rgba(255, 176, 96, 0.28), 0 0 70px 26px rgba(255, 150, 70, 0.12); }
/* the stage only, and only while the ring is in place: no system cursor (controls keep theirs) */
html.fx-cur.cur-stage .sc .pin, html.fx-cur.cur-stage .sc .pin *:not(:is(a, button, input, select, textarea, label, [role="button"]), :is(a, button, label, .card) *, .card) { cursor: none !important; }
/* js/ui.js leans [data-magnet] with an inline transform; this file leans them with translate instead */
html.fx-cur [data-magnet] { transform: none !important; }
@media (prefers-reduced-motion: reduce), not all and (hover: hover) and (pointer: fine) { .cur-ring, .cur-dot { display: none; } }

/* fx/glass: Strata "Liquid Glass", ported to the dock's Day / Night switch, the bar's button and
   (quietly) the price card. Everything hangs off html.lg.live and the classes and elements
   js/fx/glass.js adds (.lg-slab, .lg-thumb, .lg-sheen, .lg-held, .lg-collar, .lg-card, .lg-core);
   without that script none of it applies. The bend itself (backdrop-filter: url(#...)) is set by
   the script, on Chromium only (html.lg-refract); the rules here are the glass everyone gets:
   a clear rim, a frosted middle so the label stays readable, a bright top edge, a soft inner
   shadow. Clear by day on paper, smoked by night. */
@property --lg-mid { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --lg-rim { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --lg-l { syntax: '<length>'; inherits: false; initial-value: 4px; }
@property --lg-r { syntax: '<length>'; inherits: false; initial-value: 4px; }
html.lg { --lg-mid: rgba(240, 238, 232, 0.64); --lg-rim: rgba(240, 238, 232, 0.08); --lg-spec: rgba(255, 255, 255, 0.95); --lg-spec2: rgba(255, 255, 255, 0.5); --lg-shade: rgba(14, 14, 13, 0.2); --lg-drop: rgba(14, 14, 13, 0.3);
  transition: background-color 0.9s var(--ease), --lg-mid 0.7s var(--ease), --lg-rim 0.7s var(--ease); }
html.lg.night { --lg-mid: rgba(9, 9, 11, 0.72); --lg-rim: rgba(9, 9, 11, 0.3); --lg-spec: rgba(255, 255, 255, 0.34); --lg-spec2: rgba(255, 255, 255, 0.1); --lg-shade: rgba(0, 0, 0, 0.6); --lg-drop: rgba(0, 0, 0, 0.7); }
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.lg-thumb, .lg-sheen, .lg-collar, .lg-core { display: none; }

/* ---------- the switch: a slab of glass, the pressed half an ink pill under it ---------- */
html.lg.live .dock .seg.lg-slab { position: relative; isolation: isolate;
  background: radial-gradient(closest-side, var(--lg-mid) 0%, var(--lg-mid) 40%, var(--lg-rim) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(1.5); backdrop-filter: blur(8px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--lg-spec), inset 0 -1px 0 var(--lg-spec2), inset 0 6px 7px -6px var(--lg-spec2), inset 0 -8px 9px -8px var(--lg-shade), 0 12px 22px -16px var(--lg-drop), 0 1px 2px -1px var(--lg-drop);
  transition: box-shadow 0.7s var(--ease), border-color 0.6s var(--ease); }
/* the label that is not pressed sits on glass now, not on card: a little more ink keeps it readable over the car */
html.lg.live .dock .seg.lg-slab button[aria-pressed="false"] { color: color-mix(in srgb, var(--ink) 80%, transparent); }
html.lg.live .dock .seg.lg-thumbed button[aria-pressed="true"] { background-color: transparent; }
html.lg.live .seg.lg-thumbed > .lg-thumb { display: block; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: var(--ink); pointer-events: none;
  clip-path: inset(4px var(--lg-r) 4px var(--lg-l) round 999px);
  transition: --lg-l 0.62s var(--ease) 0.05s, --lg-r 0.4s var(--ease), background-color 0.3s var(--ease); }
html.lg.live .seg > .lg-thumb[data-to="l"] { transition: --lg-l 0.4s var(--ease), --lg-r 0.62s var(--ease) 0.05s, background-color 0.3s var(--ease); }
html.lg.live .seg > .lg-thumb.lg-now { transition: none; }
/* a glint on the rim's hairline, under the pointer */
html.lg.live .seg.lg-slab > .lg-sheen { display: block; position: absolute; inset: -1px; border-radius: 999px; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(58px circle at var(--lg-mx, 50%) var(--lg-my, 0px), #fff, rgba(255, 255, 255, 0) 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
html.lg.live .seg.lg-slab:hover > .lg-sheen { opacity: 1; }

/* ---------- the bar's button: the same ink pill, held in a collar of the same glass ---------- */
html.lg.live .bar .btn.lg-held { position: relative; isolation: isolate; background-color: transparent; border-color: transparent; }
html.lg.live .bar .btn.lg-held:focus-visible { outline-offset: 8px; border-radius: 999px; }
html.lg.live .bar .btn.lg-held > .lg-collar { display: block; position: absolute; inset: -6px; z-index: -1; border-radius: 999px; pointer-events: none;
  border: 1px solid var(--hair);
  background: radial-gradient(closest-side, var(--lg-mid) 0%, var(--lg-mid) 40%, var(--lg-rim) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(1.5); backdrop-filter: blur(8px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--lg-spec), inset 0 -1px 0 var(--lg-spec2), inset 0 5px 6px -5px var(--lg-spec2), inset 0 -6px 7px -6px var(--lg-shade), 0 12px 22px -16px var(--lg-drop), 0 1px 2px -1px var(--lg-drop);
  transition: box-shadow 0.7s var(--ease), border-color 0.6s var(--ease); }
html.lg.live .bar .btn.lg-held > .lg-collar::after { content: ''; position: absolute; inset: 4px; border-radius: inherit; background: var(--ink); transition: background-color 0.25s var(--ease); }
@media (max-width: 899px) { html.lg.live .bar .btn.lg-held > .lg-collar { inset: -5px; } html.lg.live .bar .btn.lg-held > .lg-collar::after { inset: 3px; } }
/* short windows (src/base.css's shape map: the bar is 48 px there, 4 px more than the button): a collar of 2 px and the focus ring against the button, so neither is cut by the window's edge */
@media (max-height: 469.98px) and (min-aspect-ratio: 10/9), (min-width: 500px) and (max-height: 469.98px) { html.lg.live .bar .btn.lg-held > .lg-collar { inset: -2px; } html.lg.live .bar .btn.lg-held > .lg-collar::after { inset: 2px; } html.lg.live .bar .btn.lg-held:focus-visible { outline-offset: 0; } }

/* ---------- the price card: same family, low strength. The face under the words keeps the card's
   own tint (the rim's lighter tint plus .lg-core add up to it); only the outer few px are clearer. ---------- */
html.lg.live .s-listing .card.lg-card { position: relative; isolation: isolate; background-color: color-mix(in srgb, var(--card) 66%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 var(--lg-spec2), inset 0 -12px 16px -14px var(--lg-shade), 0 36px 60px -44px var(--lg-drop); }
html.lg.live .s-listing .card.lg-card > .lg-core { display: block; position: absolute; inset: 7px; z-index: -1; border-radius: 10px; pointer-events: none;
  background: color-mix(in srgb, var(--card) 79%, transparent); filter: blur(4px); transition: background-color 0.6s var(--ease); }

/* fx/glow: Strata "Pricing Glow", ported to the price card. Everything here hangs off classes
   and elements js/fx/glow.js adds at runtime (.gl, .gl-i, .gl-pay, .gl-odo); without that
   script none of it applies and the card is exactly the scene's own.
   1. A light on the hairline: a 1px ring, masked to the border, lit by a radial gradient at the
      pointer (--gx / --gy, local px). Ink by day, pale by night (it is var(--ink) either way),
      with the accent only as a small core. The script sets the spot and the ring's opacity.
   2. The payment estimate as an odometer: digit columns drawn over the real, now transparent,
      figure, which stays in the page for screen readers and for layout. */
.gl { position: relative; isolation: isolate; }
.gl > .gl-i { position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; --gx: -999px; --gy: -999px; --gr: 110px; --gc: var(--ink); }
.gl > .gl-i::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background:
    radial-gradient(calc(var(--gr) * 0.2) circle at var(--gx) var(--gy), color-mix(in srgb, var(--acc) 62%, transparent), transparent),
    radial-gradient(var(--gr) circle at var(--gx) var(--gy), color-mix(in srgb, var(--gc) 80%, transparent), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* the card: a wider light, and the faintest lift of the paper under the pointer */
.card.gl > .gl-i { --gr: 340px; --gw: rgba(255, 255, 255, 0.42); background: radial-gradient(calc(var(--gr) * 0.85) circle at var(--gx) var(--gy), var(--gw), transparent 70%); }
html.night .card.gl > .gl-i { --gw: rgba(242, 240, 234, 0.045); }
/* on an ink-filled button ink would not show: the light there is the paper, warmed by the accent */
.btn-solid.gl > .gl-i, .term button[aria-pressed="true"].gl > .gl-i { --gc: color-mix(in srgb, var(--acc) 45%, var(--paper)); }

.gl-pay { position: relative; }
.gl-pay > #pay { color: transparent; }
.gl-pay > .gl-odo { position: absolute; right: 0; top: -0.16em; display: inline-flex; height: 1.32em; overflow: hidden; pointer-events: none; -webkit-user-select: none; user-select: none;
  -webkit-mask: linear-gradient(transparent, #000 0.14em, #000 calc(100% - 0.14em), transparent); mask: linear-gradient(transparent, #000 0.14em, #000 calc(100% - 0.14em), transparent); }
/* each cell is taller than the figure (1.32em, the figure centred in it) so the neighbours of a digit sit fully outside the window at rest */
.gl-odo i { display: block; font-style: normal; height: 1.32em; line-height: 1.32em; text-align: center; }
.gl-odo .gl-c { display: flex; flex-direction: column; height: auto; transition: transform 0.8s var(--ease); will-change: transform; }
.gl-odo.gl-now .gl-c { transition: none; }

/* fx/loader: the load counter as the car's odometer over a hairline that draws with the download
   (js/fx/loader.js; mechanism from Strata "Loaders"). Every rule hangs off html.fx-load, which
   only that script sets, so without it the loader is the plain one in base.css. */
/* the drawn counter sits where the plain one does (base.css: the dock's band, bottom right, sized to
   it), so nothing moves when this script takes over; the hairline runs along the band's top edge, and
   as the lights come up the drums roll out and the hairline folds into the dock's scroll rule.
   No transform on .loader: it would capture the fixed hairline. */
html.fx-load .loader #loadN { opacity: 0; }                       /* still there for role="status"; the drums draw it */
html.fx-load.live.ready .loader { opacity: 1; transition-delay: 0.3s; } /* the script hands off, then lets go (back after a keyboard leaves the dock: once the dock has gone) */
html.fx-load.fxl-skip.live.ready .loader { opacity: 0; }           /* ...unless the visitor is already elsewhere */
html.fx-load.fx-load-done .loader { opacity: 0; visibility: hidden; transition: none; }
html.fx-load.live:has(.dock:focus-within) .loader { opacity: 0; transition-delay: 0s; transition-duration: 0.15s; }  /* a keyboard in the dock (base.css) */
/* the dock stays out of the band until the last drum has rolled out of it: js/fx/loader.js sets .fxl-clear
   when that roll-out has ended (not after a fixed time, so a phone that drops frames still waits), and the
   dock then comes in at once. A keyboard in the dock keeps it, and the counter steps aside instead. */
html.fx-load.live.ready:not(.far):not(.fxl-skip):not(.fxl-clear):not(.fx-load-done) .dock:not(:focus-within) { opacity: 0; transition-duration: 0.3s; transition-delay: 0s; }
html.fx-load.live.ready.fxl-clear .dock { transition-delay: 0s; }
html.fx-load.live.ready:not(.far):not(.fxl-skip):not(.fxl-clear):not(.fx-load-done) .dock:not(:focus-within) > * { pointer-events: none; }
.fxl-n { position: absolute; right: 0; bottom: 0; display: flex; font: 500 var(--ln)/0.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; transition: opacity 0.35s var(--ease); }
/* where the band is not clear (base.css: html.far, short windows where the words stack): no drums, only the hairline (at the window's foot; under the bar on short windows) */
html.fx-load.live.far .fxl-n { opacity: 0; }
html.fx-load.live.far .fxl-line { bottom: 0; }
/* short windows where the words stack (base.css): scene 01's button can sit at the window's foot, so at the top the hairline runs under the bar */
@media (max-width: 499.98px) and (max-height: 469.98px) and (max-aspect-ratio: 1111/1000) { html.fx-load.live .fxl-n { opacity: 0; } html.fx-load.live:not(.far) .fxl-line { top: calc(var(--bar-h) - 7px); bottom: auto; } html.fx-load.live:not(.far) .fxl-run::after { height: 4px; } }
.fxl-col { display: block; height: 0.9em; margin-right: -0.04em; overflow: hidden; }
.fxl-strip { display: block; will-change: transform; transform: translate3d(0, 0, 0); transition: transform var(--fxl-d, 0.9s) var(--fxl-e, var(--ease)) var(--fxl-w, 0s); }
.fxl-strip i { display: block; height: 0.9em; line-height: 0.9em; font-style: normal; text-align: center; transition: color 0.6s var(--ease); }
.fxl-strip i.fxl-z { color: var(--dim); }                         /* leading zeros sit back */
.loader > span:first-child { transition: opacity 0.35s var(--ease); }
.loader.fxl-out > span:first-child { opacity: 0; }
.fxl-line { position: fixed; left: var(--gut); right: var(--gut); bottom: var(--dock-h); height: 8px; overflow: hidden; transform-origin: 100% 100%; will-change: transform, opacity; transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.42s var(--ease); }
.fxl-track { position: absolute; inset: auto 0 0; height: 1px; background: var(--hair); transition: opacity 0.35s var(--ease); }
.fxl-run { position: absolute; inset: 0; will-change: transform; transform: translate3d(-100%, 0, 0); transition: transform var(--fxl-d, 0.9s) var(--fxl-e, var(--ease)) var(--fxl-w, 0s); }
.fxl-run::before { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--ink); }
.fxl-run::after { content: ''; position: absolute; right: 0; bottom: 0; width: 1px; height: 7px; background: var(--ink); transition: opacity 0.35s var(--ease); }
.loader.fxl-out .fxl-track, .loader.fxl-out .fxl-run::after { opacity: 0; }

/* fx/type: the headlines rise out of masks, line by line; the small figures decode (js/fx/type.js).
   Every hidden state here is under html.live, so if the film fails the words simply stand. */
/* a headline that has been split no longer fades in with its scene: its lines do the arriving.
   It still drifts up and away as the scene leaves, as every other block does. */
html.live.fx-type .sc .grid > .claim.tw { opacity: calc(1 - var(--x) * 3); transform: translate3d(0, calc(var(--x) * -40px), 0); }
/* the mask: one per word, kept on the baseline (clip-path, not overflow, so the line box is the
   same as before); it reaches a little past the word so descenders and the serif's overhang show */
.tw-m { display: inline-block; clip-path: inset(-0.18em -0.22em -0.24em -0.12em); }
.tw-i { display: inline-block; transform-origin: 0 0; }
html.live .tw[data-tw] .tw-i { transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(0.06s + var(--l, 0) * 0.09s); will-change: transform; }
/* out: below the mask and turned as one line, ready to rise; going out is quicker, last line first */
html.live .tw[data-tw="out"] .tw-i { transform: translate3d(0, calc(132% + var(--dy, 0px)), 0) rotate(2.5deg); transition-duration: 0.5s; transition-timing-function: cubic-bezier(0.7, 0, 0.84, 0); transition-delay: calc((var(--tw-n, 1) - 1 - var(--l, 0)) * 0.04s); }
/* the decode: glyphs hold each character's final width, flicker in the accent, then settle */
.tw-w { white-space: nowrap; }
.tw-ch { display: inline-block; text-align: center; }
.tw-ch.h { visibility: hidden; }
.tw-ch.g { font-family: var(--mono); font-style: normal; font-weight: 400; color: var(--acc); }
