/* ==========================================================================
   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.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --grey: #F3F4F6;
  --text: #16181C;
  --text-2: #4B5058;
  --rule: #E2E4E8;
  --red: #C8102E;
  --red-hover: #A80C26;
  --red-on-dark: #F25C6E;
  --ink: #0A0A0B;
  --graphite: #17181B;

  --f-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter Tight", "Inter", 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(88px, 11vw, 160px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 68px;

  --bg: #FFFFFF;
  --fg: #16181C;
  --fg-2: #4B5058;
  --line: #E2E4E8;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); color-scheme: light; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
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: #0A0A0B; --fg: #F4F5F7; --fg-2: #C4C9D1; --text-2: #C4C9D1; --line: #2A2C31;
  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 hero, white bar after it ---------- */
.site-header {
  --fg: #FFFFFF; --bg: #0A0A0B;
  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 .5s var(--ease-out), background-color .4s, border-color .4s, color .4s;
}
.site-header.is-light { --fg: #16181C; --bg: #FFFFFF; background: #FFFFFF; border-bottom-color: var(--rule); box-shadow: 0 1px 0 rgba(22,24,28,.02); }
.site-header.is-menu { --fg: #FFFFFF; --bg: #0A0A0B; background: transparent; border-bottom-color: transparent; }
.site-header.is-hidden { transform: translateY(-100%); }
.hdr-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; }
.nav-desk { display: none; align-items: center; gap: 2px; }
.nav-desk a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px;
  font-size: 15px; font-weight: 500; color: inherit; opacity: .86; transition: opacity .3s;
}
.nav-desk a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav-desk a:hover, .nav-desk a[aria-current="page"] { opacity: 1; }
.nav-desk a:hover::after, .nav-desk a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-cta { display: none; align-items: center; gap: 10px; }
.menu-btn {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid currentColor; color: inherit; cursor: pointer; border-radius: 2px;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  :root { --hdr-h: 80px; }
  .nav-desk { display: flex; }
  .hdr-cta { display: flex; }
  .menu-btn { display: none; }
  .brand img { height: 44px; }
}

/* ---------- full-screen menu (mobile / tablet), dark overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr-h) + 24px) var(--pad) calc(96px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility .5s;
  overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu[hidden] { display: none; }
.menu-links { display: grid; gap: 2px; }
.menu-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 600; letter-spacing: -.015em; color: var(--fg);
  transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s, color .3s;
}
.menu.is-open .menu-links a { transform: none; opacity: 1; }
.menu.is-open .menu-links li:nth-child(2) a { transition-delay: .04s; }
.menu.is-open .menu-links li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open .menu-links li:nth-child(4) a { transition-delay: .12s; }
.menu.is-open .menu-links li:nth-child(5) a { transition-delay: .16s; }
.menu.is-open .menu-links li:nth-child(6) a { transition-delay: .2s; }
.menu.is-open .menu-links li:nth-child(7) a { transition-delay: .24s; }
.menu.is-open .menu-links li:nth-child(8) a { transition-delay: .28s; }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--red-on-dark); }
.menu-links a span:first-child { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--fg-2); font-weight: 500; }
.menu-foot { display: grid; gap: 12px; margin-top: 28px; }
.menu-foot .btn { width: 100%; }
.menu-foot p { color: var(--fg-2); font-size: 15px; }

/* ---------- mobile bottom bar (5 items, Book highlighted) ---------- */
.quick {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 95; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #FFFFFF; border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 18px rgba(22,24,28,.06);
}
.quick a {
  min-height: 60px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 2px;
  font-size: 11.5px; font-weight: 600; line-height: 1.1; letter-spacing: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.quick a:hover, .quick a:focus-visible { color: var(--text); }
.quick a.is-book { background: var(--red); color: #fff; }
.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; }
@media (min-width: 1024px) { .quick { display: none; } }
html.has-quick body { padding-bottom: 60px; }
@media (min-width: 1024px) { html.has-quick body { padding-bottom: 0; } }

/* ---------- page transition wipe ---------- */
.wipe {
  position: fixed; inset: 0; z-index: 200; background: var(--red);
  transform: scaleY(0); transform-origin: bottom; pointer-events: none;
}
.motion .wipe.is-covering { pointer-events: all; }

/* ---------- custom cursor: small white dot + thin ring, difference blend so it reads on white, grey, dark and photos ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor body, html.has-cursor body *:not(input):not(textarea):not(select):not([contenteditable="true"]) { cursor: none; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select, html.has-cursor [contenteditable="true"] { cursor: auto; }
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; mix-blend-mode: difference; color: #fff; }
  .cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor-dot { width: 7px; height: 7px; background: #fff; }
  .cursor-ring {
    width: 30px; height: 30px; border: 1px solid #fff;
    transition: width .4s var(--ease-out), height .4s var(--ease-out), background-color .35s;
  }
  .cursor.is-link .cursor-ring { width: 46px; height: 46px; background: rgba(255,255,255,.12); }
  .cursor.is-down .cursor-ring { width: 22px; height: 22px; }
}

/* ---------- 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);
}
.motion .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; }
.motion .statement-text .w { color: #5F6570; }
.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: var(--white); 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 (dark) ---------- */
.site-footer { background: var(--ink); border-top: 1px solid #2A2C31; padding: clamp(56px, 7vw, 96px) 0 0; color: #F4F5F7; }
.ft-grid { display: grid; gap: 40px; }
.ft-brand img { height: 46px; width: auto; }
.ft-brand p { color: #C4C9D1; margin-top: 18px; max-width: 34ch; font-size: 15px; }
.ft-col h4 { color: #C4C9D1; margin-bottom: 16px; font-weight: 500; }
.ft-col ul { display: grid; gap: 6px; }
.ft-col a { color: #E5E7EB; transition: color .3s; font-size: 15px; display: inline-flex; min-height: 36px; align-items: center; }
.ft-col a:hover { color: var(--red-on-dark); }
.ft-col .hours { color: #C4C9D1; font-size: 14px; margin-top: 12px; }
.ft-social { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; }
.ft-social a { font-size: 14px; color: #C4C9D1; min-height: 44px; display: inline-flex; align-items: center; }
.ft-social a:hover { color: #fff; }
.ft-bottom { margin-top: 56px; border-top: 1px solid #2A2C31; }
.ft-bottom .wrap { display: flex; flex-direction: column; gap: 6px; justify-content: space-between; padding-block: 20px 24px; color: #C4C9D1; font-size: 14px; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .ft-bottom .wrap { flex-direction: row; } }
@media (max-width: 1023px) { .site-footer { padding-bottom: 96px; } }

/* ---------- 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); }
section[id], [id].anchor { scroll-margin-top: calc(var(--hdr-h) + 16px); }

/* ---------- 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; }
  .cursor { display: none !important; }
  .statement-text .w { color: var(--text) !important; }
  .tl-prog { transform: none !important; }
  .band-fig img { transform: none !important; }
  .band-fig { clip-path: none !important; }
}
