/* Aplomb drift prototype. Mobile first: the base styles are the phone's, `width >=` breakpoints in
   rem add the rest. Code only feeds custom properties (--phase, --t, --horizon…); every look is here. */

:root {
  color-scheme: dark;
  --night: #0e1114;
  --surface: #1b1e22;
  --ink: #eceef0;
  --ink-2: #a9afb7;
  --line: rgb(236 238 240 / 0.16);
  --brass: #d2a65a;
  --brass-fill: #c79a4e;
  --on-brass: #15171a;
  --screens: 6.3;          /* the pinned landing's scroll, in screen heights (rules/choreography.js) */
  --horizon: 40%;          /* where the 3D ground meets the sky, measured by the scene */
  --horizon-y: 0.4;        /* the same, as a fraction of the screen's height */
  --headline-size: clamp(2.1rem, 1rem + 4.6vw, 5.25rem); /* TWO ENERGIES. holds one line on a 360 px phone */
  --copy-x: 1rem;          /* the copy's side margin */
  --phase: 0;              /* 0 road, 1 showroom, crossed under the water on the glass */
  --road-copy: 1;
  --show-copy: 0;
  --caption: 0;
  --t: 0;                  /* the road headline's tension */
  --show-t: 1;             /* the showroom headline's tension */
  --swing: 0deg;           /* the plumb line */
  --panel: rgb(14 17 20 / 0.8);        /* the journey's glass, and its total's foot */
  --panel-solid: rgb(14 17 20 / 0.96);
  --ghost: rgb(14 17 20 / 0.35);
}
html[data-theme='light'] { color-scheme: light; }

/* ---------- the tonal arc (direction C, the user's choice of 2026-11-16) ----------
   The scene names the light of the moment on the root (data-light): dawn on the road, the studio for
   the showroom, the exterior and the cabin, the workshop (the Six) or the night (the E) for the
   energy, dusk for the finale, the page's after the landing. The studio and the page follow the
   visitor's theme (data-theme); the other lights belong to the story. --ground is each light's own
   colour: the page under the plates and the masthead's veil, eased from one to the next. */
@property --ground { syntax: '<color>'; inherits: true; initial-value: #0e1114; }
html { --ground: #0e1114; transition: --ground 0.8s ease; }
html[data-theme='light']:is([data-light='studio'], [data-light='page']) { --ground: #edeff0; }
html[data-light='workshop'] { --ground: #1d140d; }
html[data-light='night'] { --ground: #0b1229; }
html[data-light='dusk'] { --ground: #22151b; }
/* the light tone: the white studio and the page in the light theme (the brief's studio, graphite and
   brass); everything else keeps the night's */
html[data-theme='light']:is([data-light='studio'], [data-light='page']) .masthead,
html[data-theme='light'][data-light='studio'] :is(.copy--showroom, .plumb, .turntable, [data-panel='exterior'], [data-panel='cabin']),
html[data-theme='light'] :is(.after, .notes, .site-footer, .page-head, .page-body),
html[data-theme='light'].no-scene :is(.panel--showroom, [data-panel='exterior'], [data-panel='cabin']) {
  --night: #edeff0;
  --surface: #f8f9f9;
  --ink: #15171a;
  --ink-2: #4a4f57;
  --line: rgb(21 23 26 / 0.16);
  --brass: #7a5618;
  --brass-fill: #b8893e;
  --on-brass: #15171a;
  --panel: rgb(248 249 249 / 0.82);
  --panel-solid: rgb(248 249 249 / 0.97);
  --ghost: rgb(248 249 249 / 0.5);
  color: var(--ink);
}

/* ---------- Aplomb Estoc, our display face (fonts/estoc): its axis TENS follows the drift ---------- */
@font-face {
  font-family: 'Aplomb Estoc';
  src: url('./fonts/AplombEstoc-VF.woff2') format('woff2');
  font-display: swap;
}
/* the body's and the labels' faces, served with the site (2026-11-16, nothing from another site):
   Archivo (Omnibus-Type) and Geist Mono (Vercel), SIL Open Font License 1.1, latin, variable */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('./fonts/archivo/archivo-latin-wdth-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-mono/geist-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* the same face at TENS 100 for the words the tyres write: a canvas cannot set a font's axes */
@font-face {
  font-family: 'Aplomb Estoc Fierce';
  src: url('./fonts/AplombEstoc-Fierce.woff2') format('woff2');
  font-display: block;
}
/* Arial set to Estoc's metrics (headline widths, ascent, descent), so nothing moves when it arrives */
@font-face {
  font-family: 'Estoc Fallback';
  src: local('Arial'), local('ArialMT');
  size-adjust: 116.8%;
  ascent-override: 80.5%;
  descent-override: 20.5%;
  line-gap-override: 0%;
}

/* ---------- the cursor tells what can be clicked (the user's rule, 2026-11-09) ---------- */
html { cursor: default; }
:where(a[href], area[href], button, select, summary, label[for],
  [role='button'], [role='link'], [role='tab'], [role='menuitem'], [role='option'], [role='switch'],
  input:is([type='checkbox'], [type='radio'], [type='submit'], [type='button'], [type='reset'],
    [type='file'], [type='color'], [type='range'])) { cursor: pointer; }
:where(label:has(> input:not(:disabled))) { cursor: pointer; }
:where(input:is(:not([type]), [type='text'], [type='email'], [type='search'], [type='password'],
  [type='number'], [type='tel'], [type='url']), textarea, [contenteditable='true']) { cursor: text; }
:disabled, [aria-disabled='true'] { cursor: not-allowed; }

/* ---------- titles and interface out of the selection (the user's rule, 2026-11-16) ----------
   Headings, microcopy, the masthead, the index, the docks' controls and the scene's labels cannot be
   selected, nor open a phone's long-press menu; the paragraphs, the notes, the summary and the legal
   line stay selectable, with a brass tint that keeps the text's own colour. */
:where(h1, h2, h3, label, legend, button, summary, .btn, .kicker, .mono, .headline, .lede, .masthead,
  .plumb, .cfg-tabs, .cfg-total, .engine-notes, .water-caption, .turntable, .gate) {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
::selection { background: color-mix(in srgb, var(--brass-fill) 32%, transparent); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: clip;
}
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
/* every heading in Aplomb Estoc (the user, 2026-11-10: "everywhere"); the Six takes its fierce end */
.h2, .h3 { font-family: 'Aplomb Estoc', 'Estoc Fallback', sans-serif; font-weight: 400; font-synthesis: none; text-transform: uppercase; }
.h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.05; margin: 0.5rem 0 1.5rem; text-wrap: balance; }
.h3 { font-size: 1.25rem; margin: 0.25rem 0 0.5rem; }
.card--six .h3 { font-variation-settings: 'TENS' 100; }
.kicker { color: var(--brass); margin: 0; }
code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.9em; color: var(--brass); }

.skip {
  position: fixed; inset: 0.5rem auto auto 0.5rem; z-index: 50;
  padding: 0.75rem 1rem; border-radius: 0.5rem;
  background: var(--brass-fill); color: var(--on-brass); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- masthead ---------- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ground) 72%, transparent), transparent);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; min-height: 2.75rem; }
.brand-mark { width: 1.75rem; height: 1.75rem; }
.brand-word { font-weight: 800; font-stretch: 125%; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.95rem; }
/* the narrowest phones: the word tightens so the three switches and the test drive keep one line */
@media (width < 24rem) { .brand-word { letter-spacing: 0.2em; font-size: 0.85rem; } }
/* under 22rem the emblem stands alone (the link keeps its name, Aplomb, home) */
@media (width < 22rem) { .brand-word { display: none; } }
.masthead .btn { white-space: nowrap; }
/* past the landing the page scrolls under the masthead: its veil becomes glass */
html[data-light='page'] .masthead {
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.badge { display: none; color: var(--ink-2); margin-inline-start: auto; }
.masthead .btn { margin-inline-start: auto; }
.masthead .sound-toggle + .btn { margin-inline-start: 0; }
@media (width >= 48rem) {
  .masthead { padding: 1rem 2rem; gap: 0.75rem; }
  .badge { display: block; }
  .masthead .btn { margin-inline-start: 1rem; }
  .masthead .sound-toggle + .btn { margin-inline-start: 0; }
}
/* the theme's switch: an icon, its name for screen readers; the half moon turns over */
.theme-toggle { min-width: 2.75rem; padding: 0; }
.theme-icon { width: 1.15rem; height: 1.15rem; transition: rotate 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.theme-toggle[aria-pressed='true'] .theme-icon { rotate: 180deg; }
.masthead .theme-toggle + .sound-toggle { margin-inline-start: 0; }
/* the Sound switch: an icon on phones (its name stays for screen readers), the word from 40rem */
.sound-toggle { min-width: 2.75rem; padding: 0; gap: 0.45rem; }
.sound-icon { width: 1.15rem; height: 1.15rem; flex: none; }
.sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sound-toggle .sound-waves, .sound-toggle[aria-pressed='true'] .sound-mute { display: none; }
.sound-toggle[aria-pressed='true'] .sound-waves { display: inline; }
.sound-toggle[aria-pressed='true'] { border-color: var(--brass); color: var(--brass); }
.no-scene .sound-toggle, .sound-toggle[hidden] { display: none; }
@media (width >= 40rem) {
  .sound-toggle { padding: 0 1rem 0 0.8rem; }
  .sound-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn-sm { min-height: 2.75rem; padding: 0 1rem; font-size: 0.85rem; }
.btn-accent { background: var(--brass-fill); color: var(--on-brass); }
.btn-accent:hover { background: var(--brass); }
.btn-ghost { background: var(--ghost); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn[aria-disabled='true'] { opacity: 0.45; }

/* ---------- the landing: stacked by default (no script, no WebGL, reduced motion) ---------- */
.landing { position: relative; }
.stage { position: relative; }
.panel { position: relative; min-height: 100svh; display: grid; overflow: clip; }
.plate { position: absolute; inset: 0; }
.copy {
  position: relative; z-index: 1; align-self: start;
  padding: 6.5rem 1rem 2rem;
  max-width: 40rem;
}
.headline {
  margin: 0.75rem 0 1rem;
  font-family: 'Aplomb Estoc', 'Estoc Fallback', sans-serif;
  font-size: var(--headline-size);
  font-weight: 400;
  font-synthesis: none;       /* the face has one weight: never a faked bold */
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
  /* the tension is the face's own axis: calm at 0; blade cuts, deep notches, heavier stems and a
     6° lean at 1. Its advances never change, so tensing the headline never reflows it. */
  font-variation-settings: 'TENS' calc(var(--t) * 100);
}
/* its lines break where the HTML says: wider than the column beside the car, they run over the
   empty floor above it (BY DESIGN. is 6.7 em wide, 224 px on a phone) */
.headline--show { font-variation-settings: 'TENS' calc(var(--show-t) * 100); white-space: nowrap; }
/* the road headline stands on the wet road's waterline; its reflection (a mirrored copy, hidden
   from assistive tech) lies below it in the water. Both flip about the headline's bottom edge. */
.waterline { position: relative; margin: 0.75rem 0 1rem; }
.waterline .headline { margin: 0; }
.headline--mirror { display: none; }
.lede { color: var(--ink-2); max-width: 30rem; margin: 0 0 1.5rem; font-size: 1.05rem; }
.cue { color: var(--ink-2); margin: 0; }
.ctas, .turn { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }

.plate--road {
  background:
    radial-gradient(90% 38% at 72% var(--horizon), rgb(222 158 104 / 0.42), transparent 62%),
    linear-gradient(to bottom,
      #0a0d12 0%,
      #18202c calc(var(--horizon) - 18%),
      #6f5848 calc(var(--horizon) - 1.2%),
      #b48766 var(--horizon),
      #3a3d41 calc(var(--horizon) + 0.4%),
      #24272a calc(var(--horizon) + 18%),
      #111315 100%);
}
.plate--showroom {
  background:
    radial-gradient(70% 30% at 55% calc(var(--horizon) + 14%), rgb(236 238 240 / 0.12), transparent 70%),
    linear-gradient(to bottom,
      #0f1114 0%,
      #1c1f23 calc(var(--horizon) - 0.5%),
      #34383e var(--horizon),
      #22252a calc(var(--horizon) + 20%),
      #131518 100%);
}
/* the white studio, over the night one: the theme crosses from one to the other */
.plate--showroom::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  background:
    radial-gradient(70% 30% at 55% calc(var(--horizon) + 14%), rgb(255 255 255 / 0.7), transparent 70%),
    linear-gradient(to bottom,
      #dce0e3 0%,
      #e8ebed calc(var(--horizon) - 0.5%),
      #f2f3f4 var(--horizon),
      #e6e9eb calc(var(--horizon) + 20%),
      #d8dcdf 100%);
}
html[data-theme='light'] .plate--showroom::after { opacity: 1; }
/* the arc's other lights over the studio: the energy's, then dusk. One coming over another holds the
   last until it is covered; back to the studio, they fade */
.lights { display: none; }
.light { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
html:is([data-light='workshop'], [data-light='night'], [data-light='dusk']) .light { transition: opacity 0s linear 0.8s; }
html[data-light='workshop'] .light--workshop,
html[data-light='night'] .light--night,
html[data-light='dusk'] .light--dusk { z-index: 1; opacity: 1; transition: opacity 0.8s ease; }
.light--workshop {
  background:
    radial-gradient(70% 30% at 55% calc(var(--horizon) + 14%), rgb(214 150 80 / 0.2), transparent 70%),
    linear-gradient(to bottom, #120c08 0%, #241810 calc(var(--horizon) - 0.5%), #3b2817 var(--horizon), #1d140d calc(var(--horizon) + 20%), #0d0906 100%);
}
.light--night {
  background:
    radial-gradient(70% 30% at 55% calc(var(--horizon) + 14%), rgb(110 150 255 / 0.17), transparent 70%),
    linear-gradient(to bottom, #070b16 0%, #0e1630 calc(var(--horizon) - 0.5%), #1c2a4f var(--horizon), #0d1428 calc(var(--horizon) + 20%), #060912 100%);
}
.light--dusk {
  background:
    radial-gradient(70% 30% at 55% calc(var(--horizon) + 14%), rgb(240 150 110 / 0.24), transparent 70%),
    linear-gradient(to bottom, #1a1020 0%, #3a2233 calc(var(--horizon) - 0.5%), #8a5244 var(--horizon), #2a1a20 calc(var(--horizon) + 20%), #120b10 100%);
}
.bar {
  position: absolute; left: 10%; right: 10%; height: 0.2rem; border-radius: 1rem;
  background: linear-gradient(90deg, transparent, #f4f6f8 18%, #f4f6f8 82%, transparent);
  box-shadow: 0 0 1.5rem 0.25rem rgb(255 255 255 / 0.22);
}
.bar:nth-child(1) { top: 9%; }
.bar:nth-child(2) { top: 14%; left: 16%; right: 16%; opacity: 0.75; }
.bar:nth-child(3) { top: 18.5%; left: 21%; right: 21%; opacity: 0.55; }

.turntable, .water-caption, .showroom-mark { display: none; }
.scene { display: none; }

/* ---------- the pinned landing, once the scene is coming ---------- */
.has-scene .landing { height: calc(100svh * (1 + var(--screens))); }
.has-scene .stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.has-scene .panel { position: absolute; inset: 0; min-height: 0; }
/* a stacking context of their own: the coming light's z-index stays under the copy's */
.has-scene .lights { display: block; position: absolute; inset: 0; z-index: 0; isolation: isolate; pointer-events: none; }
.has-scene .panel--road .plate { opacity: calc(1 - var(--phase)); }
.has-scene .panel--showroom .plate { opacity: var(--phase); }
.has-scene .copy--road { opacity: var(--road-copy); }
.has-scene .copy--showroom { opacity: var(--show-copy); }
.has-scene [data-phase='road'] .copy--showroom,
.has-scene [data-phase='showroom'] .copy--road { visibility: hidden; }
.has-scene .scene {
  display: block; position: fixed; inset: 0; z-index: 20;
  width: 100%; height: 100%; pointer-events: none;
}
.has-scene .scene.is-off { visibility: hidden; }

/* The poster: the scene's first frame (the car and its water, transparent elsewhere), painted from
   the HTML, the page's LCP, until the scene draws its own and it fades. Its frame is laid as the
   scene's camera lays it: scaled to the height (the field of view is vertical), shifted as the
   camera's view offset (a share of the width), and pulled back on narrow screens about the point
   the camera looks at (--pull from the inline script). The car's picture sits in that frame where
   it was cut from (--cx, --cy, --cw, --ch); tools/bake-posters.mjs renders, cuts and writes them. */
.poster { display: none; }
.has-scene .poster {
  display: block; position: fixed; inset: 0; z-index: 20; overflow: hidden; pointer-events: none;
  container-type: size;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.scene-live .poster { opacity: 0; visibility: hidden; }
.poster-frame {
  position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: var(--pa);
  transform-origin: calc((0.5 + var(--sx)) * 100%) calc((0.5 + var(--sy)) * 100%);
  transform: translateX(calc(-50% + var(--sx) * (100cqw - 100cqh * var(--pa)))) scale(calc(1 / var(--pull, 1)));
}
.poster-frame img {
  position: absolute; max-width: none;
  left: calc(var(--cx) * 100%); top: calc(var(--cy) * 100%); width: calc(var(--cw) * 100%); height: calc(var(--ch) * 100%);
}
/* poster:start (written by tools/bake-posters.mjs) */
.poster { --pa: 2.40000; --sx: 0.1; --sy: 0.12; --cx: 0.00000; --cy: 0.47130; --cw: 1.00000; --ch: 0.52870; }
.has-scene .stage { --horizon: 47.64%; --horizon-y: 0.4764; }
@media (max-aspect-ratio: 850/1000) {
  .poster { --pa: 0.84444; --sx: 0; --sy: 0.16; --cx: 0.00000; --cy: 0.54861; --cw: 1.00000; --ch: 0.45139; }
  .has-scene .stage { --horizon: 46.56%; --horizon-y: 0.4656; }
}
/* poster:end */

/* ---------- the story gate (the user's request of 2026-11-17) ----------
   A visitor who scrolls before the car is live waits at the top: the page stops scrolling, the
   hero's cue fades, and the boot's progress shows at the foot of the screen, on the empty road and
   in line with the copy, with a way out to the page without 3D. Never shown without the scene, nor
   to a visitor who has not tried to scroll (Lighthouse never does). Its gutter kept, the page does not
   shift sideways when its scrollbar goes. */
.gate { display: none; }
.has-scene .gate {
  display: grid; gap: 0.55rem; position: fixed; z-index: 35;
  left: var(--copy-x); bottom: calc(clamp(1.25rem, 5svh, 2.5rem) + env(safe-area-inset-bottom));
  width: min(19rem, 100% - 2 * var(--copy-x));
  visibility: hidden; opacity: 0; translate: 0 0.35rem;
  transition: opacity 0.45s ease, translate 0.45s ease, visibility 0s linear 0.45s;
}
.has-scene.story-held .gate {
  visibility: visible; opacity: 1; translate: 0 0;
  transition: opacity 0.3s ease, translate 0.3s ease, visibility 0s;
}
html.has-scene { scrollbar-gutter: stable; }
html.story-held { overflow: hidden; }
.cue { transition: opacity 0.3s ease; }
.story-held .cue { opacity: 0; }
.gate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; color: var(--ink); }
.gate-percent { color: var(--brass); font-variant-numeric: tabular-nums; }
.gate-track { height: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
.gate-line {
  display: block; height: 100%; background: var(--brass);
  transform-origin: 0 50%; transform: scaleX(var(--boot, 0)); transition: transform 0.35s ease-out;
}
.gate-skip {
  justify-self: start; min-height: 2.75rem; margin: -0.35rem 0 -0.75rem; padding: 0;
  border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 0.9rem;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.25em;
}
.gate-skip:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (hover: hover) {
  .gate-skip:hover { color: var(--ink); text-decoration-color: currentColor; }
}
/* a very short screen (a laptop at 400 % zoom, 320 x 256): the gate takes the lede's place while it
   shows, as it takes the cue's; both come back when the page lets go */
@media (height < 22rem) {
  .has-scene .copy--road .lede { transition: opacity 0.3s ease; }
  .story-held .copy--road .lede { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .has-scene .gate, .has-scene.story-held .gate { translate: none; }
  .gate-line { transition: none; }
}
.has-scene .turntable {
  display: block; position: absolute; z-index: 25;
  inset: 52% 4% 8% 4%;
  touch-action: pan-y;
}
.has-scene [data-ready='true'] .turntable { cursor: grab; }
.has-scene [data-ready='true'] .turntable.is-grabbing { cursor: grabbing; }
.has-scene [data-phase='road'] .turntable { display: none; }
.has-scene .water-caption {
  display: block; position: fixed; z-index: 21; inset: auto 0 18% 0; margin: 0 auto; pointer-events: none;
  width: max-content; padding: 0.5rem 0.9rem; border-radius: 0.4rem;
  background: rgb(14 17 20 / 0.72); color: var(--ink);
  opacity: var(--caption);
}
/* ---------- the plumb line: the chapters' index (the user's request, 2026-11-16) ----------
   A tick per chapter, each a link the keyboard reaches; the bob hangs at the chapter on screen, its
   thread grown as far as the visitor has read, and swings with the scroll (--swing, from the scene).
   Narrow, a short line under the masthead (the brief's phone); wide, a rail at the right edge. Over
   the scene and the journey's panels, under the masthead; gone with the landing. */
.plumb { display: none; }
.has-scene .plumb {
  display: block; position: fixed; z-index: 29;
  left: 1.375rem; right: 1.375rem; top: 5.25rem; height: 1.6rem; /* the targets clear the masthead and the screen's edges */
  color: var(--brass);
  transition: opacity 0.4s ease;
}
html[data-light='page'] .plumb { opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.plumb::before { content: ''; position: absolute; left: 0; right: 0; top: 0.4rem; height: 1px; background: currentColor; opacity: 0.3; }
.plumb-ticks { position: relative; height: 100%; margin: 0; padding: 0; list-style: none; display: flex; justify-content: space-between; }
.plumb-ticks li { position: relative; width: 0; }
.plumb-ticks a {
  position: absolute; left: -1.375rem; top: -0.975rem; width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; color: inherit; text-decoration: none; border-radius: 50%;
}
.plumb-tick { width: 1px; height: 0.55rem; background: currentColor; opacity: 0.45; transition: opacity 0.4s ease; }
.plumb-ticks a.is-past .plumb-tick, .plumb-ticks a[aria-current] .plumb-tick { opacity: 1; }
.plumb-ticks a:focus-visible { outline: 2px solid var(--brass); outline-offset: -0.35rem; }
/* each link's name; shown beside the rail when wide */
.plumb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plumb-thread {
  position: absolute; left: 0; top: 0.4rem; width: 100%; height: 1px; background: currentColor;
  transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.plumb-pendulum { position: absolute; left: 0; top: 0.4rem; transform: translateX(var(--bob, 0px)); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.plumb-swing { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: rotate(var(--swing, 0deg)); }
.plumb-line { position: absolute; left: -0.5px; top: 0; width: 1px; height: 0.55rem; background: currentColor; }
.plumb-bob {
  position: absolute; left: -0.35rem; top: 0.5rem; width: 0.7rem; height: 1rem;
  background: var(--brass-fill); clip-path: polygon(50% 100%, 0 35%, 50% 0, 100% 35%);
}
@media (width >= 64rem) {
  .has-scene .plumb { left: auto; right: 1.5rem; top: 50%; width: 2.75rem; height: min(52svh, 24rem); translate: 0 -50%; }
  .plumb::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .plumb-ticks { flex-direction: column; align-items: center; }
  .plumb-ticks li { width: auto; height: 0; }
  .plumb-ticks a { left: -1.375rem; top: -1.375rem; }
  .plumb-tick { width: 0.6rem; height: 1px; }
  .plumb-thread { left: 50%; top: 0; width: 1px; height: 100%; transform-origin: top; transform: scaleY(var(--progress, 0)); }
  .plumb-pendulum { left: 50%; top: 0; transform: none; transition: none; }
  .plumb-line { height: 1px; transform-origin: top; transform: scaleY(var(--bob-n, 0)); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .plumb-bob { top: 0; transform: translateY(var(--bob, 0px)); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  /* the chapter's name beside the rail: the current one, and the one the pointer or the keyboard is on */
  .plumb-label {
    right: calc(100% - 0.25rem); top: 50%; width: auto; height: auto; clip-path: none; overflow: visible;
    translate: 0 -50%; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
    font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-2); text-shadow: 0 0 0.6rem var(--ground), 0 0 0.2rem var(--ground);
  }
  .plumb-number { color: var(--brass); }
  .plumb-ticks a:is(:hover, :focus-visible, [aria-current]) .plumb-label { opacity: 1; }
  /* beside the energy's and the finale's panels the current name waits for the pointer or the keyboard */
  html:is([data-light='workshop'], [data-light='night'], [data-light='dusk']) .plumb-ticks a[aria-current]:not(:hover, :focus-visible) .plumb-label { opacity: 0; }
}
/* tablets: still a line, under their taller masthead */
@media (48rem <= width < 64rem) { .has-scene .plumb { top: 5.75rem; left: 2rem; right: 2rem; } }
/* a heading given the focus by the index shows no ring: it is a place, not a control */
:is(h1, h2)[tabindex='-1']:focus { outline: none; }
.has-scene .showroom-mark { display: block; position: absolute; left: 0; width: 1px; height: 1px; top: calc(100svh * 1.85); }

/* phones: the copy sits at the top, the car in the lower half */
.has-scene .copy { padding-top: 7.5rem; } /* under the masthead and the plumb line's band */

/* the road headline's foot on the horizon whatever its number of lines, its reflection in the wet
   road below; the lede and the cue under the reflection */
/* stretch, or the grid's `align-self: start` shrinks it to nothing round its absolute children */
.has-scene .copy--road { position: absolute; inset: 0; max-width: none; padding: 0; align-self: stretch; justify-self: stretch; }
/* laid out on the default horizon (40 %), then moved to the one the scene measures by a transform:
   moved by `bottom`, the headline jumped when the scene booted (a layout shift, CLS 0.03) */
.has-scene .road-head {
  position: absolute; left: var(--copy-x); right: var(--copy-x);
  bottom: 60%;
  transform: translateY(calc((var(--horizon-y) - 0.4) * 100svh));
  max-width: 62rem;
}
.has-scene .road-head .waterline { margin-bottom: 0; }
.has-scene .road-foot {
  position: absolute; left: var(--copy-x); right: var(--copy-x);
  top: calc(40% + var(--headline-size) * 1.1);
  transform: translateY(calc((var(--horizon-y) - 0.4) * 100svh));
  max-width: 34rem;
}
.has-scene .headline--mirror {
  display: block;
  position: absolute; inset: 0; margin: 0;
  color: #dfe3e8;
  opacity: 0.34;
  transform-origin: 0 100%;
  transform: scaleY(-1);
  /* in its own frame the mirror's foot is its bottom: strong at the waterline, gone a line below */
  mask-image: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0.5) 28%, transparent 62%);
  filter: url(#water-ripple);
  pointer-events: none;
}
.filters { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (width >= 48rem) {
  :root { --copy-x: 2.5rem; }
  .copy { padding: 7.5rem 2.5rem 2rem; }
  .has-scene .copy { padding-top: 8rem; }
  .has-scene .copy--road { padding: 0; }
  .has-scene .turntable { inset: 30% 6% 10% 34%; }
}
@media (width >= 64rem) {
  :root { --copy-x: 4rem; }
  .has-scene .copy { padding-top: 7rem; } /* the plumb line is a rail at the side from here */
  .copy--showroom { max-width: 30rem; }
  .copy { padding-left: 4rem; }
  /* the showroom on a wide screen (the tonal arc's depth, 2026-11-16): the title large and centred
     under the canvas, the car standing in front of its second line; the words and buttons at the foot */
  /* stretched, or `.copy`'s align-self: start shrinks the absolute box to its content */
  .has-scene .copy--showroom {
    position: absolute; inset: 0; align-self: stretch; justify-self: stretch; max-width: none; padding: 8.5rem calc(var(--copy-x) + 1.5rem) 2rem var(--copy-x);
    display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto 1fr auto;
    column-gap: 2rem; align-items: center;
  }
  .has-scene .copy--showroom .kicker { grid-column: 1 / -1; justify-self: center; }
  .has-scene .headline--show { grid-column: 1 / -1; justify-self: center; text-align: center; margin: 0.6rem 0 0; font-size: clamp(4rem, 1rem + 6.4vw, 8rem); }
  .has-scene .copy--showroom .lede { grid-row: 4; grid-column: 1; justify-self: start; margin: 0; }
  .has-scene .copy--showroom .ctas { grid-row: 4; grid-column: 2; margin: 0; }
  .has-scene .copy--showroom .turn { grid-row: 4; grid-column: 3; justify-self: end; margin: 0; }
  .has-scene .turntable { inset: 34% 16% 16% 16%; }
}

/* ---------- the configurators journey (the user, 2026-11-10) ----------
   One panel per chapter. Without the scene they stack after the landing; with it they float over
   the canvas, the chapter on screen shown (data-chapter): a sheet on phones, a side panel wider. */
.journey { display: grid; gap: 2.5rem; padding: 3rem 1rem 4rem; background: var(--night); }
.journey-panel { display: grid; gap: 1rem; max-width: 34rem; container: journey-panel / inline-size; }
.journey .h2 { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); }
.cfg { display: grid; gap: 0.55rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.cfg legend { padding: 0; margin-bottom: 0.5rem; color: var(--ink-2); }
/* a choice of two on one line, its legend beside it: the panels fit a laptop's height. A floated
   legend is an ordinary child of its fieldset, so it takes the grid's first column */
.cfg--inline { grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; column-gap: 0.5rem; }
.cfg--inline legend { float: left; margin: 0; }
.cfg-swatches, .cfg-chips, .cfg-cards { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cfg-cards--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cfg-option {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.45rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
/* the radio stays real and focusable: it covers its label, invisible, and the label shows its state */
.cfg-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cfg-option:has(input:checked) { border-color: var(--brass); background: rgb(210 166 90 / 0.1); }
.cfg-option:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.cfg-option--paint { justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; }
.cfg-swatch {
  width: 2.05rem; height: 2.05rem; border-radius: 50%; background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), inset 0 -0.4rem 0.6rem rgb(0 0 0 / 0.28);
}
.cfg-dot { flex: none; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); }
.cfg-dot--big { grid-row: span 2; width: 1.5rem; height: 1.5rem; }
/* a light, not a paint: the light blade's colours glow */
.cfg-dot--glow { box-shadow: 0 0 0.5rem 0.08rem var(--swatch), inset 0 0 0 1px rgb(255 255 255 / 0.4); }
.cfg-option--trim, .cfg-option--energy, .cfg-option--version {
  display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 0.65rem; row-gap: 0.1rem;
  padding: 0.6rem 0.85rem; border-radius: 0.75rem;
}
.cfg-option--energy, .cfg-option--version { grid-template-columns: 1fr; }
.cfg-option--trim { flex: 1 1 11rem; }
/* The cabin's tabs share one height (the tallest panel's): the five trims stand in one row, never
   two, so the inlays' and the light blade's single rows leave no hole under them */
.cfg--trims .cfg-cards { flex-wrap: nowrap; }
/* a narrow panel (the phone's sheet): the trims' cards tighter */
@container journey-panel (width < 22rem) {
  .cfg-option--trim { padding: 0.5rem 0.7rem; column-gap: 0.5rem; }
  .cfg-dot--big { width: 1.1rem; height: 1.1rem; }
}
/* the phone's and the tablet's sheet (and the bands without the scene): each tab is one strip that
   slides sideways in its own band (the page itself never scrolls sideways): the paints, the trims
   (two and a peek of the next on a phone), the inlays, the light blades, and the two groups side by
   side of the wheels and of the accents; a mouse gets a thin scrollbar under it */
@media (width < 64rem) {
  :is(.cfg-swatches[data-options='paint'], .cfg-chips:is([data-options='inlay'], [data-options='blade']), .cfg--trims .cfg-cards, .cfg-tabpanel--pair) {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem;
    /* room for the focus ring, which the strip would clip above and below */
    margin-block: -0.3rem; padding-block: 0.3rem;
  }
  :is(.cfg-swatches[data-options='paint'], .cfg-chips:is([data-options='inlay'], [data-options='blade']), .cfg--trims .cfg-cards) > .cfg-option,
  .cfg-tabpanel--pair > .cfg { flex: none; scroll-snap-align: start; }
  .cfg-tabpanel--pair .cfg-chips { flex-wrap: nowrap; }
  .cfg-swatches[data-options='paint'] { gap: 0.25rem; }
  .cfg--trims .cfg-option--trim { width: 9rem; }
}
/* a dock wide enough over the scene (a tablet's sheet, a desktop's dock): each trim in three short
   lines, the name, the cloth, then its price, so the five trims fit the dock from 1,024 px on (in two
   lines they made it 1,050 px wide, and it scrolled sideways under 1,216 px) */
@container journey-panel (width >= 30rem) {
  .has-scene .cfg--trims .cfg-option--trim { flex: none; width: auto; padding: 0.4rem 0.85rem; }
  .has-scene .cfg--trims .cfg-option--trim > span:last-child { white-space: nowrap; font-size: 0.8rem; }
  .has-scene .cfg--trims .cfg-option--trim .cfg-sep { display: none; }
  .has-scene .cfg--trims .cfg-option--trim .cfg-price { display: block; }
}
@media (width < 64rem) and (hover: hover) and (pointer: fine) {
  :is(.cfg-swatches[data-options='paint'], .cfg-chips:is([data-options='inlay'], [data-options='blade']), .cfg--trims .cfg-cards, .cfg-tabpanel--pair) { scrollbar-width: thin; padding-block-end: 0.4rem; }
}
.cfg-option b { font-weight: 600; }
.cfg-price { white-space: nowrap; }
.cfg-option em:empty { display: none; }
.cfg-option span:not([class]), .cfg-option em { color: var(--ink-2); font-size: 0.85rem; font-style: normal; }
.cfg-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.cfg-figures dt { color: var(--ink-2); }
/* the big figures in instruments (the brief's rule): an arc as far as the figure's gauge, the value in
   the ring; brass for the Six, Céladon for the E */
.cfg-gauge {
  display: grid; justify-items: center; gap: 0.4rem; padding: 0.7rem 0.25rem 0.6rem;
  border: 1px solid var(--line); border-radius: 1rem;
}
.cfg-gauge::before {
  content: ''; grid-area: 1 / 1; width: 3.9rem; height: 3.9rem; border-radius: 50%;
  background: conic-gradient(var(--gauge-ink, var(--brass)) calc(var(--gauge) * 1turn), var(--line) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.journey[data-energy='E'] .cfg-gauge { --gauge-ink: #97aea6; }
.cfg-gauge dd { grid-area: 1 / 1; align-self: center; font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.35rem); }
.cfg-gauge dt { font-size: 0.6rem; letter-spacing: 0.06em; text-align: center; text-transform: none; }
.cfg-figure {
  margin: 0; line-height: 1; font-family: 'Aplomb Estoc', 'Estoc Fallback', sans-serif; font-weight: 400; font-synthesis: none;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
}
.journey[data-energy='Six'] .cfg-figure { font-variation-settings: 'TENS' 100; }
/* the Six's own options: an E has no exhaust and no engine cover */
.journey[data-energy='E'] [data-six-only] { display: none; }
.cfg-legal { margin: 0; color: var(--ink-2); font-size: 0.8rem; line-height: 1.45; }
.cfg-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin: 0; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.cfg-total b { font-family: 'Aplomb Estoc', 'Estoc Fallback', sans-serif; font-weight: 400; font-synthesis: none; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
/* the price rolls like a counter: each digit a column moved by a transform, the last ones a little later */
.odometer { display: inline-flex; }
.odo-digit { display: inline-block; height: 1em; overflow: hidden; }
.odo-col { display: block; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.odo-col > span { display: block; height: 1em; line-height: 1; }
.odometer.is-still .odo-col { transition: none; }
.odo-digit:nth-last-child(2) .odo-col { transition-delay: 40ms; }
.odo-digit:nth-last-child(1) .odo-col { transition-delay: 80ms; }
.cfg-summary { display: grid; gap: 0.45rem; margin: 0; }
.cfg-summary div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; align-items: baseline; }
.cfg-summary dt { color: var(--ink-2); }
.cfg-summary dd { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A dock's tabs (the exterior's and the cabin's, 2026-11-16). Equal columns, so a longer choice never
   pushes its neighbours; each tab says its group and the group's choice on one line, cut short if it
   must. The open tab: the ink and a brass underline on the rule (its state is not told by colour alone). */
.cfg-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 0.75rem;
  max-width: 36rem; border-bottom: 1px solid var(--line);
}
.cfg-tab {
  display: grid; align-content: end; gap: 0.3rem; min-width: 0; min-height: 2.75rem;
  margin: 0 0 -1px; padding: 0.5rem 0 0.6rem; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--ink-2); font: inherit; text-align: left;
  transition: color 0.25s ease, border-color 0.35s ease;
}
.cfg-tab[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--brass-fill); }
.cfg-tab:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 0.25rem; }
@media (hover: hover) and (pointer: fine) {
  .cfg-tab:hover { color: var(--ink); }
}
.cfg-tab-choice { display: flex; align-items: center; gap: 0.4rem; min-width: 0; font-size: 0.875rem; line-height: 1.25; }
.cfg-tab-choice .cfg-dot { width: 0.6rem; height: 0.6rem; }
.cfg-tab-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a narrow dock (the phone's sheet): each tab names its first choice only (the paint, not its finish) */
@container journey-panel (width < 30rem) {
  .cfg-tab-more { display: none; }
}
/* the panels share one cell: the dock keeps the tallest one's height, nothing moves from tab to tab;
   a closed panel keeps its place unseen (neither shown, focused nor read). A panel holds one group,
   or two side by side (the wheels and their finish; the calipers and the brightwork). */
.cfg-tabpanels { display: grid; min-width: 0; }
.cfg-tabpanel {
  grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start;
  gap: 0.5rem 2rem; min-width: 0;
}
/* `hidden` hides by display, which would drop the panel's height: only its visibility goes */
.cfg-tabpanel[hidden] { display: flex; visibility: hidden; }
.cfg-tabpanel > .cfg:only-child { flex: 1 1 auto; }
/* two groups side by side: each legend just before its choices */
.cfg-tabpanel--pair .cfg--inline { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75rem; }
.cfg-tabpanel:not([hidden]) { animation: cfg-tab-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes cfg-tab-in { from { opacity: 0; translate: 0 0.35rem; } }
/* the docks' fold controls live on a wide screen only (the phone keeps its sheet) */
.dock-fold, .dock-pill { display: none; }
.dock-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* without the scene the panels stack as bands, each in its light of the arc (the studio's by the theme) */
.no-scene .journey { padding: 0; gap: 0; }
.no-scene .journey-panel { max-width: none; padding: 3rem max(1rem, calc((100% - 40rem) / 2)) 3.5rem; background: var(--night); }
.no-scene .journey [data-panel='energy'] { background: #1d140d; }
.no-scene .journey[data-energy='E'] [data-panel='energy'] { background: #0b1229; }
.no-scene .journey [data-panel='finale'] { background: #22151b; }
.has-scene .journey { position: fixed; inset: 0; z-index: 22; display: block; padding: 0; background: none; pointer-events: none; }
.has-scene .journey-panel {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  max-height: 52svh; overflow: auto; gap: 0.85rem;
  padding: 1rem 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem;
  background: var(--panel); backdrop-filter: blur(14px) saturate(1.15);
  opacity: 0; visibility: hidden; translate: 0 1rem; pointer-events: auto;
  transition: opacity 0.35s ease, translate 0.35s ease, visibility 0s linear 0.35s;
}
.has-scene :is(.journey[data-chapter='exterior'] [data-panel='exterior'], .journey[data-chapter='cabin'] [data-panel='cabin'],
  .journey[data-chapter='energy'] [data-panel='energy'], .journey[data-chapter='finale'] [data-panel='finale']) {
  opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.35s ease, translate 0.35s ease;
}
/* the total stays at the panel's foot while its options scroll: each choice shows its price at once */
.has-scene .journey-panel .cfg-total {
  position: sticky; bottom: -1.1rem; z-index: 1;
  margin: 0 -1rem -1.1rem; padding: 0.75rem 1rem 1.1rem;
  background: var(--panel-solid);
}
.has-scene :is([data-chapter='cabin'], [data-chapter='energy'], [data-chapter='finale']) .turntable { display: none; }
/* phones: the sheet takes the bottom and the car rides above it, so the showroom's words give way
   and the turntable follows the car; wider, the words stay beside the car for the exterior */
.has-scene :is([data-chapter='exterior'], [data-chapter='cabin'], [data-chapter='energy'], [data-chapter='finale']) .copy--showroom { opacity: 0; visibility: hidden; }
.has-scene [data-chapter='exterior'] .turntable { inset: 14% 4% 52% 4%; }
@media (width >= 64rem) {
  .has-scene [data-chapter='exterior'] .turntable { inset: 24% 16% 26% 16%; }
  .has-scene .journey-panel {
    left: auto; right: 5rem; top: 50%; bottom: auto; width: min(26rem, 34%);
    max-height: calc(100svh - 9rem); translate: 1rem -50%;
  }
  .has-scene :is(.journey[data-chapter='exterior'] [data-panel='exterior'], .journey[data-chapter='cabin'] [data-panel='cabin'],
    .journey[data-chapter='energy'] [data-panel='energy'], .journey[data-chapter='finale'] [data-panel='finale']) { translate: 0 -50%; }
}

/* The exterior and the cabin dock under the car (the tonal arc, 2026-11-16). On a phone their head and
   dock lay out as nothing: the sheet stays as it was. On a wide screen the panel is the whole screen,
   its title large over the scene and its choices in a glass dock at the bottom left, compact (the
   user's feedback of 2026-11-16: the menu hid the render): as wide as its choices, the tabs and the
   total on one line, the open group's single row under them, the car free beside it. */
.journey-head, .journey-dock { display: contents; }
@media (width >= 64rem) {
  .has-scene .journey .journey-panel--dock {
    inset: 0; width: auto; max-width: none; max-height: none; overflow: visible;
    display: grid; grid-template-rows: auto 1fr auto; gap: 0;
    padding: 6.5rem calc(var(--copy-x) + 1.5rem) 1.5rem var(--copy-x); border: 0; border-radius: 0;
    background: none; backdrop-filter: none; pointer-events: none;
    translate: 0 1rem;
  }
  .has-scene .journey[data-chapter='exterior'] [data-panel='exterior'].journey-panel--dock,
  .has-scene .journey[data-chapter='cabin'] [data-panel='cabin'].journey-panel--dock { translate: 0 0; }
  .has-scene .journey-panel--dock .journey-head { display: block; max-width: 44rem; }
  .has-scene .journey-panel--dock .journey-head .h2 { margin: 0.5rem 0 0; font-size: clamp(2.6rem, 1rem + 3.4vw, 4.75rem); line-height: 0.94; }
  .has-scene .journey-panel--dock .journey-dock {
    grid-area: 3 / 1; justify-self: start; width: fit-content; max-width: 100%;
    display: grid; grid-template-columns: auto auto auto; grid-template-areas: 'tabs total fold' 'panels panels panels';
    align-items: center; gap: 0.65rem 2.5rem;
    max-height: 42svh; overflow: auto; padding: 0.4rem 1.25rem 0.9rem;
    border: 1px solid var(--line); border-radius: 1.25rem;
    background: var(--panel); backdrop-filter: blur(18px) saturate(1.2); pointer-events: auto;
    box-shadow: 0 1.5rem 3rem -0.75rem rgb(0 0 0 / 0.35);
    transition: opacity 0.3s ease, translate 0.3s ease, visibility 0s;
  }
  /* The cabin's six inlays in two rows of three: in one row they made the dock 1,050 px wide (the
     carbon twill, 2026-11-17), where the tabs and the total set 823 px, as the exterior's. Each group
     sits centred in the band the tallest one sets (the trims' three lines, the inlays' two rows). */
  .has-scene .journey-panel--dock .cfg-chips[data-options='inlay'] { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .has-scene .journey-panel--dock .cfg-tabpanel { align-content: center; }
  /* The dock folds away (the user's request, 2026-11-16: to see the render in full): the button at
     its corner folds both docks, each leaving a pill with its total that unfolds them. A fade and a
     slide; the pill shares the dock's cell, so nothing else moves. Shown, the pill inherits its
     chapter's visibility (`visible` would show it in every chapter). */
  .has-scene .journey-panel--dock .dock-fold {
    grid-area: fold; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-inline: -1rem -0.5rem;
    padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink-2);
    transition: color 0.25s ease, border-color 0.25s ease;
  }
  .has-scene .journey-panel--dock .dock-pill {
    grid-area: 3 / 1; justify-self: start; align-self: end; position: relative;
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.3rem 1.15rem 0.3rem 0.8rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--panel); backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 1rem 2rem -0.75rem rgb(0 0 0 / 0.35); color: var(--ink); font: inherit; pointer-events: auto;
    opacity: 0; visibility: hidden; translate: 0 0.5rem;
    transition: opacity 0.3s ease, translate 0.3s ease, visibility 0s linear 0.3s;
  }
  .has-scene .journey-panel--dock .dock-pill .mono { color: var(--ink-2); }
  .has-scene .journey-panel--dock .dock-pill b {
    font-family: 'Aplomb Estoc', 'Estoc Fallback', sans-serif; font-weight: 400; font-synthesis: none;
    font-size: 1.2rem; line-height: 1; font-variant-numeric: tabular-nums;
  }
  .has-scene .journey-panel--dock :is(.dock-fold, .dock-pill):focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
  @media (hover: hover) and (pointer: fine) {
    .has-scene .journey-panel--dock .dock-fold:hover { color: var(--ink); border-color: var(--ink-2); }
    .has-scene .journey-panel--dock .dock-pill:hover { border-color: var(--ink-2); }
  }
  .has-scene .journey[data-docks='folded'] .journey-panel--dock .journey-dock {
    opacity: 0; translate: 0 1rem; visibility: hidden;
    transition: opacity 0.3s ease, translate 0.3s ease, visibility 0s linear 0.3s;
  }
  .has-scene .journey[data-docks='folded'] .journey-panel--dock .dock-pill {
    opacity: 1; visibility: inherit; translate: 0 0;
    transition: opacity 0.3s ease 0.1s, translate 0.3s ease 0.1s, visibility 0s;
  }
  /* the tabs in fixed columns: a longer choice never moves its neighbours, nor the dock's edge */
  .has-scene .journey-panel--dock .cfg-tabs { grid-area: tabs; justify-self: start; grid-auto-columns: 10.5rem; }
  .has-scene .journey-panel--dock .cfg-tabpanels { grid-area: panels; }
  .has-scene .journey-panel--dock .cfg-total {
    grid-area: total; justify-self: end; position: static; margin: 0; padding: 0; border: 0; background: none;
    display: grid; justify-items: end; gap: 0.25rem;
  }
  .has-scene .journey-panel--dock .cfg-total b { font-size: 1.6rem; }
}

/* ---------- the exploded engine's notes ("Épure Aplomb", 2026-11-15) ----------
   A brass dot on the part, a hairline, a mono label; placed by the scene (--x, --y), each pointing
   away from the others' middle (data-side). Over the canvas, under the journey's panel. */
.engine-notes { display: none; }
.has-scene .engine-notes { position: fixed; inset: 0; z-index: 21; display: block; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.engine-note {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.45rem;
  translate: calc(var(--x, -50rem) - 0.225rem) calc(var(--y, -50rem) - 50%);
  opacity: 0; transition: opacity 0.35s ease;
  color: var(--ink-2); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}
.engine-note b { color: var(--ink); font-weight: 500; }
.engine-note::before { content: ''; order: -2; flex: none; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px rgb(210 166 90 / 0.22); }
.engine-note::after { content: ''; order: -1; flex: none; width: 2.2rem; height: 1px; background: var(--brass); opacity: 0.8; }
.engine-note[data-side='left'] { flex-direction: row-reverse; translate: calc(var(--x, -50rem) + 0.225rem - 100%) calc(var(--y, -50rem) - 50%); }
.engine-note.is-shown { opacity: 1; }
/* the phone's sheet leaves the upper half to the car: the three essential notes, on two lines */
@media (width < 48rem) {
  .engine-note[data-priority='2'] { display: none; }
  .engine-note span { max-width: 8.5rem; white-space: normal; line-height: 1.3; }
  .engine-note b { display: block; }
}

/* ---------- after the landing ---------- */
.after, .notes { position: relative; z-index: 21; background: var(--night); padding: 5rem 0; }
.notes { background: var(--surface); padding: 3rem 0 4rem; }
.notes ul { color: var(--ink-2); padding-left: 1.2rem; }
.pair { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; background: var(--surface); }
.card p:last-child { color: var(--ink-2); margin: 0; }

/* ---------- the footer and the demo's notice (2026-11-16, the site live) ----------
   The footer ends the page with or without the scene and leads to the legal notice. The notice opens
   from "Test drive" and "Find it in stock": a native modal dialog, its close button always there. */
.site-footer {
  position: relative; z-index: 21; display: grid; gap: 0.25rem; justify-items: center;
  padding: 2rem 1rem 2.5rem; border-top: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 0.875rem; text-align: center;
}
.site-footer p { margin: 0; max-width: 40rem; }
.site-footer a { color: var(--ink); text-underline-offset: 0.2em; }
.site-footer p:last-child a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.25rem; }
.demo-notice {
  width: min(28rem, calc(100% - 2rem)); max-width: none; padding: 0;
  border: 1px solid var(--line); border-radius: 1.25rem;
  background: var(--panel-solid); color: var(--ink); box-shadow: 0 2rem 4rem -1rem rgb(0 0 0 / 0.5);
}
.demo-notice::backdrop { background: rgb(5 7 9 / 0.55); backdrop-filter: blur(6px); }
.demo-notice[open] { animation: demo-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes demo-in { from { opacity: 0; translate: 0 0.75rem; } }
.demo-body { position: relative; display: grid; gap: 0.85rem; padding: 1.75rem 1.5rem 1.5rem; }
.demo-body p { margin: 0; }
.demo-body > p:not(.kicker) { color: var(--ink-2); }
.demo-body .h2 { margin: 0; padding-right: 2.5rem; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); }
.demo-body .ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.35rem; }
.demo-close {
  position: absolute; top: 0.75rem; right: 0.75rem; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--ink-2);
}
.demo-close svg { width: 1.1rem; height: 1.1rem; }
.demo-close:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .demo-close:hover { color: var(--ink); border-color: var(--ink-2); }
}

.debug {
  position: fixed; left: 0.5rem; bottom: 0.5rem; z-index: 40;
  padding: 0.4rem 0.6rem; border-radius: 0.4rem; background: rgb(0 0 0 / 0.7); color: #9fe39f;
  white-space: pre; text-transform: none; letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
