/* Velaris V12 — a single committed dark world; every colour is painted explicitly. */
:root {
  --ground: #0b0c0e;
  --surface: rgba(16, 16, 19, 0.74);
  --ink: #ece7dd;
  --ink-dim: rgba(236, 231, 221, 0.62);
  --ink-faint: rgba(236, 231, 221, 0.36);
  --line: rgba(236, 231, 221, 0.2);
  --brass: #d9a552;
  --brass-deep: #a8792f;
  --dusk: #4b5f86;
  --signal: #c2121e;

  --font: "Jost", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --text-xs: 0.68rem;
  --text-sm: 0.8rem;
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-h2: clamp(1.9rem, 0.9rem + 3.2vw, 3.5rem);
  --text-h1: clamp(2rem, 0.7rem + 4vw, 4.4rem);
  --track-wide: 0.34em;
  --track: 0.16em;

  --gutter: clamp(20px, 4vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 700ms;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 200; }
p { margin: 0; }
dl, ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Stage ---------- */
#stage {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0; touch-action: pan-y;
  outline: none;
}
#stage.is-grab { cursor: grab; }
/* Lens: a whisper of grain and a vignette so the render reads as photographed, not computed. */
.lens { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.lens::before {
  content: ""; position: absolute; inset: 0; opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lens::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.42) 100%); }
#stage.is-grabbing { cursor: grabbing; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--ground);
  transition: opacity 900ms var(--ease-out), visibility 900ms;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark { width: 44px; height: 44px; color: var(--ink); }
.loader-line { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader-line span { display: block; height: 100%; width: 0; background: var(--brass); transition: width 400ms var(--ease-out); }
.loader-caption { font-size: var(--text-xs); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Type roles ---------- */
.eyebrow {
  font-size: var(--text-xs); letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--ink-dim); font-weight: 400;
}
h1 { font-size: var(--text-h1); line-height: 1.05; letter-spacing: var(--track); text-transform: uppercase; }
h2 { font-size: var(--text-h2); line-height: 1.12; letter-spacing: var(--track); text-transform: uppercase; }
.body { max-width: 40ch; color: var(--ink-dim); font-size: var(--text-base); }
.tagline { font-size: var(--text-sm); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); line-height: 1.9; }
.rule { display: block; width: 48px; height: 1px; background: var(--ink-faint); }
.label { font-size: var(--text-xs); letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }
.ring-arrow {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 0.9rem; transition: transform 400ms var(--ease-out), border-color 300ms, background 300ms;
}
.link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--text-xs); letter-spacing: var(--track-wide); text-transform: uppercase; font-weight: 400;
}
.link:hover .ring-arrow, .btn-outline:hover .ring-arrow { transform: translateX(4px); border-color: var(--brass); }
.btn {
  display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px;
  font-size: var(--text-xs); letter-spacing: var(--track-wide); text-transform: uppercase; font-weight: 400;
  border: 1px solid var(--line); transition: border-color 300ms, background 300ms, color 300ms;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--ink); }
.btn-primary { background: var(--brass); color: #16110a; border-color: var(--brass); }
.btn-primary:hover { background: #e9b866; border-color: #e9b866; }
.btn-ghost { border-color: transparent; color: var(--ink-dim); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
  padding: 22px var(--gutter);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 12, 14, 0.55), rgba(11, 12, 14, 0));
}
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 18px; font-size: 0.9rem; letter-spacing: 0.5em; text-transform: uppercase; font-weight: 300; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; justify-content: center; gap: clamp(20px, 3vw, 48px); }
.nav-links a, .nav-cta {
  font-size: var(--text-xs); letter-spacing: 0.3em; text-transform: uppercase; font-weight: 400;
  color: var(--ink-dim); transition: color 300ms;
}
.nav-links a:hover, .nav-links a.is-current, .nav-cta:hover { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 18px; }
.nav-cta-rule { width: 48px; height: 1px; background: var(--ink-faint); }
.nav-menu { display: none; font-size: var(--text-xs); letter-spacing: 0.3em; text-transform: uppercase; }

/* ---------- Progress index ---------- */
.index {
  position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 20;
  display: grid; gap: 22px; pointer-events: none;
}
.index a {
  pointer-events: auto; display: grid; gap: 6px; justify-items: start;
  font-size: var(--text-xs); letter-spacing: 0.2em; color: var(--ink-faint); transition: color 300ms;
  font-variant-numeric: tabular-nums;
}
.index a i { display: block; width: 44px; height: 1px; background: var(--ink-faint); transform-origin: left; transform: scaleX(0); transition: transform 200ms linear; }
.index a.is-active { color: var(--ink); }
.index a.is-active i { background: var(--ink); }

/* ---------- Scroll views ---------- */
#views { position: relative; z-index: 10; }
.view {
  position: relative; min-height: 100svh; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  padding: 96px var(--gutter) 48px; gap: 24px;
  pointer-events: none;
}
.copy { display: grid; gap: 22px; justify-items: start; max-width: 560px; }
.copy--left { grid-column: 1; }
.copy--right { grid-column: 2; justify-self: end; }
.copy--bottom-left { grid-column: 1; align-self: end; }
.copy--centre { grid-column: 1 / -1; justify-self: center; justify-items: center; text-align: center; }
.copy--wide { max-width: 640px; }
.copy a, .copy button, .copy select, .copy .swatches { pointer-events: auto; }
.copy > * {
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.view:not(.is-active) .copy > * { opacity: 0; transform: translateY(20px); transition-delay: 0ms; }
.view--hero .copy { align-self: center; gap: 18px; }
.view--hero { grid-template-rows: 1fr auto; }

/* Hero bottom bar */
.hero-bar {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 32px;
  pointer-events: auto;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: 500ms;
}
.view:not(.is-active) .hero-bar { opacity: 0; transform: translateY(16px); transition-delay: 0ms; }
.hero-swatches { display: grid; gap: 12px; }
.hero-swatches .label + .label { margin-top: 6px; }
.hero-stats { display: flex; flex-wrap: wrap; justify-self: center; gap: 12px 0; }
.hero-stats > div { display: grid; gap: 4px; padding: 0 clamp(18px, 2.6vw, 44px); border-left: 1px solid var(--line); }
.hero-stats > div:first-child { border-left: 0; }
.hero-stats dd { margin: 0; font-size: 1.55rem; font-weight: 200; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-stats dt { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-faint);
}
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--ink-faint), transparent); animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.play { display: inline-flex; align-items: center; gap: 18px; font-size: var(--text-xs); letter-spacing: var(--track-wide); text-transform: uppercase; font-weight: 400; }
.play-ring { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); transition: border-color 300ms, background 300ms; }
.play-ring svg { width: 18px; height: 18px; }
.play:hover .play-ring { border-color: var(--brass); background: rgba(217, 165, 82, 0.12); }

/* Model switch */
.model-switch { display: inline-flex; border: 1px solid var(--line); }
.model-btn {
  padding: 8px 14px; font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400;
  color: var(--ink-dim); transition: color 300ms, background 300ms;
}
.model-btn + .model-btn { border-left: 1px solid var(--line); }
.model-btn:hover { color: var(--ink); }
.model-btn[aria-pressed="true"] { color: #16110a; background: var(--ink); }
.model-switch--large .model-btn { padding: 11px 20px; }
.toggle:disabled, .dock-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.foot a { border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--ink); }

/* Swatches */
.swatches { display: flex; gap: 12px; flex-wrap: nowrap; }
.swatches--large { flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); padding: 0;
  background: var(--swatch); box-shadow: inset 0 0 0 2px var(--ground);
  transition: transform 300ms var(--ease-out), border-color 300ms;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatches--large { gap: 18px; }
.swatches--large .swatch { width: 44px; height: 44px; }
.paint-line { display: flex; align-items: center; gap: 14px; font-size: var(--text-sm); letter-spacing: 0.2em; text-transform: uppercase; }
.paint-line .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--brass); }
.paint-line #paint-price { color: var(--ink-dim); }
.config-total { font-size: var(--text-sm); letter-spacing: 0.14em; color: var(--ink-dim); }
.config-total span { color: var(--ink); }

/* Spec rows */
.spec-row { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.spec-row > div { display: grid; gap: 4px; padding-right: clamp(20px, 2.6vw, 40px); }
.spec-row dt { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.spec-row dd { margin: 0; font-size: 1.05rem; font-weight: 300; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

/* Toggles inside configurator */
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle, .dock-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; color: var(--ink-dim);
  background: var(--surface); backdrop-filter: blur(10px);
  transition: color 300ms, border-color 300ms, background 300ms;
}
.toggle:hover, .dock-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.toggle[aria-pressed="true"], .dock-btn[aria-pressed="true"] { color: var(--ink); border-color: var(--brass); }
.ico { width: 14px; height: 14px; display: inline-block; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ico-moon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3a9 9 0 1 0 7 15 8 8 0 0 1-7-15z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3a9 9 0 1 0 7 15 8 8 0 0 1-7-15z'/%3E%3C/svg%3E"); }
.ico-lamp { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5a7 7 0 0 0 0 14h1V5H9zm4 1h9v2h-9zm0 5h9v2h-9zm0 5h9v2h-9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5a7 7 0 0 0 0 14h1V5H9zm4 1h9v2h-9zm0 5h9v2h-9zm0 5h9v2h-9z'/%3E%3C/svg%3E"); }
.ico-door { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V8l10-5v17H4zm2-2h6V6.3L6 9.2V18zm10-11h4v13h-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V8l10-5v17H4zm2-2h6V6.3L6 9.2V18zm10-11h4v13h-4z'/%3E%3C/svg%3E"); }

.ico-sound { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3zm11.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM12 4v2a6 6 0 0 1 0 12v2a8 8 0 0 0 0-16z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3zm11.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM12 4v2a6 6 0 0 1 0 12v2a8 8 0 0 0 0-16z'/%3E%3C/svg%3E"); }
.play-ring--small { width: 34px; height: 34px; }
.play-ring--small svg { width: 14px; height: 14px; }
[data-action="sound"][aria-pressed="true"] .ico-sound { animation: throb 0.9s ease-in-out infinite; }
@keyframes throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* Dock (persistent controls) */
.dock {
  position: fixed; right: var(--gutter); bottom: 28px; z-index: 20; display: flex; gap: 8px;
  transition: opacity 400ms, transform 400ms var(--ease-out);
}
.dock.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.dock-btn span { display: inline; }

/* Drag hint */
.hint {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-dim);
  opacity: 0; transition: opacity 500ms;
}
.hint i { width: 26px; height: 1px; background: var(--ink-faint); position: relative; }
.hint i::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); animation: drag 1.8s ease-in-out infinite; }
@keyframes drag { 0%, 100% { left: 0; } 50% { left: 19px; } }
.view.is-active .hint { opacity: 1; }

/* ---------- Hotspots ---------- */
.hotspots { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
.hotspot {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; pointer-events: auto;
  opacity: 0; transition: opacity 400ms; will-change: transform;
}
.hotspot.is-visible { opacity: 1; }
.hotspot.is-occluded { opacity: 0.18; pointer-events: none; }
.hotspot-ring {
  position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(236, 231, 221, 0.75);
  display: grid; place-items: center; background: rgba(11, 12, 14, 0.35); backdrop-filter: blur(3px);
  transition: border-color 300ms, background 300ms;
}
.hotspot-ring::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.hotspot-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--brass); opacity: 0; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2); opacity: 0; } }
.hotspot-label {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
  padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(8px);
  opacity: 0; transform: translateX(-6px); transition: opacity 300ms, transform 300ms var(--ease-out);
}
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label, .hotspot.is-open .hotspot-label { opacity: 1; transform: none; }
.hotspot.is-open .hotspot-ring, .hotspot:hover .hotspot-ring { border-color: var(--brass); background: rgba(217, 165, 82, 0.18); }
.hotspot--flip { flex-direction: row-reverse; }
.hotspot--flip .hotspot-label { transform: translateX(6px); }

/* ---------- Feature panel ---------- */
.feature {
  position: fixed; top: 50%; right: var(--gutter); transform: translate(24px, -50%); z-index: 25;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  box-sizing: border-box; padding: 34px 32px 30px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px);
  display: grid; gap: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out), visibility 400ms;
}
.feature[hidden] { display: grid; }
.feature.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.feature h3 { font-size: 1.35rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 300; }
.feature .body { font-size: 0.92rem; }
.feature-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; font-size: 1.3rem; font-weight: 200; color: var(--ink-dim); }
.feature-close:hover { color: var(--ink); }
.feature-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.feature-facts div { display: grid; gap: 3px; }
.feature-facts dt { font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.feature-facts dd { margin: 0; font-size: 1rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

/* ---------- Film mode ---------- */
.film { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.film[hidden] { display: none; }
.film-bar { position: absolute; left: 0; right: 0; height: 12vh; background: #000; transform: scaleY(0); transition: transform 700ms var(--ease-out); }
.film-bar--top { top: 0; transform-origin: top; }
.film-bar--bottom { bottom: 0; transform-origin: bottom; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); box-sizing: border-box; }
.film.is-on .film-bar { transform: scaleY(1); }
.film-title { font-size: var(--text-xs); letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-dim); }
.film-progress { flex: 1; max-width: 320px; height: 1px; background: var(--line); }
.film-progress i { display: block; height: 100%; width: 0; background: var(--brass); }
.film-skip { pointer-events: auto; font-size: var(--text-xs); letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-dim); }
.film-skip:hover { color: var(--ink); }
body.is-film .nav, body.is-film .index, body.is-film #views, body.is-film .dock, body.is-film .hotspots { opacity: 0; pointer-events: none; transition: opacity 500ms; }
.nav, .index, #views, .dock { transition: opacity 500ms; }

/* ---------- CTA + footer ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.view--cta { grid-template-rows: 1fr auto; }
.foot {
  grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); pointer-events: auto;
}
.perf { display: inline-flex; align-items: center; gap: 12px; }
.perf select {
  font: inherit; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 12px); z-index: 45;
  padding: 12px 20px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px);
  font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity 300ms, transform 400ms var(--ease-out); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Maker badge ---------- */
.maker {
  position: fixed; left: var(--gutter); bottom: 28px; z-index: 20;
  display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(12px);
  transition: opacity 400ms, transform 400ms var(--ease-out), border-color 300ms;
}
.maker:hover { border-color: var(--brass); }
.maker-eyebrow { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.maker-cta { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.maker .ring-arrow { width: 26px; height: 26px; font-size: 0.8rem; }
.maker:hover .ring-arrow { transform: translateX(3px); border-color: var(--brass); }
body.is-film .maker, body.on-hero .maker { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .maker { display: none; } }

body.no-paint [data-paint-ui] { display: none; }

/* ---------- Embed mode ---------- */
body.is-embed .nav, body.is-embed .index, body.is-embed .maker, body.is-embed .scroll-cue,
body.is-embed .view--hero .copy, body.is-embed .view--hero .btn-outline, body.is-embed .foot { display: none; }
body.is-embed .view { padding-top: 32px; }
body.is-embed .hero-bar { grid-template-columns: auto 1fr; }
body.is-embed .dock { bottom: 20px; }

/* ---------- Fallback (no WebGL) ---------- */
.fallback { position: relative; z-index: 12; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter) 64px; box-sizing: border-box;
  background: radial-gradient(120% 80% at 50% 110%, #3a2a1c 0%, var(--ground) 60%); }
.fallback[hidden] { display: none; }
.fallback-copy { display: grid; gap: 26px; justify-items: start; max-width: 720px; }
.fallback-car { width: min(100%, 640px); height: auto; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; }
.stats div { display: grid; gap: 4px; }
.stats dt { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.stats dd { margin: 0; font-size: 1.3rem; font-weight: 200; letter-spacing: 0.06em; }
.lede { max-width: 56ch; color: var(--ink-dim); }
body.is-fallback #stage, body.is-fallback .index, body.is-fallback .dock, body.is-fallback .hotspots, body.is-fallback #views { display: none; }

/* ---------- Responsive ---------- */
/* Phones and small tablets: the product owns the upper half of every screen, the copy
   sits on a scrim below it, and every control row scrolls sideways instead of wrapping. */
@media (max-width: 900px) {
  :root { --text-h1: clamp(1.75rem, 7.6vw, 2.6rem); --text-h2: clamp(1.55rem, 6.6vw, 2.3rem); --gutter: 20px; }
  .nav { grid-template-columns: auto 1fr; padding-top: 18px; }
  .nav-menu { justify-self: end; }
  .nav-links {
    position: fixed; inset: 0; display: grid; place-content: center; gap: 28px; text-align: center;
    background: rgba(11, 12, 14, 0.94); z-index: 5; opacity: 0; visibility: hidden; transition: opacity 300ms, visibility 300ms;
  }
  .nav-links a { font-size: 1rem; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; }
  .nav-cta { display: none; }
  .nav-menu { display: inline-block; position: relative; z-index: 6; padding: 8px 0; justify-self: end; }
  .index { display: none; }

  .view { grid-template-columns: 1fr; padding: 84px var(--gutter) 40px; align-items: end; }
  .view::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgba(11, 12, 14, 0.94) 0%, rgba(11, 12, 14, 0.7) 40%, rgba(11, 12, 14, 0) 100%);
  }
  .copy, .copy--right, .copy--bottom-left { grid-column: 1; justify-self: start; max-width: 100%; gap: 14px; }
  .copy--centre { justify-self: center; }
  .copy .body, .copy p:not(.eyebrow):not(.tagline) { font-size: 0.94rem; }
  h1 { letter-spacing: 0.1em; }
  .spec-row > div { min-width: 44%; padding-right: 12px; margin-bottom: 10px; }

  /* Hero: copy up top, controls down low, the product between them. */
  .view--hero { grid-template-rows: auto 1fr auto; align-items: start; padding-bottom: 22px; }
  .view--hero::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(11, 12, 14, 0.9) 0%, rgba(11, 12, 14, 0.5) 55%, rgba(11, 12, 14, 0) 100%);
  }
  .view--hero .copy { grid-row: 1; align-self: start; gap: 12px; }
  .view--hero .tagline br { display: none; }
  .view--hero .tagline { line-height: 1.6; }
  .hero-bar { grid-row: 3; grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .hero-swatches { gap: 8px; max-width: 100%; }
  .hero-swatches .label + .label { margin-top: 4px; }
  .hero-stats { justify-self: stretch; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .hero-stats > div { padding: 0 10px; }
  .hero-stats > div:first-child { padding-left: 0; }
  .hero-stats dd { font-size: 1.05rem; }
  .hero-stats dt { font-size: 0.52rem; letter-spacing: 0.16em; white-space: normal; line-height: 1.3; }
  .view--hero .btn-outline { display: inline-flex; justify-self: stretch; justify-content: space-between; padding: 12px 18px; }
  .scroll-cue { display: none; }

  /* Rows that would wrap now slide. */
  .model-switch, .swatches { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .model-switch::-webkit-scrollbar, .swatches::-webkit-scrollbar { display: none; }
  .model-switch { display: flex; }
  .model-btn { flex: none; padding: 10px 14px; }
  .swatches { padding: 3px; }
  .swatch { flex: none; }
  .swatches--large { flex-wrap: nowrap; gap: 12px; }
  .swatches--large .swatch { width: 40px; height: 40px; }

  /* Controls: icon buttons under the nav, out of the copy's way. */
  .dock { left: auto; right: var(--gutter); top: 66px; bottom: auto; justify-content: flex-end; gap: 6px; }
  .dock-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .dock-btn span { display: none; }
  .dock-btn .ico { width: 15px; height: 15px; }
  .toggle { padding: 10px 14px; }

  .feature {
    top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 72svh; overflow: auto;
    transform: translateY(24px); border-left: 0; border-right: 0; padding: 26px var(--gutter) 28px;
  }
  .feature.is-open { transform: none; }
  .feature #feature-spec { padding-right: 40px; }
  .feature-close { top: 18px; right: 12px; }
  .hint { bottom: auto; top: 120px; left: var(--gutter); transform: none; }
  .toast { bottom: 24px; width: calc(100% - 2 * var(--gutter)); box-sizing: border-box; text-align: center; }
  .film-bar { height: 9vh; }
  .film-progress { max-width: 120px; }
  .foot { gap: 10px; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .view--cta .copy--centre .btn { width: 100%; box-sizing: border-box; justify-content: center; }
}
/* Touch: bigger targets; the label opens with the panel, since there is nothing to hover. */
@media (pointer: coarse) {
  .hotspot-ring { width: 32px; height: 32px; }
  .hotspot-ring::before { width: 6px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .copy > *, .hero-bar, .feature, .dock, .hotspot, .film-bar { transition-duration: 1ms; }
  .scroll-cue i, .hint i::after, .hotspot-ring::after { animation: none; }
}
