/* dynamictemplate — direction-driven design system. One stylesheet per niche; the
   direction (fonts, palette, hero variant, shape, motion) fills the variables below.
   Plain native scrolling only. The only JS is the mobile nav toggle. Entrance motion is
   CSS keyframes + animation-delay (fires on load, never coupled to the wheel). */

:root {
  --font-display: "Oswald", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, Segoe UI, sans-serif;
  --bg: #0d1117;
  --surface: #161b22;
  --ink: #eef1f5;
  --ink-soft: #9aa4b2;
  --line: #232a35;
  --brand: #1f6feb;
  --brand-deep: #1659c4;
  --accent: #ff6b1a;
  --accent-deep: #e2540c;
  --on-brand: #ffffff;
  --radius: 6px;
  --radius-sm: 1px;
  --hcase: uppercase;
  --hspace: 0.02em;
  --maxw: 1180px;
  --shadow: 0 10px 30px rgba(10,18,30,0.10);
  --shadow-lg: 0 26px 60px rgba(10,18,30,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08;
  text-transform: var(--hcase); letter-spacing: var(--hspace); color: var(--ink); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: var(--on-brand); padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; text-decoration: none; }
.skip-link:focus { left: 0; }

/* ---------- Keyboard focus: one consistent, visible ring everywhere ----------
   :focus-visible so a mouse click never shows the ring — only keyboard / AT
   navigation does. Every interactive element gets it (links, buttons, FAQ
   summaries, anything tabbable). On dark surfaces the ring flips to white. */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; }
.hero--showcase a:focus-visible, .hero--showcase button:focus-visible,
.site-footer a:focus-visible, .stats-band a:focus-visible, .word-band a:focus-visible,
.cta-band a:focus-visible, .quote-band a:focus-visible {
  outline-color: #fff; }
/* summary already shows its own marker; remove the default focus-ring duplication */
.faq-item summary:focus { outline: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
section { padding: 84px 0; }
.center { text-align: center; }
.center-lead { margin-left: auto; margin-right: auto; }
.mt { margin-top: 28px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.alt { background: color-mix(in srgb, var(--brand) 5%, var(--bg)); }

.kicker { display: inline-block; font-family: var(--font-body); color: var(--accent-deep); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; margin-bottom: 16px;
  padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
/* Fluid type scale (backlog P2-23): clamp() so type scales smoothly. The clamp MAX
   equals the prior fixed value, so desktop (>~600px) is pixel-identical — only narrow
   mobile gets a gentle reduction for density. h1/h2 were already fluid. */
:root {
  --t-h3: clamp(1.08rem, 1rem + 0.55vw, 1.2rem);
  --t-lead: clamp(1.02rem, 0.95rem + 0.4vw, 1.12rem);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
h3 { font-size: var(--t-h3); }
.lead { color: var(--ink-soft); font-size: var(--t-lead); max-width: 600px; }

/* ---------- Buttons ---------- */
.btn, .btn-ghost, .btn-outline {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; border: none;
  cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem; padding: 15px 30px;
  border-radius: var(--radius-sm); transition: transform .14s, background .16s, box-shadow .16s; }
.btn { background: var(--accent); color: var(--on-brand); box-shadow: 0 10px 22px rgba(10,18,30,.16); }
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn.full { display: flex; width: 100%; justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Header: floating liquid-glass pill ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 18px; pointer-events: none; transition: top .25s ease; }
.site-header.scrolled { top: 8px; }
.pill-bar { pointer-events: auto; max-width: 1060px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 9px 9px 9px 24px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: 0 14px 38px rgba(10,18,30,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: padding .25s ease, box-shadow .25s ease; }
.scrolled .pill-bar { padding-top: 7px; padding-bottom: 7px; box-shadow: 0 8px 26px rgba(10,18,30,0.22), inset 0 1px 0 rgba(255,255,255,0.5); }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink);
  text-decoration: none; line-height: 1.05; text-transform: var(--hcase); letter-spacing: var(--hspace); }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.58rem;
  color: var(--accent-deep); letter-spacing: 0.13em; text-transform: uppercase; margin-top: 2px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 7px 13px;
  border-radius: 999px; opacity: 0.86; transition: opacity .15s, background .15s; }
.site-nav a:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.site-nav a[aria-current="page"] { opacity: 1; color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.call-btn { background: var(--accent); color: var(--on-brand); text-decoration: none; padding: 10px 20px;
  border-radius: 999px; font-weight: 700; font-size: 0.88rem; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.14); transition: background .15s, transform .12s; }
.call-btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 999px; color: var(--ink); font-size: 1.05rem; line-height: 1; padding: 9px 13px; cursor: pointer; }

/* ---------- Scroll-reveal + motion (not scrolljacking) ---------- */
/* Token-driven: one --ease-entrance + duration scale, distance tightened so the
   curve (not the travel) does the work — short moves resolve quickly (audit). */
.has-js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-3) ease, transform var(--dur-3) var(--ease-entrance); }
.has-js [data-reveal].in { opacity: 1; transform: none; }
/* A [data-reveal] that wraps a grid doesn't fade itself — its children stagger in instead. */
.has-js [data-reveal]:has(.card-grid), .has-js [data-reveal]:has(.process-grid),
.has-js [data-reveal]:has(.gallery), .has-js [data-reveal]:has(.feature-grid) { opacity: 1; transform: none; }
.has-js [data-reveal] :is(.card-grid, .process-grid, .gallery, .feature-grid) > * {
  opacity: 0; transform: translateY(16px); transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-entrance); }
.has-js [data-reveal].in :is(.card-grid, .process-grid, .gallery, .feature-grid) > * { opacity: 1; transform: none; }
/* Proportional stagger off the shared --stagger token (audit: flat .07s read robotic). */
.has-js [data-reveal].in :is(.card-grid, .process-grid, .gallery, .feature-grid) > *:nth-child(2) { transition-delay: calc(var(--stagger) * 1); }
.has-js [data-reveal].in :is(.card-grid, .process-grid, .gallery, .feature-grid) > *:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
.has-js [data-reveal].in :is(.card-grid, .process-grid, .gallery, .feature-grid) > *:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
.has-js [data-reveal].in :is(.card-grid, .process-grid, .gallery, .feature-grid) > *:nth-child(5) { transition-delay: calc(var(--stagger) * 4); }
.has-js [data-reveal].in :is(.card-grid, .process-grid, .gallery, .feature-grid) > *:nth-child(n+6) { transition-delay: calc(var(--stagger) * 5); }
@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal] :is(.card-grid, .process-grid, .gallery, .feature-grid) > * { opacity: 1; transform: none; transition: none; }
}
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16); } }
.hero--showcase .hero-bg, .hero--showcase .hero-video { animation: kenburns 24s var(--ease-sine) forwards; }
@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero--showcase .hero-bg, .hero--showcase .hero-video { animation: none; }
}

/* ---------- Directional slide-in for alternating service blocks ---------- */
.has-js [data-reveal].svc-block { opacity: 1; transform: none; }
.has-js .svc-block .svc-block-media, .has-js .svc-block .svc-block-copy {
  opacity: 0; transition: opacity var(--dur-3) ease, transform var(--dur-4) var(--ease-entrance); }
.has-js .svc-block .svc-block-media { transform: translateX(-40px); }
.has-js .svc-block .svc-block-copy { transform: translateX(40px); }
.has-js .svc-block.rev .svc-block-media { transform: translateX(40px); }
.has-js .svc-block.rev .svc-block-copy { transform: translateX(-40px); }
.has-js .svc-block.in .svc-block-media, .has-js .svc-block.in .svc-block-copy { opacity: 1; transform: none; }

/* ---------- Gallery hover reveal (caption slides up, image zooms) ---------- */
.gallery figcaption { transform: translateY(101%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { transform: none; }
@media (hover: none) { .gallery figcaption { transform: none; } }

/* ---------- Primary button shine sweep on hover ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn:hover::after { left: 145%; }

/* ---------- Card icon-chip hover micro-motion ---------- */
.icon-chip { transition: transform .22s cubic-bezier(.34,1.56,.64,1); }
.svc-card:hover .icon-chip, .value-card:hover .icon-chip { transform: scale(1.1) rotate(-5deg); }

/* ============================================================
   Animated niche-relevant card icons: each glyph does a subtle,
   slow, looping motion that fits the service — water drips, gears
   turn, clock hands sweep, scissors snip, hearts beat, trucks drive.
   Gentle + staggered so a grid feels alive, not busy. Only the
   .icon-chip glyphs animate; small inline icons elsewhere stay still.
   ============================================================ */
.icon-chip .ic { overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  /* per-card stagger so a row of icons doesn't beat in unison */
  .card-grid > *:nth-child(2) .icon-chip * { animation-delay: .5s; }
  .card-grid > *:nth-child(3) .icon-chip * { animation-delay: 1s; }
  .card-grid > *:nth-child(4) .icon-chip * { animation-delay: 1.5s; }
  .card-grid > *:nth-child(5) .icon-chip * { animation-delay: 2s; }
  /* whole-glyph loops */
  .icon-chip .ic--wrench { animation: ic-turn 3.6s ease-in-out infinite; transform-origin: center; }
  .icon-chip .ic--tools  { animation: ic-nudge 3.8s ease-in-out infinite; transform-origin: center; }
  .icon-chip .ic--bolt   { animation: ic-flicker 4s ease-in-out infinite; transform-origin: center; }
  .icon-chip .ic--leaf   { animation: ic-sway 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 25% 80%; }
  .icon-chip .ic--star   { animation: ic-twinkle 3.6s ease-in-out infinite; transform-origin: center; }
  .icon-chip .ic--paint  { animation: ic-brush 3.6s ease-in-out infinite; transform-origin: center; }
  .icon-chip .ic--home   { animation: ic-bob 3.8s ease-in-out infinite; transform-origin: center; }
  .icon-chip .ic--shield { animation: ic-bob 4s ease-in-out infinite; transform-origin: center; }
  .icon-chip .ic--truck  { animation: ic-drive 3.2s ease-in-out infinite; transform-origin: center; }
  /* sub-element loops */
  .icon-chip .ic--drop .ic-drop      { animation: ic-drip 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 35%; }
  .icon-chip .ic--spark .ic-rays     { animation: ic-spin 7s linear infinite; transform-box: view-box; transform-origin: 12px 12px; }
  .icon-chip .ic--clock .ic-hand-min { animation: ic-spin 4s linear infinite; transform-box: view-box; transform-origin: 12px 12px; }
  .icon-chip .ic--clock .ic-hand-hr  { animation: ic-spin 14s linear infinite; transform-box: view-box; transform-origin: 12px 12px; }
  .icon-chip .ic--compass .ic-needle { animation: ic-needle 5s ease-in-out infinite; transform-box: view-box; transform-origin: 12px 12px; }
  .icon-chip .ic--scissors .ic-blade-a { animation: ic-snip-a 2.4s ease-in-out infinite; transform-box: view-box; transform-origin: 8.5px 12px; }
  .icon-chip .ic--scissors .ic-blade-b { animation: ic-snip-b 2.4s ease-in-out infinite; transform-box: view-box; transform-origin: 8.5px 12px; }
  .icon-chip .ic--camera .ic-lens    { animation: ic-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .icon-chip .ic--heart .ic-heart    { animation: ic-beat 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .icon-chip .ic--phone .ic-phone    { animation: ic-ring 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 60% 40%; }
}
@keyframes ic-drip { 0%, 60%, 100% { transform: translateY(0) scaleY(1); } 80% { transform: translateY(1px) scaleY(1.14); } }
@keyframes ic-turn { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes ic-nudge { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-4deg) scale(1.05); } }
@keyframes ic-flicker { 0%, 86%, 100% { opacity: 1; } 88% { opacity: .3; } 90% { opacity: 1; } 92% { opacity: .45; } 94% { opacity: 1; } }
@keyframes ic-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes ic-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.13) rotate(20deg); opacity: .85; } }
@keyframes ic-brush { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes ic-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes ic-drive { 0%, 100% { transform: translateX(0) translateY(0); } 25% { transform: translateX(-1px) translateY(-.4px); } 75% { transform: translateX(1px) translateY(-.4px); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-needle { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
@keyframes ic-snip-a { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(9deg); } }
@keyframes ic-snip-b { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes ic-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.8); } }
@keyframes ic-beat { 0%, 40%, 100% { transform: scale(1); } 14% { transform: scale(1.15); } 28% { transform: scale(1.02); } }
@keyframes ic-ring { 0%, 68%, 100% { transform: rotate(0); } 74%, 82%, 90% { transform: rotate(8deg); } 78%, 86% { transform: rotate(-8deg); } }

/* ---------- Idle float on the editorial hero badge ---------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero--editorial .hero-badge { animation: floaty 4.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .has-js .svc-block .svc-block-media, .has-js .svc-block .svc-block-copy { opacity: 1; transform: none; transition: none; }
  .gallery figcaption { transform: none; }
  .btn::after { display: none; }
  .icon-chip { transition: none; }
  .hero--editorial .hero-badge { animation: none; }
}

/* =====================================================================
   MOTION SYSTEM v2 — mined from Mobbin Motion-style sites + quality audit
   (design-references/motion/). Real animation, not just hover: load
   choreography + ambient loops + scroll-linked. Opt-in per
   prefers-reduced-motion; tuned per direction via body.mp-bold|calm|soft.

   A shared EASING + DURATION token layer drives every entrance so the
   whole system has one tunable, cohesive motion language (audit: the old
   code hand-typed cubic-bezier(.2,.7,.2,1) everywhere -> "good template").
   ===================================================================== */
:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);      /* entrances: fast in, long settle */
  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);    /* softer entrance */
  --ease-sine: cubic-bezier(.37, 0, .63, 1);         /* ambient loops / parallax */
  --ease-overshoot: cubic-bezier(.34, 1.56, .64, 1); /* accent pops ONLY */
  --dur-1: .18s;   /* micro: chips, shine */
  --dur-2: .34s;   /* small UI moves */
  --dur-3: .48s;   /* standard entrance (<=24px) */
  --dur-4: .62s;   /* larger entrance (svc-block ~40px) */
  --dur-5: .9s;    /* draws / deliberate */
  --ease-entrance: var(--ease-out-expo);  /* the system default; profiles retune below */
  --stagger: 68ms;
}
/* The three motion profiles now genuinely diverge: bold launches with a touch
   of overshoot and tighter stagger; calm is pure decel and more spaced. */
.mp-bold  { --ease-entrance: var(--ease-out-quint); --stagger: 56ms; }
.mp-calm  { --ease-entrance: var(--ease-out-expo);  --stagger: 86ms; }
.mp-soft  { --ease-entrance: var(--ease-out-expo);  --stagger: 72ms; }

/* m02 — Headline mask-rise: each word rises from behind its own clip mask.
   Single start clock: the whole hero entrance (words + swoosh) is gated by the
   `.hero.is-in` class (set once by JS when the hero is actually on screen), so
   it plays WHEN SEEN — not unseen on a scrolled hard-refresh (audit fix). The
   container does a brief focus-pull (blur->sharp) so the headline MATERIALISES
   rather than merely sliding; the accent word gets a distinct overshoot pop. */
.hero-kinetic { line-height: 1.05; }
.h-line { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.has-js .hero-kinetic .word { display: inline-block; transform: translateY(115%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .has-js .hero-kinetic .word {
    animation: wordUp var(--dur-4) var(--ease-entrance) both;
    animation-delay: calc(.12s + var(--i) * var(--stagger));
    animation-play-state: paused; }
  .has-js .hero.is-in .hero-kinetic .word { animation-play-state: running; }
  /* The emphasis word pops past its mark and settles — a deliberate beat. */
  .has-js .hero-kinetic .word--accent { animation-name: wordUpAccent; animation-timing-function: var(--ease-overshoot); }
  /* Whole headline resolves from soft focus as the words assemble. */
  .has-js .hero.is-in .hero-kinetic { animation: focusPull var(--dur-5) var(--ease-out-expo) both; }
}
@keyframes wordUp { to { transform: translateY(0); opacity: 1; } }
@keyframes wordUpAccent { 0% { transform: translateY(115%); opacity: 0; } 72% { transform: translateY(-7%); opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes focusPull { from { filter: blur(7px); } to { filter: blur(0); } }
.hero--editorial .word--accent, .hero--brutalist .word--accent { color: var(--accent-deep); }
.hero--showcase .word--accent { color: var(--accent); }

/* m-decode — headline resolves from scrambled glyphs (creative/auto/transport).
   The H1 ships PLAIN TEXT (crawlable; JS sets aria-label so AT always reads the
   real headline); the JS splits it into .ch spans and scrambles them on is-in.
   While a glyph is still resolving it glows in the accent colour, then settles to
   ink. Reduced-motion / no-JS: the plain headline simply stays put. */
/* .ch spans stay INLINE (not inline-block) so a word never breaks between its
   characters — it wraps at spaces exactly like the mask-rise headline. */
.hero-decode .ch.scrambling { color: var(--accent); opacity: .72; }
@media (prefers-reduced-motion: reduce) { .hero-decode .ch.scrambling { color: inherit; opacity: 1; } }

/* m08 — Self-drawing swoosh flourish: draws AFTER the headline lands. The per-niche
   start delay (--sw-delay, emitted by the generator from the word count) tracks the
   real cascade length instead of a fixed .6s that collided mid-headline (audit fix). */
.hero-swoosh { display: block; width: min(330px, 64%); height: 22px; margin: 6px 0 20px; overflow: visible; }
.has-js .hero-swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; }
@media (prefers-reduced-motion: no-preference) {
  .has-js .hero.is-in .hero-swoosh path { animation: drawSwoosh var(--dur-5) var(--ease-out-expo) var(--sw-delay, .8s) both; }
}
@keyframes drawSwoosh { to { stroke-dashoffset: 0; } }

/* Hero supporting content rides ONE timeline that hands off from the headline:
   eyebrow first, media settles early, then lead -> cta -> points cascade in
   AFTER the words land (audit: the old .reveal d2/d3/d4 fired at .18-.38s, on
   top of the still-rising headline). Scoped to .hero so it overrides .reveal.dN. */
.hero .kicker.reveal { animation-delay: .05s; }
.hero .hero-media.reveal, .hero .brut-media.reveal { animation-delay: .3s; }
.hero .hero-lead.reveal { animation-delay: .95s; }
.hero .cta-row.reveal { animation-delay: 1.08s; }
.hero .hero-points.reveal { animation-delay: 1.2s; }

/* m04 — Ambient aurora: drifting blurred colour orbs behind the flat heroes.
   Orb size + blur radius trimmed (44vw / blur 58px vs 52vw / 78px) to cut the
   large blurred-paint cost flagged in the audit; soft-sine drift easing. */
.hero--editorial::before, .hero--editorial::after,
.hero--brutalist::before, .hero--brutalist::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(58px); opacity: .32;
  pointer-events: none; z-index: 0; will-change: transform; }
.hero--editorial::before, .hero--brutalist::before {
  width: 44vw; height: 44vw; top: -16%; left: -10%;
  background: radial-gradient(circle, var(--accent), transparent 64%); }
.hero--editorial::after, .hero--brutalist::after {
  width: 40vw; height: 40vw; bottom: -22%; right: -8%;
  background: radial-gradient(circle, var(--brand), transparent 64%); }
.hero--editorial > .wrap, .hero--brutalist > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero--editorial::before, .hero--brutalist::before { animation: drift1 27s var(--ease-sine) infinite alternate; }
  .hero--editorial::after, .hero--brutalist::after { animation: drift2 34s var(--ease-sine) infinite alternate; }
}
@keyframes drift1 { to { transform: translate(10%, 8%) scale(1.16); } }
@keyframes drift2 { to { transform: translate(-9%, -6%) scale(1.08); } }

/* m05 — Hero-photo parallax: passive --sy (set in tick()) drives the img only,
   so it never collides with the container's reveal animation. */
@media (prefers-reduced-motion: no-preference) {
  .has-js .hero--editorial .hero-media img,
  .has-js .hero--brutalist .brut-media img {
    transform: translateY(calc(var(--sy, 0) * 0.03px)) scale(1.06); }
}

/* m03 — Seamless marquee (trust strip) + oversized word-band (bold directions) */
.marquee { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; }
.m-seq { display: flex; align-items: center; flex: 0 0 auto; }
.m-item { white-space: nowrap; font-weight: 700; font-size: .92rem; letter-spacing: .01em; }
.m-dot { margin: 0 1.7rem; font-size: .6rem; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 44s linear infinite; }
  .mp-bold .marquee__track { animation-duration: 34s; }
  .mp-calm .marquee__track { animation-duration: 56s; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

.word-band { overflow: hidden; background: var(--ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wb-track { display: flex; width: max-content; padding: 22px 0; }
.wb-seq { display: flex; align-items: center; flex: 0 0 auto; }
.wb-word { white-space: nowrap; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1; letter-spacing: .01em; padding: 0 .12em;
  color: rgba(255,255,255,.16); -webkit-text-stroke: 1.2px rgba(255,255,255,.6); }
.wb-star { color: var(--accent); font-size: 1.4rem; margin: 0 .55rem; }
@media (prefers-reduced-motion: no-preference) { .wb-track { animation: marquee 30s linear infinite; } }

/* Reduced-motion: freeze every loop, show only the first (static) copy */
@media (prefers-reduced-motion: reduce) {
  .has-js .hero-kinetic .word { transform: none; opacity: 1; }
  .has-js .hero-swoosh path { stroke-dashoffset: 0; }
  .hero--editorial::before, .hero--editorial::after,
  .hero--brutalist::before, .hero--brutalist::after { animation: none; }
  .marquee__track, .wb-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee__track .m-seq:nth-child(2), .wb-track .wb-seq:nth-child(2) { display: none; }
  .has-js .hero--editorial .hero-media img, .has-js .hero--brutalist .brut-media img { transform: none; }
}

/* ---------- Hero background video ---------- */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video-toggle { position: absolute; right: 20px; bottom: 20px; z-index: 4; width: 44px; height: 44px;
  border-radius: 999px; cursor: pointer; color: #fff; font-size: 0.85rem; line-height: 1;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-video-toggle:hover { background: rgba(255,255,255,0.28); }

/* ---------- Entrance motion (load only) ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; animation: fadeIn .7s ease forwards; }
.motion-rise .reveal { animation-name: riseIn; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .28s; } .reveal.d4 { animation-delay: .38s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; animation: none; } }

/* ---------- Hero: shared ---------- */
.hero { position: relative; overflow: hidden; }
/* --hl-scale (emitted per niche from the headline word count) shrinks long
   headlines so the hero stays in-frame; defaults to 1 for short punchy ones. */
.hero-title { font-size: calc(clamp(2.5rem, 6vw, 5rem) * var(--hl-scale, 1)); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.hero-points li { position: relative; padding-left: 26px; font-weight: 600; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px;
  border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-2px); }

/* Hero: SHOWCASE (full-bleed image + scrim) */
.hero--showcase { color: #fff; }
.hero--showcase .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero--showcase::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,12,20,0.92) 0%, rgba(8,12,20,0.72) 42%, rgba(8,12,20,0.30) 100%); }
.hero--showcase .hero-inner { position: relative; z-index: 2; padding: 120px 0 110px; max-width: 760px; }
.hero--showcase .kicker { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.hero--showcase .hero-title, .hero--showcase h1 { color: #fff; }
.hero--showcase .lead, .hero--showcase .hero-lead { color: #e7ebf2; }
.hero--showcase .hero-points li { color: #eef1f6; }
.hero--showcase .hero-accent { position: absolute; right: -60px; top: 0; bottom: 0; width: 220px;
  background: var(--accent); transform: skewX(-12deg); opacity: .9; z-index: 1; }

/* Hero: EDITORIAL (asymmetric copy + tall image) */
.hero--editorial { background: var(--bg); padding: 104px 0 0; }
.hero--editorial .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 70px 0 84px; }
.hero--editorial .hero-lead { margin-top: 18px; }
.hero--editorial .hero-media { position: relative; }
.hero--editorial .hero-media img { width: 100%; height: 540px; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.hero--editorial .hero-media::before { content: ""; position: absolute; right: -22px; top: -22px; width: 60%; height: 60%;
  background: var(--accent); border-radius: var(--radius); opacity: .16; z-index: 1; }
.hero--editorial .hero-badge { position: absolute; left: -20px; bottom: 30px; z-index: 3; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow);
  font-weight: 700; display: flex; align-items: center; gap: 10px; }
.hero--editorial .hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Hero: BRUTALIST (hard borders, overlap) */
.hero--brutalist { background: var(--bg); border-bottom: 3px solid var(--ink); padding-top: 38px; }
.hero--brutalist .hero-brut { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; align-items: stretch; padding: 0; }
.hero--brutalist .brut-copy { padding: 80px 48px 80px 0; border-right: 3px solid var(--ink); }
.hero--brutalist .hero-title { font-size: calc(clamp(2.8rem, 7vw, 5.6rem) * var(--hl-scale, 1)); }
.hero--brutalist .brut-media { position: relative; }
.hero--brutalist .brut-media img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.hero--brutalist .brut-tag { position: absolute; left: -28px; bottom: 40px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; padding: 12px 20px; border: 3px solid var(--ink); }

/* ---------- Trust strip (marquee) ---------- */
.trust-strip { background: var(--brand); color: var(--on-brand); padding: 15px 0; }
.trust-strip .m-item { color: var(--on-brand); }
.trust-strip .editmark { background: rgba(255,255,255,.16); color: #fff; padding: 1px 6px; border-radius: 4px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--brand); color: var(--on-brand); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid .stat { text-align: center; padding: 40px 16px; border-left: 1px solid rgba(255,255,255,0.16); }
.stats-grid .stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; text-transform: var(--hcase); }
.stat-num .editmark { font-size: 0.9rem; vertical-align: middle; }
.stat-lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.82; margin-top: 10px; }
.stats-note { font-size: 0.78rem; text-align: center; padding: 14px 16px 4px; opacity: 0.85; }
.stats-note .editmark { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Certification / license trust strip (backlog P2-22) ---------- */
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 22px 30px; justify-content: center; align-items: flex-start; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 9.5rem; }
.badge-slot { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px;
  border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted);
  border: 2px dashed color-mix(in srgb, var(--ink) 24%, transparent);
  background: repeating-linear-gradient(45deg, transparent, transparent 7px,
    color-mix(in srgb, var(--ink) 5%, transparent) 7px, color-mix(in srgb, var(--ink) 5%, transparent) 14px); }
.badge-lbl { font-size: 0.82rem; line-height: 1.4; }

/* ---------- Process / how it works ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 44px; }
.process-grid .step { padding-top: 6px; }
.step-num { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--accent);
  opacity: 0.28; display: block; margin-bottom: 10px; }
.process-grid .step h3 { margin-bottom: 8px; }
.process-grid .step p { color: var(--ink-soft); }

/* ---------- Section heads + cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.svc-card, .value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s; display: flex; flex-direction: column; }
.svc-card:hover, .value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-chip { width: 52px; height: 52px; border-radius: var(--radius-sm); margin-bottom: 20px; display: flex;
  align-items: center; justify-content: center; color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.icon-chip svg { width: 26px; height: 26px; }
.svc-card h3, .value-card h3 { margin-bottom: 9px; }
.svc-card p, .value-card p { color: var(--ink-soft); font-size: 0.98rem; }
.svc-card .card-link { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; color: var(--accent-deep); display: inline-flex; gap: 6px; }
.svc-card .card-link:hover { gap: 12px; }

/* ============================================================
   Panel-led service cards — each card opens with an animated faux-UI
   "mockup" that illustrates the service (a leak-monitoring pipe, a
   booking calendar, a service gauge, a checklist, a delivery route, a
   camera viewfinder, an activity equalizer). Decorative + honesty-safe:
   no fabricated numbers, only generic labels. All motion is gated below
   prefers-reduced-motion. Panels tint from the niche's brand/accent.
   ============================================================ */
.svc-card--panel { padding: 14px 14px 26px; }
.svc-panel { margin-bottom: 20px; }
.svc-cbody { padding: 0 14px; display: flex; flex-direction: column; flex: 1; }
.svc-idx { display: flex; justify-content: space-between; align-items: center; font-size: .72rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.svc-go { color: var(--accent); font-size: 1.05rem; transition: transform .2s; }
.svc-card--panel:hover .svc-go { transform: translate(2px, -2px); }
.svc-card--panel h3 { font-size: 1.32rem; margin-bottom: 6px; }

.svp { --p-line: color-mix(in srgb, var(--brand) 24%, transparent);
  --p-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  position: relative; height: 172px; border-radius: 14px; padding: 14px 15px; overflow: hidden;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 13%, transparent); }
.svp-bar { display: flex; justify-content: space-between; align-items: center; font-size: .66rem;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.svp-chip { color: var(--accent-deep); }
.svp-ok, .svp-book, .svp-eta { color: var(--ink-soft); }
.svp-live, .svp-rec { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); }
.svp-live i, .svp-rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: svp-blink 1.6s ease-in-out infinite; }
.svp-foot { position: absolute; left: 15px; right: 15px; bottom: 13px; display: flex; align-items: center; gap: 8px;
  font-size: .72rem; color: var(--ink-soft); }
.svp-alert { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); animation: svp-ping 2.2s ease-out infinite; }

/* leak: pipe with a flowing highlight + drops falling from it */
.svp--leak .svp-pipe { position: relative; height: 4px; border-radius: 4px; margin: 34px 2px 0; background: var(--p-line); }
.svp--leak .svp-flow { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; }
.svp--leak .svp-flow::after { content: ""; position: absolute; top: 0; left: -45%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.svp--leak .svp-drip { position: absolute; top: 4px; width: 7px; height: 7px; border-radius: 0 70% 70% 70%;
  transform: rotate(45deg); background: var(--accent); opacity: 0; }
.svp--leak .svp-drip:nth-child(2) { left: 24%; }
.svp--leak .svp-drip:nth-child(3) { left: 52%; }
.svp--leak .svp-drip:nth-child(4) { left: 78%; }

/* gauge: an arc that fills + a sweeping needle */
.svp--gauge .svp-dialwrap { position: relative; width: 132px; margin: 18px auto 0; }
.svp--gauge .svp-dial { width: 100%; display: block; }
.svp--gauge .svp-track { fill: none; stroke: var(--p-line); stroke-width: 7; stroke-linecap: round; }
.svp--gauge .svp-fill { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 132; stroke-dashoffset: 132; }
.svp--gauge .svp-needle { position: absolute; left: 50%; bottom: 4px; width: 2px; height: 40px; border-radius: 2px;
  background: var(--ink); transform-origin: bottom center; transform: rotate(-72deg); }
.svp-dotrow { gap: 7px; }
.svp-dotrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-line); }

/* calendar: week strip + a highlighted day + booking slots */
.svp--cal .svp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 18px 0 12px;
  text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.svp--cal .svp-week span { padding: 7px 0; border-radius: 7px; background: var(--surface); }
.svp--cal .svp-week .on { color: var(--on-brand); background: var(--accent); }
.svp--cal .svp-slots { display: flex; gap: 7px; }
.svp--cal .svp-slots span { flex: 1; height: 12px; border-radius: 6px; background: var(--p-soft); }
.svp--cal .svp-slots .pick { background: color-mix(in srgb, var(--accent) 45%, transparent); }

/* checklist: tasks check off in sequence + a progress bar fills */
.svp--list .svp-prog { width: 46px; height: 6px; border-radius: 6px; background: var(--p-soft); overflow: hidden; }
.svp--list .svp-prog i { display: block; width: 0; height: 100%; background: var(--accent); }
.svp--list .svp-tasks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 13px; }
.svp--list .svp-task { display: flex; align-items: center; gap: 10px; }
.svp--list .svp-box { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--p-line); flex: 0 0 auto; position: relative; }
.svp--list .svp-box::after { content: ""; position: absolute; inset: 2px; border-radius: 2px; background: var(--accent); transform: scale(0); }
.svp--list .svp-ln { height: 7px; border-radius: 6px; background: var(--p-soft); width: 70%; }

/* route: a road drawing + a pin travelling along it */
.svp--route .svp-map { position: relative; margin-top: 12px; }
.svp--route .svp-path { width: 100%; display: block; overflow: visible; }
.svp--route .svp-road { fill: none; stroke: var(--p-line); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 5; }
.svp--route .svp-trail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; }
.svp--route .svp-pin { fill: var(--accent); }
.svp--route .svp-flag { position: absolute; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); }
.svp--route .svp-flag-a { left: 2%; bottom: 6px; } .svp--route .svp-flag-b { right: 2%; top: 12px; }

/* viewfinder: corner brackets + a focusing reticle */
.svp--view .svp-frame { position: relative; height: 96px; margin-top: 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 6%, transparent); }
.svp--view .b { position: absolute; width: 16px; height: 16px; border: 2px solid var(--accent); }
.svp--view .tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.svp--view .tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.svp--view .bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.svp--view .br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.svp--view .svp-focus { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 2px solid var(--accent); border-radius: 50%; }

/* equalizer: rhythmic bars (abstract activity — no data) */
.svp--eq .svp-eqrow { display: flex; align-items: flex-end; gap: 5px; height: 100px; margin-top: 16px; }
.svp--eq .svp-eqrow i { flex: 1; border-radius: 4px 4px 0 0; height: 30%;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); }

@media (prefers-reduced-motion: no-preference) {
  .svp--leak .svp-flow::after { animation: svp-flow 2.8s linear infinite; }
  .svp--leak .svp-drip { animation: svp-drip 2.6s ease-in infinite; animation-delay: calc(var(--i) * .7s); }
  .svp--gauge .svp-fill { animation: svp-fill 3.4s ease-in-out infinite; }
  .svp--gauge .svp-needle { animation: svp-needle 3.4s ease-in-out infinite; }
  .svp--cal .svp-week .on { animation: svp-pop 3s ease-in-out infinite; }
  .svp--cal .svp-slots .pick { animation: svp-glow 3s ease-in-out infinite; }
  .svp--list .svp-prog i { animation: svp-progress 4s ease-in-out infinite; }
  .svp--list .svp-box::after { animation: svp-check 4s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
  .svp--route .svp-trail { animation: svp-draw 4s ease-in-out infinite; }
  .svp--route .svp-pin { animation: svp-travel 4s ease-in-out infinite; }
  .svp--view .svp-focus { animation: svp-focus 2.8s ease-in-out infinite; }
  .svp--eq .svp-eqrow i { animation: svp-eq 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * .09s); }
}
@keyframes svp-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes svp-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes svp-flow { to { left: 100%; } }
@keyframes svp-drip { 0% { opacity: 0; transform: rotate(45deg) translateY(0); } 12% { opacity: 1; } 60%, 100% { opacity: 0; transform: rotate(45deg) translateY(58px); } }
@keyframes svp-fill { 0%, 100% { stroke-dashoffset: 132; } 55% { stroke-dashoffset: 40; } }
@keyframes svp-needle { 0%, 100% { transform: rotate(-72deg); } 55% { transform: rotate(38deg); } }
@keyframes svp-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes svp-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes svp-progress { 0% { width: 0; } 60%, 100% { width: 100%; } }
@keyframes svp-check { 0%, 12% { transform: scale(0); } 30%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes svp-draw { 0% { stroke-dashoffset: 200; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes svp-travel {
  0% { transform: translate(6px, 48px); } 25% { transform: translate(40px, 18px); }
  50% { transform: translate(60px, 14px); } 75% { transform: translate(92px, 28px); }
  90%, 100% { transform: translate(114px, 18px); } }
@keyframes svp-focus { 0%, 100% { transform: scale(1.25); opacity: .5; } 55% { transform: scale(.8); opacity: 1; } }
@keyframes svp-eq { 0%, 100% { height: 28%; } 50% { height: 92%; } }

/* ---------- Quote band (lead form) ---------- */
.quote-band { background: var(--brand); color: var(--on-brand); }
.quote-band .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.quote-band h2 { color: #fff; }
.quote-band .lead { color: rgba(255,255,255,.82); }
.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.lead-form h3 { margin-bottom: 4px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
/* Inline validation (P2-18): :user-invalid only flags a field AFTER the user has
   interacted — never the eager :invalid red-on-load. Describes real constraints only. */
.field input:user-invalid, .field textarea:user-invalid { border-color: #d64545; }
.field input:user-invalid:focus, .field textarea:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.2); }
.field .opt { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.field input[type="date"] { color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-note { font-size: 0.83rem; color: var(--ink-soft); margin-top: 12px; }
.editmark { color: #9a6a00; background: #fff6e0; padding: 1px 6px; border-radius: 5px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 200px; gap: 16px; margin-top: 42px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff;
  font-weight: 600; font-size: 0.9rem; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }

/* ---------- CTA band ---------- */
.cta-section { padding: 0 0 84px; }
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 46px 42px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--bg); margin-bottom: 4px; }
.cta-band p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); max-width: 560px; }

/* ---------- Page head + content pages ---------- */
.page-head { position: relative; padding: 118px 0 72px; color: #fff; overflow: hidden; }
.page-head .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,12,20,.9), rgba(8,12,20,.55)); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; }
.page-head .lead { color: #e7ebf2; margin-top: 10px; }
.page-head .kicker { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.crumb { color: #fff; }

.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; }
.detail-body p { font-size: 1.06rem; color: var(--ink-soft); }
.detail-body > img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 26px; box-shadow: var(--shadow); }
.check-list { margin-top: 24px; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px;
  border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.side-card h2 { font-size: 1.12rem; }
.side-links li { margin-top: 10px; } .side-links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.side-links a:hover { color: var(--accent-deep); }
.side-links a[aria-current="page"] { color: var(--ink-soft); }
.accent-card { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.side-phone { font-size: 1.4rem; font-family: var(--font-display); margin: 6px 0 14px; }
.side-phone a { text-decoration: none; color: var(--brand); }

/* ---------- Alternating editorial service blocks ---------- */
.service-blocks { display: flex; flex-direction: column; gap: 66px; }
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.svc-block.rev .svc-block-media { order: 2; }
.svc-block-media img { width: 100%; height: 410px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.svc-block-copy h3 { font-size: 1.7rem; color: var(--ink); margin-bottom: 12px; }
.svc-block-copy .lead { margin-bottom: 6px; }

/* ---------- Team grid ---------- */
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); text-align: center; }
.team-avatar { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.team-avatar svg { width: 36px; height: 36px; }
.team-card h3 { color: var(--ink); margin-bottom: 4px; }
.team-role { color: var(--accent-deep); font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }

/* "The difference" comparison table */
.compare { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 130px 130px; align-items: center; }
.compare-head { background: var(--ink); color: #fff; padding: 16px 22px; font-weight: 700; font-size: 0.92rem; }
.compare-head span { text-align: center; }
.compare-head span:first-child { text-align: left; }
.compare-us { color: var(--accent); }
.compare-them { opacity: 0.62; font-weight: 600; }
.compare-row { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 0.96rem; }
.compare-row > span:first-child { color: var(--ink); font-weight: 600; }
.compare-row .cmp { justify-self: center; display: flex; align-items: center; justify-content: center; }
.compare-row .cmp.yes { color: var(--accent); }
.compare-row .cmp.yes svg { width: 22px; height: 22px; }
.compare-row .cmp.no { color: var(--muted); font-size: 1.2rem; opacity: 0.5; }
.compare-row:nth-child(even) { background: color-mix(in srgb, var(--brand) 4%, transparent); }
@media (max-width: 560px) {
  .compare-head, .compare-row { grid-template-columns: 1fr 64px 64px; padding-left: 16px; padding-right: 16px; }
}

.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.about-grid img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.feature-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature-tile .big { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); }
.feature-tile .lbl { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; }
.edit-banner { background: #fff8e6; border: 1px dashed #d9a200; color: #7a5c00; border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 28px; font-size: 0.9rem; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.quote-card p { font-style: italic; color: var(--ink-soft); }
.quote-attr { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.avatar svg { width: 24px; height: 24px; }
.attr-name { display: flex; flex-direction: column; line-height: 1.35; font-style: normal; }
.attr-name strong { color: var(--brand); font-size: 0.92rem; }

/* ---------- Why-us photo band ---------- */
.whyus-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 52px; align-items: center; }
.whyus-media img { width: 100%; height: 470px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.big-check li { font-size: 1.03rem; margin-bottom: 15px; color: var(--ink-soft); }
.big-check strong { color: var(--ink); }

/* ---------- Scroll progress hairline ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ---------- Big footer columns + social ---------- */
.footer-col h4, .footer-contact h4 { color: #fff; font-family: var(--font-display); font-size: 1rem;
  margin-bottom: 14px; text-transform: var(--hcase); letter-spacing: var(--hspace); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-dot { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; font-weight: 700; transition: background .15s; }
.social-dot:hover { background: var(--accent); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 840px; margin: 0 auto; }
.faq-search { position: relative; margin-bottom: 26px; }
.faq-search input { width: 100%; padding: 16px 20px 16px 50px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 1rem; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E") no-repeat 18px center; color: var(--ink); box-shadow: var(--shadow); }
.faq-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.faq-empty { text-align: center; color: var(--ink-soft); padding: 26px 0; font-size: 1.02rem; }
.faq-empty a { color: var(--accent-deep); font-weight: 700; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 13px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-deep); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 24px 20px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .lbl { min-width: 80px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); font-weight: 700; padding-top: 3px; }
.contact-list a { font-weight: 700; text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px; }
.contact-form h2 { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,.72); padding: 52px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; text-transform: var(--hcase); }
.footer-nav li { margin-bottom: 9px; } .footer-nav a, .footer-contact a { color: rgba(255,255,255,.86); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 18px; }
.footer-base .editmark { color: #ffd9a8; background: rgba(255,255,255,0.07); }
.footer-base .built { color: rgba(255,255,255,.5); }

/* Visually-hidden (screen-reader only) — used for table captions etc. */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Footer: Visit-us location + hours (backlog P1-07) ---------- */
.foot-addr { font-style: normal; color: rgba(255,255,255,.86); font-size: 0.9rem; line-height: 1.85; }
.foot-addr a { color: rgba(255,255,255,.86); text-decoration: none; }
.foot-addr a:hover { color: #fff; }
.foot-addr .dir-link { color: var(--accent); font-weight: 700; }
.foot-hours { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.86rem; }
.foot-hours th { text-align: left; font-weight: 600; color: rgba(255,255,255,.74); padding: 4px 0; }
.foot-hours td { text-align: right; color: rgba(255,255,255,.86); padding: 4px 0; }
.foot-hours tr + tr th, .foot-hours tr + tr td { border-top: 1px solid rgba(255,255,255,.1); }
.foot-hours .editmark { color: #ffd9a8; background: rgba(255,255,255,0.07); }

/* ---------- Hero reassurance chips (backlog P1-06) ---------- */
.reassure { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 16px;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.reassure .rs-sep { color: var(--accent); opacity: .8; }
.hero--showcase .reassure { color: #dfe5ee; }
.hero--showcase .reassure .editmark { color: #fff; }

/* ---------- Top utility ribbon ---------- */
.topbar { background: var(--brand-deep); color: rgba(255,255,255,0.86); font-size: 0.82rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-x { opacity: 0.85; }
.topbar .editmark { background: rgba(255,255,255,0.10); color: #ffd9a8; }

/* ---------- Logo / trust cloud ---------- */
.logo-row { padding: 48px 0; border-bottom: 1px solid var(--line); }
.logo-kicker { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 24px; }
.logo-cloud { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-box { display: inline-flex; align-items: center; justify-content: center; width: 132px; height: 54px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); font-weight: 700;
  letter-spacing: 0.04em; opacity: 0.55; background: var(--surface); }

/* ---------- Price chip ---------- */
.price-chip { display: inline-block; align-self: flex-start; margin: 6px 0 2px; padding: 5px 13px;
  border-radius: 999px; font-weight: 700; font-size: 0.82rem; color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }

/* ---------- Coverage / service area ---------- */
.coverage-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.area-list { columns: 2; margin: 24px 0 16px; }
.area-list li { padding-left: 22px; position: relative; margin-bottom: 9px; break-inside: avoid; }
.area-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.coverage-panel { background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow-lg); }
.coverage-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: #fff; }
.coverage-mark svg { width: 32px; height: 32px; }
.coverage-cap { font-family: var(--font-display); font-size: 1.3rem; text-transform: var(--hcase); line-height: 1.3; }

/* ---------- Contact reasons + select ---------- */
.contact-reasons { margin-top: 30px; }
.contact-reasons h2 { font-size: 1.2rem; margin-bottom: 12px; }
.reason-list li { padding-left: 30px; position: relative; margin-bottom: 11px; color: var(--ink-soft); }
.reason-list li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 12px; height: 12px; border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink); }

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,0.16);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-cta a { text-align: center; padding: 15px; font-weight: 700; text-decoration: none; }
.mcta-call { background: var(--brand); color: var(--on-brand); }
.mcta-quote { background: var(--accent); color: var(--on-brand); }

/* ---------- Per-niche hero decoration (subtle, light heroes only) ---------- */
.deco-1 .hero--editorial, .deco-1 .hero--brutalist { background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.deco-2 .hero--editorial, .deco-2 .hero--brutalist { background-image: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 18px); }
.deco-3 .hero--editorial, .deco-3 .hero--brutalist { background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .mobile-cta { display: grid; }
  .topbar-cred { display: none; }
  .coverage-grid { grid-template-columns: 1fr; }
  .area-list { columns: 1; }
  section { padding: 58px 0; }
  .hero--editorial .hero-grid, .hero--brutalist .hero-brut, .quote-band .wrap, .detail-grid, .about-grid, .contact-grid, .whyus-grid, .svc-block { grid-template-columns: 1fr; gap: 34px; }
  .svc-block.rev .svc-block-media { order: 0; }
  .svc-block-media img { height: 280px; }
  .whyus-media img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero--brutalist .brut-copy { border-right: 0; border-bottom: 3px solid var(--ink); padding: 60px 0; }
  .hero--editorial .hero-media img { height: 360px; }
  .hero--showcase .hero-inner { padding: 88px 0 78px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat:nth-child(odd) { border-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery figure:first-child { grid-row: span 1; grid-column: span 2; }
  .pill-bar { position: relative; gap: 12px; padding: 9px 9px 9px 20px; }
  .call-btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 20px; box-shadow: var(--shadow-lg); margin: 0; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; padding: 8px; align-items: stretch; }
  .site-nav li { width: 100%; } .site-nav a { display: block; padding: 12px 16px; }
  .cta-band { padding: 32px 26px; }
}
@media (max-width: 560px) {
  .card-grid, .feature-grid, .field-row, .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: span 1; }
}

/* ============================================================
   Jensen Auto Transport — bespoke homepage additions.
   Layered on top of the dynamictemplate design system. Plain native
   scrolling only; motion is CSS + the shared rAF/IO script (no wheel hooks).
   ============================================================ */

/* ---------- Split hero: pitch left, instant quote right ---------- */
.hero--quote { color: #fff; padding: clamp(104px, 12vh, 156px) 0 64px; isolation: isolate; background: #0a0f18; }
.hero--quote .hero-photo { position: absolute; inset: 0; z-index: -2;
  background: #0a0f18 url("https://images.unsplash.com/photo-1592838064575-70ed626d3a0e?auto=format&fit=crop&w=1920&q=80") center 40%/cover no-repeat;
  transform: translate3d(0, calc(var(--sy, 0) * 0.05px), 0) scale(1.1); will-change: transform; }
.hero--quote .hero-scrim { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,12,20,0.86) 0%, rgba(8,12,20,0.5) 24%, rgba(8,12,20,0.5) 56%, rgba(8,12,20,0.88) 100%),
    linear-gradient(102deg, rgba(8,12,20,0.95) 0%, rgba(8,12,20,0.86) 40%, rgba(8,12,20,0.55) 75%, rgba(8,12,20,0.45) 100%); }
.hero-quote-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 48px; align-items: start; }
.hero-copy .hero-title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.5rem); margin: 6px 0 18px; max-width: 16ch; }
.hero-copy .hero-lead { color: #d8dfe9; max-width: 46ch; }
.hero--quote .reassure { color: #cfd7e2; margin-top: 22px; }
.hero--quote .reassure .rs-sep { color: var(--accent); }

/* USDOT verification badge in the hero. */
.usdot-badge { display: inline-flex; align-items: center; gap: 13px; margin-top: 24px; text-decoration: none;
  padding: 11px 18px 11px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 18%, rgba(10,16,26,0.6));
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .15s, transform .15s; }
.usdot-badge:hover { border-color: #fff; transform: translateY(-1px); }
.usdot-shield { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: #6fe39a; }
.usdot-shield svg { width: 26px; height: 26px; }
.usdot-text { display: flex; flex-direction: column; line-height: 1.25; }
.usdot-text strong { color: #fff; font-size: 0.96rem; letter-spacing: 0.01em; }
.usdot-text .usdot-sub { color: #b6c0cd; font-size: 0.76rem; font-weight: 600; }

/* Quote card (extends .lead-form) sitting on the dark hero. */
.quote-card { border: 1px solid color-mix(in srgb, #fff 14%, var(--line));
  box-shadow: 0 30px 70px rgba(3,8,16,0.55); position: relative; }
.quote-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--accent), var(--brand)); }
.quote-card h3 { font-size: 1.4rem; }
.quote-card-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }
.field select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink); -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa4b2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Service-card icon medallion. */
.svc-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.svc-ic svg { width: 28px; height: 28px; }

/* Verify band. */
.verify-band { background:
    radial-gradient(120% 140% at 85% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    color-mix(in srgb, var(--brand) 6%, var(--bg)); }
.verify-grid { display: grid; grid-template-columns: 120px 1fr; gap: 36px; align-items: center; }
.verify-mark { width: 120px; height: 120px; border-radius: 24px; display: grid; place-items: center;
  color: #6fe39a; background: color-mix(in srgb, #6fe39a 12%, transparent);
  border: 1px solid color-mix(in srgb, #6fe39a 28%, transparent); }
.verify-mark svg { width: 64px; height: 64px; }
.verify-creds { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.vcred { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 20px; min-width: 150px; box-shadow: var(--shadow); }
.vcred-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 4px; }
.vcred-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: 0.02em; }
.vcred-num.vcred-sm { font-size: 1.05rem; }

/* Final CTA — DARK, centered stack. A light panel with a white ghost "Call" button
   read as broken on this all-dark page; going dark makes the white button work and
   matches the rest of the site. Heading + subtext + buttons stack and center. */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band { flex-direction: column; align-items: center; text-align: center; justify-content: center;
  gap: 26px; padding: clamp(36px, 5vw, 56px) clamp(22px, 4vw, 44px);
  background: linear-gradient(120deg, #16263f 0%, var(--surface) 62%); color: #fff;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); }
.cta-band > div:first-child { max-width: 640px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--ink-soft); max-width: none; margin: 0 auto; }
.cta-band .cta-actions { justify-content: center; flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-quote-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy .hero-title { max-width: none; }
  .hero-copy { max-width: 640px; }
  .verify-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .verify-mark { width: 88px; height: 88px; border-radius: 18px; }
  .verify-mark svg { width: 46px; height: 46px; }
}
@media (max-width: 560px) {
  .hero--quote { padding-top: 96px; }
  .usdot-badge { width: 100%; }
  .vcred { min-width: 0; flex: 1 1 100%; }
}

/* ============================================================
   Post-review fixes (adversarial review pass): WCAG contrast, anchor
   scroll-margin under the fixed chrome, mobile form-first, placeholder
   + footer contrast, and quote-form heading sizing.
   ============================================================ */

/* WCAG AA: white-on-#ff6b1a (2.85:1) and white-on-#e2540c (3.81:1) both FAIL the
   4.5:1 minimum for this 16px-bold button text. #c0410a gives white ≈ 5.25:1;
   hover one shade darker. */
.btn { background: #c0410a; }
.btn:hover { background: #a83c08; }
.mcta-quote { background: #c0410a; }
.mcta-quote:hover { background: #a83c08; }

/* In-page anchors must clear the fixed pill header. */
#quote, #services, #how, #why, #verify, #contact, #main { scroll-margin-top: 88px; }
@media (max-width: 720px) {
  #quote, #services, #how, #why, #verify, #contact, #main { scroll-margin-top: 84px; }
}

/* Mobile: put the instant-quote form first so it's above the fold for
   price-shopping visitors (the pitch copy follows it). */
@media (max-width: 900px) {
  .hero-quote-grid .quote-card { order: -1; }
}

/* Quote form heading is now an <h2> (monotonic h1->h2->h3) but must stay card-sized. */
.quote-card h2.quote-h { font-size: 1.4rem; margin-bottom: 4px; text-transform: none; }

/* Legible placeholders (>=4.5:1 on the dark input bg). */
.field input::placeholder, .field textarea::placeholder { color: #8b95a3; opacity: 1; }

/* Footer body copy to >=4.5:1, and slightly darker EDIT-ME marker text. */
.site-footer { color: rgba(255,255,255,0.88); }
.editmark { color: #7a5400; }

/* ============================================================
   Post-audit polish (multi-angle spacing/layout audit).
   ============================================================ */
/* Defensive: never let a transformed/scaled layer spawn a mobile h-scrollbar. */
body { overflow-x: hidden; }

/* Hero copy optically matches the form card's top padding now that columns top-align. */
.hero-copy { padding-top: 4px; }

/* A touch more standoff before the primary submit. */
.quote-card .btn.full { margin-top: 8px; }

/* CTA band: real top standoff from the Verify band (full CTA styling is above). */
.cta-section { padding-top: 40px; }

/* Marquee diamonds were near-invisible orange-on-blue; lighten on the trust strip. */
.trust-strip .m-dot { color: rgba(255,255,255,0.6); }
/* Promote the always-animating marquee to its own layer (matches hero-photo). */
.marquee__track { will-change: transform; }

/* Mobile nav dropdown must scroll internally on short/landscape phones. */
@media (max-width: 900px) {
  .site-nav.open { max-height: calc(100vh - 92px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
