/* ==========================================================================
   TARAASH — Coachwork & Cabin Atelier (demonstration concept)
   Identity: Bidri black, inlay silver, bone, one laterite accent.
   Type: Archivo Expanded (structure) · Newsreader Italic (voice) · IBM Plex Mono (spec)
   ========================================================================== */

:root {
  --bidri: #0d0c0b;
  --graphite: #1b1a18;
  --graphite-2: #252421;
  --inlay: #c9c5bc;
  --bone: #ece6da;
  --bone-dim: #a9a397;
  --laterite: #b4532f;
  --laterite-hi: #d2683f;
  --brass: #a88b5c;
  --ink: #141311;
  --hair: rgba(201, 197, 188, 0.22);
  --hair-strong: rgba(201, 197, 188, 0.5);

  --f-wide: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-voice: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --pad: clamp(1.1rem, 3.2vw, 2.75rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --grade: contrast(1.05) saturate(0.88) brightness(0.98);
  --vh: 1vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bidri);
  color: var(--bone);
  font-family: var(--f-wide);
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--laterite); color: var(--bone); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.label { color: var(--bone-dim); margin: 0 0 0.5rem; }
.fine { font-size: 0.78rem; color: var(--bone-dim); line-height: 1.6; }
.mono.fine { font-size: 0.66rem; }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 0.6em; opacity: 0.7; }
em { font-family: var(--f-voice); font-style: italic; font-weight: 300; letter-spacing: -0.01em; text-transform: none; }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; border-radius: 2px; }
.build :focus-visible { outline-color: var(--ink); }

.skip {
  position: fixed; left: var(--pad); top: -4rem; z-index: 100;
  background: var(--bone); color: var(--ink); padding: 0.6rem 1rem;
  font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.skip:focus { top: 1rem; }

/* ---------- wordmark ---------- */
.wm {
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  white-space: nowrap;
  margin-right: -0.2em; /* optical: trailing tracking */
}
.wm__aa { position: relative; display: inline-block; }
.wm__aa::after {
  content: ''; position: absolute; left: 0.08em; right: 0.28em; top: 62%;
  height: clamp(1px, 0.02em, 2px); background: currentColor;
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 44px; padding: 0.7em 1.35em;
  border: 1px solid var(--bone); border-radius: 999px;
  background: var(--bone); color: var(--ink);
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pill:hover { background: transparent; color: var(--bone); }
.pill--ghost { background: transparent; color: var(--bone); border-color: var(--hair-strong); }
.pill--ghost:hover { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.pill--lg { min-height: 56px; padding: 1em 2.2em; font-size: 0.8rem; }
.pill--full { width: 100%; }
.count {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 0.4em;
  border-radius: 999px; background: var(--laterite); color: var(--bone); font-size: 0.65rem;
}
.count[data-zero] { background: transparent; border: 1px solid var(--hair-strong); color: var(--bone-dim); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; font: inherit; }

/* ==========================================================================
   Title sequence
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 90; background: #070706;
  display: grid; place-items: center;
}
.js .loader { display: grid; }
.no-js .loader { display: none; }
.loader__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; }
.loader__line i {
  position: absolute; inset: 0; background: var(--inlay);
  transform: scaleX(var(--p, 0)); transform-origin: 50% 50%;
  box-shadow: 0 0 12px rgba(255, 248, 235, 0.35);
}
.loader__mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  font-size: clamp(2rem, 7vw, 6.4rem); padding-bottom: 0.35em;
  clip-path: inset(100% 0 0 0);
}
.loader__meta {
  position: absolute; left: var(--pad); right: var(--pad); top: calc(50% + 1.4rem);
  display: flex; justify-content: space-between; color: var(--bone-dim); opacity: 0;
}
.loader__count { color: var(--bone); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Chrome
   ========================================================================== */
.chrome {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.1rem var(--pad);
  color: var(--bone);
  transition: color 0.4s var(--ease);
}
.chrome__mark { font-size: 0.95rem; text-decoration: none; justify-self: start; }
.chrome__nav { display: flex; gap: 2.2rem; }
.chrome__nav a {
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--bone-dim); position: relative; padding: 0.4rem 0;
  transition: color 0.3s;
}
.chrome__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.chrome__nav a:hover, .chrome__nav a[aria-current] { color: var(--bone); }
.chrome__nav a:hover::after, .chrome__nav a[aria-current]::after { transform: scaleX(1); }
.chrome__act { justify-self: end; display: flex; gap: 0.6rem; }
.chrome .pill { min-height: 38px; padding: 0.55em 1.1em; font-size: 0.66rem; }
.chrome::before {
  content: ''; position: absolute; inset: 0 0 -1.5rem; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(var(--bidri) 55%, rgba(13, 12, 11, 0)); transition: opacity 0.5s, background 0.5s;
}
.chrome.is-solid::before { opacity: 1; }
.chrome.is-light::before { background: linear-gradient(var(--bone) 55%, rgba(236, 230, 218, 0)); }
.chrome.is-light { color: var(--ink); }
.chrome.is-light .chrome__nav a { color: #5d584f; }
.chrome.is-light .chrome__nav a:hover { color: var(--ink); }
.chrome.is-light .pill { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chrome.is-light .pill--ghost { background: transparent; color: var(--ink); border-color: rgba(20, 19, 17, 0.35); }
.chrome.is-light .count[data-zero] { color: #5d584f; border-color: rgba(20, 19, 17, 0.35); }

.demo-tag {
  position: fixed; right: var(--pad); bottom: 1.2rem; z-index: 40;
  background: none; border: 0; padding: 0.4rem 0; color: var(--bone-dim);
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.demo-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--laterite); margin-right: 0.6em; vertical-align: 1px; }
.demo-tag:hover { color: var(--bone); }
.demo-tag { transition: opacity 0.4s, visibility 0.4s; }
.demo-tag.is-away { opacity: 0; visibility: hidden; }
.demo-tag.is-light { color: #5d584f; }

/* ==========================================================================
   Film
   ========================================================================== */
.film { position: relative; height: 1260vh; background: #070706; }
.screen {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background: #070706; contain: layout paint;
}
.layer {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
}
.layer[data-layer='1'] { opacity: 1; visibility: visible; }
.layer > canvas, .layer > img, .layer > div > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* static images carry the CSS grade; canvas frames are graded at conversion time (scripts/build-media.mjs) */
.layer > img, .layer > div > img { filter: var(--grade); }
.layer > canvas { background: #070706; }

/* stitch */
.stitch__b { position: absolute; inset: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.lamp {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--lamp, 0); mix-blend-mode: soft-light;
  background: radial-gradient(28vmax 28vmax at var(--lx, 60%) var(--ly, 40%), rgba(255, 238, 210, 0.85), rgba(255, 238, 210, 0) 70%);
  transition: opacity 0.6s;
}
.tone-plate { opacity: 0; transition: opacity 0.9s var(--ease); }
.tone-plate.is-on { opacity: 1; }

/* wheels */
.layer--wheels { background: radial-gradient(circle at 50% 45%, #141312, #050505 70%); }
.disc {
  position: absolute; left: 50%; top: 50%;
  width: min(86vh, 86vw); aspect-ratio: 1; translate: -50% -50%;
  will-change: transform, filter;
}
.disc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: var(--grade); }
.disc--wheel {
  -webkit-mask-image: conic-gradient(from 0deg, #000 var(--sweep, 0deg), transparent 0);
  mask-image: conic-gradient(from 0deg, #000 var(--sweep, 0deg), transparent 0);
}

/* rain */
.rain__b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 85%)); }
.layer--rain::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: var(--split, 85%); width: 1px;
  background: var(--inlay); box-shadow: 0 0 10px rgba(255, 248, 235, 0.5);
}

.grade {
  position: absolute; inset: -12%; pointer-events: none; z-index: 5; opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
.screen::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 22vh; z-index: 9; pointer-events: none;
  background: linear-gradient(rgba(7, 7, 6, 0.5), rgba(7, 7, 6, 0));
}
.screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(4%, -6%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(6%, 6%); } 100% { transform: translate(0, 0); }
}
.flash { position: absolute; inset: 0; z-index: 7; background: #fff6ea; opacity: 0; pointer-events: none; }
.inlay { position: absolute; left: 0; right: 0; top: 50%; height: 1px; z-index: 8; pointer-events: none; transform-origin: 50% 50%; }
.inlay i {
  position: absolute; inset: 0; background: var(--inlay); transform: scaleX(0); opacity: 0;
  box-shadow: 0 0 14px rgba(255, 248, 235, 0.55);
}

/* ---------- type layer ---------- */
.type { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.cap { position: absolute; opacity: 0; visibility: hidden; }
.cap p { margin: 0; }
.cap .mono { color: var(--inlay); }
.say {
  font-family: var(--f-wide); font-stretch: 125%; font-weight: 300; text-transform: uppercase;
  font-size: clamp(2.2rem, 6.2vw, 6.6rem); line-height: 0.92; letter-spacing: -0.01em;
  display: flex; flex-direction: column;
}
.say em { font-size: 1.08em; line-height: 0.95; text-transform: none; color: var(--bone); }
.say span { padding-left: 0.9em; }
.say + .mono { margin-top: 1.3rem; }

.cap--1 { inset: 0; display: grid; place-items: center; align-content: center; gap: 1.6rem; text-align: center; }
.cap1__word { font-size: clamp(2.6rem, 11.5vw, 13rem); }
.cap1__sub { letter-spacing: 0.22em; }
.cap--2 { left: var(--pad); bottom: 14vh; }
.num { display: flex; align-items: flex-start; font-stretch: 125%; font-weight: 200; line-height: 0.82; }
.num__v { font-size: clamp(4.5rem, 15vw, 15rem); letter-spacing: -0.04em; }
.num__u { font-family: var(--f-mono); font-size: 0.85rem; margin: 0.8em 0 0 0.8em; letter-spacing: 0.1em; color: var(--inlay); }
.cap--2 .mono { margin-top: 1.2rem; }
.cap--3 { left: var(--pad); bottom: 11vh; }
.cap--4 { right: var(--pad); top: 18vh; text-align: right; }
.cap--4 .say { align-items: flex-end; }
.cap--4 .say span { padding: 0 0.9em 0 0; }
.tones { display: flex; justify-content: flex-end; gap: 0.4rem; margin-top: 1.8rem; pointer-events: auto; }
.tones button {
  display: inline-flex; align-items: center; gap: 0.55em; min-height: 40px; padding: 0.5em 1em;
  border: 1px solid var(--hair-strong); border-radius: 999px; background: rgba(13, 12, 11, 0.35);
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone);
  transition: border-color 0.3s, background 0.3s;
}
.tones button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tones button[aria-checked='true'] { border-color: var(--bone); background: rgba(236, 230, 218, 0.1); }
.cap--5 { inset: 0; display: flex; align-items: center; }
.say--split { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; padding: 0 var(--pad); }
.say--split span { padding: 0; }
.say--split .arrow { display: none; }
.cap--6 { inset: 0; display: flex; flex-direction: column; justify-content: center; }
.mega {
  font-stretch: 125%; font-weight: 800; font-size: 22vw; line-height: 0.8; white-space: nowrap; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 230, 218, 0.75); will-change: transform;
}
.cap--6 .tc { position: absolute; left: var(--pad); bottom: 12vh; }
.cap--7 { inset: 0; }
.cap--7 .say { position: absolute; left: var(--pad); top: 16vh; }
.split-labels { position: absolute; left: 0; right: 0; bottom: 12vh; }
.split-labels span { position: absolute; bottom: 0; }
.split-labels span:first-child { right: calc(100% - var(--split, 85%) + 1.2rem); }
.split-labels span:last-child { left: calc(var(--split, 85%) + 1.2rem); }
.split-handle {
  position: absolute; top: 50%; left: var(--split, 85%); translate: -50% -50%; pointer-events: auto;
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--inlay); background: rgba(13, 12, 11, 0.45);
  touch-action: none; cursor: ew-resize;
}
.split-handle i::before, .split-handle i::after {
  content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--bone); border-width: 1px 1px 0 0;
}
.split-handle i::before { left: 14px; transform: translateY(-50%) rotate(-135deg); }
.split-handle i::after { right: 14px; transform: translateY(-50%) rotate(45deg); }
.cap--8 { left: var(--pad); bottom: 12vh; }
.say--big { font-size: clamp(2.6rem, 8vw, 9rem); color: var(--bone); text-shadow: 0 2px 40px rgba(40, 20, 5, 0.35); }
.cap--8 .mono { color: var(--bone); }

/* ---------- HUD ---------- */
.hud {
  position: absolute; left: var(--pad); bottom: 1.2rem; z-index: 12;
  display: flex; align-items: center; gap: 0.9rem; color: var(--inlay);
}
.hud__bar { position: relative; width: clamp(70px, 9vw, 140px); height: 1px; background: var(--hair); }
.hud__bar i { position: absolute; inset: 0; background: var(--inlay); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hud__idx { color: var(--bone); font-variant-numeric: tabular-nums; }
.cue {
  position: absolute; left: 50%; bottom: 1.2rem; z-index: 12; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--inlay);
}
.cue i { width: 1px; height: 36px; background: linear-gradient(var(--inlay), transparent); animation: cue 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- placeholder slates ---------- */
.slate {
  position: absolute; right: var(--pad); bottom: 3.2rem; z-index: 4; pointer-events: none;
  display: grid; gap: 0.15rem; justify-items: end; text-align: right;
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(236, 230, 218, 0.55);
}
.slate__tag { color: var(--bidri); background: rgba(236, 230, 218, 0.7); padding: 0.1rem 0.35rem; margin-bottom: 0.2rem; }
.slate__path { text-transform: none; }
.finish__stage .slate, .board .slate, .col-hero .slate { top: 0.8rem; right: 0.8rem; bottom: auto; }

/* ==========================================================================
   Atelier sections
   ========================================================================== */
section:not(.film) { position: relative; padding: clamp(6rem, 14vh, 11rem) var(--pad); }
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(3rem, 8vh, 6rem); max-width: 1400px; }
.kicker { display: flex; align-items: center; gap: 1rem; color: var(--bone-dim); margin: 0; }
.kicker .rule { width: 56px; height: 1px; background: currentColor; }
.h2 {
  margin: 0; font-stretch: 125%; font-weight: 300; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.4vw, 8rem); line-height: 0.9; letter-spacing: -0.02em;
}
.h2 em { font-size: 1.08em; }
.h3 { margin: 0; font-stretch: 125%; font-weight: 400; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0; line-height: 1; }
.h3 em { font-size: 1.15em; }

.drawline { position: absolute; left: 50%; top: 0; width: 1px; height: clamp(4rem, 10vh, 8rem); background: linear-gradient(var(--inlay), transparent); transform-origin: top; }

/* ---------- Finish room ---------- */
.finish__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem clamp(1rem, 2.4vw, 2.5rem); align-items: start; }
.finish__stage {
  grid-column: 1 / span 8; grid-row: 1 / span 2; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--graphite);
}
.finish__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade);
  clip-path: inset(50% 0 50% 0); transition: clip-path 1.1s var(--ease-io), transform 1.6s var(--ease);
  transform: scale(1.06);
}
.finish__stage img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.finish__stage img.is-leaving { clip-path: inset(0 0 0 0); z-index: 0; }
.finish__list { grid-column: 9 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); counter-reset: c; }
.finish__list li { border-bottom: 1px solid var(--hair); }
.finish__list button {
  width: 100%; display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; gap: 0.4rem 0.6rem;
  padding: 1.05rem 0; background: none; border: 0; text-align: left; color: var(--bone-dim); position: relative;
  transition: color 0.3s;
}
.finish__list button::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--inlay);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease);
}
.finish__list .n { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; }
.finish__list .t { font-stretch: 125%; font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2.3rem); text-transform: uppercase; line-height: 1; }
.finish__list .l { grid-column: 2; font-family: var(--f-voice); font-style: italic; font-size: 1.05rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s var(--ease), opacity 0.4s; }
.finish__list .sig { font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--laterite-hi); margin-left: 0.6rem; vertical-align: middle; }
.finish__list button[aria-selected='true'] { color: var(--bone); }
.finish__list button[aria-selected='true']::before { transform: scaleX(1); }
.finish__list button[aria-selected='true'] .l { max-height: 3rem; opacity: 1; }
.finish__list button:hover { color: var(--bone); }

.finish__spec { grid-column: 9 / -1; }
.spec { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--hair); margin: 0; }
.spec dt, .spec dd { margin: 0; padding: 0.65rem 0; border-bottom: 1px solid var(--hair); }
.spec dt { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); padding-right: 1.5rem; }
.spec dd { font-size: 0.86rem; text-align: right; }
.chips { display: inline-flex; gap: 4px; }
.chips i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid var(--hair-strong); }
.spec__acts { display: flex; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }

/* ---------- Build (light) ---------- */
.build { background: var(--bone); color: var(--ink); }
.build .kicker, .build .label, .build .fine { color: #6a645a; }
.build .pill { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.build .pill:hover { background: transparent; color: var(--ink); }
.build .pill--ghost { background: transparent; color: var(--ink); border-color: rgba(20, 19, 17, 0.35); }
.build .pill--ghost:hover { background: var(--ink); color: var(--bone); }
.build__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.board { grid-column: 1 / span 6; position: sticky; top: 6rem; aspect-ratio: 4 / 5; }
.board > div { position: absolute; overflow: hidden; background: #d9d2c4; box-shadow: 0 30px 60px -30px rgba(20, 19, 17, 0.45); }
.board img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease); }
.board img.is-swapping { opacity: 0; }
.board__seat { left: 0; top: 0; width: 64%; height: 66%; }
.board__trim { right: 0; top: 46%; width: 62%; height: 15%; z-index: 2; }
.board__floor { right: 6%; bottom: 0; width: 40%; height: 32%; }
.board__floor.is-none { opacity: 0; }
.board__stitch { position: absolute; left: 0; top: 0; width: 64%; height: 66%; overflow: visible; pointer-events: none; z-index: 1; }
.board__stitch path { fill: none; stroke: var(--stitch, #d6d2c8); stroke-width: 2.2; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6)); transition: stroke 0.5s; }
.board__amb {
  position: absolute; right: 0; top: calc(61% + 6px); width: 62%; height: 2px; z-index: 3; border-radius: 2px;
  background: var(--amb, transparent); box-shadow: 0 0 18px 3px var(--amb, transparent); transition: background 0.6s, box-shadow 0.6s;
}
.board__code { position: absolute; left: 0; bottom: 0; margin: 0; color: #6a645a; max-width: 50%; line-height: 1.8; }

.build__form { grid-column: 8 / -1; display: grid; gap: 2.2rem; }
.opt { border: 0; margin: 0; padding: 0 0 1.6rem; border-bottom: 1px solid rgba(20, 19, 17, 0.15); }
.opt legend { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6a645a; padding: 0; margin-bottom: 1rem; width: 100%; display: flex; justify-content: space-between; }
.opt legend b { font-weight: 400; color: var(--ink); }
.opt__row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label { display: grid; justify-items: center; gap: 0.5rem; width: 76px; cursor: pointer; text-align: center; font-size: 0.72rem; line-height: 1.25; color: #4b463f; }
.opt .sw { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; position: relative; background: var(--c, #ccc); outline: 1px solid rgba(20, 19, 17, 0.2); outline-offset: 3px; transition: outline-color 0.3s, outline-offset 0.3s; }
.opt .sw img { width: 100%; height: 100%; object-fit: cover; }
.opt .sw--none { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(20, 19, 17, 0.15) 6px 7px); }
.opt input:checked + label .sw { outline: 1.5px solid var(--ink); outline-offset: 4px; }
.opt input:checked + label { color: var(--ink); }
.opt input:focus-visible + label .sw { outline: 2px solid var(--laterite); outline-offset: 5px; }

.build__foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; margin-top: clamp(3rem, 8vh, 5rem); padding-top: 2rem; border-top: 1px solid rgba(20, 19, 17, 0.2); }
.build__total { margin: 0.2rem 0 0.6rem; font-stretch: 125%; font-weight: 300; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.build__acts { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- Fitting ---------- */
.jobcard { border: 1px solid var(--hair); background: linear-gradient(180deg, var(--graphite), var(--bidri)); }
.jobcard__head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--hair); color: var(--bone-dim); }
.jobcard__steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { border-right: 1px solid var(--hair); }
.step:last-child { border-right: 0; }
.step summary { list-style: none; cursor: pointer; padding: clamp(1.4rem, 3vw, 2.4rem) 1.2rem; display: grid; gap: 0.8rem; position: relative; min-height: 15rem; align-content: start; }
.step summary::-webkit-details-marker { display: none; }
.step .sn { font-stretch: 125%; font-weight: 200; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 0.85; letter-spacing: -0.03em; color: var(--bone); }
.step .st { font-family: var(--f-voice); font-style: italic; font-size: 1.7rem; line-height: 1; }
.step .ss { color: var(--inlay); }
.step .plus { position: absolute; right: 1.2rem; top: 1.6rem; width: 14px; height: 14px; }
.step .plus::before, .step .plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--bone); transition: transform 0.5s var(--ease); }
.step .plus::after { transform: rotate(90deg); }
.step[open] .plus::after { transform: rotate(0); }
.step .sb { margin: 0; padding: 0 1.2rem 1.8rem; color: var(--bone-dim); font-size: 0.92rem; max-width: 30ch; }
.step[open] summary .sn { color: var(--laterite-hi); }
.step summary:hover .sn { color: var(--laterite-hi); }

/* ---------- Visit ---------- */
.visit__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: end; }
.map { grid-column: 1 / span 8; margin: 0; background: var(--graphite); border: 1px solid var(--hair); padding: clamp(0.5rem, 2vw, 1.5rem); position: relative; }
.map svg { width: 100%; height: auto; }
.map figcaption { position: absolute; left: 1.2rem; bottom: 1rem; color: var(--bone-dim); font-size: 0.6rem; }
.map__grid line { stroke: rgba(201, 197, 188, 0.06); }
.map__orr { fill: none; stroke: var(--hair-strong); stroke-dasharray: 2 6; }
.map__road { fill: none; stroke: rgba(201, 197, 188, 0.3); stroke-width: 1; }
.map__river { fill: none; stroke: rgba(150, 170, 190, 0.45); stroke-width: 2.5; stroke-linecap: round; }
.map__lake { fill: url(#hatch); stroke: rgba(150, 170, 190, 0.55); }
.map__hatch { stroke: rgba(150, 170, 190, 0.35); stroke-width: 1; }
.map__labels text { fill: var(--bone-dim); font-size: 9px; letter-spacing: 0.14em; }
.map__route { fill: none; stroke: var(--inlay); stroke-width: 1.5; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--off, 400); filter: drop-shadow(0 0 4px rgba(255, 248, 235, 0.6)); }
.map__pin rect { fill: var(--laterite-hi); }
.map__pin text { fill: var(--bone); font-size: 10px; letter-spacing: 0.12em; }
.map__pin .map__sub { fill: var(--bone-dim); font-size: 8px; }
.map__pulse { fill: none; stroke: var(--laterite-hi); opacity: 0.5; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.3); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.visit__info { grid-column: 9 / -1; display: grid; gap: 2rem; }
.addr { font-style: normal; font-family: var(--f-voice); font-style: italic; font-size: 1.7rem; line-height: 1.2; }
.addr .mono { display: block; font-style: normal; color: var(--bone-dim); margin-top: 0.8rem; }
.hours { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--hair); }
.hours dt, .hours dd { margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--hair); font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hours dt { color: var(--bone-dim); }
.hours dd { text-align: right; }
.visit__acts { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- Close + footer ---------- */
.close { text-align: center; padding-block: clamp(8rem, 22vh, 14rem) !important; }
.close__h { margin: 0 auto 3rem; font-stretch: 125%; font-weight: 300; text-transform: uppercase; font-size: clamp(2rem, 6.4vw, 7rem); line-height: 0.95; letter-spacing: -0.02em; }
.close__h span { display: block; }
.close__h em { font-size: 1.15em; }
.foot { padding: 4rem var(--pad) 3.5rem; border-top: 1px solid var(--hair); overflow: hidden; }
.foot__mark { font-size: 12.6vw; color: transparent; -webkit-text-stroke: 1px var(--hair-strong); margin: 0 0 3rem; letter-spacing: 0.14em; }
.foot__mark .wm__aa::after { background: var(--hair-strong); height: 1px; }
.foot__cols { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 2rem; align-items: start; }
.foot__cols p { margin: 0; }
.foot__phil { font-size: 1.15rem; }
.foot__phil em { font-size: 1.15em; }

/* ==========================================================================
   Dialogs
   ========================================================================== */
dialog { color: var(--bone); padding: 0; border: 0; }
dialog::backdrop { background: rgba(5, 5, 4, 0.72); }
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(560px, 100%); max-width: 100%;
  background: var(--graphite); border-left: 1px solid var(--hair); overflow: auto; overscroll-behavior: contain;
}
.drawer--wide { width: min(880px, 100%); }
.drawer[open] { animation: drawer-in 0.7s var(--ease); }
.drawer[open]::backdrop { animation: fade-in 0.5s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
.drawer__in { padding: 1.4rem clamp(1.2rem, 3vw, 2.4rem) 2.4rem; display: grid; gap: 1.4rem; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--hair); }
.x { position: relative; width: 44px; height: 44px; border: 1px solid var(--hair-strong); border-radius: 50%; background: none; }
.x i::before, .x i::after { content: ''; position: absolute; left: 13px; right: 13px; top: 50%; height: 1px; background: var(--bone); transform: rotate(45deg); }
.x i::after { transform: rotate(-45deg); }
.x:hover { border-color: var(--bone); }

.modal { max-width: min(520px, calc(100% - 2rem)); background: var(--graphite); border: 1px solid var(--hair); padding: 2rem; }
.modal p { color: var(--bone-dim); font-size: 0.92rem; }
.modal .h3 { margin-bottom: 1rem; }

/* form */
.enq { display: grid; gap: 1.3rem; }
.enq[hidden] { display: none; }
.enq-done:focus { outline: none; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg legend { width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0.5em 1.1em; border: 1px solid var(--hair-strong); border-radius: 999px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.seg input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.seg input:focus-visible + span { outline: 1px solid var(--bone); outline-offset: 3px; }
.f { display: grid; gap: 0.35rem; }
.f[hidden] { display: none; }
.f label { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); display: flex; justify-content: space-between; }
.hint { color: rgba(169, 163, 151, 0.7); text-transform: none; letter-spacing: 0.02em; }
.f input, .f select, .f textarea {
  width: 100%; min-height: 44px; padding: 0.6rem 0; border: 0; border-bottom: 1px solid var(--hair-strong); border-radius: 0;
  background: transparent; font-size: 1.05rem; transition: border-color 0.3s;
}
.f select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--bone-dim) 50%) right 0 center / 6px 6px no-repeat; }
.f select option { background: var(--graphite); color: var(--bone); }
.f textarea { resize: vertical; min-height: 88px; }
.f input:focus, .f select:focus, .f textarea:focus { border-bottom-color: var(--bone); outline: none; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--bone); }
.f [aria-invalid='true'] { border-bottom-color: var(--laterite-hi); }
.err { margin: 0; min-height: 1em; font-size: 0.78rem; color: #e48a63; }
.err:empty { min-height: 0; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: var(--bone-dim); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0.15rem 0 0; accent-color: var(--laterite); flex: none; }
.enq__list ul, .sl { list-style: none; margin: 0 0 0.8rem; padding: 0; border-top: 1px solid var(--hair); }
.enq__list li, .sl li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--hair); font-size: 0.86rem; }
.sl li .mono { color: var(--bone-dim); display: block; margin-top: 0.2rem; }
.sl li button { flex: none; }
.sl__empty { color: var(--bone-dim); font-family: var(--f-voice); font-style: italic; font-size: 1.2rem; }
.sl__acts { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.enq-done { display: grid; gap: 1.2rem; padding-top: 1rem; }
.enq-done[hidden] { display: none; }
.enq-done p { margin: 0; color: var(--bone-dim); }
.enq-done .h3 { font-size: 2.2rem; }
.enq-done__line { height: 1px; background: var(--inlay); transform-origin: left; animation: line-in 1.4s var(--ease) both; box-shadow: 0 0 10px rgba(255, 248, 235, 0.5); }
@keyframes line-in { from { transform: scaleX(0); } }
.enq-done__acts { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* collection drawer */
.col-hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bidri); margin: 0 calc(-1 * clamp(1.2rem, 3vw, 2.4rem)); }
.col-hero img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.col-top { display: flex; justify-content: space-between; align-items: center; }
.col-name { margin: 0; font-stretch: 125%; font-weight: 300; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 0.95; }
.col-line { font-family: var(--f-voice); font-style: italic; font-size: 1.4rem; margin: 0; color: var(--bone); }
.col-mats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); margin: 0; padding: 0; list-style: none; }
.col-mats li { padding: 0.9rem 0; border-bottom: 1px solid var(--hair); font-size: 0.9rem; display: flex; gap: 0.8rem; align-items: baseline; }
.col-mats li:nth-child(odd) { padding-right: 1rem; }
.col-mats .mono { color: var(--bone-dim); }

.toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 200; translate: -50% 1rem; opacity: 0; pointer-events: none;
  background: var(--bone); color: var(--ink); padding: 0.8rem 1.2rem; transition: opacity 0.4s, translate 0.5s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   Still mode (reduced motion, low power, slow network, decode failure)
   The same story, told with stills, crossfades and gentle parallax.
   ========================================================================== */
.is-still .film { height: auto !important; }
.is-still .screen { position: relative; height: auto; overflow: visible; contain: none; }
.is-still .layer {
  position: relative; inset: auto; height: 100vh; height: 100svh; opacity: 1 !important; visibility: visible !important;
  overflow: hidden; clip-path: none !important; transform: none !important;
}
.is-still .layer > .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.is-still .layer > canvas, .is-still .tone-plate, .is-still .lamp { display: none; }
.is-still .stitch__b { clip-path: none !important; opacity: 0; transition: opacity 1.6s var(--ease); }
.is-still .layer.in-view .stitch__b { opacity: 1; }
.is-still .rain__b { --split: 50%; }
.is-still .layer--rain { --split: 50%; }
.is-still .layer--wheels .disc { width: min(60vh, 44vw); transform: none !important; filter: none !important; }
.is-still .disc--steer { left: 27%; }
.is-still .disc--wheel { left: 73%; -webkit-mask-image: none; mask-image: none; }
.is-still .type, .is-still .grade, .is-still .flash, .is-still .inlay, .is-still .hud, .is-still .cue { display: none; }
.is-still .layer .cap { opacity: 1 !important; visibility: visible !important; transform: none !important; z-index: 3; }
.is-still .layer .cap .mega { font-size: 14vw; transform: none !important; }
.is-still .split-handle { display: none; }
.is-still .layer::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 7, 6, 0.55), transparent 30%, transparent 60%, rgba(7, 7, 6, 0.7));
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .is-still .layer > .poster, .is-still .layer > img { animation: still-parallax linear both; animation-timeline: view(); }
    @keyframes still-parallax { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }
  }
}

/* ==========================================================================
   Responsive: vertical recomposition
   ========================================================================== */
@media (max-width: 900px) {
  .chrome { grid-template-columns: 1fr auto; padding-top: 0.9rem; }
  .chrome__nav { display: none; }
  .chrome__act .pill--ghost { padding-inline: 0.8em; }
  .finish__stage, .finish__list, .finish__spec { grid-column: 1 / -1; grid-row: auto; }
  .finish__stage { aspect-ratio: 4 / 5; }
  .board, .build__form { grid-column: 1 / -1; }
  .board { position: relative; top: 0; max-width: 520px; width: 100%; margin: 0 auto; }
  .build__foot { grid-template-columns: 1fr; }
  .jobcard__steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n + 2) { border-bottom: 1px solid var(--hair); }
  .step summary { min-height: 11rem; }
  .map, .visit__info { grid-column: 1 / -1; }
  .foot__cols { grid-template-columns: 1fr; }
}
@media (max-aspect-ratio: 5/6) {
  .cap--1 { align-content: start; padding-top: 22vh; }
  .cap1__word { font-size: 13.5vw; }
  .cap1__sub { font-size: 0.6rem; letter-spacing: 0.16em; }
  .cap--2 { bottom: 18vh; }
  .cap--3 { bottom: auto; top: 14vh; }
  .cap--4 { top: auto; bottom: 13vh; left: var(--pad); right: var(--pad); text-align: left; }
  .cap--4 .say { align-items: flex-start; }
  .cap--4 .say span { padding: 0 0 0 0.9em; }
  .tones { justify-content: flex-start; flex-wrap: wrap; }
  .cap--5 { align-items: stretch; }
  .say--split { flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 17vh var(--pad) 19vh; }
  .say--split span:last-child { align-self: flex-end; }
  .disc { width: min(92vw, 60vh); }
  .mega { font-size: 38vw; }
  .cap--7 .say { top: 13vh; }
  .split-labels { bottom: 14vh; }
  .split-labels span { font-size: 0.56rem; }
  .cap--8 { bottom: 14vh; right: var(--pad); }
  .say--big { font-size: 9.6vw; }
  .say--big span { padding-left: 0.4em; }
  .hud { bottom: 1rem; }
  .hud__name { display: none; }
  .cue { display: none; }
  .demo-tag { bottom: 0.9rem; font-size: 0.55rem; }
  .slate { bottom: 2.8rem; font-size: 0.5rem; }
}
@media (max-width: 560px) {
  .chrome .pill { font-size: 0.6rem; padding: 0.5em 0.9em; }
  .chrome__mark { font-size: 0.78rem; }
  .jobcard__head span:last-child { display: none; }
  .step .sb { max-width: none; }
  .col-mats { grid-template-columns: 1fr; }
  .is-still .layer--wheels .disc { width: 42vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grade { animation: none; }
}
@media (forced-colors: active) {
  .pill, .x, .tones button { border: 1px solid CanvasText; }
}
