/* ==========================================================================
   American Best Roofing & Remodeling — Design System
   Direction: Cinematic × Editorial — "Storm & Standard"
   Palette sampled from client logo. Typography: Archivo / Public Sans.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — Signal Red, sampled from logo (44,786px) */
  --brand:            #C20217;
  --brand-light:      #E11B2E;
  --brand-dark:       #8E0110;
  --brand-rgb:        194, 2, 23;

  /* Dark surfaces — storm navy, derived from logo #000435 */
  --bg-base:          #07091C;
  --bg-elevated:      #0E1330;
  --bg-floating:      #171D42;

  /* Light surfaces */
  --bg-light:         #F7F5F1;
  --bg-light-elev:    #FFFFFF;
  --bg-light-float:   #ECE8E1;

  /* Text on light */
  --text-primary:     #0A0D22;
  --text-body:        #454A63;
  --text-muted:       #636A85;  /* 4.91:1 on #F7F5F1 — was #6E7590 at 4.18:1 (AA fail) */

  /* Text on dark */
  --text-on-dark:     #F5F3EF;
  --text-body-dark:   #B9BED4;
  --text-muted-dark:  #8A90AC;

  /* Accents */
  --accent:           #7180BB;   /* logo wave ribbon */
  --accent-hover:     #8B98CC;
  --accent-rgb:       113, 128, 187;
  --brass:            #D9A441;   /* review stars */

  /* Borders */
  --border:           rgba(113, 128, 187, 0.14);
  --border-strong:    rgba(113, 128, 187, 0.28);
  --border-light:     rgba(10, 13, 34, 0.10);

  /* Color-tinted shadows — never flat gray */
  --shadow-sm: 0 2px 8px rgba(var(--brand-rgb), 0.08);
  --shadow-md: 0 8px 32px rgba(var(--brand-rgb), 0.12),
               0 2px 8px  rgba(var(--brand-rgb), 0.06);
  --shadow-lg: 0 24px 64px rgba(var(--brand-rgb), 0.16),
               0 8px 24px  rgba(var(--brand-rgb), 0.08);
  --shadow-dark: 0 24px 64px rgba(0, 0, 0, 0.45),
                 0 4px 16px rgba(var(--accent-rgb), 0.10);

  /* Typography */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body:    'Public Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale — intentional tokens, not arbitrary steps */
  --sp-1: 0.5rem;  --sp-2: 0.75rem; --sp-3: 1rem;    --sp-4: 1.5rem;
  --sp-5: 2rem;    --sp-6: 3rem;    --sp-7: 4rem;    --sp-8: 6rem;
  --sp-9: 8rem;    --sp-10: 11rem;

  --radius-sm: 6px;  --radius:  12px;  --radius-lg: 20px;
  --maxw: 1240px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- 3. Type scale ---------- */
.t-hero   { font-size: clamp(2.35rem, 4.7vw, 4.75rem); font-weight: 900; letter-spacing: -0.038em; line-height: 0.95; }
.t-h1     { font-size: clamp(1.8rem, 3.3vw, 3.05rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.t-h2     { font-size: clamp(1.35rem, 2.3vw, 2rem);   font-weight: 700; letter-spacing: -0.02em; line-height: 1.16; }
.t-h3     { font-size: clamp(1.15rem, 1.6vw, 1.4rem);font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.t-lead   { font-size: clamp(1.075rem, 1.5vw, 1.3rem); line-height: 1.6; }
.t-eyebrow{
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: var(--sp-2);
}
.t-eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--brand); flex: none;
}

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-4); }
.section { padding-block: clamp(var(--sp-7), 9vw, var(--sp-9)); position: relative; }
.section--dark {
  background: var(--bg-base);
  color: var(--text-body-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-on-dark); }
.section--light { background: var(--bg-light); }

/* Storm-light: layered radial gradients over the dark base */
.storm-light {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 48% at 12% 6%,   rgba(var(--brand-rgb), 0.30) 0%, transparent 58%),
    radial-gradient(ellipse 50% 45% at 88% 22%,  rgba(var(--accent-rgb), 0.26) 0%, transparent 55%),
    radial-gradient(ellipse 80% 45% at 62% 100%, rgba(var(--accent-rgb), 0.16) 0%, transparent 62%),
    linear-gradient(168deg, rgba(23, 29, 66, 0.55) 0%, transparent 45%);
}
.section > .wrap { position: relative; z-index: 1; }

/* 4° angled roofline edge — echoes the logo gable */
.roofline-top    { clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); margin-top: -3.5vw; padding-top: calc(3.5vw + var(--sp-8)); }
.roofline-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%); padding-bottom: calc(3.5vw + var(--sp-8)); }

/* Grain overlay */
.grain::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Three-star motif from the logo */
.stars-motif { display: inline-flex; gap: 5px; align-items: center; }
.stars-motif svg { width: 11px; height: 11px; fill: var(--brand); }
.stars-motif svg:nth-child(2) { width: 15px; height: 15px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600; font-size: 0.975rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  position: relative;
  will-change: transform;
  transition: transform 220ms var(--ease-spring),
              box-shadow 220ms var(--ease-out),
              background-color 180ms var(--ease-out),
              color 180ms var(--ease-out),
              border-color 180ms var(--ease-out);
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover  { background: var(--brand-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--primary:active { transform: translateY(0); background: var(--brand-dark); box-shadow: var(--shadow-sm); }

.btn--ghost {
  border: 1.5px solid var(--border-strong);
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.03);
}
.btn--ghost:hover  { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); background: rgba(var(--accent-rgb), 0.2); }

.btn--outline {
  border: 1.5px solid var(--border-light);
  color: var(--text-primary);
  background: var(--bg-light-elev);
}
.btn--outline:hover  { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--outline:active { transform: translateY(0); }

.btn--lg { padding: 1.15rem 2rem; font-size: 1.05rem; }

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background-color 300ms var(--ease-out),
              backdrop-filter 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              border-color 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 9, 28, 0.90);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.nav__inner {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-block: var(--sp-3);
}
.nav__logo { display: flex; align-items: center; gap: var(--sp-2); text-decoration: none; flex: none; }
.nav__logo img {
  height: 46px; width: auto; border-radius: 4px;
  /* Interim: logo has an opaque white background. Replace with transparent PNG/SVG. */
  background: #fff; padding: 3px;
}
.nav__links { display: none; gap: var(--sp-4); margin-inline-start: auto; align-items: center; }
.nav__link {
  color: var(--text-body-dark); text-decoration: none;
  font-size: 0.94rem; font-weight: 500;
  padding: 0.4rem 0; position: relative;
  transition: color 180ms var(--ease-out);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease-spring);
}
.nav__link:hover { color: var(--text-on-dark); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.nav__actions { display: none; gap: var(--sp-2); align-items: center; }
.nav__phone {
  color: var(--text-on-dark); text-decoration: none; font-weight: 700;
  font-family: var(--font-display); font-size: 1rem; white-space: nowrap;
  transition: color 180ms var(--ease-out);
}
.nav__phone:hover { color: var(--brand-light); }
.nav__phone:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 1024px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__actions { margin-inline-start: var(--sp-4); }
}

/* Mobile sticky action bar */
.mobilebar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border-strong);
  border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.mobilebar a {
  padding: 0.95rem 0.5rem; text-align: center;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  background: rgba(7,9,28,0.94); color: var(--text-on-dark);
  transition: background-color 180ms var(--ease-out);
}
.mobilebar a:last-child { background: var(--brand); color: #fff; }
.mobilebar a:hover  { background: var(--bg-floating); }
.mobilebar a:last-child:hover  { background: var(--brand-light); }
.mobilebar a:active { background: var(--brand-dark); }
.mobilebar a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (min-width: 1024px) { .mobilebar { display: none; } }

/* ---------- 7. Hero — full-bleed video, centred copy ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
  color: var(--text-body-dark);
  isolation: isolate;
}

.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: var(--bg-base);
}
/* Portrait crops a 16:9 clip hard. Bias the framing up toward the roofline and
   sky — the part that carries the story — instead of centring on the lawn. */
@media (max-width: 700px) {
  .hero__video { object-position: 50% 32%; }
}

/* Scrim alpha is derived from measured frame luminance — see the note in the
   markup. Heaviest through the centre band where the copy sits, lighter at the
   left/right edges so the clip still reads. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 78% 68% at 50% 46%,
      rgba(7, 9, 28, 0.50) 0%, rgba(7, 9, 28, 0.30) 58%, rgba(7, 9, 28, 0.10) 100%),
    linear-gradient(180deg,
      rgba(7, 9, 28, 0.72) 0%, rgba(7, 9, 28, 0.24) 26%,
      rgba(7, 9, 28, 0.24) 62%, rgba(7, 9, 28, 0.88) 100%),
    linear-gradient(142deg, rgba(var(--brand-rgb), 0.12), transparent 58%);
}

.hero__body {
  position: relative; z-index: 2;
  flex: 1;
  display: grid; place-items: center;
  padding-top: clamp(6rem, 10vh, 8rem);
  padding-bottom: var(--sp-5);
}

.hero__copy { text-align: center; }
.hero__copy .t-eyebrow { justify-content: center; }

.hero h1 {
  color: var(--text-on-dark);
  margin-block: var(--sp-4) var(--sp-4);
  text-shadow: 0 2px 24px rgba(7, 9, 28, 0.55);
}
.hero h1 .accent { color: var(--brand-light); }

.hero__lead {
  color: var(--text-on-dark);
  max-width: 54ch;
  margin-inline: auto;
  text-shadow: 0 1px 16px rgba(7, 9, 28, 0.6);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-5);
}
.hero__note {
  font-size: 0.9rem; color: var(--text-body-dark);
  margin-top: var(--sp-3);
  text-shadow: 0 1px 12px rgba(7, 9, 28, 0.7);
}

/* Hero line mask-reveal */
.reveal-line { display: block; overflow: hidden; }
@media (min-width: 900px) { .reveal-line > span { white-space: nowrap; } }

.hero__foot { position: relative; z-index: 2; }

/* Pause control — WCAG 2.2.2 for the looping (non-scrub) mode */
.hero__video-toggle {
  position: absolute; z-index: 3; right: clamp(14px, 3vw, 28px); bottom: clamp(70px, 12vh, 96px);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7, 9, 28, 0.72);
  border: 1px solid var(--border-strong);
  color: var(--text-on-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  will-change: transform;
  transition: transform 200ms var(--ease-spring),
              background-color 180ms var(--ease-out),
              border-color 180ms var(--ease-out);
}
.hero__video-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.hero__video-toggle:hover  { background: var(--brand); border-color: var(--brand); transform: scale(1.08); }
.hero__video-toggle:active { transform: scale(0.96); background: var(--brand-dark); }
.hero__video-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* .hero__video-toggle sets display:grid, which beats the UA [hidden] rule. */
.hero__video-toggle[hidden] { display: none; }
.hero__video-toggle .icon-pause { display: none; }
.hero__video-toggle[aria-pressed="true"] .icon-play  { display: none; }
.hero__video-toggle[aria-pressed="true"] .icon-pause { display: block; }

/* ---------- 8. Trust bar ---------- */
.trustbar {
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 28, 0.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  margin-bottom: clamp(var(--sp-3), 3vh, var(--sp-5));
  border-radius: var(--radius);
  padding-inline: var(--sp-4);
}
.trustbar__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4); padding-block: var(--sp-5);
}
@media (min-width: 768px) { .trustbar__grid { grid-template-columns: repeat(4, 1fr); } }
.trustbar__item { display: flex; flex-direction: column; gap: 4px; text-align: center; align-items: center; }
.trustbar__val {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: -0.02em;
  color: var(--text-on-dark); display: flex; align-items: center; gap: var(--sp-2);
}
.trustbar__lbl { font-size: 0.8rem; color: var(--text-muted-dark); letter-spacing: 0.02em; }
.rating-stars { display: inline-flex; gap: 2px; }
.rating-stars svg { width: 14px; height: 14px; fill: var(--brass); }

/* ---------- 9. Cards ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-light-elev);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  will-change: transform;
  transition: transform 260ms var(--ease-spring),
              box-shadow 260ms var(--ease-out),
              border-color 200ms var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), 0.28); }
.card__num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  color: var(--brand); letter-spacing: 0.06em;
}
.card p { color: var(--text-body); font-size: 0.98rem; }
.card ul { display: flex; flex-direction: column; gap: 6px; margin-top: var(--sp-1); }
.card li {
  font-size: 0.92rem; color: var(--text-muted);
  padding-left: 1.1rem; position: relative;
}
.card li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}

/* Service card as link */
a.card { text-decoration: none; color: inherit; }
a.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card__more {
  margin-top: auto; padding-top: var(--sp-3);
  font-weight: 600; font-size: 0.9rem; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__more svg { width: 14px; height: 14px; fill: currentColor; transition: transform 240ms var(--ease-spring); }
a.card:hover .card__more svg { transform: translateX(4px); }

/* Dark card variant */
.card--dark {
  background: var(--bg-elevated); border-color: var(--border);
}
.card--dark p { color: var(--text-body-dark); }
.card--dark li { color: var(--text-muted-dark); }
.card--dark:hover { box-shadow: var(--shadow-dark); border-color: var(--border-strong); }

/* ---------- 10. Section header ---------- */
.sec-head { max-width: 54ch; margin-bottom: clamp(var(--sp-5), 5vw, var(--sp-7)); display: flex; flex-direction: column; gap: var(--sp-3); }

/* Editorial split: heading left, supporting copy right — fills the measure
   instead of leaving half the row empty. */
@media (min-width: 1000px) {
  .sec-head {
    max-width: none;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    column-gap: var(--sp-7);
    row-gap: var(--sp-4);
    align-items: end;
  }
  .sec-head > .t-eyebrow { grid-column: 1 / -1; }
  .sec-head > h2, .sec-head > h1 { grid-column: 1; max-width: 18ch; }
  .sec-head > p { grid-column: 2; padding-bottom: 0.35em; }
}
.sec-head p { color: var(--text-body); }
.section--dark .sec-head p { color: var(--text-body-dark); }

/* ---------- 11. Insurance claim steps (pinned) ---------- */
.claims { display: grid; gap: var(--sp-5); }
@media (min-width: 1024px) { .claims { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-8); align-items: start; } }
.claims__sticky { position: relative; }
@media (min-width: 1024px) { .claims__sticky { position: sticky; top: 22vh; } }
.claims__steps { display: flex; flex-direction: column; gap: var(--sp-3); }
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-elevated);
  display: flex; gap: var(--sp-4); align-items: flex-start;
  will-change: transform, opacity;
  transition: border-color 300ms var(--ease-out),
              background-color 300ms var(--ease-out),
              transform 300ms var(--ease-spring);
}
.step.is-active { border-color: var(--brand); background: var(--bg-floating); transform: translateX(6px); }
.step__n {
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
  color: var(--brand); line-height: 1; flex: none; width: 2.2rem;
  letter-spacing: -0.03em;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--text-body-dark); font-size: 0.96rem; }

/* ---------- 12. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: var(--sp-1); }
.stat__v {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4rem); letter-spacing: -0.04em; line-height: 1;
  color: var(--text-on-dark);
}
.stat__v .unit { color: var(--brand); }
.stat__l { font-size: 0.88rem; color: var(--text-muted-dark); letter-spacing: 0.03em; }
.stat__note { font-size: 0.76rem; color: var(--text-muted-dark); opacity: 0.75; }

/* ---------- 13. Reviews ---------- */
.review {
  background: var(--bg-light-elev); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  will-change: transform;
  transition: transform 260ms var(--ease-spring), box-shadow 260ms var(--ease-out);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review blockquote { margin: 0; font-size: 1.02rem; color: var(--text-primary); line-height: 1.6; }
.review__by { display: flex; align-items: center; gap: var(--sp-2); margin-top: auto; }
.review__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
}
.review__name { font-weight: 600; color: var(--text-primary); font-size: 0.94rem; }
.review__src { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- 14. Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.area-chip {
  border: 1px solid var(--border-light); background: var(--bg-light-elev);
  border-radius: 100px; padding: 0.5rem 1.1rem;
  font-size: 0.92rem; font-weight: 500; color: var(--text-body);
  text-decoration: none;
  will-change: transform;
  transition: transform 200ms var(--ease-spring),
              border-color 180ms var(--ease-out),
              color 180ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
}
.area-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.area-chip:active { transform: translateY(0); }
.area-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- 15. Form ---------- */
.cta-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; } }
.form { display: flex; flex-direction: column; gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-body-dark); letter-spacing: 0.02em; }
.field input, .field select {
  font: inherit; font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-on-dark);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.field input::placeholder { color: var(--text-muted-dark); }
.field input:hover, .field select:hover { border-color: var(--accent); }
.field input:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.25);
}
.form__note { font-size: 0.85rem; color: var(--text-muted-dark); }
.form__row { display: grid; gap: var(--sp-3); }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

/* ---------- 16. Footer ---------- */
.footer { background: var(--bg-base); color: var(--text-muted-dark); border-top: 1px solid var(--border); padding-block: var(--sp-7) var(--sp-5); }
.footer__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-6); } }
.footer h2 { color: var(--text-on-dark); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--sp-3); font-weight: 700; }
.footer a { color: var(--text-muted-dark); text-decoration: none; transition: color 180ms var(--ease-out); }
.footer a:hover { color: var(--brand-light); }
.footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.footer li { margin-bottom: 8px; font-size: 0.94rem; }
.footer__logo { height: 54px; width: auto; background: #fff; padding: 4px; border-radius: 4px; margin-bottom: var(--sp-3); }
.footer__legal {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: 0.84rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem; font-size: 0.82rem; color: var(--text-body-dark);
}
.badge strong { color: var(--brass); font-family: var(--font-display); }

/* ---------- 17. Utility ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }

/* Image treatment — never bare */
.img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,9,28,0.65) 0%, transparent 60%);
  pointer-events: none;
}
.img-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--bg-base); mix-blend-mode: multiply; opacity: 0.18;
  pointer-events: none;
}

/* ---------- 18. Animation base states (JS adds .is-in) ---------- */
.js [data-anim] { opacity: 0; transform: translateY(48px); will-change: transform, opacity; }
.js [data-anim].is-in {
  opacity: 1; transform: none;
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-spring);
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-anim] { opacity: 1 !important; transform: none !important; }
  .reveal-line > span { transform: none !important; }
  .hero__video { transform: none !important; }
}

/* ---------- 20. Team ---------- */
.team { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, 1fr); } }

.member { display: flex; flex-direction: column; gap: var(--sp-3); }

/* Branded square portraits, consistently lit. They need no colour correction —
   just a light bottom scrim so the card reads as layered rather than flat. */
.member__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light-float);
  box-shadow: var(--shadow-sm);
  will-change: transform;
  transition: transform 320ms var(--ease-spring), box-shadow 320ms var(--ease-out);
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  will-change: transform;
  transition: transform 520ms var(--ease-spring);
}
.member__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 9, 28, 0.40) 0%, transparent 42%);
  transition: opacity 420ms var(--ease-out);
}
.member:hover .member__photo { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member:hover .member__photo img { transform: scale(1.045); }
.member:hover .member__photo::after { opacity: 0.55; }

/* No corner chevron here: every one of these portraits already carries the
   logo on the polo, the vehicle or the wall. A second brand mark is redundant. */

.member__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text-primary);
}
.member__role {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand); margin-top: 2px;
}
.member p { font-size: 0.95rem; color: var(--text-body); margin-top: var(--sp-2); }

/* ---------- 21. Mobile menu ---------- */
.nav__toggle {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); color: var(--text-on-dark);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.nav__toggle:hover { background: rgba(var(--accent-rgb), 0.16); border-color: var(--accent); }
.nav__toggle:active { background: rgba(var(--accent-rgb), 0.26); }
.nav__toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.nav__toggle span {
  position: relative; display: block; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 260ms var(--ease-spring), background-color 160ms linear;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 260ms var(--ease-spring);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .nav__toggle { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(7, 9, 28, 0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-8) var(--sp-4) 6rem;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease-out), visibility 300ms;
}
.menu[data-open="true"] { opacity: 1; visibility: visible; }
.menu a {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: -0.03em;
  color: var(--text-on-dark); text-decoration: none;
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--border);
  transition: color 180ms var(--ease-out), padding-left 240ms var(--ease-spring);
}
.menu a:hover, .menu a:focus-visible { color: var(--brand-light); padding-left: var(--sp-2); }
.menu a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.menu__phone {
  margin-top: var(--sp-5); border-bottom: none !important;
  color: var(--brand-light) !important;
}
@media (min-width: 1024px) { .menu { display: none; } }

/* Full-width CTAs on small screens */
@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* Keep content clear of the fixed mobile action bar */
@media (max-width: 1023px) { body { padding-bottom: 56px; } }


/* ---------- 22. Short viewports ----------
   The hero is already full-height flex (§7), so this only tunes internal
   spacing — it must not re-declare layout or padding stacks double up.
   On short laptops the content itself has to shrink: padding is not the lever,
   because place-items:center redistributes it rather than removing it. */
@media (min-width: 1024px) and (max-height: 800px) {
  .hero__body        { padding-top: clamp(5rem, 8vh, 6.5rem); padding-bottom: var(--sp-3); }
  .hero .t-hero      { font-size: clamp(2rem, 3.6vw, 3.6rem); }
  .hero__lead        { font-size: 1rem; line-height: 1.55; }
  .hero h1           { margin-block: var(--sp-3); }
  .hero__cta         { margin-top: var(--sp-4); }
  .hero .btn--lg     { padding: 0.9rem 1.6rem; font-size: 0.98rem; }
  .trustbar__grid    { padding-block: 0.7rem; }
  .trustbar__val     { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .hero__body        { padding-top: 4.6rem; }
  .hero .t-hero      { font-size: clamp(1.8rem, 3vw, 2.9rem); }
  .hero__note        { display: none; }
}
