/* Hi-Tech Auto Body: site styles
   Palette: committed signal red on near-black ink, true off-white paper.
   Type: Archivo variable, width axis carries the voice (wide black display, normal body). */

:root {
  --ink: oklch(0.165 0.008 25);
  --ink-2: oklch(0.215 0.01 25);
  --ink-3: oklch(0.29 0.012 25);
  --paper: oklch(0.975 0.003 25);
  --paper-2: oklch(0.935 0.005 25);
  --line: oklch(0.86 0.006 25);
  --line-dark: oklch(0.34 0.01 25);
  --text: oklch(0.2 0.01 25);
  --text-muted: oklch(0.43 0.012 25);
  --text-on-dark: oklch(0.96 0.004 25);
  --text-on-dark-muted: oklch(0.78 0.008 25);
  --red: oklch(0.555 0.215 27);
  --red-hot: oklch(0.6 0.23 28);
  --red-deep: oklch(0.43 0.17 26);
  --focus: oklch(0.82 0.16 85);
  --surface: oklch(1 0 0);
  --accent-text: var(--red);
  --error: var(--red-deep);
  --success: oklch(0.45 0.13 150);
  --step-ring: var(--paper);
  color-scheme: light;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-3: clamp(1.6rem, 1.4rem + 1.1vw, 2.4rem);
  --step-4: clamp(1.95rem, 1.55rem + 2vw, 3.25rem);
  --step-5: clamp(2.3rem, 1.6rem + 3.4vw, 4.5rem);

  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  --space-xl: clamp(1.75rem, 1.3rem + 2.2vw, 3.25rem);
  --space-2xl: clamp(2.5rem, 1.8rem + 3.4vw, 4.75rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1320px;
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 180ms;
  --dur: 320ms;

  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* Dark theme: page surfaces go graphite; the always-dark bands (header, footer, feature
   sections) drop deeper so they still separate from the page. Red stays the brand. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: oklch(0.225 0.008 25);
  --ink-3: oklch(0.4 0.012 25);
  --paper: oklch(0.285 0.009 25);
  --paper-2: oklch(0.325 0.01 25);
  --surface: oklch(0.35 0.011 25);
  --line: oklch(0.44 0.012 25);
  --line-dark: oklch(0.44 0.012 25);
  --text: oklch(0.96 0.004 25);
  --text-muted: oklch(0.82 0.008 25);
  --accent-text: oklch(0.78 0.13 25);
  --error: oklch(0.8 0.12 25);
  --success: oklch(0.78 0.14 150);
  --step-ring: var(--paper);
}
:root[data-theme="dark"] .btn--ink { --btn-bg: var(--text); --btn-fg: var(--ink); }
:root[data-theme="dark"] .btn--ink:hover { --btn-bg: #fff; }
:root[data-theme="dark"] .step__num { background: var(--red); }
:root[data-theme="dark"] .map { filter: invert(0.9) hue-rotate(180deg) grayscale(0.5); }
:root[data-theme="dark"] .compare__col--us { border-color: var(--line); }

/* Light mode: color-match and finished-work bands go light instead of black */
:root:not([data-theme="dark"]) .match { background: var(--paper-2); color: var(--text); }
:root:not([data-theme="dark"]) .match::before {
  background: linear-gradient(90deg, oklch(0.935 0.005 25 / 0) 0%, oklch(0.935 0.005 25 / 0.55) 38%, oklch(0.935 0.005 25 / 0.96) 62%);
}
@media (max-width: 899px) {
  :root:not([data-theme="dark"]) .match::before { background: linear-gradient(to bottom, oklch(0.935 0.005 25 / 0.1), oklch(0.935 0.005 25 / 0.97) 52%); }
}
:root:not([data-theme="dark"]) .match__body > p { color: var(--text-muted); }
.match .link-arrow { color: var(--text-on-dark); }
.match .link-arrow:hover { color: var(--accent-text); }
:root:not([data-theme="dark"]) .match .link-arrow { color: var(--text); }
:root:not([data-theme="dark"]) .formula li { background: oklch(1 0 0 / 0.75); border: 1px solid var(--line); }
:root:not([data-theme="dark"]) .formula li::before { color: var(--text-muted); }
:root:not([data-theme="dark"]) .formula .chip { border-color: oklch(0 0 0 / 0.2); }
:root:not([data-theme="dark"]) .formula.is-running li { animation-name: layer-pass-light; }
@keyframes layer-pass-light {
  0% { background: oklch(1 0 0 / 0.75); }
  25% { background: oklch(0.555 0.215 27 / 0.22); }
  100% { background: oklch(1 0 0 / 0.75); }
}
:root:not([data-theme="dark"]) .section--work { background: var(--paper-2); color: var(--text); }
:root:not([data-theme="dark"]) .section--work figcaption { color: var(--text-muted); }
:root:not([data-theme="dark"]) .section--work .rail-btn { color: var(--text); border-color: var(--line); }
:root:not([data-theme="dark"]) .section--work .rail-btn:hover { color: #fff; }
:root:not([data-theme="dark"]) .section--work .rail { scrollbar-color: var(--line) transparent; }
:root:not([data-theme="dark"]) .section--work .link-arrow:hover,
:root:not([data-theme="dark"]) .match .link-arrow:hover { color: var(--accent-text); }

/* Theme toggle */
.theme-toggle {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; padding: 0;
  border: 1px solid oklch(1 0 0 / 0.25); border-radius: var(--radius); background: transparent; color: #fff;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.theme-toggle:hover { border-color: #fff; background: oklch(1 0 0 / 0.08); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle svg { transition: transform 0.5s var(--ease-out); }
  .theme-toggle:active svg { transform: rotate(-30deg) scale(0.9); }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: var(--z-toast);
  background: var(--focus); color: var(--ink); padding: 0.75rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Display type ---------- */
.display {
  font-weight: 860;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: none;
}
.display--slant { font-style: italic; }
.h-xl { font-size: var(--step-5); }
.h-l { font-size: var(--step-4); }
.h-m { font-size: var(--step-3); }
.h-s { font-size: var(--step-2); font-weight: 760; font-variation-settings: "wdth" 110; letter-spacing: -0.015em; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--text-muted); }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.red { color: var(--accent-text); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 52px; padding: 0.8rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  font-weight: 760; font-variation-settings: "wdth" 108; font-size: var(--step-0);
  text-decoration: none; letter-spacing: 0.005em;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:hover { --btn-bg: var(--red-hot); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --btn-bg: transparent; border-color: var(--red); color: var(--red); }
.on-dark .btn--ghost:hover, .btn--ghost.on-dark:hover { color: #fff; border-color: #fff; background: oklch(1 0 0 / 0.08); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--ink:hover { --btn-bg: var(--ink-3); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--red-deep); }
.btn--white:hover { --btn-bg: var(--paper-2); }
.btn--lg { min-height: 60px; padding: 1rem 1.7rem; font-size: var(--step-1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 720;
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.link-arrow:hover { gap: 0.85em; color: var(--accent-text); }
.on-dark .link-arrow:hover { color: #fff; }
.link-arrow svg { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink); color: var(--text-on-dark-muted);
  font-size: var(--step--1);
}
.topbar .wrap { display: flex; justify-content: space-between; gap: var(--space-s); padding-block: 0.45rem; flex-wrap: wrap; }
.topbar a { color: var(--text-on-dark); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__group { display: flex; gap: var(--space-m); flex-wrap: wrap; }
.dot-open { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: oklch(0.72 0.17 145); margin-right: 0.45em; vertical-align: 1px; }
.dot-open[data-state="closed"] { background: oklch(0.6 0.02 25); }

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: oklch(0.165 0.008 25 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: oklch(1 0 0 / 0.08); box-shadow: 0 10px 30px -18px oklch(0 0 0 / 0.6); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 150px; height: auto; transition: width var(--dur) var(--ease-out); }
.site-header.is-scrolled .brand img { width: 128px; }

.nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.8vw, 1.9rem); }
.nav__list { display: flex; gap: clamp(0.75rem, 1.8vw, 1.75rem); list-style: none; }
.nav__list a {
  position: relative; text-decoration: none; font-weight: 640; font-size: 0.97rem;
  font-variation-settings: "wdth" 106; padding-block: 0.6rem; color: var(--text-on-dark-muted);
  transition: color var(--dur-fast);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: #fff; }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__call { min-height: 46px; padding: 0.55rem 1.05rem; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid oklch(1 0 0 / 0.25); background: transparent;
  color: #fff; border-radius: var(--radius); align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-modal); background: var(--ink); color: #fff;
  padding: 1.25rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: var(--space-l);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__head img { width: 130px; }
.mobile-nav ul { list-style: none; display: grid; gap: 0.25rem; }
.mobile-nav ul a {
  display: block; padding: 0.55rem 0; text-decoration: none; font-size: var(--step-3); font-weight: 820;
  font-variation-settings: "wdth" 116; letter-spacing: -0.02em; border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.mobile-nav ul a[aria-current="page"] { color: var(--red-hot); }
.mobile-nav__foot { margin-top: auto; display: grid; gap: var(--space-s); color: var(--text-on-dark-muted); }

@media (max-width: 1020px) {
  .nav__list { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .site-header .wrap { gap: 0.5rem; }
  .nav { gap: 0.4rem; }
  .brand img, .site-header.is-scrolled .brand img { width: clamp(96px, 30vw, 124px); }
  .theme-toggle, .menu-toggle { width: 44px; height: 44px; }
  .nav__call span { display: none; }
  .nav__call { padding: 0.5rem 0.75rem; min-height: 44px; }
  .topbar__addr { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; background: var(--ink);
  min-height: min(92svh, 900px); display: grid; align-items: end; overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, oklch(0.13 0.008 25 / 0.96) 0%, oklch(0.13 0.008 25 / 0.82) 30%, oklch(0.13 0.008 25 / 0.25) 62%, oklch(0.13 0.008 25 / 0.45) 100%),
    linear-gradient(to right, oklch(0.13 0.008 25 / 0.6) 0%, transparent 60%);
}
.hero__inner { padding-block: var(--space-2xl) var(--space-xl); display: grid; gap: var(--space-l); }
.hero h1 { font-size: var(--step-5); max-width: 15ch; }
.hero h1 .line { display: block; overflow: clip; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: italic; color: var(--red-hot); }
.hero__sub { max-width: 46ch; color: var(--text-on-dark-muted); font-size: var(--step-1); line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-l); list-style: none; padding-top: var(--space-m);
  border-top: 1px solid oklch(1 0 0 / 0.16); color: var(--text-on-dark); font-weight: 600; font-size: var(--step--1);
  font-variation-settings: "wdth" 108;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.5em; }
.hero__facts svg { width: 1.1em; height: 1.1em; color: var(--red-hot); }

/* Hero slider: 4 stacked slides, crossfade + slow push-in, 3s per slide */
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-controls {
  position: absolute; z-index: var(--z-raised); right: var(--gutter); bottom: var(--space-l);
  display: flex; align-items: center; gap: 0.25rem;
}
.hero-toggle, .hero-dot {
  width: 44px; height: 44px; border: 0; background: transparent; color: #fff; padding: 0;
  display: grid; place-items: center; touch-action: manipulation;
}
.hero-toggle svg { width: 18px; height: 18px; }
.hero-toggle .i-play, .hero-slider.is-paused ~ .hero-controls .i-pause { display: none; }
.hero-slider.is-paused ~ .hero-controls .i-play { display: inline; }
.hero-toggle:hover, .hero-dot:hover { color: var(--red-hot); }
.hero-dot span {
  position: relative; display: block; width: 28px; height: 4px; border-radius: 2px; overflow: hidden;
  background: oklch(1 0 0 / 0.35);
}
.hero-dot span::after {
  content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left;
}
.hero-dot[aria-current="true"] span::after { transform: scaleX(1); }
/* Controls live in their own strip under the hero content so they never sit on text */
.hero-controls { bottom: 0.5rem; right: auto; left: calc(max(var(--gutter), (100% - var(--max)) / 2) - 12px); }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active img { animation: slide-push 3.9s linear both; }
  .hero-slider:not(.is-paused) ~ .hero-controls .hero-dot[aria-current="true"] span::after { animation: dot-fill var(--slide-ms, 3000ms) linear both; }
  .hero h1 .line > span { animation: line-up 0.95s var(--ease-out) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 0.09s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: 0.18s; }
  .hero__sub, .hero__ctas, .hero__facts { animation: fade-up 0.8s var(--ease-out) both; }
  .hero__sub { animation-delay: 0.35s; }
  .hero__ctas { animation-delay: 0.45s; }
  .hero__facts { animation-delay: 0.6s; }
}
@keyframes slide-push { from { transform: scale(1.08); } to { transform: scale(1.0); } }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-settle { from { transform: scale(1.09); filter: brightness(0.6); } to { transform: none; filter: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: clip;
  padding-block: var(--space-2xl) var(--space-xl);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.15) saturate(1.08); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, oklch(0.13 0.008 25 / 0.86) 0%, oklch(0.13 0.008 25 / 0.55) 45%, oklch(0.13 0.008 25 / 0.08) 100%);
}
/* Other content photos: a gentle lift so shop shots don't read dark */
.step__img img, .split__img img, .people__photo img, .photo-pair img, .rail img, .gallery img { filter: brightness(1.1) saturate(1.06); }
.page-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.page-hero p { margin-top: var(--space-m); max-width: 52ch; color: var(--text-on-dark-muted); font-size: var(--step-1); }
.crumbs { display: flex; gap: 0.5em; list-style: none; font-size: var(--step--1); color: var(--text-on-dark-muted); margin-bottom: var(--space-m); }
.crumbs a { color: var(--text-on-dark); }
.crumbs li + li::before { content: "/"; margin-right: 0.5em; opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero__media img { animation: hero-settle 1.4s var(--ease-out) both; }
  .page-hero h1, .page-hero p, .page-hero .crumbs { animation: fade-up 0.8s var(--ease-out) both; }
  .page-hero p { animation-delay: 0.12s; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark .muted { color: var(--text-on-dark-muted); }
.section--red { background: var(--red); color: #fff; }
.section--paper2 { background: var(--paper-2); }
.section-head { display: grid; gap: var(--space-m); margin-bottom: var(--space-xl); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.15fr 1fr; gap: var(--space-xl); } }

/* ---------- Process (real 4-step sequence) ---------- */
.process { position: relative; display: grid; gap: var(--space-l); grid-template-columns: 1fr; list-style: none; counter-reset: step; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); gap: var(--space-m); } }
@media (min-width: 1100px) {
  .process::before, .process::after {
    content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line);
  }
  .process::after { background: var(--red); transform-origin: left; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .process::after { animation: rail-fill linear both; animation-timeline: view(); animation-range: entry 60% cover 50%; }
    }
  }
}
@keyframes rail-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step { position: relative; display: grid; gap: var(--space-s); align-content: start; }
.step__num {
  counter-increment: step; position: relative; z-index: var(--z-base);
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 860; font-variation-settings: "wdth" 120; font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--step-ring);
}
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.015em; }
.step p { color: var(--text-muted); }
.step__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.step:hover .step__img img { transform: scale(1.04); }
@media (max-width: 759px) {
  .step { grid-template-columns: 56px 1fr; column-gap: var(--space-s); }
  .step__num { grid-row: span 2; }
  .step h3 { align-self: center; }
  .step p, .step__img { grid-column: 2; }
  .step__img { aspect-ratio: 16 / 9; }
}

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 4px; grid-template-columns: 1fr; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(280px, auto); }
  .tile--a { grid-column: span 4; grid-row: span 2; }
  .tile--b { grid-column: span 2; }
  .tile--c { grid-column: span 2; }
  .tile--d { grid-column: span 3; }
  .tile--e { grid-column: span 3; }
}
.tile {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem;
  padding: clamp(1.25rem, 2.5vw, 2.25rem); min-height: 300px;
}
.tile__img { position: absolute; inset: 0; z-index: -2; }
/* Brighter photo tiles: lift the photo itself, and keep the dark shade only behind the text at the bottom */
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter 0.6s var(--ease-out); filter: brightness(1.2) saturate(1.1) contrast(1.04); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, oklch(0.12 0.008 25 / 0.45) 0%, oklch(0.12 0.008 25 / 0) 45%);
  transition: background-color var(--dur);
}
/* Front-page photo cards: photo on top, fully visible; text on a solid dark caption bar underneath */
.tile.tile--card { padding: 0; gap: 0; justify-content: flex-start; }
@media (min-width: 760px) {
  .bento:has(.tile--card) { grid-auto-rows: minmax(320px, auto); }
  .bento .tile.tile--card .tile__img { min-height: 190px; }
}
.tile.tile--card::before { display: none; }
.tile.tile--card .tile__img { position: relative; inset: auto; z-index: 0; flex: 1 1 auto; min-height: 150px; overflow: hidden; }
.tile.tile--card .tile__img img { position: absolute; inset: 0; }
.tile.tile--card .tile__text {
  flex: none; display: grid; gap: 0.3rem;
  padding: clamp(0.75rem, 1.4vw, 1rem) clamp(0.9rem, 1.8vw, 1.4rem);
  background: oklch(0.15 0.008 25);
  border-top: 3px solid var(--red);
}
.tile.tile--card .tile__text h3, .tile.tile--card .tile__text p { margin: 0; }
.tile.tile--card .tile__text p { color: oklch(0.86 0.006 25); }
.tile.tile--card .tile__text h3 { font-size: var(--step-1); }
.tile.tile--card.tile--a .tile__text h3 { font-size: var(--step-3); }
.tile.tile--card .tile__go { margin-top: 0.15rem; }
.tile.tile--card:hover .tile__text, .tile.tile--card:focus-visible .tile__text { background: oklch(0.19 0.01 25); }
@media (max-width: 759px) {
  .tile.tile--card .tile__img { min-height: 130px; }
  .tile.tile--card.tile--a .tile__img { min-height: 170px; }
}
.tile:hover .tile__img img, .tile:focus-visible .tile__img img { transform: scale(1.05); filter: brightness(1.28) saturate(1.15) contrast(1.04); }
.tile h3 { font-size: var(--step-2); font-weight: 820; font-variation-settings: "wdth" 114; letter-spacing: -0.02em; }
.tile--a h3 { font-size: var(--step-4); max-width: 12ch; }
.tile p { color: var(--text-on-dark-muted); max-width: 44ch; }
.tile__go {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; margin-top: 0.4rem; color: #fff;
}
.tile__go svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.tile:hover .tile__go svg { transform: translateX(5px); }
.tile--solid { background: var(--red); }
.tile--solid::before { display: none; }
.tile--solid p { color: oklch(0.96 0.03 25); }

/* ---------- Right to choose (drenched red) ---------- */
.choose { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 960px) { .choose { grid-template-columns: 1.05fr 1fr; } }
.choose h2 { font-size: var(--step-5); }
.choose__lede { margin-top: var(--space-m); font-size: var(--step-1); max-width: 40ch; color: oklch(0.97 0.02 25); }
.facts { list-style: none; display: grid; gap: 0; border-top: 2px solid oklch(1 0 0 / 0.35); }
.facts li {
  display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--space-s); align-items: start;
  padding-block: var(--space-m); border-bottom: 1px solid oklch(1 0 0 / 0.25); font-size: var(--step-1); line-height: 1.4; font-weight: 560;
}
.facts svg { width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; }
.choose .btn-row { margin-top: var(--space-l); display: flex; flex-wrap: wrap; gap: var(--space-s); }

/* ---------- Color match feature ---------- */
.match { position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: var(--text-on-dark); }
.match__media { position: absolute; inset: 0; z-index: -2; }
.match__media img { width: 100%; height: 118%; object-fit: cover; object-position: 30% 50%; }
.match::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, oklch(0.13 0.008 25 / 0.2) 0%, oklch(0.13 0.008 25 / 0.75) 45%, oklch(0.13 0.008 25 / 0.96) 70%);
}
@media (max-width: 899px) {
  .match::before { background: linear-gradient(to bottom, oklch(0.13 0.008 25 / 0.55), oklch(0.13 0.008 25 / 0.95) 55%); }
}
.match__inner { display: grid; padding-block: var(--space-2xl); }
@media (min-width: 900px) { .match__inner { grid-template-columns: 1fr minmax(0, 560px); } .match__body { grid-column: 2; } }
@media (max-width: 899px) { .match__inner { padding-top: min(55vw, 360px); } }
.match h2 { font-size: var(--step-4); }
.match__body > p { margin-top: var(--space-m); color: var(--text-on-dark-muted); font-size: var(--step-1); }
.formula { list-style: none; margin-top: var(--space-l); display: grid; gap: 2px; counter-reset: layer; }
.formula li {
  counter-increment: layer;
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: var(--space-s);
  padding: 0.7rem 0.9rem; background: oklch(1 0 0 / 0.05); font-weight: 600; font-variation-settings: "wdth" 106;
  border-left: 0; position: relative; overflow: hidden;
}
.formula li::before { content: counter(layer, decimal-leading-zero); color: var(--text-on-dark-muted); font-feature-settings: "tnum"; font-size: var(--step--1); }
.formula li::after {
  content: ""; position: absolute; inset: 0; background: var(--red); opacity: 0.0; z-index: -1;
}
.formula .chip { width: 22px; height: 22px; border-radius: 50%; border: 2px solid oklch(1 0 0 / 0.5); }
.formula.is-running li { animation: layer-pass 2.4s var(--ease-out) both; animation-delay: calc(var(--i) * 140ms); }
@keyframes layer-pass {
  0% { background: oklch(1 0 0 / 0.05); }
  25% { background: oklch(0.555 0.215 27 / 0.55); }
  100% { background: oklch(1 0 0 / 0.05); }
}

/* ---------- People / shop ---------- */
.people { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 960px) { .people { grid-template-columns: 1.25fr 1fr; } }
.people__photo { position: relative; }
.people__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.people__badge {
  position: absolute; right: clamp(-1rem, -2vw, 0rem); bottom: -2rem; width: clamp(120px, 16vw, 170px);
  background: var(--red); padding: 0.8rem; border-radius: var(--radius); box-shadow: 0 20px 40px -20px oklch(0 0 0 / 0.5);
}
.people__badge img { aspect-ratio: auto; border-radius: 0; }
.people h2 { font-size: var(--step-4); }
.people .prose { margin-top: var(--space-m); }
.people .btn-row { margin-top: var(--space-l); display: flex; gap: var(--space-s); flex-wrap: wrap; align-items: center; }

/* ---------- Finished work rail ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-m); flex-wrap: wrap; margin-bottom: var(--space-l); }
.rail-head h2 { font-size: var(--step-4); }
.rail-controls { display: flex; gap: 0.5rem; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: #fff;
  display: grid; place-items: center; transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.rail-btn:hover { background: var(--red); border-color: var(--red); }
.rail-btn svg { width: 20px; height: 20px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 440px); gap: var(--space-s);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); padding-bottom: var(--space-s);
  scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent;
}
@media (min-width: 1400px) { .rail { padding-inline: calc((100vw - var(--max)) / 2); scroll-padding-inline: calc((100vw - var(--max)) / 2); } }
.rail figure { margin: 0; scroll-snap-align: start; }
.rail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.rail figcaption { margin-top: 0.6rem; color: var(--text-on-dark-muted); font-size: var(--step--1); }

/* ---------- Google reviews ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { position: relative; display: inline-block; width: 1.15em; height: 1.15em; }
.star svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--line); }
.star svg + svg { fill: oklch(0.78 0.16 75); clip-path: inset(0 calc(100% - var(--fill)) 0 0); }
.reviews__grid { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 960px) { .reviews__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); } .reviews__score { position: sticky; top: 7rem; } }
.reviews__score { display: grid; gap: var(--space-s); justify-items: start; }
.reviews__score h2 { font-size: var(--step-4); margin-bottom: var(--space-xs); }
.reviews__rating { display: flex; align-items: center; gap: var(--space-s); }
.reviews__num { font-size: var(--step-5); font-weight: 860; font-variation-settings: "wdth" 118; line-height: 1; letter-spacing: -0.03em; font-feature-settings: "tnum"; }
.reviews__rating .stars { font-size: 1.5rem; }
.reviews__quotes { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 700px) { .reviews__quotes { grid-template-columns: 1fr 1fr; } .review--lead { grid-column: 1 / -1; } }
.review {
  margin: 0; display: grid; gap: var(--space-s); align-content: start;
  padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.review blockquote { margin: 0; }
.review blockquote p { font-size: var(--step-0); line-height: 1.6; }
.review--lead { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }
.review--lead blockquote p { font-size: var(--step-2); line-height: 1.35; font-weight: 600; font-variation-settings: "wdth" 104; letter-spacing: -0.01em; max-width: 46ch; }
.review--lead .muted { color: var(--text-on-dark-muted); }
.review--lead .star svg:first-child { fill: oklch(1 0 0 / 0.25); }
.review figcaption { font-size: var(--step--1); }
/* Light mode: featured review is a soft panel, not a black block */
:root:not([data-theme="dark"]) .review--lead { background: var(--paper-2); color: var(--text); border-color: var(--line); }
:root:not([data-theme="dark"]) .review--lead .muted { color: var(--text-muted); }
:root:not([data-theme="dark"]) .review--lead .star svg:first-child { fill: var(--line); }

/* ---------- Warranty band (home, compact) ---------- */
.warranty-band { background: var(--paper-2); padding-block: var(--space-l); }
@media (min-width: 1040px) { .warranty.warranty--band .btn-row { flex-wrap: nowrap; } }
.warranty.warranty--band {
  text-align: left; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start;
  gap: var(--space-s) var(--space-l);
}
.warranty.warranty--band img { width: clamp(72px, 9vw, 104px); grid-row: span 2; align-self: start; }
.warranty.warranty--band h2 { font-size: var(--step-3); max-width: none; }
.warranty.warranty--band p { margin-top: 0.4rem; font-size: var(--step-0); max-width: 56ch; }
.warranty.warranty--band .btn-row { margin-top: 0; justify-content: flex-start; }
@media (min-width: 1040px) {
  .warranty.warranty--band { grid-template-columns: auto minmax(0, 1fr) auto; }
  .warranty.warranty--band img { grid-row: auto; align-self: center; }
}
@media (max-width: 560px) {
  .warranty.warranty--band { grid-template-columns: minmax(0, 1fr); }
  .warranty.warranty--band img { grid-row: auto; }
}

/* ---------- Warranty CTA (mini) ---------- */
.warranty { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-m); }
@media (max-width: 380px) { .btn--lg { padding: 0.9rem 1.1rem; font-size: var(--step-0); } }
.warranty img { width: 132px; }
.warranty h2 { font-size: min(var(--step-5), 10.5vw); max-width: 14ch; }
.warranty p { max-width: 48ch; color: var(--text-muted); font-size: var(--step-1); }
.warranty .btn-row { display: flex; gap: var(--space-s); flex-wrap: wrap; justify-content: center; margin-top: var(--space-s); }

/* ---------- Generic inner layouts ---------- */
.split { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.2fr 1fr; }
  .split--rev > :first-child { order: 2; }
}
.split__img img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.split__img--tall img { aspect-ratio: 4 / 5; }
.split h2 { font-size: var(--step-4); margin-bottom: var(--space-m); }
.stack-l > * + * { margin-top: var(--space-l); }
.sticky-col { position: sticky; top: 7rem; }

.checklist { list-style: none; display: grid; gap: 0.85rem; margin-top: var(--space-m); }
.checklist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; }
.checklist svg { width: 1.3rem; height: 1.3rem; color: var(--accent-text); margin-top: 0.2rem; }
.section--dark .checklist svg, .section--red .checklist svg { color: currentColor; }

.qa { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; display: flex; justify-content: space-between; gap: var(--space-m);
  font-weight: 700; font-size: var(--step-1); font-variation-settings: "wdth" 106; min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 1.4rem; height: 1.4rem; flex: none; transition: transform var(--dur) var(--ease-out); color: var(--accent-text); }
.qa details[open] summary svg { transform: rotate(45deg); }
.qa details > div { padding-bottom: 1.25rem; color: var(--text-muted); max-width: 66ch; }
.qa details > div p + p { margin-top: 0.8em; }

.compare { display: grid; gap: var(--space-s); }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { padding: var(--space-l); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare__col--us { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }
.compare__col h3 { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 112; margin-bottom: var(--space-s); }
.compare__col ul { list-style: none; display: grid; gap: 0.7rem; }
.compare__col li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; }
.compare__col svg { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; }
.compare__col--them svg { color: var(--text-muted); }
.compare__col--us svg { color: var(--red-hot); }

.quote-block {
  font-size: var(--step-3); font-weight: 820; font-variation-settings: "wdth" 116; letter-spacing: -0.02em; line-height: 1.1;
  max-width: 22ch;
}

.service-index { list-style: none; display: grid; border-top: 1px solid var(--line); }
.service-index a {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-m); align-items: center; padding: 1.25rem 0;
  border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 800; font-size: var(--step-2);
  font-variation-settings: "wdth" 112; letter-spacing: -0.015em; transition: color var(--dur-fast), padding var(--dur) var(--ease-out);
}
.service-index a:hover { color: var(--accent-text); padding-left: 0.5rem; }
.service-index svg { width: 1.4rem; height: 1.4rem; }

.photo-pair { display: grid; gap: 4px; grid-template-columns: 1fr 1fr; }
.photo-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-pair img:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.photo-pair img:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Gallery page ---------- */
.gallery { columns: 1; column-gap: var(--space-s); }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1040px) { .gallery { columns: 3; } }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); margin-bottom: var(--space-s);
  border-radius: var(--radius); overflow: hidden; break-inside: avoid; position: relative;
}
.gallery img { width: 100%; height: auto; transition: transform 0.8s var(--ease-out); }
.gallery button:hover img { transform: scale(1.035); }
.gallery button span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.8rem; color: #fff; text-align: left; font-weight: 650;
  background: linear-gradient(to top, oklch(0.12 0.008 25 / 0.85), transparent); opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.gallery button:hover span, .gallery button:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .gallery button span { opacity: 1; transform: none; } }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: #fff;
}
.lightbox::backdrop { background: oklch(0.1 0.006 25 / 0.92); }
.lightbox__inner { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: var(--space-s) var(--gutter); gap: var(--space-s); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__nav { display: flex; justify-content: center; gap: var(--space-s); }
.lightbox[open] .lightbox__stage img { animation: lb-in 0.35s var(--ease-out) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.contact-card { display: grid; gap: var(--space-m); }
.contact-line { display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--space-s); align-items: start; }
.contact-line .ico { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.contact-line .ico svg { width: 1.25rem; height: 1.25rem; }
.contact-line strong { display: block; font-variation-settings: "wdth" 108; }
.contact-line a { font-weight: 700; }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); filter: grayscale(0.4) contrast(1.05); background: var(--paper-2); }

.form { display: grid; gap: var(--space-m); padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form h2 { font-size: var(--step-3); }
.form-row { display: grid; gap: var(--space-m); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: var(--step--1); font-variation-settings: "wdth" 106; }
.field label .req { color: var(--accent-text); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 0.8rem 0.9rem; min-height: 50px; width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.5 0.01 25); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--focus); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--red); }
.field .err { color: var(--error); font-size: var(--step--1); font-weight: 600; min-height: 1.2em; }
.field .hint { color: var(--text-muted); font-size: var(--step--1); }
.consent { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem; font-size: var(--step--1); color: var(--text-muted); align-items: start; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--red); }
.form-status { font-weight: 650; min-height: 1.4em; }
.form-status[data-kind="ok"] { color: var(--success); }
.form-status[data-kind="error"] { color: var(--error); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-l); padding-block: var(--space-xl); }
.cta-band h2 { font-size: var(--step-4); max-width: 18ch; }
.cta-band .btn-row { display: flex; gap: var(--space-s); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding-block: var(--space-xl) var(--space-l); font-size: var(--step--1); }
.footer-grid { display: grid; gap: var(--space-l); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; font-weight: 760; font-variation-settings: "wdth" 110; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 170px; margin-bottom: var(--space-s); }
.footer-phone { font-size: var(--step-2); font-weight: 860; font-variation-settings: "wdth" 118; color: #fff !important; letter-spacing: -0.01em; }
.service-area { margin-top: var(--space-l); padding-top: var(--space-l); border-top: 1px solid var(--line-dark); line-height: 1.7; max-width: 110ch; }
.footer-legal { margin-top: var(--space-l); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s); }

/* ---------- Chat assistant ---------- */
.chat-launch {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: var(--z-overlay);
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 56px; padding: 0 1.25rem 0 1rem;
  border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 760; font-variation-settings: "wdth" 108;
  box-shadow: 0 14px 34px -12px oklch(0.3 0.15 27 / 0.65);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast), opacity var(--dur) var(--ease-out);
}
.chat-launch:hover { background: var(--red-hot); transform: translateY(-2px); }
.chat-launch svg { width: 22px; height: 22px; }
.chat-launch[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(0.9); }
.chat-launch__dot {
  position: absolute; top: 8px; left: 30px; width: 10px; height: 10px; border-radius: 50%;
  background: oklch(0.8 0.17 145); box-shadow: 0 0 0 2px var(--red);
}

.chat {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: var(--z-modal);
  width: min(390px, calc(100vw - 2rem)); height: min(620px, calc(100dvh - 7rem));
  display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden;
  background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 70px -20px oklch(0 0 0 / 0.45);
  transform-origin: bottom right;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.97);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.chat.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s; }
.chat__head {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 0.9rem 0.9rem 1.1rem;
  background: var(--ink); color: var(--text-on-dark);
}
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }
.chat__avatar svg { width: 20px; height: 20px; color: #fff; }
.chat__title { flex: 1; min-width: 0; line-height: 1.25; }
.chat__title strong { display: block; font-variation-settings: "wdth" 110; }
.chat__title span { font-size: var(--step--1); color: var(--text-on-dark-muted); }
.chat__close { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff; display: grid; place-items: center; }
.chat__close:hover { background: oklch(1 0 0 / 0.1); }
.chat__close svg { width: 20px; height: 20px; }

.chat__log { overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; overscroll-behavior: contain; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.97rem; line-height: 1.5; word-wrap: break-word; }
.msg--bot { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: inherit; font-weight: 700; }
.msg--bot a { color: var(--accent-text); }
.msg__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.msg__actions a {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 38px; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--ink); color: #fff !important; text-decoration: none; font-size: 0.9rem; font-weight: 700;
}
:root[data-theme="dark"] .msg__actions a { background: var(--red); }
.msg__actions svg { width: 15px; height: 15px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.85rem 0.9rem; background: var(--paper-2); border-radius: 14px; border-bottom-left-radius: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: typing 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: no-preference) { .msg { animation: msg-in 0.28s var(--ease-out) both; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chat__chips { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.6rem 1rem; border-top: 1px solid var(--line); scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips button {
  flex: none; min-height: 36px; padding: 0.3rem 0.85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 0.88rem; font-weight: 650; white-space: nowrap;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.chat__chips button:hover { border-color: var(--red); color: var(--accent-text); }
.chat__form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat__form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0.6rem 0.9rem; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--text); font: inherit; font-size: 1rem;
}
.chat__form input::placeholder { color: var(--text-muted); }
.chat__form input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--focus); }
.chat__form button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.chat__form button:hover { background: var(--red-hot); }
.chat__form button svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .chat-launch { bottom: calc(56px + env(safe-area-inset-bottom) + 0.75rem); right: 0.75rem; padding: 0; width: 56px; justify-content: center; }
  .chat-launch__label { display: none; }
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(88dvh, 640px); border-radius: 16px 16px 0 0; border-bottom: 0; }
}

/* ---------- Mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: oklch(1 0 0 / 0.12);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform var(--dur) var(--ease-out);
}
.callbar.is-visible { transform: none; }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; text-decoration: none;
  font-weight: 760; font-variation-settings: "wdth" 108; color: #fff; background: var(--ink);
}
.callbar a:first-child { background: var(--red); }
.callbar svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 760px) {
  .callbar { display: grid; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ---------- Scroll-linked parallax (progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-parallax] { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes drift { from { transform: translateY(-6%); } to { transform: translateY(6%); } }

/* ---------- Compact density: every section as short as it can be ---------- */
.hero { min-height: min(74svh, 700px); }
.hero__inner { padding-block: var(--space-xl) calc(var(--space-s) + 52px); gap: var(--space-m); }
.hero__facts { padding-top: var(--space-s); }
.page-hero { padding-block: var(--space-xl) var(--space-l); }
.page-hero p { margin-top: var(--space-s); }
.crumbs { margin-bottom: var(--space-s); }
.section-head { margin-bottom: var(--space-l); gap: var(--space-s); }
.lede { font-size: var(--step-0); }

.process { gap: var(--space-m); }
.step { gap: 0.6rem; }
.step h3 { font-size: var(--step-1); }
.step p { font-size: 0.95rem; }
.step__img { aspect-ratio: 16 / 10; }
@media (max-width: 759px) { .step__img { display: none; } .process { gap: var(--space-s); } .step__num { width: 44px; height: 44px; font-size: 1rem; } .step { grid-template-columns: 44px 1fr; } }

@media (min-width: 760px) { .bento { grid-auto-rows: minmax(200px, auto); } }
.tile { min-height: 200px; padding: clamp(1rem, 2vw, 1.6rem); }
.tile p { font-size: 0.95rem; }
.tile h3 { font-size: var(--step-1); }
.tile--a h3 { font-size: var(--step-3); }
@media (max-width: 759px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 150px; }
  .tile--a { grid-column: 1 / -1; min-height: 190px; }
  .tile p, .tile__go { display: none; }
  .tile h3, .tile--a h3 { font-size: 1.05rem; }
  .tile--a h3 { font-size: var(--step-2); }
}

.choose { gap: var(--space-l); }
.choose h2 { font-size: var(--step-4); }
.choose__lede { margin-top: var(--space-s); font-size: var(--step-0); }
.choose .btn-row { margin-top: var(--space-m); }
.facts li { padding-block: 0.75rem; font-size: var(--step-0); }
.facts svg { width: 1.3rem; height: 1.3rem; }

.match__inner { padding-block: var(--space-xl); }
@media (max-width: 899px) { .match__inner { padding-top: min(38vw, 240px); } }
.match h2 { font-size: var(--step-3); }
.match__body > p { margin-top: var(--space-s); font-size: var(--step-0); }
.formula { margin-top: var(--space-m); }
.formula li { padding: 0.45rem 0.8rem; font-size: 0.95rem; }

.people { gap: var(--space-l); }
.people__photo img { aspect-ratio: 16 / 9; }
.people__badge { bottom: -1rem; width: clamp(96px, 12vw, 130px); padding: 0.6rem; }
.people h2 { font-size: var(--step-3); }
.people .prose { margin-top: var(--space-s); }
.people .btn-row { margin-top: var(--space-m); }

.rail-head { margin-bottom: var(--space-m); }
.rail-head h2 { font-size: var(--step-3); }
.rail { grid-auto-columns: min(62vw, 300px); }
.rail img { aspect-ratio: 1; }
.section--work .wrap[style] { margin-top: var(--space-m) !important; }

.reviews__grid { gap: var(--space-l); }
.reviews__score h2 { font-size: var(--step-3); margin-bottom: 0; }
.reviews__num { font-size: var(--step-4); }
.reviews__quotes { gap: var(--space-s); }
.review { padding: clamp(1rem, 2vw, 1.4rem); gap: 0.5rem; }
.review blockquote p { font-size: 0.95rem; }
.review--lead blockquote p { font-size: var(--step-1); }
@media (max-width: 699px) { .review:not(.review--lead) blockquote p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } }

.warranty-band { padding-block: var(--space-m); }
.warranty.warranty--band h2 { font-size: var(--step-2); }
.warranty.warranty--band img { width: clamp(60px, 7vw, 84px); }
.warranty { gap: var(--space-s); }
.warranty img { width: 96px; }
.warranty h2 { font-size: min(var(--step-4), 10.5vw); }

.split { gap: var(--space-l); }
.split h2 { font-size: var(--step-3); margin-bottom: var(--space-s); }
.split__img img { aspect-ratio: 16 / 10; }
.split__img--tall img { aspect-ratio: 1; }
.split [style*="margin-top:var(--space-l)"] { margin-top: var(--space-m) !important; }
.checklist { gap: 0.55rem; margin-top: var(--space-s); }
.quote-block { font-size: var(--step-2); }
.service-index a { padding: 0.75rem 0; font-size: var(--step-1); }
.photo-pair img { aspect-ratio: 4 / 3; }
.qa summary { padding: 0.75rem 0; font-size: var(--step-0); }
.compare__col { padding: var(--space-m); }
.compare__col h3 { font-size: var(--step-1); }
.compare__col ul { gap: 0.5rem; }

.gallery { columns: 2; column-gap: 0.5rem; }
.gallery button { margin-bottom: 0.5rem; }
@media (min-width: 760px) { .gallery { columns: 3; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }

.contact-grid { gap: var(--space-l); }
.contact-card { gap: var(--space-s); }
.map { aspect-ratio: 16 / 7; }
.form { gap: var(--space-s); padding: clamp(1rem, 2.5vw, 1.75rem); }
.form h2 { font-size: var(--step-2); }
.form-row { gap: var(--space-s); }
.field textarea { min-height: 96px; }
.field .err { min-height: 0; }

.cta-band .wrap { padding-block: var(--space-l); gap: var(--space-m); }
.cta-band h2 { font-size: var(--step-3); }

.site-footer { padding-block: var(--space-l) var(--space-m); }
.footer-grid { gap: var(--space-m); grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 130px; margin-bottom: 0.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.site-footer ul { gap: 0.3rem; }
.site-footer h3 { margin-bottom: 0.5rem; }
.service-area { margin-top: var(--space-m); padding-top: var(--space-m); font-size: 0.8rem; line-height: 1.55; }
.footer-legal { margin-top: var(--space-m); }

/* ---------- 3D exploded-car intro (intro.html) ---------- */
.car3d-track { position: relative; height: 230svh; background: oklch(0.13 0.006 25); }
.car3d {
  position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(60% 55% at 50% 42%, oklch(0.28 0.03 25) 0%, oklch(0.16 0.01 25) 55%, oklch(0.11 0.005 25) 100%);
}
.car3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.car3d__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 0.8s var(--ease-out); }
/* Video header: the clip's first frame (car3d__photo) is ALWAYS visible in the same box; the video
   fades in on top only once it has really loaded. Phones that block or delay video still show the car. */
.car3d.car3d--video .car3d__photo,
.car3d.car3d--video .car3d__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 9%);
}
.car3d.car3d--video img.car3d__photo { opacity: 1; z-index: 0; }
.car3d.car3d--video .car3d__video { z-index: 1; }
.car3d.car3d--video.is-ready .car3d__video { opacity: 1; }
.car3d.car3d--video.is-fallback .car3d__video { display: none; }
/* Short phones (e.g. iPhone SE 1st gen, 568px tall): lift the car band so it clears the headline */
@media (max-width: 760px) and (max-height: 700px) {
  .car3d.car3d--video .car3d__photo,
  .car3d.car3d--video .car3d__video { top: 7% !important; }
}
/* Hide iOS Safari's big play button if autoplay is blocked (e.g. Low Power Mode) */
.car3d__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.car3d__video::-webkit-media-controls { display: none !important; }
@media (max-width: 760px) {
  /* Phones: show the whole frame as a band above the headline instead of a tall center crop */
  .car3d.car3d--video .car3d__photo,
  .car3d.car3d--video .car3d__video {
    inset: auto 0 auto 0; top: 26%; height: auto; aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  }
}
/* Video can be bright: extra left-side shade keeps the headline readable on wide screens */
@media (min-width: 900px) {
  .car3d--video::after { background: linear-gradient(90deg, oklch(0.11 0.005 25 / 0.8) 0%, oklch(0.11 0.005 25 / 0.35) 40%, transparent 65%), linear-gradient(to top, oklch(0.11 0.005 25 / 0.85) 0%, transparent 45%); }
}
.car3d__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; }
.car3d.is-fallback .car3d__fallback { opacity: 0.55; }
.car3d.is-fallback .car3d__canvas, .car3d.is-fallback .car3d__hint { display: none; }
.car3d::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, oklch(0.11 0.005 25 / 0.92) 0%, oklch(0.11 0.005 25 / 0.35) 32%, transparent 55%);
}
.car3d__copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin-inline: auto;
  padding-bottom: clamp(1.5rem, 4vh, 3rem); display: grid; gap: var(--space-m);
}
.car3d__line { grid-area: 1 / 1; max-width: 40rem; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
.car3d__line.is-hidden { opacity: 0; transform: translateY(14px); filter: blur(6px); pointer-events: none; }
.car3d__line h1, .car3d__h { font-size: var(--step-5); line-height: 0.98; margin: 0; }
.car3d__h em { font-style: italic; color: var(--red-hot); }
.car3d__line > p:not(.car3d__h) { margin-top: var(--space-s); max-width: 44ch; color: var(--text-on-dark-muted); font-size: var(--step-0); }
.car3d__hint {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(1.5rem, 4vh, 3rem);
  font-size: var(--step--1); color: var(--text-on-dark-muted); letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.car3d__credit {
  margin: 0; padding: 0.6rem var(--gutter); background: oklch(0.11 0.005 25); border-top: 1px solid oklch(1 0 0 / 0.08);
  font-size: 0.75rem; line-height: 1.4; text-align: center; color: oklch(0.72 0.01 25);
}
.car3d__hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--text-on-dark-muted), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .car3d__canvas { animation: car3d-in 1.4s var(--ease-out) both; }
  .car3d__hint::after { animation: hint-drop 1.8s ease-in-out infinite; transform-origin: top; }
}
@keyframes car3d-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes hint-drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .car3d-track { height: 200svh; }
  .car3d__hint { display: none; }
  .car3d__copy .hero__ctas .btn--ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { .car3d-track { height: auto; } .car3d { position: relative; } }

/* Netlify "Powered by Netlify" badge (injected iframe) covers the hero on phones; owner-level hide, same effect as the project setting */
#nl-badge-frame { display: none !important; }

/* ---------- Touch targets (44px minimum) ---------- */
.brand { display: flex; align-items: center; min-height: 48px; }
.contact-line a { display: inline-flex; align-items: center; min-height: 44px; }
.consent { min-height: 44px; align-items: center; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Services "Around the shop": taller tiles so tall photos aren't cut down to thin strips */
@media (min-width: 760px) {
  #shop .bento { grid-auto-rows: minmax(300px, auto); }
  #shop .tile--d, #shop .tile--e { min-height: 440px; }
}
@media (max-width: 759px) {
  #shop .tile, #shop .tile--a { min-height: 240px; }
  #shop .tile--d, #shop .tile--e { grid-column: 1 / -1; min-height: 280px; }
}
/* v23 phones: photos with text on top were covered by a full-width tint. Photo now sits clean, text below it. */
@media (max-width: 759px) {
  .page-hero { padding-top: 0; }
  .page-hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; margin-bottom: var(--space-l); }
  .page-hero::before { display: none; }
  .match::before { background: linear-gradient(to bottom, oklch(0.13 0.008 25 / 0) 0, oklch(0.13 0.008 25 / 0) 22vw, oklch(0.13 0.008 25 / 0.96) 38vw); }
  :root:not([data-theme="dark"]) .match::before { background: linear-gradient(to bottom, oklch(0.935 0.005 25 / 0) 0, oklch(0.935 0.005 25 / 0) 22vw, oklch(0.935 0.005 25 / 0.97) 38vw); }
}
