/* ==========================================================================
   OTOKA GARAGE · NIGHT SHIFT v2 (calmer, light)
   Light scheme: pure white #FFFFFF and cool grey #F3F4F6 sections, text #16181C,
   secondary #4B5058, hairlines #E2E4E8, red #C8102E for primary buttons, small
   labels and active states. Dark only where it helps: the hero over video, the
   booking close, the footer and the mobile menu overlay.
   ========================================================================== */

/* Precision pass: the legacy tokens below now point at the Precision palette
   (assets/css/precision.css). "--white" is the page ground (Silver Mist),
   "--grey" the alternating band (Steel Grey). Use real white via --p-white. */
:root {
  --white: #F1F3F4;
  --grey: #DDE2E5;
  --text: #14191E;
  --text-2: #4A555E;
  --rule: #CDD4D9;
  --red: #C8102E;
  --red-hover: #A80C26;
  --red-on-dark: #F76A7C; /* AA (4.99:1) for small text on graphite #242B31 */
  --ink: #111519;
  --graphite: #242B31;

  --f-display: "Archivo", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Manrope", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --wrap: 1280px;
  --sec: clamp(72px, 9vw, 136px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 60px;
  --quick-h: 58px;

  --bg: #F1F3F4;
  --fg: #14191E;
  --fg-2: #4A555E;
  --line: #CDD4D9;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .hero :focus-visible, .close :focus-visible, .site-footer :focus-visible, .menu :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 300;
  background: var(--text); color: #fff; padding: 12px 16px; border-radius: 2px;
  font: 600 14px/1 var(--f-body);
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: translateY(0); }

/* dark scope: hero, close, footer, mobile menu */
.hero, .close, .site-footer, .menu {
  --bg: #111519; --fg: #F1F3F4; --fg-2: #B4BEC5; --text-2: #B4BEC5; --line: #3A444C;
  background: var(--bg); color: var(--fg);
}

/* ---------- type primitives ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
}
.label { color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--red); }
.eyebrow + .display, .eyebrow + h2, .eyebrow + h1 { margin-top: 14px; }
.rule { height: 1px; background: var(--line); }
.lede { color: var(--fg-2); font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); max-width: 48ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 2px;
  font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-align: center; border: 1px solid currentColor; background: transparent; color: var(--fg);
  transition: background-color .35s var(--ease-out), border-color .35s, color .35s, transform .35s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: scale(.985); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-xl { min-height: 56px; padding: 0 30px; font-size: 16px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--text); position: relative;
}
.textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--red); transform: scaleX(.3); transform-origin: left; transition: transform .5s var(--ease-out); }
.textlink:hover::after { transform: scaleX(1); }
.textlink .arr { color: var(--red); transition: transform .4s var(--ease-out); }
.textlink:hover .arr { transform: translateX(4px); }
.textlink-mono { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }

/* ---------- header: transparent over the home hero, silver bar everywhere else ---------- */
.site-header {
  --fg: #FFFFFF; --bg: #111519;
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr-h);
  color: var(--fg); background: transparent; border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease-out), background-color .35s, border-color .35s, color .35s;
}
/* over the hero video: a soft top scrim keeps the links readable */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,21,25,.6), rgba(17,21,25,0)); transition: opacity .35s;
}
.site-header.is-light, .site-header.is-menu { --fg: #14191E; --bg: #F1F3F4; }
.site-header.is-light::before, .site-header.is-menu::before { opacity: 0; }
.site-header.is-light {
  background: rgba(241,243,244,.94); border-bottom-color: #CDD4D9;
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
}
.site-header.is-menu { --fg: #FFFFFF; --bg: #111519; background: #111519; border-bottom-color: #3A444C; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-hidden { transform: translateY(-100%); }
.hdr-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* logo: light artwork on dark, ink artwork on silver; both keep a transparent background */
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; border-radius: 2px; }
.brand img { height: 34px; width: auto; background: transparent; }
.brand .brand-ink { display: none; }
.site-header.is-light:not(.is-menu) .brand .brand-light { display: none; }
.site-header.is-light:not(.is-menu) .brand .brand-ink { display: block; }

.nav-desk { display: none; align-items: center; gap: 0; }
.nav-desk a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-family: var(--f-body); font-size: 14.5px; font-weight: 600; letter-spacing: 0; color: inherit; opacity: .8;
  transition: opacity .25s; border-radius: 2px;
}
.nav-desk a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 7px; height: 2px; background: var(--red-on-dark);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.site-header.is-light .nav-desk a::after { background: var(--red); }
.nav-desk a:hover, .nav-desk a:focus-visible, .nav-desk a[aria-current]:not([aria-current="false"]) { opacity: 1; }
.nav-desk a:hover::after { transform: scaleX(.35); }
.nav-desk a[aria-current]:not([aria-current="false"])::after { transform: scaleX(1); }

.hdr-cta { display: none; align-items: center; gap: 8px; flex: none; }
.hdr-cta .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.hdr-cta .btn-ghost { border-color: rgba(255,255,255,.5); }
.site-header.is-light .hdr-cta .btn-ghost { border-color: #AAB5BC; color: #14191E; }
.site-header.is-light .hdr-cta .btn-ghost:hover, .site-header.is-light .hdr-cta .btn-ghost:focus-visible { background: #14191E; border-color: #14191E; color: #fff; }
.site-header:not(.is-light) .hdr-cta .btn-ghost:hover, .site-header:not(.is-light) .hdr-cta .btn-ghost:focus-visible { background: #fff; border-color: #fff; color: #111519; }

.menu-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: transparent; border: 1px solid currentColor; color: inherit; cursor: pointer; border-radius: 4px;
  transition: background-color .25s, border-color .25s;
}
.site-header.is-light:not(.is-menu) .menu-btn { border-color: #AAB5BC; }
.menu-btn svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  :root { --hdr-h: 72px; }
  .nav-desk { display: flex; }
  .hdr-cta { display: flex; }
  .menu-btn { display: none; }
  .brand img { height: 40px; }
}
/* 1024-1199: room is tight, the Estimate link is already in the nav */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-desk a { padding: 0 8px; font-size: 14px; }
  .nav-desk a::after { left: 8px; right: 8px; }
  .hdr-cta .btn-ghost { display: none; }
}

/* ---------- full-screen menu (mobile / tablet): carbon overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: #111519;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: calc(var(--hdr-h) + 12px) var(--pad) calc(var(--quick-h) + 24px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .28s ease, visibility 0s; }
.menu[hidden] { display: none; }
.menu-links { display: grid; gap: 0; border-top: 1px solid #3A444C; }
.menu-links a {
  position: relative; display: flex; align-items: center; gap: 16px;
  min-height: 54px; padding: 8px 0; border-bottom: 1px solid #3A444C;
  font-family: var(--f-display); font-stretch: 108%; font-size: clamp(1.3rem, 5.4vw, 1.75rem); font-weight: 650;
  line-height: 1.15; letter-spacing: -.01em; color: #F1F3F4;
  transform: translateY(8px); opacity: 0; transition: transform .4s var(--ease-out), opacity .4s, color .2s;
}
.menu.is-open .menu-links a { transform: none; opacity: 1; }
.menu.is-open .menu-links li:nth-child(2) a { transition-delay: .03s; }
.menu.is-open .menu-links li:nth-child(3) a { transition-delay: .06s; }
.menu.is-open .menu-links li:nth-child(4) a { transition-delay: .09s; }
.menu.is-open .menu-links li:nth-child(5) a { transition-delay: .12s; }
.menu.is-open .menu-links li:nth-child(6) a { transition-delay: .15s; }
.menu.is-open .menu-links li:nth-child(7) a { transition-delay: .18s; }
.menu.is-open .menu-links li:nth-child(8) a { transition-delay: .21s; }
.menu-links a:hover, .menu-links a:focus-visible { color: #fff; }
.menu-links a span:first-child { flex: none; width: 2.2em; font-family: var(--f-mono); font-stretch: 100%; font-size: 12px; letter-spacing: .08em; color: #B4BEC5; font-weight: 500; }
.menu-links a[aria-current]:not([aria-current="false"]) { color: #fff; }
.menu-links a[aria-current]:not([aria-current="false"]) span:first-child { color: var(--red-on-dark); }
.menu-links a[aria-current]:not([aria-current="false"])::after {
  content: "Current"; margin-left: auto; font-family: var(--f-mono); font-stretch: 100%; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: #B4BEC5;
}
.menu-links a[aria-current]:not([aria-current="false"])::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 2px; background: var(--red); }
.menu-foot { display: grid; gap: 10px; }
.menu-foot .btn { width: 100%; }
.menu-foot .btn-ghost { color: #fff; border-color: #4E5962; }
.menu-foot p { color: #B4BEC5; font-size: 14px; margin-top: 6px; }
.menu-foot p a { color: #fff; text-decoration: underline; text-decoration-color: #4E5962; text-underline-offset: 3px; }
@media (min-width: 640px) { .menu-foot { grid-template-columns: 1fr 1fr; } .menu-foot p { grid-column: 1 / -1; } }

/* ---------- mobile bottom bar: 5 actions on graphite, Book in red ---------- */
.quick {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 95; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #242B31; box-shadow: 0 -1px 0 #3A444C; padding-bottom: env(safe-area-inset-bottom);
}
.quick a {
  position: relative; min-height: var(--quick-h); min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 6px 2px;
  font-family: var(--f-body); font-size: 11.5px; font-weight: 600; line-height: 1.1; letter-spacing: .01em;
  color: #C9D1D6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s, background-color .2s;
}
.quick a + a { border-left: 1px solid #333C44; }
.quick a:hover, .quick a:focus-visible { color: #fff; background: rgba(255,255,255,.04); }
.quick a:focus-visible { outline-offset: -3px; outline-color: #fff; }
.quick a[aria-current]:not([aria-current="false"]) { color: #fff; background: rgba(255,255,255,.07); }
.quick a[aria-current]:not([aria-current="false"])::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: var(--red-on-dark); }
.quick a.is-book { background: var(--red); color: #fff; border-left-color: var(--red); }
.quick a.is-book:hover, .quick a.is-book:focus-visible { background: var(--red-hover); color: #fff; }
.quick svg { width: 20px; height: 20px; flex: none; }
.quick a span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .quick { display: none; } }
/* nothing ends up behind the bar: the page reserves its height (plus the iOS home indicator) */
html.has-quick body { padding-bottom: calc(var(--quick-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { html.has-quick body { padding-bottom: 0; } }

/* ---------- page transition: a thin red progress line at the top edge (never blocks input) ---------- */
.wipe {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200; background: var(--red);
  transform: scaleX(0); transform-origin: left; pointer-events: none; opacity: 0;
}

/* (custom cursor removed in the final polish pass: native pointer everywhere) */

/* ---------- HERO (dark, over video) ---------- */
.intro { position: relative; }
.hero {
  --fg: #FFFFFF; --fg-2: #D3D7DD;
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--ink);
}
/* pinned hero only on desktop with a fine pointer (site.js sets html.hero-pin) */
.hero-pin .hero { position: sticky; top: 0; }
.hero-media { position: absolute; inset: -4% 0; will-change: transform; transform-origin: 50% 40%; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.02) brightness(.8); }
.hero-grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,11,.9) 0%, rgba(10,10,11,.6) 50%, rgba(10,10,11,.25) 100%),
    linear-gradient(0deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,0) 50%),
    linear-gradient(180deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 24%);
}
.hero-shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
/* headlight veil: solid dark layer with a radial hole that GSAP opens from the right */
.hero-veil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; background: var(--ink);
  --r: 0%;
  -webkit-mask-image: radial-gradient(circle at 88% 46%, transparent var(--r), #000 calc(var(--r) + 3%));
          mask-image: radial-gradient(circle at 88% 46%, transparent var(--r), #000 calc(var(--r) + 3%));
}
.motion .hero-veil { display: block; }
.hero-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .9;
  background: radial-gradient(circle at 88% 46%, rgba(244,245,247,.08), transparent 38%);
}
.hero-inner {
  position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--hdr-h) + 24px); padding-bottom: clamp(72px, 11vh, 120px);
}
.hero-spec { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--fg-2); margin-bottom: clamp(18px, 3vh, 28px); }
.hero-spec b { color: #fff; font-weight: 500; }
.hero-spec .dot { color: var(--red-on-dark); }
.hero-h1 {
  font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: -.03em;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem); color: #fff; max-width: 14ch; text-wrap: balance;
}
.hero-h1 .hl { display: block; }
.hero-h1 .hl-acc { color: #fff; }
.hero-h1 .hl-out { color: #fff; }
.hero-foot {
  margin-top: clamp(24px, 4vh, 40px); display: grid; gap: 22px; align-items: end;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .btn-ghost { color: #fff; }
.hero-note { max-width: 46ch; color: var(--fg-2); font-size: 16px; }
.hero-wa { flex-basis: 100%; margin-top: 4px; }
.hero-wa .textlink { color: #fff; min-height: 44px; }
.hero-scroll {
  position: absolute; right: calc(var(--pad) - 6px); top: 42%; z-index: 4; display: flex; align-items: center; gap: 14px; color: var(--fg-2);
  writing-mode: vertical-rl; font-size: 11px;
}
.hero-scroll i { display: block; width: 1px; height: 56px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--red-on-dark); animation: ns-cue 2.4s var(--ease-out) infinite; }
@keyframes ns-cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: 1fr auto; }
}

/* ---------- statement (light, normal-size lead paragraph with word fill) ---------- */
.statement { position: relative; z-index: 6; background: var(--white); padding: var(--sec) 0; }
.statement .eyebrow { margin-bottom: clamp(20px, 3vw, 32px); }
.statement-text {
  font-family: var(--f-body); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em;
  max-width: 28ch; color: var(--text);
}
.statement-text .w { color: var(--text); display: inline; }
.statement-meta { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 14px; color: var(--fg-2); max-width: 60ch; }
@media (min-width: 900px) { .statement-meta { grid-template-columns: 1fr 1fr; gap: 40px; max-width: none; } }

/* ---------- photo band (full colour) ---------- */
.band { position: relative; background: var(--white); }
.band-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.band-fig { position: relative; overflow: hidden; background: var(--grey); height: 60vh; min-height: 340px; }
.band-fig img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.band-fig figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; font-size: 12px; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(10,10,11,.6); padding: 6px 10px; border-radius: 2px;
}
.band-head { display: none; }
@media (min-width: 900px) {
  .band-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 4px; }
  .band-fig { height: 70vh; }
}

/* ---------- services (grey section, pinned horizontal on desktop, stack on mobile) ---------- */
.services { position: relative; background: var(--grey); padding-top: var(--sec); }
.services-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.services-note { color: var(--fg-2); max-width: 56ch; }
.svc-pin { position: relative; }
.svc-track { display: grid; gap: 16px; }
.svc-panel {
  position: relative; overflow: hidden; background: var(--ink); border-radius: 4px;
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; color: #fff;
}
.svc-panel img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.ns-root .mx-auto { margin-left: auto; margin-right: auto; }
.ns-root .mx-auto p > a { color: var(--text-2); }
.ns-root .mx-auto p > a + a::before { content: "/"; margin: 0 .5em; color: var(--text-2); }
.ns-root h1, .ns-root h2, .ns-root h3 { text-transform: none !important; }
.svc-panel:hover img, .svc-panel:focus-within img { transform: scale(1.03); }
.svc-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.4) 52%, rgba(10,10,11,.08) 100%); }
.svc-sweep { display: none; }
.svc-num {
  position: absolute; top: 20px; left: 24px; z-index: 1;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: #fff; opacity: .85;
}
.svc-tag { position: absolute; top: 20px; right: 24px; z-index: 1; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .85; }
.svc-body { padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 10px; max-width: 520px; }
.svc-body .mono { color: #FFB3BE; }
.svc-name { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.15; letter-spacing: -.015em; color: #fff; }
.svc-desc { color: #E5E7EB; font-size: 16px; max-width: 44ch; }
.svc-go { margin-top: 6px; justify-self: start; font-size: 15px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.svc-go .arr { color: var(--red-on-dark); }
.svc-go:hover { text-decoration: underline; text-underline-offset: 4px; }
.services-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-bottom: var(--sec); color: var(--fg-2); }

@media (max-width: 1023px) {
  .svc-track { padding-inline: var(--pad); }
  .svc-panel { min-height: 400px; }
}

/* desktop horizontal pin (added by JS only when motion is allowed) */
@media (min-width: 1024px) {
  .hscroll .svc-pin { height: 100vh; overflow: hidden; }
  .hscroll .svc-track {
    grid-auto-flow: column; grid-auto-columns: min(54vw, 760px); gap: 16px; height: 100%; align-items: stretch;
    padding: 0 var(--pad) 0 max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
    will-change: transform; align-content: center; padding-block: 72px 0;
  }
  .hscroll .svc-panel { min-height: 0; height: min(64vh, 600px); align-self: center; }
}

/* ---------- Car Check + Estimate CTA cards (white section after services) ---------- */
.ctc { position: relative; background: var(--white); padding-block: var(--sec); }
.ctc-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); }
.ctc-sub { color: var(--fg-2); max-width: 52ch; }
.ctc-grid { display: grid; gap: 20px; }
.ctc-card {
  position: relative; background: var(--grey); border: 1px solid var(--rule); border-radius: 6px;
  padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  transition: border-color .35s, box-shadow .35s var(--ease-out);
}
.ctc-card:hover { border-color: #C9CDD4; box-shadow: 0 10px 30px rgba(22,24,28,.06); }
.ctc-ico { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid var(--rule); display: grid; place-items: center; color: var(--red); }
.ctc-ico svg { width: 26px; height: 26px; }
.ctc-card h3 { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.15; letter-spacing: -.015em; color: var(--text); }
.ctc-card p { color: var(--fg-2); max-width: 44ch; }
.ctc-card .btn { margin-top: auto; }
.ctc-card .mono { color: var(--text-2); }
@media (min-width: 900px) { .ctc-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- why / workshop (grey, sticky heading, points) ---------- */
.why { position: relative; background: var(--grey); padding-block: var(--sec); }
.why-grid { display: grid; gap: 40px; }
.why-head { display: grid; gap: 16px; align-content: start; }
.why-lede { color: var(--fg-2); max-width: 46ch; }
.why-list { display: grid; }
.why-item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--rule); }
.why-item:last-child { border-bottom: 1px solid var(--rule); }
.why-item .mono { color: var(--red); padding-top: 4px; }
.why-item h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; color: var(--text); }
.why-item p { color: var(--fg-2); max-width: 48ch; }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 5fr 7fr; gap: 96px; }
  .why-head { position: sticky; top: 18vh; align-self: start; }
}

/* ---------- how it works (white, timeline with red progress line) ---------- */
.how { position: relative; background: var(--white); padding-block: var(--sec); }
.how-head { display: grid; gap: 14px; margin-bottom: clamp(44px, 6vw, 80px); }
.tl { position: relative; display: grid; gap: 40px; padding-left: 36px; }
.tl::before, .tl-prog-wrap { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; }
.tl::before { content: ""; background: var(--rule); }
.tl-prog-wrap { overflow: hidden; }
.tl-prog { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(1); }
.motion .tl-prog { transform: scaleY(0); }
.tl-step { position: relative; display: grid; gap: 8px; }
.tl-step::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 13px; height: 13px; border: 1px solid #B9BEC6; background: #fff; border-radius: 50%;
  transition: background-color .4s, border-color .4s;
}
.tl-step.is-on::before { background: var(--red); border-color: var(--red); }
.tl-step .num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--red); font-weight: 500; }
.tl-step h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.tl-step p { color: var(--fg-2); max-width: 46ch; }
@media (min-width: 900px) {
  .tl { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-left: 0; padding-top: 40px; }
  .tl::before, .tl-prog-wrap { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .tl-prog { transform-origin: left; }
  .motion .tl-prog { transform: scaleX(0); }
  .tl-step::before { left: 0; top: -40px; }
  .tl-step { padding-right: 12px; }
}

/* ---------- gallery marquee (grey) ---------- */
.gallery { background: var(--grey); padding-block: var(--sec); overflow: hidden; }
.gallery-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 60px); }
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: ns-marquee 70s linear infinite; will-change: transform; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { position: relative; flex: none; width: clamp(240px, 26vw, 380px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--rule); border-radius: 4px; }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.marquee-item:hover img { transform: scale(1.04); }
@keyframes ns-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee-cta { margin-top: 28px; display: flex; justify-content: flex-start; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-track > [aria-hidden="true"] { display: none; }
}

/* ---------- reviews (white) ---------- */
.reviews { background: var(--white); padding-block: var(--sec); }
.reviews-grid { display: grid; gap: 40px; }
.reviews { overflow: hidden; }
.reviews-grid > * { min-width: 0; }
.reviews-card { background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; padding: clamp(12px, 2vw, 22px); min-height: 280px; max-width: 100%; overflow: hidden; }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: 4fr 8fr; gap: 80px; align-items: start; } }

/* ---------- blog (grey) ---------- */
.blog { background: var(--grey); padding-block: var(--sec); }
.blog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); }
.blog-head > div { display: grid; gap: 14px; }
.blog-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.post {
  position: relative; display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--rule);
  transition: padding .5s var(--ease-out);
}
.post:hover { padding-left: 12px; }
.post .mono { color: var(--text-2); }
.post h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; max-width: 36ch; color: var(--text); }
.post .arr { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--red); }
@media (min-width: 900px) {
  .post { grid-template-columns: 170px 1fr 32px; align-items: center; gap: 28px; }
  .post .arr { position: static; transform: none; justify-self: end; }
}

/* ---------- location & contact (white) ---------- */
.contact { position: relative; background: var(--white); padding-block: var(--sec); }
.contact-grid { display: grid; gap: 40px; }
.contact-dl { display: grid; gap: 0; }
.contact-dl > div { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; }
.contact-dl > div:last-child { border-bottom: 1px solid var(--rule); }
.contact-dl dt { color: var(--text-2); }
.contact-dl dd { margin: 0; font-size: 1.125rem; font-weight: 500; color: var(--text); }
.contact-dl a { border-bottom: 1px solid var(--rule); transition: border-color .3s, color .3s; min-height: 32px; display: inline-flex; align-items: center; }
.contact-dl a:hover { color: var(--red); border-color: var(--red); }
.map { position: relative; min-height: 380px; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--grey); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: stretch; } }

/* ---------- booking close (dark) ---------- */
.close { position: relative; background: var(--ink); padding-block: var(--sec); overflow: hidden; }
.close-inner { position: relative; display: grid; gap: 14px; }
.close-title { color: #fff; }
.close-options { display: grid; gap: 16px; margin-top: 28px; }
.close-opt { border: 1px solid #2A2C31; border-radius: 6px; padding: clamp(24px, 3vw, 32px); display: grid; gap: 14px; align-content: start; background: #111214; }
.close-opt p:not(.mono) { color: #C4C9D1; max-width: 32ch; }
.close-opt .mono { color: #C4C9D1; }
.close-opt.is-primary { border-color: var(--red); background: #161012; }
.close-opt .btn { justify-self: start; margin-top: 6px; }
.close-opt .btn-ghost { color: #fff; }
.close-meta { display: grid; gap: 10px; color: #C4C9D1; margin-top: 24px; }
.close-meta a { color: #fff; border-bottom: 1px solid #2A2C31; min-height: 44px; display: inline-flex; align-items: center; }
.close-meta a:hover { color: var(--red-on-dark); border-color: var(--red-on-dark); }
.close-meta .textlink { color: #fff; }
@media (min-width: 900px) { .close-options { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer: carbon, fine rules, one short nav ---------- */
.site-footer {
  position: relative; background: #111519; color: #F1F3F4; border-top: 1px solid #3A444C;
  padding: clamp(52px, 6.5vw, 88px) 0 0; font-size: 15px; line-height: 1.55;
}
.site-footer::before { /* short red accent on the top rule, aligned with the content column */
  content: ""; position: absolute; top: -1px; height: 2px; width: 56px; background: var(--red);
  left: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
}
.ft-grid { display: grid; gap: 36px 24px; grid-template-columns: minmax(0, 1fr); }
.ft-grid > * { min-width: 0; }
.ft-brand { grid-column: 1 / -1; display: grid; gap: 18px; justify-items: start; }
.ft-logo { display: inline-flex; border-radius: 2px; }
.ft-brand img { height: 44px; width: auto; background: transparent; }
.ft-brand p { color: #B4BEC5; max-width: 34ch; font-size: 15px; }
.ft-brand .btn { min-height: 48px; }
.ft-nav { grid-column: 1 / -1; }
.ft-h {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: #B4BEC5; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #3A444C;
}
.ft-col ul { display: grid; gap: 0; }
.ft-nav ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.ft-col a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #E3E8EB; font-size: 15px;
  transition: color .2s; text-decoration: none; overflow-wrap: anywhere;
}
.ft-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red-on-dark); text-underline-offset: 4px; }
.ft-col address { font-style: normal; color: #E3E8EB; }
.ft-hours { color: #B4BEC5; margin-top: 10px; font-size: 14px; }
.ft-col .arr { color: var(--red-on-dark); }
.ft-bottom { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid #3A444C; }
.ft-bottom .wrap {
  display: flex; flex-direction: column; gap: 4px 24px; justify-content: space-between; align-items: flex-start;
  padding-block: 14px 18px; color: #B4BEC5; font-size: 13px;
}
.ft-social { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ft-social a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #C9D1D6; min-height: 44px; display: inline-flex; align-items: center; }
.ft-social a:hover { color: #fff; }
@media (min-width: 640px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-nav { grid-column: auto; }
  .ft-nav ul { grid-template-columns: 1fr 1fr; }
  .ft-bottom .wrap { flex-direction: row; align-items: center; }
}
@media (min-width: 1024px) {
  .ft-grid { grid-template-columns: 1.25fr 1.2fr 1fr 1fr; gap: 0 clamp(28px, 3.4vw, 56px); }
  .ft-brand { grid-column: auto; }
  .ft-col a { min-height: 36px; }
  .ft-social a { min-height: 36px; }
}

/* ---------- reveal scaffolding (only hidden when JS + motion are on) ---------- */
.motion [data-clip] { clip-path: inset(0 0 100% 0); }

/* ==========================================================================
   INNER PAGES (gallery, blog, posts, car check, estimate): light scheme.
   Tailwind classes from the old builder are remapped to the light palette.
   ========================================================================== */
.ns-root { min-height: 100vh; background: var(--white); color: var(--text); }
.ns-root main { display: block; }
.page-hero {
  position: relative; padding: calc(var(--hdr-h) + 48px) 0 clamp(40px, 5vw, 72px); overflow: hidden;
  background: var(--grey); border-bottom: 1px solid var(--rule);
}
.page-hero .page-eyebrow { color: var(--text-2); display: inline-flex; gap: 12px; align-items: center; }
.page-hero .page-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--red); }
.page-hero h1 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; font-size: clamp(2rem, 3.8vw, 2.75rem); margin-top: 16px; color: var(--text); text-wrap: balance; }
.page-hero p { color: var(--fg-2); max-width: 60ch; margin-top: 16px; font-size: 1.0625rem; }

/* remap: Tailwind palette -> light scheme */
.ns-root .bg-og-cream, .ns-root .bg-og-cream\/95, .ns-root [class*="bg-og-cream"] { background-color: var(--white) !important; }
.ns-root [class*="og-categories"] { display: flex; flex-wrap: wrap; gap: 10px; }
.ns-root [class*="bg-og-mist"] { background-color: var(--grey) !important; }
.ns-root [class*="bg-og-charcoal"] { background-color: #E9EBEF !important; }
.ns-root [class*="bg-og-red"] { background-color: var(--red) !important; }
.ns-root .text-og-charcoal, .ns-root [class*="text-og-charcoal"] { color: var(--text) !important; }
.ns-root [class*="text-og-slate"] { color: var(--text-2) !important; }
.ns-root [class*="text-og-red"] { color: var(--red) !important; }
.ns-root [class*="text-og-ink"] { color: var(--text) !important; }
.ns-root [class*="border-og-charcoal"] { border-color: var(--rule) !important; }
.ns-root [class*="font-og-display"] { font-family: var(--f-display) !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -.015em !important; }
.ns-root [class*="font-og-body"] { font-family: var(--f-body) !important; }
.ns-root img { filter: none; }

/* article typography (blog posts) */
.ns-article { padding-block: clamp(40px, 5vw, 72px) var(--sec); }
.ns-article .prose-wrap { max-width: 68ch; margin-inline: auto; }
.ns-root article, .ns-root .og-prose, .ns-root .og-prose-light { color: #2B2F36; font-size: 1.0625rem; line-height: 1.7; }
@media (min-width: 1024px) { .ns-root article, .ns-root .og-prose, .ns-root .og-prose-light { font-size: 1.125rem; } }
.ns-root article h2, .ns-root .og-prose h2 { font-family: var(--f-display); font-weight: 700; color: var(--text); font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; letter-spacing: -.015em; margin: 2em 0 .6em; }
.ns-root article h3, .ns-root .og-prose h3 { font-family: var(--f-display); font-weight: 600; color: var(--text); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.3; margin: 1.6em 0 .5em; }
.ns-root article p + p { margin-top: 1.1em; }
.ns-root article strong { color: var(--text); font-weight: 600; }
.ns-root article ul, .ns-root .og-list { list-style: none; padding-left: 0; display: grid; gap: 10px; margin: 1.2em 0; }
.ns-root article li { position: relative; padding-left: 24px; }
.ns-root article li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 2px; background: var(--red); }
.ns-root article a { color: var(--text); border-bottom: 1px solid var(--red); }
.ns-root article a:hover { color: var(--red); }
.ns-root article img { border: 1px solid var(--rule); border-radius: 4px; margin: 2em 0; }
.ns-root article { max-width: 68ch; margin-inline: auto; }
.ns-root article .rule, .ns-root article hr { border: 0; height: 1px; background: var(--rule); margin: 2.4em 0; }
.ns-root .og-categories a, .ns-root .og-categories span { font-family: var(--f-mono); font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--rule); padding: 6px 10px; color: var(--text-2); border-radius: 2px; }

/* inner page cards and tiles */
.ns-root .og-list-item { border-color: var(--rule) !important; }
.ns-root figure img { transition: transform 1s var(--ease-out); }

/* tool pages keep their own UI; only the surroundings change */
.ns-root.tool-page { background: var(--white); }
.ns-root.tool-page .bp-hero, .ns-root.tool-page .qe-hero { padding-top: calc(var(--hdr-h) + 40px); }
.ns-root.tool-page h1, .ns-root.tool-page .bp-h1, .ns-root.tool-page .qe-h1 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--text); font-size: clamp(2rem, 3.8vw, 2.75rem); text-transform: none; }
.ns-root.tool-page .bp-lead, .ns-root.tool-page .qe-lead { color: var(--fg-2); }
.ns-root.tool-page .bp-eyebrow, .ns-root.tool-page .qe-eyebrow { color: var(--text-2); }
/* the blueprint drawing keeps its dark sheet; its tokens stay as they are in blueprint.css */
.ns-root.tool-page .bp-hero { background: var(--white) !important; }

/* ---------- responsive guards ---------- */
img[loading="lazy"] { background: var(--grey); }
/* anchor offset for the fixed header comes from html { scroll-padding-top } (base section); a scroll-margin here would add to it */

/* ---------- reduced motion: show everything, no pin, no marquee motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero { position: relative !important; }
  .hero-veil { display: none !important; }
  .wipe { display: none; }
  .statement-text .w { color: var(--text) !important; }
  .tl-prog { transform: none !important; }
  .band-fig img { transform: none !important; }
  .band-fig { clip-path: none !important; }
}

/* ---------- contrast pass: text colours, hover colours ---------- */

/* services panels: text sits on photos, so the scrim is darker at the bottom (copy) and the top (tags) */
.svc-panel::before {
  background:
    linear-gradient(180deg, rgba(10,10,11,.72) 0%, rgba(10,10,11,.25) 22%, rgba(10,10,11,0) 36%),
    linear-gradient(0deg, rgba(10,10,11,.95) 0%, rgba(10,10,11,.82) 42%, rgba(10,10,11,.45) 68%, rgba(10,10,11,.1) 100%);
}
.svc-num, .svc-tag { opacity: 1; color: #fff; text-shadow: 0 1px 3px rgba(10,10,11,.8); }
.svc-body .mono { color: #FFC2CA; }
.svc-desc { color: #F3F4F6; }

/* arrows and accents that sit on dark use the lighter red */
.hero .textlink .arr, .close .textlink .arr, .site-footer .textlink .arr, .menu .textlink .arr,
.hero .arr, .close .arr { color: var(--red-on-dark); }

/* ghost buttons on dark sections: their white label must flip to dark when the fill turns white on hover */
.hero-cta .btn-ghost:hover, .hero-cta .btn-ghost:focus-visible,
.close-opt .btn-ghost:hover, .close-opt .btn-ghost:focus-visible { background: #fff; border-color: #fff; color: var(--ink); }
.site-header:not(.is-light) .btn-ghost:hover { color: var(--ink); }
.btn-ghost:focus-visible { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* blog posts: body copy was exported with inline white text; the page is light, so use the dark ink */
.ns-root article [style*="color: rgb(255, 255, 255)"],
.ns-root article [style*="color:#fff"],
.ns-root article [style*="color: #fff"] { color: var(--text) !important; }
.ns-root article p, .ns-root article li { color: #2B2F36; }
/* blog CTA buttons inside articles keep white on red, and never turn red on red */
.ns-root article a[class*="bg-og-red"] { color: #fff !important; border-bottom: 1px solid var(--red); background-color: var(--red) !important; }
.ns-root article a[class*="bg-og-red"]:hover,
.ns-root article a[class*="bg-og-red"]:focus-visible { color: #fff !important; background-color: var(--red-hover) !important; border-color: var(--red-hover); }
.ns-root article a[class*="text-og-charcoal"] { color: var(--text) !important; border-bottom: 1px solid var(--rule); }
.ns-root article a[class*="text-og-charcoal"]:hover { color: var(--text) !important; background-color: #E9EBEF; border-color: var(--text); }

/* tool pages: the car health eyebrow is a red pill (white text); the estimator hero is dark (light text) */
.ns-root.tool-page .bp-eyebrow { color: #fff; background: var(--red); }
.ns-root.tool-page .qe-hero { background: #111417; }
.ns-root.tool-page .qe-hero .qe-h1, .ns-root.tool-page .qe-hero h1 { color: #fff; }
.ns-root.tool-page .qe-hero .qe-lead { color: #D3D7DD; }
.ns-root.tool-page .qe-hero .qe-eyebrow { color: #FF8A98; }
.ns-root.tool-page .qe-hero .qe-proto, .ns-root.tool-page .qe-hero .qe-steps-nav a { color: #fff; }
