/* ==========================================================================
   Mila Flooring & Carpentry — design system
   Brand: #E50000 red, near-black, warm timber neutrals
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --red: #E50000;
  --red-bright: #FF2020;
  --red-deep: #A80000;
  --red-soft: #FFF0F0;

  --ink: #0A0908;
  --ink-2: #17130F;
  --ink-3: #4A4038;
  --ink-4: #7A6E63;
  --paper: #FCFAF7;
  --paper-2: #F4EFE7;
  --paper-3: #E9E1D5;

  --oak: #C08A4E;

  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --text: var(--ink);
  --text-muted: var(--ink-3);
  --text-faint: var(--ink-4);
  --line: color-mix(in oklab, var(--ink) 11%, transparent);
  --line-strong: color-mix(in oklab, var(--ink) 20%, transparent);
  --accent: var(--red);
  --accent-grad: linear-gradient(135deg, #FF2A2A 0%, #E50000 45%, #A80000 100%);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.85vw, 2.05rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.8rem + 2.8vw, 4.1rem);
  --step-5:  clamp(3rem, 1.9rem + 5vw, 6rem);

  --gap: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  --section-y: clamp(4rem, 2.6rem + 6vw, 9rem);
  --wrap: 1280px;
  --wrap-narrow: 800px;

  --radius: 6px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgb(10 9 8 / .04), 0 3px 10px rgb(10 9 8 / .04);
  --shadow-md: 0 2px 6px rgb(10 9 8 / .05), 0 14px 34px -8px rgb(10 9 8 / .12);
  --shadow-lg: 0 6px 16px rgb(10 9 8 / .07), 0 34px 70px -16px rgb(10 9 8 / .2);
  --shadow-red: 0 10px 30px -8px rgb(229 0 0 / .45);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --header-h: 82px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0B0A;
    --bg-alt: #141110;
    --surface: #1A1615;
    --surface-2: #201B19;
    --text: #F8F4EF;
    --text-muted: #C2B7AB;
    --text-faint: #8F8478;
    --line: color-mix(in oklab, #F8F4EF 13%, transparent);
    --line-strong: color-mix(in oklab, #F8F4EF 25%, transparent);
    --red-soft: #2C1210;
    --accent: #FF3B3B;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .45);
    --shadow-md: 0 2px 6px rgb(0 0 0 / .45), 0 14px 34px -8px rgb(0 0 0 / .6);
    --shadow-lg: 0 6px 16px rgb(0 0 0 / .5), 0 34px 70px -16px rgb(0 0 0 / .75);
  }
}
:root[data-theme="dark"] {
  --bg: #0D0B0A;
  --bg-alt: #141110;
  --surface: #1A1615;
  --surface-2: #201B19;
  --text: #F8F4EF;
  --text-muted: #C2B7AB;
  --text-faint: #8F8478;
  --line: color-mix(in oklab, #F8F4EF 13%, transparent);
  --line-strong: color-mix(in oklab, #F8F4EF 25%, transparent);
  --red-soft: #2C1210;
  --accent: #FF3B3B;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .45);
  --shadow-md: 0 2px 6px rgb(0 0 0 / .45), 0 14px 34px -8px rgb(0 0 0 / .6);
  --shadow-lg: 0 6px 16px rgb(0 0 0 / .5), 0 34px 70px -16px rgb(0 0 0 / .75);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:where(h1,h2,h3,h4,h5,h6) { font-weight: 500; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 0; left: 50%; translate: -50% -120%;
  z-index: 300; padding: .75rem 1.3rem; background: var(--accent);
  color: #fff; font-weight: 600; font-size: var(--step--1);
  border-radius: 0 0 var(--radius) var(--radius); transition: translate .2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

/* Grain: a barely-there texture that stops large flat fills looking dead. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 500; pointer-events: none;
  opacity: .022; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::after { mix-blend-mode: screen; opacity: .035; }
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .035; }

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; z-index: 250; height: 2px; width: 100%;
  transform-origin: 0 50%; scale: var(--p, 0) 1;
  background: var(--accent-grad);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--ink {
  background: var(--ink); color: #F8F4EF;
  --text: #F8F4EF; --text-muted: #B9AEA2; --line: rgb(255 255 255 / .13);
  --line-strong: rgb(255 255 255 / .24); --surface: #16120F; --surface-2: #1C1714;
}
/* Ambient red glow so dark bands read as lit, not as a black box. */
.section--ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 15% 0%, rgb(229 0 0 / .16), transparent 60%),
    radial-gradient(50rem 26rem at 90% 100%, rgb(229 0 0 / .1), transparent 60%);
}
.section--ink > * { position: relative; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 48;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.h1 { font-size: var(--step-5); }
.h2 { font-size: var(--step-4); }
.h3 { font-size: var(--step-3); }
.h4 { font-size: var(--step-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--accent-grad); border-radius: 2px; }
.eyebrow--center::after { content: ""; width: 1.8rem; height: 2px; background: var(--accent-grad); border-radius: 2px; }

.lede { font-size: var(--step-1); color: var(--text-muted); line-height: 1.55; }
.muted { color: var(--text-muted); }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 1.5rem + 2.6vw, 4rem); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .measure { margin-inline: auto; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: end; gap: 2.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; padding: 1rem 1.7rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--accent-grad); background-size: 150% 150%;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-red);
  transition: translate .3s var(--ease-out), box-shadow .3s var(--ease), background-position .5s var(--ease);
}
/* Sheen sweep on hover. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .3) 50%, transparent 70%);
  translate: -120% 0; transition: translate .7s var(--ease-out);
}
.btn:hover { translate: 0 -3px; box-shadow: 0 16px 40px -10px rgb(229 0 0 / .6); background-position: 100% 0; }
.btn:hover::before { translate: 120% 0; }
.btn:active { translate: 0 -1px; }
.btn > * { position: relative; z-index: 2; }

.btn--outline {
  background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none;
}
.btn--outline::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text);
  translate: 0 101%; transition: translate .4s var(--ease-out);
}
.btn--outline:hover { color: var(--bg); border-color: var(--text); box-shadow: var(--shadow-md); }
.btn--outline:hover::after { translate: 0 0; }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); }
.btn--light:hover { box-shadow: 0 16px 40px -10px rgb(0 0 0 / .6); }

.btn--ghost-light {
  background: rgb(255 255 255 / .07); color: #fff; border-color: rgb(255 255 255 / .28);
  box-shadow: none; backdrop-filter: blur(8px);
}
.btn--ghost-light:hover { background: rgb(255 255 255 / .16); border-color: #fff; }

.btn--lg { padding: 1.15rem 2.1rem; font-size: var(--step-0); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: var(--step--1); letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .4s var(--ease-out);
}
.link-arrow svg { transition: translate .3s var(--ease-spring); }
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover svg { translate: 5px 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Over a hero image the header is glass; elsewhere and once scrolled it solidifies. */
.header--over { color: #fff; }
.header--over .nav__link { color: rgb(255 255 255 / .82); }
.header--over .icon-btn { color: rgb(255 255 255 / .82); border-color: rgb(255 255 255 / .25); }
.header--over .icon-btn:hover { background: rgb(255 255 255 / .14); color: #fff; border-color: rgb(255 255 255 / .5); }
.header--over .brand__mark--dark { display: none; }
.header--over .brand__mark--light { display: block; }
.header--over::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(8 7 6 / .55), transparent);
}

.header.is-stuck {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.header.is-stuck::before { opacity: 0; }
.header.is-stuck .nav__link { color: var(--text-muted); }
.header.is-stuck .icon-btn { color: var(--text-muted); border-color: var(--line); }
.header.is-stuck .icon-btn:hover { background: var(--bg-alt); color: var(--text); border-color: var(--line-strong); }
.header.is-stuck .brand__mark--dark { display: block; }
.header.is-stuck .brand__mark--light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header.is-stuck .brand__mark--dark { display: none; }
  :root:not([data-theme="light"]) .header.is-stuck .brand__mark--light { display: block; }
}
:root[data-theme="dark"] .header.is-stuck .brand__mark--dark { display: none; }
:root[data-theme="dark"] .header.is-stuck .brand__mark--light { display: block; }

.header__in { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); min-height: var(--header-h); }
.header__spacer { height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; }
.brand img { width: clamp(140px, 15vw, 182px); transition: scale .3s var(--ease-spring); }
.brand:hover img { scale: 1.03; }
.brand__mark--light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__mark--dark { display: none; }
  :root:not([data-theme="light"]) .brand__mark--light { display: block; }
}
:root[data-theme="dark"] .brand__mark--dark { display: none; }
:root[data-theme="dark"] .brand__mark--light { display: block; }

.nav { display: none; }
@media (min-width: 1080px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: .2rem; }
.nav__link {
  white-space: nowrap;
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  padding: .65rem .9rem; border-radius: var(--radius);
  font-size: var(--step--1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .32rem;
  height: 2px; border-radius: 2px; background: var(--accent-grad);
  scale: 0 1; transform-origin: left; transition: scale .35s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item:hover > .nav__link { color: currentColor; }
.header .nav__link:hover, .header .nav__link[aria-current="page"] { color: var(--accent); }
.header--over .nav__link:hover, .header--over .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item:hover > .nav__link::after { scale: 1 1; }
.nav__item { position: relative; }
.nav__caret { transition: rotate .3s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { rotate: 180deg; }

.nav__panel {
  position: absolute; top: calc(100% + .5rem); left: 50%;
  min-width: 300px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: -50% 10px; color: var(--text);
  transition: opacity .25s var(--ease), translate .32s var(--ease-out), visibility .25s;
}
.nav__item:hover > .nav__panel, .nav__item:focus-within > .nav__panel { opacity: 1; visibility: visible; translate: -50% 0; }
.nav__panel a {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .8rem; border-radius: var(--radius);
  font-size: var(--step--1); font-weight: 500; color: var(--text-muted);
  transition: background .2s var(--ease), color .2s var(--ease), padding-left .25s var(--ease);
}
.nav__panel a::before {
  content: ""; width: 6px; height: 6px; rotate: 45deg; flex: none;
  background: var(--accent); opacity: .3; transition: opacity .2s var(--ease), scale .25s var(--ease-spring);
}
.nav__panel a:hover { background: var(--bg-alt); color: var(--text); padding-left: 1.05rem; }
.nav__panel a:hover::before { opacity: 1; scale: 1.5; }

.header__actions { display: flex; align-items: center; gap: .5rem; flex: none; white-space: nowrap; }
.header__socials { display: none; gap: .3rem; margin-right: .2rem; flex: none; }
@media (min-width: 980px) { .header__socials { display: flex; flex-direction: row; } }
.header__cta { display: none; }
@media (min-width: 600px) { .header__cta { display: inline-flex; } }
.header__phone {
  display: none; align-items: center; gap: .5rem; padding: .55rem .85rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .02em;
  white-space: nowrap; flex: none;
  border-radius: var(--radius); transition: color .2s var(--ease), background .2s var(--ease);
}
.header__phone svg { color: var(--accent); }
.header__phone:hover { color: var(--accent); }
@media (min-width: 1240px) { .header__phone { display: inline-flex; } }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text-muted);
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), scale .2s var(--ease-spring);
}
.icon-btn:hover { scale: 1.06; }
.icon-btn--sm { width: 36px; height: 36px; }
.nav-toggle { display: grid; }
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 260; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgb(8 7 6 / .6);
  opacity: 0; transition: opacity .35s var(--ease); backdrop-filter: blur(3px);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; inset-block: 0; right: 0;
  width: min(410px, 90vw); display: flex; flex-direction: column;
  background: var(--bg); border-left: 1px solid var(--line);
  translate: 100% 0; transition: translate .45s var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { translate: 0 0; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem clamp(1.1rem, 4vw, 1.6rem); border-bottom: 1px solid var(--line); }
.drawer__body { padding: 1rem clamp(1.1rem, 4vw, 1.6rem) 2rem; display: grid; gap: .1rem; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem .2rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500;
  transition: color .25s var(--ease), padding-left .3s var(--ease-out);
}
.drawer__link svg { color: var(--accent); opacity: 0; translate: -6px 0; transition: opacity .25s, translate .3s var(--ease-out); }
.drawer__link:hover, .drawer__link[aria-current="page"] { color: var(--accent); padding-left: .6rem; }
.drawer__link:hover svg, .drawer__link[aria-current="page"] svg { opacity: 1; translate: 0 0; }
.drawer__sub { display: grid; }
.drawer__sub a {
  padding: .6rem .2rem .6rem 1.1rem; font-size: var(--step--1); color: var(--text-muted);
  border-bottom: 1px solid var(--line); transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.drawer__sub a::before { content: ""; display: inline-block; width: 5px; height: 5px; rotate: 45deg; background: var(--accent); opacity: .45; margin-right: .7rem; vertical-align: middle; }
.drawer__sub a:hover { color: var(--text); padding-left: 1.5rem; }
.drawer__foot { margin-top: 1.5rem; display: grid; gap: .7rem; }
.drawer__meta { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; font-size: var(--step--1); color: var(--text-muted); }
.drawer__meta li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.drawer__meta svg { color: var(--accent); margin-top: .25em; }
.drawer__socials { display: flex; gap: .5rem; margin-top: .3rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  min-height: min(94svh, 900px); display: grid; align-items: center;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: kenburns 26s ease-in-out infinite alternate; }
}
@keyframes kenburns {
  from { scale: 1; translate: 0 0; }
  to   { scale: 1.09; translate: -1.5% -1%; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgb(6 5 4 / .94) 0%, rgb(6 5 4 / .82) 34%, rgb(6 5 4 / .38) 66%, rgb(6 5 4 / .58) 100%),
    linear-gradient(to top, rgb(6 5 4 / .8), transparent 45%),
    radial-gradient(48rem 30rem at 8% 42%, rgb(229 0 0 / .18), transparent 65%);
}
.hero__in { position: relative; padding-block: clamp(5.5rem, 4rem + 8vw, 8.5rem) clamp(3.5rem, 2.6rem + 4vw, 6rem); width: 100%; }
.hero__copy { display: grid; gap: clamp(1.1rem, .8rem + .8vw, 1.5rem); max-width: 54rem; }
.hero .eyebrow { color: #FF6E6E; }
.hero__title { font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.4rem); color: #fff; text-shadow: 0 2px 40px rgb(0 0 0 / .35); }
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #FF4B4B 0%, #E50000 60%, #FF2A2A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero__lede { font-size: var(--step-1); color: #E2DAD1; max-width: 38rem; line-height: 1.6; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: .9rem 2.2rem; align-items: center;
  margin-top: .4rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .15);
}
.trust-item { display: flex; align-items: center; gap: .7rem; font-size: var(--step--1); color: #C9BFB5; }
.trust-item strong { display: block; color: #fff; font-size: var(--step-0); font-weight: 700; line-height: 1.25; }
.trust-item > svg { color: var(--red-bright); flex: none; }
.stars { display: inline-flex; gap: 1.5px; color: #FFB020; }

.hero__cue {
  position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; z-index: 1;
  display: grid; place-items: center; gap: .5rem;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgb(255 255 255 / .5);
}
.hero__cue span { width: 1px; height: 40px; background: linear-gradient(to bottom, rgb(255 255 255 / .6), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero__cue span { animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
  @keyframes cue { 0%,100% { scale: 1 .4; opacity: .4; } 50% { scale: 1 1; opacity: 1; } }
}
@media (max-width: 900px) { .hero__cue { display: none; } }

/* On-load entrance — the first impression happens before any scrolling. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { opacity: 0; translate: 0 26px; animation: rise .95s var(--ease-out) forwards; }
  .hero__copy > *:nth-child(1) { animation-delay: .1s; }
  .hero__copy > *:nth-child(2) { animation-delay: .22s; }
  .hero__copy > *:nth-child(3) { animation-delay: .34s; }
  .hero__copy > *:nth-child(4) { animation-delay: .46s; }
  .hero__copy > *:nth-child(5) { animation-delay: .58s; }
  @keyframes rise { to { opacity: 1; translate: 0 0; } }
}

/* ---------- Page hero ---------- */
.phero {
  position: relative; isolation: isolate; background: var(--ink); color: #fff; overflow: hidden;
}
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgb(6 5 4 / .93), rgb(6 5 4 / .68) 60%, rgb(6 5 4 / .5)),
    radial-gradient(40rem 22rem at 5% 60%, rgb(229 0 0 / .17), transparent 62%);
}
.phero__in { padding-block: calc(var(--header-h) + clamp(2.6rem, 2rem + 4vw, 5rem)) clamp(3rem, 2.2rem + 4vw, 5.5rem); display: grid; gap: 1.2rem; }
.phero__title { font-size: var(--step-4); color: #fff; }
.phero__lede { color: #DED6CD; max-width: 56ch; font-size: var(--step-1); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--step--1); color: rgb(255 255 255 / .6); }
.crumbs a:hover { color: #fff; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; opacity: .45; }
.crumbs [aria-current] { color: #fff; }

/* ---------- Marquee ---------- */
.marquee {
  display: flex; overflow: hidden;
  border-block: 1px solid var(--line); background: var(--bg-alt);
  padding-block: 1rem;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 3.2rem; padding-right: 3.2rem; flex: none; animation: slide 42s linear infinite; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .8rem; flex: none;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--text-muted);
  letter-spacing: -.015em; white-space: nowrap;
}
.marquee__item::before { content: ""; width: 7px; height: 7px; background: var(--accent-grad); rotate: 45deg; flex: none; }
@keyframes slide { to { translate: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { mask-image: none; overflow-x: auto; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .35s var(--ease), box-shadow .4s var(--ease), translate .4s var(--ease-out);
}
/* Red hairline that draws in on hover. */
.card::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; z-index: 3;
  background: var(--accent-grad); scale: 0 1; transform-origin: left;
  transition: scale .5s var(--ease-out);
}
.card:hover { border-color: transparent; box-shadow: var(--shadow-lg); translate: 0 -6px; }
.card:hover::after { scale: 1 1; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out); }
.card:hover .card__media img { scale: 1.08; }
.card__body { display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.3rem, 1rem + .9vw, 1.8rem); flex: 1; }
.card__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; letter-spacing: -.02em; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.card__text { color: var(--text-muted); font-size: var(--step--1); line-height: 1.65; flex: 1; }
.card__foot { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; }

.card__num {
  position: absolute; top: 0; right: 0; z-index: 2;
  padding: .5rem .85rem; background: var(--accent-grad); color: #fff;
  font-size: var(--step--1); font-weight: 800; letter-spacing: .06em;
  border-bottom-left-radius: var(--radius);
}

.svc-icon {
  display: grid; place-items: center; width: 54px; height: 54px;
  background: var(--red-soft); color: var(--accent); border-radius: var(--radius);
  transition: background .4s var(--ease), color .4s var(--ease),
              rotate .5s var(--ease-spring), scale .4s var(--ease-spring);
}
.card:hover .svc-icon, .ctile:hover .ctile__icon { background: var(--accent-grad); color: #fff; rotate: -8deg; scale: 1.08; }

.ticks { display: grid; gap: .75rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: var(--step-0); color: var(--text-muted); }
.ticks svg { color: var(--accent); margin-top: .35em; flex: none; }
.ticks--tight li { font-size: var(--step--1); gap: .6rem; }

/* Uniform tile grid for curated previews. */
.tile-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
.tile-grid .shot { aspect-ratio: 1 / 1; }
.tile-grid .shot img { height: 100%; object-fit: cover; }

@media (min-width: 700px) {
  .card--feature { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .card--feature .card__media { aspect-ratio: 16 / 10; flex: 0 0 42%; }
  .card--feature .card__body { justify-content: center; gap: .9rem; padding: clamp(1.6rem, 1.2rem + 2vw, 3rem); }
  .card--feature .card__title { font-size: var(--step-3); }
  .card--feature .card__text { flex: 0 1 auto; max-width: 58ch; font-size: var(--step-0); }
}

/* ---------- Manufacturer strip ----------
   The artwork is dark navy and black, so each mark sits on a permanent light
   chip. That keeps someone else's trademark legible in dark mode without
   recolouring it. Logos rest desaturated so the row reads as one calm band,
   and come to full colour on hover. */
.brands { display: grid; gap: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); justify-items: center; text-align: center; }
.brands__list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
  width: 100%; max-width: 900px;
}
@media (min-width: 760px) { .brands__list { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.brands__item {
  position: relative; display: grid; place-items: center;
  height: 88px; padding: 1rem 1.2rem;
  background: #FFFFFF; border: 1px solid rgb(10 9 8 / .09);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: translate .35s var(--ease-out), box-shadow .35s var(--ease);
}
.brands__item::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: var(--accent-grad); scale: 0 1; transform-origin: left;
  transition: scale .45s var(--ease-out);
}
.brands__item:hover { translate: 0 -5px; box-shadow: var(--shadow-lg); }
.brands__item:hover::after { scale: 1 1; }
.brands__item img {
  max-height: 38px; width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .72;
  transition: filter .4s var(--ease), opacity .4s var(--ease), scale .4s var(--ease-out);
}
.brands__item:hover img { filter: grayscale(0); opacity: 1; scale: 1.05; }
@media (max-width: 639px) {
  .brands__list { gap: .55rem; }
  .brands__item { height: 68px; padding: .8rem .9rem; }
  .brands__item img { max-height: 26px; }
}

/* ---------- Van / livery block ----------
   A photograph of the branded van is a real trust signal for a trade business:
   it shows the name, the specialisms, the phone number and "fully insured" on
   the vehicle itself. Given its own block rather than a decorative inset, so it
   survives on phones where insets are hidden. */
.van { display: grid; gap: clamp(1.6rem, 1.2rem + 2vw, 3rem); align-items: center; }
@media (min-width: 820px) { .van { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.van__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-alt); box-shadow: var(--shadow-lg);
  max-width: 420px; justify-self: center; width: 100%;
}
.van__media img { width: 100%; height: auto; }
.van__copy { display: grid; gap: 1.1rem; align-content: start; }
.van__points { display: grid; gap: .7rem; }
.van__points li {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  font-size: var(--step-0); color: var(--text-muted);
}
.van__points svg { color: var(--accent); margin-top: .32em; flex: none; }

/* ---------- Stats ---------- */
.stats {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.stat {
  background: var(--surface); padding: clamp(1.7rem, 1.3rem + 1.4vw, 2.7rem) clamp(1.1rem, 1rem + .7vw, 1.7rem);
  display: grid; gap: .4rem; position: relative; transition: background .35s var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat__num {
  font-family: var(--font-display); font-size: var(--step-4); font-weight: 600;
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: var(--step--1); color: var(--text-muted); }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(2rem, 1.5rem + 3.5vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .split--wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
.split__copy { display: grid; gap: 1.25rem; align-content: start; }

.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; transition: scale 1s var(--ease-out); }
.frame:hover img { scale: 1.04; }
.frame--tall { aspect-ratio: 4/5; }
.frame--tall img { height: 100%; object-fit: cover; }
.frame--wide { aspect-ratio: 3/2; }
.frame--wide img { height: 100%; object-fit: cover; }

.media-stack { position: relative; }
.media-stack__inset {
  position: absolute; right: -1rem; bottom: -1.8rem; width: 46%;
  border: 7px solid var(--bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
@media (max-width: 620px) { .media-stack__inset { display: none; } }

.badge-float {
  position: absolute; left: -1.2rem; bottom: 1.8rem; z-index: 2;
  display: grid; gap: .1rem; padding: 1.1rem 1.5rem;
  background: var(--accent-grad); color: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-red);
}
.badge-float strong { font-family: var(--font-display); font-size: var(--step-2); line-height: 1; }
.badge-float span { font-size: var(--step--1); opacity: .92; }
@media (max-width: 620px) { .badge-float { left: .8rem; } }

/* ---------- Before / after ---------- */
.ba {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 3/4; box-shadow: var(--shadow-lg); touch-action: pan-y;
  user-select: none; cursor: ew-resize; background: var(--bg-alt);
}
@media (min-width: 700px) { .ba { aspect-ratio: 16/10; } }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute; inset-block: 0; left: var(--pos, 50%);
  width: 3px; background: #fff; translate: -1.5px 0; box-shadow: 0 0 16px rgb(0 0 0 / .5);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 52px; height: 52px;
  background: #fff; color: var(--ink); border-radius: 50%; box-shadow: var(--shadow-lg);
  transition: scale .25s var(--ease-spring);
}
.ba:hover .ba__grip { scale: 1.1; }
.ba__tag {
  position: absolute; top: 1.1rem; padding: .4rem .85rem; z-index: 2;
  background: rgb(8 7 6 / .68); color: #fff; font-size: var(--step--1);
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 100px;
  backdrop-filter: blur(6px); pointer-events: none; border: 1px solid rgb(255 255 255 / .15);
}
.ba__tag--before { left: 1.1rem; }
.ba__tag--after { right: 1.1rem; }
.ba__range { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  padding: .6rem 1.2rem; border: 1px solid var(--line); border-radius: 100px;
  font-size: var(--step--1); font-weight: 600; color: var(--text-muted); background: var(--surface);
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), translate .25s var(--ease-out);
}
.chip:hover { border-color: var(--line-strong); color: var(--text); translate: 0 -2px; }
.chip[aria-pressed="true"] { background: var(--accent-grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-red); }

.masonry { columns: 1; column-gap: var(--gap); }
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 900px) { .masonry { columns: 3; } }
@media (min-width: 1200px) { .masonry { columns: 4; } }
.masonry__item { break-inside: avoid; margin-bottom: var(--gap); }
.masonry__item.is-hidden { display: none; }

.shot {
  position: relative; display: block; width: 100%; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--bg-alt); cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s var(--ease), translate .4s var(--ease-out);
}
.shot img { width: 100%; transition: scale .9s var(--ease-out); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(8 7 6 / .6), transparent 50%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.shot:hover { box-shadow: var(--shadow-lg); translate: 0 -4px; }
.shot:hover img { scale: 1.07; }
.shot:hover::after { opacity: 1; }
.shot__zoom {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 1;
  display: grid; place-items: center; width: 42px; height: 42px;
  background: rgb(255 255 255 / .96); color: var(--ink); border-radius: 50%;
  opacity: 0; translate: 0 10px; scale: .85;
  transition: opacity .35s var(--ease), translate .35s var(--ease-out), scale .35s var(--ease-spring);
}
.shot:hover .shot__zoom { opacity: 1; translate: 0 0; scale: 1; }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 280;
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgb(5 4 3 / .95); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__fig { position: relative; display: grid; gap: .9rem; max-width: min(1150px, 100%); max-height: 100%; }
.lb__fig img { max-height: min(78vh, 900px); width: auto; margin-inline: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lb__cap { color: #C9C0B6; font-size: var(--step--1); text-align: center; }
.lb__btn {
  position: fixed; z-index: 2; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .2); color: #fff;
  backdrop-filter: blur(8px);
  transition: background .25s var(--ease), scale .25s var(--ease-spring), border-color .25s var(--ease);
}
.lb__btn:hover { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .45); scale: 1.08; }
.lb__close { top: clamp(.8rem, 3vw, 1.8rem); right: clamp(.8rem, 3vw, 1.8rem); }
.lb__prev { left: clamp(.5rem, 2vw, 1.6rem); top: 50%; translate: 0 -50%; }
.lb__next { right: clamp(.5rem, 2vw, 1.6rem); top: 50%; translate: 0 -50%; }
.lb__prev svg { rotate: 90deg; }
.lb__next svg { rotate: -90deg; }

/* ---------- Testimonials ---------- */
.rail { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .4rem 1.2rem; margin: -.4rem -.4rem 0; scrollbar-width: thin; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: var(--line); border-radius: 100px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 100px; }
.rail > * { scroll-snap-align: start; flex: 0 0 min(100%, 25.5rem); }

.quote {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .35s var(--ease), box-shadow .4s var(--ease), translate .4s var(--ease-out);
}
.quote:hover { box-shadow: var(--shadow-lg); translate: 0 -4px; border-color: transparent; }
.quote__mark { font-family: var(--font-display); font-size: 3.4rem; line-height: .55; color: var(--accent); opacity: .22; }
.quote__text { color: var(--text-muted); font-size: var(--step-0); line-height: 1.68; flex: 1; }
.quote__foot { display: flex; align-items: center; gap: .85rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote__avatar {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  background: var(--accent-grad); color: #fff; border-radius: 50%;
  font-family: var(--font-display); font-size: var(--step-0); font-weight: 600;
}
.quote__name { font-weight: 600; font-size: var(--step-0); }
.quote__meta { font-size: var(--step--1); color: var(--text-faint); }

.rating-block { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; padding: 1.3rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.rating-block__score {
  font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; line-height: 1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; counter-increment: step;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  border: 1px solid var(--line); margin: -0.5px;
  display: grid; gap: .8rem; align-content: start;
  transition: background .35s var(--ease);
  overflow: hidden;
}
.step::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--accent-grad); scale: 0 1; transform-origin: left;
  transition: scale .5s var(--ease-out);
}
.step:hover { background: var(--surface); }
.step:hover::before { scale: 1 1; }
.step__n {
  font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; line-height: 1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: var(--step-1); font-family: var(--font-display); }
.step p { font-size: var(--step--1); color: var(--text-muted); }

/* ---------- Accordion ---------- */
.acc { display: grid; gap: .65rem; }
.acc__item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.acc__item[open] { border-color: transparent; box-shadow: var(--shadow-md); }
.acc__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem clamp(1.1rem, 1rem + .7vw, 1.6rem); cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--step-0); transition: color .2s var(--ease);
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q:hover { color: var(--accent); }
.acc__icon { flex: none; color: var(--accent); transition: rotate .35s var(--ease-spring); }
.acc__item[open] .acc__icon { rotate: 135deg; }
.acc__a { padding: 0 clamp(1.1rem, 1rem + .7vw, 1.6rem) 1.4rem; color: var(--text-muted); font-size: var(--step-0); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; opacity: .3; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgb(6 5 4 / .96), rgb(6 5 4 / .74)),
    radial-gradient(44rem 24rem at 88% 20%, rgb(229 0 0 / .28), transparent 62%);
}
.cta-band__in { padding-block: clamp(3.5rem, 2.6rem + 4.5vw, 6rem); display: grid; gap: 1.8rem; justify-items: start; }
@media (min-width: 900px) { .cta-band__in { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3rem; } }
.cta-band h2 { font-size: var(--step-4); color: #fff; }
.cta-band p { color: #DED6CD; max-width: 52ch; margin-top: .9rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
@media (min-width: 620px) { .form--2col { grid-template-columns: repeat(2, minmax(0,1fr)); } .field--full { grid-column: 1 / -1; } }
.label { font-size: var(--step--1); font-weight: 600; letter-spacing: .02em; }
.label .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%; padding: .9rem 1.05rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--step-0);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent);
}
.textarea { min-height: 9rem; resize: vertical; }
.select { appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A6E63' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: var(--step--1); color: var(--text-faint); }
.form__status { display: none; padding: .95rem 1.15rem; border-radius: var(--radius); font-size: var(--step--1); border: 1px solid transparent; }
.form__status.is-visible { display: block; }
.form__status[data-state="ok"] { background: color-mix(in oklab, #16A34A 12%, transparent); border-color: color-mix(in oklab, #16A34A 40%, transparent); color: color-mix(in oklab, #16A34A 78%, var(--text)); }
.form__status[data-state="err"] { background: var(--red-soft); border-color: color-mix(in oklab, var(--accent) 40%, transparent); color: var(--accent); }
.field-error { font-size: var(--step--1); color: var(--accent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--accent); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Contact tiles ---------- */
.contact-tiles { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.ctile {
  display: grid; gap: .5rem; padding: clamp(1.4rem, 1.1rem + .9vw, 1.9rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .35s var(--ease), box-shadow .4s var(--ease), translate .4s var(--ease-out);
}
.ctile:hover { box-shadow: var(--shadow-lg); translate: 0 -5px; border-color: transparent; }
.ctile__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--red-soft); color: var(--accent); border-radius: var(--radius);
  transition: background .4s var(--ease), color .4s var(--ease), rotate .5s var(--ease-spring), scale .4s var(--ease-spring);
}
.ctile__label { font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.ctile__value { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; overflow-wrap: anywhere; }
.ctile__value a:hover { color: var(--accent); }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow-sm); }
.map-frame iframe { display: block; width: 100%; height: clamp(280px, 40vw, 420px); border: 0; filter: grayscale(.3) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink); color: #C9C0B6; padding-top: clamp(3.5rem, 2.6rem + 3.5vw, 5.5rem); overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50rem 26rem at 12% 0%, rgb(229 0 0 / .13), transparent 62%);
}
.footer > * { position: relative; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: clamp(2rem, 1.5rem + 2.2vw, 3.5rem); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1060px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__brand img { width: 172px; margin-bottom: 1.2rem; }
.footer__about { font-size: var(--step--1); line-height: 1.75; max-width: 34ch; }
.footer__title { font-size: var(--step--1); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; }
.footer__list { display: grid; gap: .65rem; font-size: var(--step--1); }
.footer__list a { display: inline-flex; align-items: center; gap: .5rem; transition: color .2s var(--ease), translate .25s var(--ease-out); }
.footer__list a svg { color: var(--red); opacity: .55; transition: opacity .2s; }
.footer__list a:hover { translate: 4px 0; }
.footer__list a:hover svg { opacity: 1; }
.footer__contact { display: grid; gap: .95rem; font-size: var(--step--1); }
.footer__contact li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; }
.footer__contact svg { color: var(--red); margin-top: .3em; }
.footer__socials { display: flex; gap: .5rem; margin-top: 1.3rem; }
.footer__socials a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgb(255 255 255 / .17); border-radius: var(--radius);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), translate .25s var(--ease-out);
}
.footer__socials a:hover { background: var(--accent-grad); border-color: transparent; color: #fff; translate: 0 -3px; }
.footer__bar {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .11);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem;
  font-size: var(--step--1); color: #8E8377;
}
.footer__bar-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }

/* ---------- Floating contact dock ---------- */
.dock {
  position: fixed; z-index: 210; left: 50%; bottom: 1.4rem; translate: -50% 0;
  display: none; align-items: center; gap: .5rem; padding: .5rem .5rem .5rem 1.3rem;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 100px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease), translate .5s var(--ease-out);
}
@media (min-width: 640px) { .dock { display: flex; } }
.dock.is-in { opacity: 1; pointer-events: auto; translate: -50% 0; }
.dock:not(.is-in) { translate: -50% 130%; }
.dock__text { display: none; font-size: var(--step--1); color: var(--text-muted); padding-right: .3rem; }
@media (min-width: 900px) { .dock__text { display: block; } }
.dock__text strong { color: var(--text); font-weight: 600; }
.dock__link {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem;
  border-radius: 100px; font-size: var(--step--1); font-weight: 700;
  border: 1px solid var(--line); color: var(--text);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.dock__link svg { color: var(--accent); }
.dock__link:hover { background: var(--bg-alt); border-color: var(--line-strong); }
.dock__cta {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem;
  border-radius: 100px; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-red);
  transition: translate .25s var(--ease-out), box-shadow .25s var(--ease);
}
.dock__cta:hover { translate: 0 -2px; box-shadow: 0 14px 34px -10px rgb(229 0 0 / .6); }
.dock__close {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; color: var(--text-faint);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dock__close:hover { background: var(--bg-alt); color: var(--text); }

/* Mobile action bar */
.actionbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 210;
  display: grid; grid-template-columns: 1fr 1fr;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgb(10 9 8 / .12);
  padding-bottom: env(safe-area-inset-bottom);
  /* Held back until the hero has scrolled away: the hero already carries a
     full-width red quote button, and showing both at once put two competing
     red CTAs on the same screen. */
  translate: 0 100%; visibility: hidden;
  transition: translate .45s var(--ease-out), visibility .45s;
}
.actionbar.is-in { translate: 0 0; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .actionbar { transition: none; } }
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem .5rem; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.actionbar a svg { color: var(--accent); }
.actionbar a + a { background: var(--accent-grad); color: #fff; }
.actionbar a + a svg { color: #fff; }
@media (min-width: 640px) { .actionbar { display: none; } }
@media (max-width: 639px) { body { padding-bottom: 60px; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }
  .reveal.is-in { opacity: 1; translate: 0 0; }
  .reveal-stagger > * { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); }
  .reveal-stagger.is-in > * { opacity: 1; translate: 0 0; }
  .reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
  .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
  .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
  .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
  .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }
  .reveal-stagger.is-in > *:nth-child(7) { transition-delay: 480ms; }
  .reveal-stagger.is-in > *:nth-child(8) { transition-delay: 560ms; }
  /* Images wipe in rather than just fading — reads as craft, not a stock fade. */
  .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
  .reveal-img.is-in { clip-path: inset(0 0 0 0); }
}

/* ==========================================================================
   Small screens
   Most visitors to a local trade site arrive on a phone, so this is not an
   afterthought: the hero must land complete above the fold, thumbs must reach
   the actions, and nothing may hide behind the fixed action bar.
   ========================================================================== */

.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline; } }

@media (max-width: 639px) {
  :root { --header-h: 66px; --section-y: clamp(3rem, 2rem + 5vw, 4.5rem); }

  /* Hero: fit the whole pitch on one screen, clear of the action bar. */
  .hero { min-height: auto; }
  .hero__in { padding-block: calc(var(--header-h) + 1.6rem) 2.4rem; }
  .hero__copy { gap: 1.05rem; }
  .hero__title { font-size: clamp(1.9rem, 1.05rem + 4.6vw, 2.7rem); }
  .hero__lede { font-size: var(--step-0); line-height: 1.58; }
  .hero .eyebrow { font-size: .68rem; letter-spacing: .12em; }
  .hero .eyebrow::before { width: 1.1rem; }

  /* Full-width, equal-weight buttons are far easier to hit than inline ones. */
  .hero .btn-row, .cta-band .btn-row, .phero .btn-row { display: grid; gap: .65rem; width: 100%; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; }
  .btn { padding: .95rem 1.4rem; }
  .btn--lg { padding: 1.05rem 1.5rem; font-size: var(--step--1); }

  /* Trust strip becomes a compact two-up instead of a squashed row. */
  .hero__trust { gap: .55rem; padding-top: 1rem; margin-top: .2rem; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .trust-item { flex: 1 1 100%; font-size: .82rem; gap: .6rem; }
  .trust-item > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; }
  .trust-item strong { display: inline; font-size: .92rem; }
  .trust-item > svg { width: 18px; height: 18px; }
  .stars svg { width: 13px; height: 13px; }

  /* Page heroes on inner pages. */
  .phero__in { padding-block: calc(var(--header-h) + 1.8rem) 2.2rem; gap: .85rem; }
  .phero__title { font-size: clamp(1.9rem, 1.2rem + 4.6vw, 2.6rem); }
  .phero__lede { font-size: var(--step-0); }

  /* Section headings and body rhythm. */
  .section-head { margin-bottom: 1.8rem; gap: .8rem; }
  .lede { font-size: var(--step-0); }
  .display { letter-spacing: -.02em; }

  /* Cards: tighter, and the feature card returns to a normal stacked card. */
  .card__body { padding: 1.2rem; gap: .6rem; }
  .card__title { font-size: var(--step-1); }
  .svc-icon { width: 46px; height: 46px; }

  /* Steps read as a stacked list, with the divider between them. */
  .steps { gap: 0; }
  .step { padding: 1.3rem 1.2rem; }
  .step__n { font-size: var(--step-2); }

  /* Stats two-up rather than one long column. */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.3rem 1rem; }
  .stat__num { font-size: var(--step-3); }

  /* Testimonials: peek the next card so the rail is obviously swipeable. */
  .rail > * { flex: 0 0 86%; }

  /* Before/after: a taller crop suits a portrait screen, and the grip grows. */
  .ba { aspect-ratio: 4/5; }
  .ba__grip { width: 46px; height: 46px; }
  .ba__tag { font-size: .68rem; padding: .3rem .65rem; top: .7rem; }
  .ba__tag--before { left: .7rem; }
  .ba__tag--after { right: .7rem; }

  /* Gallery: two columns keeps photos big enough to read. */
  .masonry { columns: 2; column-gap: .6rem; }
  .masonry__item { margin-bottom: .6rem; }
  .tile-grid { gap: .6rem; }
  .filters { gap: .4rem; }
  .chip { padding: .5rem .9rem; font-size: .78rem; }

  /* Lightbox controls sit within thumb reach rather than mid-screen. */
  .lb__btn { width: 46px; height: 46px; }
  .lb__prev { top: auto; bottom: 1.2rem; left: 1.2rem; translate: none; }
  .lb__next { top: auto; bottom: 1.2rem; right: 1.2rem; translate: none; }
  .lb__fig img { max-height: 68vh; }
  .lb__cap { font-size: .78rem; }

  /* Forms: 16px inputs stop iOS zooming on focus. */
  .input, .textarea, .select { font-size: 16px; padding: .85rem 1rem; }
  .textarea { min-height: 8rem; }

  .contact-tiles { gap: .7rem; }
  .ctile { padding: 1.15rem; gap: .35rem; }
  .ctile__icon { width: 42px; height: 42px; }
  .ctile__value { font-size: var(--step-0); }

  .footer__grid { gap: 2rem; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: .8rem; }

  .marquee__item { font-size: var(--step-0); }
  .marquee__track { gap: 2rem; padding-right: 2rem; }

  .cta-band__in { padding-block: 2.8rem; gap: 1.3rem; }
  .cta-band h2 { font-size: var(--step-3); }

  .media-stack__inset { display: none; }
  .badge-float { left: .7rem; bottom: .7rem; padding: .8rem 1.1rem; }
  .badge-float strong { font-size: var(--step-1); }

  .acc__q { padding: 1rem 1.1rem; font-size: var(--step--1); }
  .acc__a { padding: 0 1.1rem 1.1rem; font-size: var(--step--1); }

  /* Nothing may end up under the fixed action bar. */
  .section:last-of-type { padding-bottom: calc(var(--section-y) + .5rem); }
}

/* Very narrow phones. */
@media (max-width: 380px) {
  .hero__title { font-size: 2.05rem; }
  .brand img { width: 128px; }
  .trust-item { flex: 1 1 100%; }
}

/* Short landscape phones: never let a 100svh hero trap the content. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__in { padding-block: calc(var(--header-h) + 1.2rem) 2rem; }
}

/* ==========================================================================
   Motion & depth
   Everything here is additive polish and sits behind prefers-reduced-motion.
   ========================================================================== */

/* Headings rise word by word — reads as craft rather than a generic fade. */
@media (prefers-reduced-motion: no-preference) {
  .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
  .word > span {
    display: inline-block; translate: 0 105%;
    transition: translate .85s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 45ms);
  }
  .is-in .word > span, .word.is-in > span { translate: 0 0; }
}

/* Gentle parallax on framed imagery. */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .parallax { will-change: transform; }
  .parallax img { translate: 0 var(--py, 0px); transition: translate .1s linear; }
}

/* A soft light that follows the cursor across dark bands. */
.spotlight { position: relative; isolation: isolate; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(26rem 26rem at var(--mx, 50%) var(--my, 50%),
              rgb(229 0 0 / .16), transparent 70%);
}
.spotlight:hover::after { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }
@media (hover: none) { .spotlight::after { display: none; } }

/* Primary CTAs lean very slightly toward the cursor. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .magnetic { transition: translate .35s var(--ease-out), box-shadow .3s var(--ease); }
  .magnetic:hover { transition: translate .1s linear, box-shadow .3s var(--ease); }
}

/* Section seam: a hairline that catches the eye between bands. */
.section--alt + .section::before,
.section + .section--alt::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: min(100%, var(--wrap)); height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* Accent underline that grows under a section heading as it enters. */
.section-head--center .display::after {
  content: ""; display: block; width: 0; height: 3px; margin: 1rem auto 0;
  border-radius: 3px; background: var(--accent-grad);
  transition: width .8s var(--ease-out) .25s;
}
.section-head--center.is-in .display::after { width: 68px; }

/* ---------- Utilities ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 100px;
  font-size: var(--step--1); font-weight: 600; color: var(--text-muted); background: var(--surface);
  transition: border-color .25s var(--ease), color .25s var(--ease), translate .25s var(--ease-out);
}
.pill svg { color: var(--accent); }
.pill:hover { border-color: var(--line-strong); color: var(--text); translate: 0 -2px; }
.hr { height: 1px; background: var(--line); border: 0; margin-block: var(--gap); }
.prose { display: grid; gap: 1.15rem; }
.prose h2 { font-family: var(--font-display); font-size: var(--step-2); margin-top: 1rem; }
.prose h3 { font-family: var(--font-display); font-size: var(--step-1); margin-top: .5rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { display: grid; gap: .5rem; }
.prose ul li { padding-left: 1.35rem; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--accent-grad); rotate: 45deg; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media print {
  .header, .actionbar, .dock, .footer, .drawer, .lb, .progress { display: none !important; }
  body::after { display: none; }
}
