/* Affordable Solar Roof & Air — redesign prototype stylesheet
   One file. Tokens first, then base, layout, components, pages. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Colour */
  --navy: #0A2540;
  --navy-800: #0d2e4f;
  --navy-700: #123a63;
  --red: #F20200;          /* sampled from the real logo; decorative accents only (not white-on-red) */
  --red-600: #D10200;      /* white-on-red fill (buttons, badges); 5.65:1 vs white */
  --red-700: #C00200;      /* darker hover/active on white text; 6.46:1 vs white */
  --gold: #F5B700;
  --surface: #F8F9FA;
  --white: #fff;
  --text: #111827;
  --muted: #6B7280;
  --muted-on-dark: #b7c4d3;
  --success: #059669;
  --line: #e5e7eb;

  /* 8px spacing scale */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 2.5rem; --s6: 3rem;
  --s8: 4rem; --s10: 5rem; --s12: 6rem; --s16: 8rem;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-2xl: 32px; --r-pill: 999px;

  /* Layered shadows (brief) — each token stacks an ambient + a key shadow */
  --shadow-sm: 0 1px 2px rgba(10,37,64,.06), 0 1px 3px rgba(10,37,64,.08);
  --shadow-md: 0 1px 3px rgba(10,37,64,.06), 0 4px 12px rgba(10,37,64,.12);
  --shadow-lg: 0 2px 6px rgba(10,37,64,.06), 0 4px 12px rgba(10,37,64,.08), 0 12px 32px rgba(10,37,64,.16);
  --shadow-xl: 0 2px 6px rgba(10,37,64,.06), 0 8px 20px rgba(10,37,64,.10), 0 20px 48px rgba(10,37,64,.20);
  --shadow-red: 0 1px 2px rgba(162,10,0,.25), 0 6px 16px rgba(242,2,0,.28);

  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 240ms;
  --header-h: 76px;
  --container: 1240px;

  --fs-h1: clamp(2.75rem, 7vw, 5rem);
  --fs-h2: clamp(2rem, 4.5vw, 3rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: 1.125rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  /* Header is fixed, so this reserved band is the only thing holding its place. */
  padding-top: var(--header-h);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 var(--s2); line-height: 1.1; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
p { margin: 0 0 var(--s2); }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--r-md);
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #e8eef5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1875rem; }
.section--navy .section-head p { color: var(--muted-on-dark); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: var(--s2);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--red); }
.section--navy .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--gold); }
.section--navy .eyebrow::before, .hero .eyebrow::before, .cta-band .eyebrow::before { background: var(--gold); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); }
.grid { display: grid; gap: var(--s3); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: var(--r-pill);
  font: inherit; font-size: 1.0625rem; font-weight: 700; line-height: 1; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { position: relative; z-index: 0; overflow: hidden; background: var(--red-600); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover,
.btn--primary:active { background: var(--red-700); color: #fff; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(162,10,0,.25), 0 12px 24px rgba(242,2,0,.32); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn--navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--navy); border-color: #d6dde6; box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.text-link { display: inline-flex; align-items: center; gap: .375rem; min-height: 48px; font-weight: 700; color: var(--navy); text-decoration: none; }
.text-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header (fixed to the visual top; height stays --header-h, no CLS) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  width: 100%; height: var(--header-h); margin: 0; transform: none;
  background: rgba(255,255,255,.75);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(10,37,64,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 24px rgba(10,37,64,.06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: rgba(255,255,255,.97); } }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s3); }
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; z-index: 2;
  pointer-events: none; background: rgba(10,37,64,.08); overflow: hidden;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), #ffe27a 60%, var(--red));
}
.brand {
  position: relative; display: grid; align-items: center; justify-items: start; flex: none;
  grid-template: 54px / calc(54px * 494 / 128);
  min-width: 48px; min-height: 48px;
}
.brand .logo-slot,
.brand .logo-emblem { grid-area: 1 / 1; }
.brand .logo-slot { display: block; width: 100%; height: 54px; transform-origin: left center; }
.brand .logo-slot img {
  width: 100%; height: 54px; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(10,37,64,.2));
}
.brand .logo-emblem {
  display: grid; place-items: center; justify-self: start; align-self: center;
  width: 48px; height: 48px; opacity: 0; transform: scale(.92); pointer-events: none;
}
.brand .logo-emblem img {
  width: 42px; height: 42px; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(10,37,64,.2));
}
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .125rem; }
.primary-nav a {
  position: relative;
  display: flex; align-items: center; min-height: 48px; padding: 0 .75rem; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 7px; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a:hover { background: rgba(10,37,64,.06); color: var(--navy); }
.primary-nav a[aria-current="page"] { color: var(--red-600); }
.header-cta { display: flex; gap: .625rem; flex: none; }
.header-cta .btn { min-height: 48px; padding: 0 1.125rem; font-size: 1rem; }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: var(--r-md);
  border: 1px solid #d6dde6; background: #fff; color: var(--navy); cursor: pointer; box-shadow: var(--shadow-sm);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto;
  background: #fff; padding: var(--s3) 1.25rem calc(var(--s8) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.mobile-menu li a {
  position: relative;
  display: flex; align-items: center; min-height: 52px; font-size: 1.1875rem; font-weight: 600;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-menu li a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 2.75rem; height: 2px; border-radius: 2px;
  background: var(--red-600); transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.mobile-menu li a:hover::after,
.mobile-menu li a:focus-visible::after,
.mobile-menu li a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu__label { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: var(--s3) 0 var(--s1); line-height: 1.1; }
.mobile-menu .btn { width: 100%; margin-bottom: .75rem; }
body.menu-open { overflow: hidden; }

@media (max-width: 1279px) { .primary-nav .nav-optional { display: none; } }
@media (max-width: 1099px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
/* Phones: full wordmark at ~45px (48px tap row) beside the menu. Emblem only under 360px. */
@media (max-width: 767px) {
  .brand { grid-template: 48px / calc(45px * 494 / 128); }
  .brand .logo-slot { height: 45px; }
  .brand .logo-slot img { height: 45px; }
}
@media (max-width: 359px) {
  .brand { grid-template: 48px / 48px; }
  .brand .logo-slot { opacity: 0; pointer-events: none; }
  .brand .logo-slot img { width: 48px; height: 48px; }
  .brand .logo-emblem { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; overflow: hidden; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media img { object-fit: cover; object-position: center 45%; opacity: 1; transform: scale(1); }
.hero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-sun {
  position: absolute; top: -6%; right: 6%; width: min(32vw, 240px); height: auto;
  filter: drop-shadow(0 0 28px rgba(255, 196, 64, .55));
}
.hero-sun__core { filter: drop-shadow(0 0 10px #ffe27a); }
.hero-godray {
  position: absolute; top: -28%; width: 26%; height: 160%;
  background: linear-gradient(180deg, rgba(255, 224, 150, .55), rgba(255, 210, 120, .12) 42%, rgba(255, 210, 120, 0) 78%);
  mix-blend-mode: screen; opacity: .2; filter: blur(10px); transform-origin: top center;
}
.hero-godray--1 { left: 18%; transform: rotate(18deg); }
.hero-godray--2 { left: 40%; width: 18%; opacity: .16; transform: rotate(24deg); }
.hero-godray--3 { left: 58%; width: 22%; opacity: .18; transform: rotate(20deg); }
/* Warm light sits on the photo, under the navy scrim. It does not cover the form. */
.hero__media::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  width: 58%; height: 80%; right: -6%; top: -18%;
  background: radial-gradient(closest-side, rgba(255, 190, 80, .45), rgba(255, 150, 40, .12) 48%, rgba(255, 150, 40, 0) 72%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,37,64,.94) 0%, rgba(10,37,64,.82) 38%, rgba(10,37,64,.38) 70%, rgba(10,37,64,.18) 100%),
    linear-gradient(0deg, rgba(10,37,64,.75) 0%, rgba(10,37,64,0) 40%);
}
.hero__inner {
  min-height: clamp(600px, calc(92vh - var(--header-h)), 860px);
  display: grid; align-items: center; gap: var(--s5);
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(7rem, 12vw, 9rem);
}
.hero__inner > * { min-width: 0; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1fr) 380px; } }
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: var(--s3); text-shadow: 0 2px 24px rgba(0,0,0,.25); font-size: clamp(2.35rem, 5.2vw, 4.15rem); }
.hero-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-word > span { display: inline-block; }
.hero__sub { font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.6; max-width: 48ch; color: #e6edf5; margin-bottom: var(--s4); }
.hero .btn-row { margin-bottom: var(--s3); }
.hero__note { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: 1rem; color: #dbe5ef; }
.hero__note li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__note svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

@media (max-width: 767px) {
  /* Dark scrim behind the headline. A lighter top-right corner lets the sun and Ken Burns read. */
  .hero::before {
    background:
      radial-gradient(130px 100px at calc(100% - 28px) 36px, rgba(10,37,64,.2), rgba(10,37,64,.78) 72%),
      linear-gradient(180deg, rgba(10,37,64,.4) 0px, rgba(10,37,64,.5) 88px, rgba(10,37,64,.92) 142px, rgba(10,37,64,.9) 420px, rgba(10,37,64,.5) 100%);
  }
  .hero__media { z-index: auto; }
  .hero__media picture { z-index: -2; }
  .hero__fx { z-index: 0; }
  .hero__inner { position: relative; z-index: 1; padding-top: 5.6rem; }
  .hero-sun {
    width: 86px; top: 6px; right: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 220, 110, .95)) drop-shadow(0 0 26px rgba(245, 180, 0, .8));
  }
  .hero-godray {
    top: 0; height: 168px; filter: blur(3px); mix-blend-mode: screen;
    background: linear-gradient(180deg, rgba(255, 248, 220, .98), rgba(255, 206, 90, .72) 38%, rgba(255, 206, 90, 0) 70%);
  }
  .hero-godray--1 { left: auto; right: 46px; width: 22px; opacity: .95; }
  .hero-godray--2 { left: auto; right: 8px; width: 18px; opacity: .8; }
  .hero-godray--3 { left: auto; right: 78px; width: 16px; opacity: .7; }
  .hero h1, .hero__sub, .hero__note {
    text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 8px 22px rgba(0,0,0,.5);
  }
  .hero .eyebrow { text-shadow: 0 1px 2px rgba(0,0,0,.65); }
}

/* Page hero (inner pages) */
.hero--page .hero__inner { min-height: clamp(460px, 62vh, 640px); padding-block: var(--s6) clamp(7rem, 12vw, 9rem); }
.hero--page h1 { max-width: 16ch; font-size: clamp(2.5rem, 6vw, 4.25rem); }
.hero--page:has(.quote-float) h1 { max-width: 18ch; font-size: clamp(2.15rem, 4.8vw, 3.5rem); }

/* Floating glass quote element */
.quote-float {
  position: relative; border-radius: var(--r-xl); padding: var(--s4); min-width: 0;
  background: rgba(255,255,255,.94); color: var(--text);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.8);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .quote-float { background: rgba(255,255,255,.97); } }
.quote-float h2 { font-size: 1.375rem; line-height: 1.25; margin-bottom: .35rem; }
.quote-float p { font-size: 1rem; color: #374151; }
.quote-float .phone-big { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); text-decoration: none; margin: .75rem 0 .25rem; min-height: 48px; line-height: 48px; }
.quote-float .phone-big:hover { color: var(--red-600); }
.quote-float .btn { width: 100%; margin-top: var(--s2); }
.quote-float .quote-float__anytime { margin: var(--s2) 0 0; font-weight: 700; color: var(--navy); }
.quote-float .form-status { color: #6b4b00; }
.hero-form { margin-top: .75rem; }
.hero-form .field + .field { margin-top: .75rem; }
.quote-float .consent { color: #374151; margin-bottom: 0; }
.quote-float .consent a { font-weight: 700; }
@media (max-width: 1023px) { .quote-float { max-width: 520px; } }
.hero--page .quote-float { padding: var(--s3); }
.hero--page .quote-float h2 { font-size: 1.25rem; }

/* ---------- Trust bar (overlaps hero) ---------- */
.trust { position: relative; z-index: 2; margin-top: calc(-1 * clamp(4rem, 8vw, 5.5rem)); }
.trust__card {
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
  display: grid; gap: 0; overflow: hidden; border: 1px solid rgba(10,37,64,.06);
}
@media (min-width: 900px) { .trust__card { grid-template-columns: 1.5fr 1fr 1fr; } }
.trust__item { padding: var(--s3); display: flex; gap: .875rem; align-items: flex-start; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .trust__item { border-bottom: 0; border-right: 1px solid var(--line); } .trust__item:last-child { border-right: 0; } }
.trust__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #f1f4f8); box-shadow: var(--shadow-md); color: var(--red); }
.trust__icon svg { width: 22px; height: 22px; }
.trust__item strong { display: block; color: var(--navy); font-size: 1.0625rem; line-height: 1.3; margin-bottom: .25rem; }
.trust__item p, .trust__item ul { margin: 0; font-size: .9375rem; line-height: 1.5; color: #4b5563; }
.trust__item ul { list-style: none; padding: 0; }
.trust__item a { font-weight: 700; display: inline-flex; min-height: 48px; align-items: center; }
.trust { display: grid; gap: var(--s3); }

/* ---------- Stats bar (overlaps hero; same card language as trust) ---------- */
.stats__card {
  background: var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(10,37,64,.06);
}
@media (min-width: 520px) { .stats__card { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats__card { grid-template-columns: repeat(4, 1fr); } }
.stats__item {
  background: #fff;
  padding: 1.15rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.stats__item p {
  margin: 0; width: 100%; color: var(--navy); font-weight: 700; font-size: 1.0625rem; line-height: 1.35;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.stats__item a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  width: 100%;
  min-height: 48px;
}
.stats__item a:hover { color: var(--red-600); text-decoration: underline; }
.stats__phrase {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  width: 100%; min-width: 0; text-align: center;
}
.stat-kicker {
  display: block; min-height: 1.25em; font-size: .95rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
}
.stat-kicker:empty { display: none; }
@media (min-width: 900px) {
  .stat-kicker:empty { display: block; }
}
.stat-label {
  display: block; max-width: 24ch; padding-inline: .85rem;
  font-size: 1.02rem; font-weight: 700; line-height: 1.35;
}
.count-num {
  display: inline-block; white-space: nowrap; text-align: center; vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.stat-meter {
  display: flex; flex-direction: column; align-items: center; width: 100%; gap: .55rem;
}
.stat-figure {
  display: inline-flex; align-items: baseline; justify-content: center; gap: .28rem;
  min-height: 1.05em; padding-inline: .5rem;
  font-size: clamp(2.35rem, 4vw, 3.35rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--navy);
}
.stat-meter .count-num {
  font-size: 1em; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--navy);
}
.stat-star { font-size: .5em; line-height: 1; color: #8A5A00; }
.stat-label .count-num { font-size: 1.05em; font-weight: 800; letter-spacing: 0; }
.stat-bar {
  display: block; width: 100%; height: 4px; border-radius: 4px;
  background: rgba(10,37,64,.1); overflow: hidden;
}
.stat-bar__fill {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: #F5B400;
  transform: scaleX(calc(var(--ring, 100) / 100));
  transform-origin: left center;
}

/* ---------- Customer quotes (visible text only; no Review schema) ---------- */
.quotes { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quotes__viewport { min-width: 0; }
.quotes__track { display: contents; }
.quotes__controls, .quotes__dots { display: none; }
.quotes.is-carousel {
  display: grid; gap: .75rem; justify-items: center;
  grid-template-columns: 1fr;
}
.section:has(.quotes) { padding-bottom: .75rem; }
.section:has(.quotes) + .section { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.quotes__nav { display: none; width: 100%; }
.quotes.is-carousel .quotes__nav {
  display: grid; justify-items: center; gap: .15rem; width: 100%;
}
.quotes.is-carousel .quotes__viewport { overflow: hidden; width: 100%; border-radius: var(--r-xl); }
.quotes.is-carousel .quotes__track {
  display: flex; transition: transform .65s cubic-bezier(.16,1,.3,1); will-change: transform;
}
.quotes.is-carousel .quote-slide { flex: 0 0 100%; max-width: 100%; min-width: 0; }
.quotes.is-carousel .quote { height: 100%; }
.quotes__controls {
  display: none; align-items: center; justify-content: center; gap: .5rem;
}
.quotes.is-carousel .quotes__controls, .quotes.is-carousel .quotes__dots { display: flex; }
.quotes__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #d6dde6; background: #fff;
  color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.quotes__btn svg { width: 20px; height: 20px; }
.quotes__btn:hover, .quotes__btn:focus-visible { border-color: var(--navy); box-shadow: var(--shadow-md); }
.quotes__btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.quotes__dots { gap: .5rem; align-items: center; justify-content: center; }
.quotes__dot {
  width: 12px; height: 12px; min-width: 48px; min-height: 48px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: grid; place-items: center;
}
.quotes__dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #c5ced8;
}
.quotes__dot[aria-current="true"]::after { background: var(--red-600); transform: scale(1.25); }
.quote {
  margin: 0;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10,37,64,.05);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.quote blockquote { margin: 0 0 var(--s3); }
.quote blockquote p { margin: 0; color: #374151; }
.quote figcaption { font-weight: 700; color: var(--navy); }
.quote figcaption a {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .35rem;
  min-height: 48px; font-weight: 700; color: var(--navy); text-decoration: none;
}
.quote figcaption a:hover { color: var(--red-600); }
.quote__stars { color: #8A5A00; letter-spacing: .14em; font-size: 1.125rem; line-height: 1; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .cards--4, .cards--3, .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(10,37,64,.05);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe6ee; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
  position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(10,37,64,.88); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  box-shadow: var(--shadow-md);
}
.card__body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { color: #4b5563; font-size: 1rem; flex: 1; }
.card__body .text-link { margin-top: auto; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link { text-decoration: none; color: inherit; }
.card__link:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Feature tiles (icon cards) */
.tile { background: #fff; border-radius: var(--r-lg); padding: var(--s3); box-shadow: var(--shadow-md); border: 1px solid rgba(10,37,64,.05); }
.tile h3 { font-size: 1.1875rem; margin-bottom: .5rem; }
.tile p { margin: 0; color: #4b5563; font-size: 1rem; }
.tile__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--s2);
  background: linear-gradient(145deg, var(--navy-700), var(--navy)); color: var(--gold);
  box-shadow: 0 1px 2px rgba(10,37,64,.3), 0 8px 18px rgba(10,37,64,.25), inset 0 1px 0 rgba(255,255,255,.15); }
.tile__icon svg { width: 26px; height: 26px; }
.section--navy .tile { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.section--navy .tile h3 { color: #fff; }
.section--navy .tile p { color: var(--muted-on-dark); }

/* ---------- Brand showcase (3D wordmark on navy) ---------- */
.feature-brand { position: relative; }
.feature-brand::before { content: ""; position: absolute; inset: auto 0 0 28%; height: 78%;
  background: radial-gradient(closest-side, rgba(242,2,0,.22), rgba(242,2,0,0)); pointer-events: none; }
.feature-brand::after { content: ""; position: absolute; inset: 0 36% auto 0; height: 70%;
  background: radial-gradient(closest-side, rgba(245,183,0,.10), rgba(245,183,0,0)); pointer-events: none; }
.feature-brand .container { position: relative; z-index: 1; }
.brand-stage {
  position: relative; display: grid; place-items: center;
  min-height: 220px; padding: var(--s5) 0 var(--s6);
}
/* Desktop column is much taller than the stage. Stick the stage at the
   viewport center so the wordmark stays in the column instead of sitting high. */
@media (min-width: 900px) {
  .feature-brand .brand-stage {
    align-self: center;
    position: sticky;
    top: max(calc(var(--header-h) + 12px), calc(50vh - 7.25rem));
    z-index: 1;
  }
}
.brand-stage__glow {
  position: absolute; left: 50%; top: 42%; z-index: 0; pointer-events: none;
  width: min(118%, 640px); height: 190px; transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(242,2,0,.46), rgba(242,2,0,0) 70%),
    radial-gradient(closest-side, rgba(245,183,0,.28), rgba(245,183,0,0) 72%);
  filter: blur(12px);
}
.logo-slot--showcase {
  position: relative; z-index: 1; display: block;
  width: min(100%, 560px); aspect-ratio: 1200 / 311;
}
.logo-slot--showcase img {
  width: 100%; height: auto; object-fit: contain;
}
.brand-stage__floor {
  position: absolute; left: 14%; right: 14%; bottom: 14%; height: 28px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0));
  filter: blur(8px);
}
.why-list { display: grid; gap: var(--s2); margin-top: var(--s4); }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; gap: var(--s3); list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } .steps--6 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border-radius: var(--r-xl); padding: var(--s4) var(--s3) var(--s3); box-shadow: var(--shadow-lg); }
/* Decorative connector in the existing grid gap. Fully drawn unless JS arms a scale draw. */
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 2px;
  top: 100%; left: calc(var(--s3) + 27px); width: 2px; height: var(--s3);
  background: rgba(10, 37, 64, .38);
  transform: scaleY(1); transform-origin: top center;
}
@media (min-width: 900px) {
  .steps--3 .step:not(:last-child)::after,
  .steps--6 .step:not(:nth-child(3n))::after {
    top: calc(var(--s4) + 27px); left: 100%; width: calc(var(--s3) + 1px); height: 2px;
    transform: scaleX(1); transform-origin: left center;
  }
  .steps--6 .step:nth-child(3)::after { content: none; }
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: var(--s2);
  font-weight: 800; font-size: 1.25rem; color: #fff;
  background: linear-gradient(145deg, var(--red-600), var(--red-700) 55%, #A00200);
  box-shadow: 0 1px 2px rgba(120,0,0,.3), 0 8px 18px rgba(242,2,0,.3), inset 0 1px 0 rgba(255,255,255,.3);
  transform-origin: center;
}
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { margin: 0; color: #4b5563; font-size: 1rem; }

/* ---------- Logos ---------- */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s2) var(--s3); list-style: none; padding: 0; margin: 0; }
/* Mask lives on the track wrapper only, never on a caption sibling. */
.marquee-host { overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-row.is-marquee, .finance-partners.is-marquee {
  display: flex; flex-wrap: nowrap; justify-content: flex-start; width: max-content;
  gap: var(--s2) var(--s3);
}
.logo-chip {
  display: grid; place-items: center; height: 96px; padding: 0 var(--s3); min-width: 160px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); border: 1px solid rgba(10,37,64,.05);
  flex: none;
}
.logo-chip img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.logo-chip--tall img { height: 60px; }
.logo-group + .logo-group { margin-top: var(--s5); }
.logo-group h3 { text-align: center; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }

/* ---------- Financing ---------- */
.finance-card { background: #fff; border-radius: var(--r-2xl); box-shadow: var(--shadow-xl); padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid rgba(10,37,64,.05); }
.finance-lead { font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.finance-card--strip { display: grid; gap: var(--s3); align-items: center; }
@media (min-width: 900px) { .finance-card--strip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.finance-card--strip .finance-partners { margin-top: 0; }
@media (min-width: 900px) { .finance-card--strip .finance-partners { grid-template-columns: repeat(3, 1fr); } }
.finance-partners { display: grid; gap: var(--s2); margin-top: var(--s3); list-style: none; padding: 0; }
@media (min-width: 640px) and (max-width: 899px) { .finance-partners { grid-template-columns: repeat(3, 1fr); } }
.finance-partners li {
  position: relative; display: grid; place-items: center; height: 76px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.finance-partners img { height: 34px; width: auto; max-width: 72%; object-fit: contain; position: relative; z-index: 1; }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: .625rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.section--navy .check-list li::before { background-color: var(--gold); }

/* ---------- Portfolio ---------- */
.gallery { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1; background: #dfe6ee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Roof types ---------- */
.roof-types .card__media { aspect-ratio: 4 / 3; }

/* ---------- Media framed ---------- */
.framed { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-xl); background: #dfe6ee; }
.framed img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s2); max-width: 880px; margin-inline: auto; }
.faq details { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); border: 1px solid rgba(10,37,64,.05); transition: box-shadow var(--dur) var(--ease); }
.faq details[open] { box-shadow: var(--shadow-lg); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 64px; padding: var(--s2) var(--s3); font-weight: 700; font-size: 1.125rem; color: var(--navy); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2540' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.faq .faq__a { padding: 0 var(--s3) var(--s3); color: #374151; }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- Quote form ---------- */
.quote-section { position: relative; overflow: hidden; }
.quote-wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .quote-wrap { grid-template-columns: .9fr 1.1fr; } }
.quote-card { background: #fff; color: var(--text); border-radius: var(--r-2xl); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-xl); border: 1px solid rgba(10,37,64,.05); }
.quote-card h2, .quote-card h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.form-grid { display: grid; gap: var(--s2); }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .375rem; }
.field label .req { color: var(--red-600); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 1rem; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid #cbd5e1; border-radius: var(--r-md);
  box-shadow: inset 0 1px 2px rgba(10,37,64,.06);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field select { appearance: none; padding-right: 2.75rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2540' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(245,183,0,.45); }
.field input[aria-invalid="true"] { border-color: var(--red-600); }
.consent { font-size: 1rem; line-height: 1.55; color: #374151; margin: var(--s2) 0; }
.form-status { margin: var(--s2) 0 0; padding: .875rem 1rem; border-radius: var(--r-md); font-weight: 600; font-size: 1rem; background: #fff7e0; color: #6b4b00; border: 1px solid #f3d27a; }
.form-status[hidden] { display: none; }
.contact-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.contact-list li { display: flex; gap: var(--s2); align-items: flex-start; }
.contact-list .ci { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: #fff; }
.contact-list a { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; }
.contact-list a:hover { color: var(--gold); }
.contact-list span { color: var(--muted-on-dark); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .9375rem; margin-bottom: var(--s3); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: #cfd9e4; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumbs a { color: #fff; text-decoration: none; display: inline-flex; min-height: 48px; min-width: 48px; align-items: center; }
.breadcrumbs a:hover { text-decoration: underline; color: #fff; }
.breadcrumbs li { display: inline-flex; align-items: center; }

/* ---------- Prose & misc ---------- */
.prose { max-width: 70ch; }
.prose p, .prose li { color: #374151; }
.prose h3 { margin-top: var(--s4); }
.callout { border-left: 4px solid var(--gold); background: #fffbeb; padding: var(--s2) var(--s3); border-radius: 0 var(--r-md) var(--r-md) 0; margin: var(--s3) 0; }
.callout ul { margin: .5rem 0 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: .5rem 1rem; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-size: 1rem; font-weight: 600; color: var(--navy); }
.link-grid { display: grid; gap: var(--s2); list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .link-grid { grid-template-columns: repeat(4, 1fr); } }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 0 var(--s3);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); font-weight: 700; color: var(--navy); text-decoration: none;
  border: 1px solid rgba(10,37,64,.05); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.link-grid a::after { content: "→"; color: var(--red); }
.helper-cards .tile a { font-weight: 700; display: inline-flex; min-height: 48px; align-items: center; }

/* Map facade */
.map-facade { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xl); background: var(--navy); aspect-ratio: 16 / 10; }
.map-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.map-facade__inner { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s2); text-align: center; color: #fff; padding: var(--s3); }
.map-facade__inner p { margin: 0; font-weight: 700; font-size: 1.25rem; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Final CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #e8eef5; }
.cta-band h2 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #071b30; color: var(--muted-on-dark); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: 1rem; }
.footer-top { display: grid; gap: var(--s5); padding-bottom: var(--s6); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-logo-slot { display: block; width: 220px; max-width: 100%; margin-bottom: var(--s2); }
.footer-brand img.footer-logo {
  width: 220px; max-width: 100%; height: auto; aspect-ratio: 494 / 128;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
}
.to-top {
  display: inline-flex; align-items: center; gap: .625rem; min-height: 48px; min-width: 48px;
  margin-top: .25rem; color: #fff; font-weight: 700; font-size: .9375rem; text-decoration: none;
}
.to-top img { width: 36px; height: 36px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.to-top:hover { color: #fff; }
.site-footer h2 { font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; color: #dbe5ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .footer-phone { font-size: 1.375rem; font-weight: 800; color: #fff; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--s3); font-size: .9375rem; display: grid; gap: .5rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: #fff; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .625rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .625rem .75rem calc(.625rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(10,37,64,.12);
  }
  .mobile-bar .btn { min-height: 52px; padding: 0 .75rem; font-size: 1rem; }
}

/* ---------- Energy-flow accent ---------- */
.energy-flow { display: block; width: min(100%, 280px); height: auto; margin: 0 0 var(--s3); }
.energy-flow .energy-cell { fill: #123a63; }
.energy-flow .energy-wire { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 7 9; stroke-linecap: round; }
.energy-flow .energy-bolt { fill: var(--gold); }

.btn--primary { box-shadow: var(--shadow-red); }
.btn--ghost { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }

.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 14px 36px rgba(10,37,64,.18);
}
/* Below 768 the scrolled header crossfades to the emblem. Opacity/transform only. */
.site-header.is-scrolled .logo-slot { opacity: 0; transform: scale(.96); pointer-events: none; }
.site-header.is-scrolled .logo-emblem { opacity: 1; transform: none; pointer-events: auto; }
/* Desktop keeps the wordmark and scales it down. The slot width does not change. */
@media (min-width: 768px) {
  .site-header.is-scrolled .brand .logo-slot {
    opacity: 1; transform: scale(0.85); pointer-events: auto;
  }
  .site-header.is-scrolled .brand .logo-emblem {
    opacity: 0; transform: scale(.92); pointer-events: none;
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .primary-nav a::after,
  .mobile-menu li a::after { transition: transform 280ms var(--ease); }

  .site-header { transition: box-shadow 360ms var(--ease), background-color 360ms var(--ease); }
  .brand .logo-slot,
  .brand .logo-emblem { transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
  .scroll-progress span { transition: transform 80ms linear; }

  /* LCP image stays opacity 1 and starts at scale(1). */
  .hero__media img { animation: hero-ken 20s ease-in-out infinite alternate; }
  .hero__media::before { animation: hero-glow 8s ease-in-out infinite alternate; }
  .hero-sun__rays { transform-origin: 80px 80px; animation: sun-spin 60s linear infinite; }
  .hero-sun__halo { animation: sun-pulse 3.2s ease-in-out infinite; }
  .hero-godray--1 { animation: godray-sweep 9s ease-in-out infinite; }
  .hero-godray--2 { animation: godray-sweep 11s ease-in-out 1.6s infinite; }
  .hero-godray--3 { animation: godray-sweep 12s ease-in-out 3.2s infinite; }

  .hero-word > span {
    animation: hero-word-up .72s cubic-bezier(.16,1,.3,1) both;
    animation-delay: calc(var(--wi, 0) * 70ms);
  }
  .hero .eyebrow { animation: eyebrow-in .7s cubic-bezier(.16,1,.3,1) both; }
  .hero .eyebrow::before { transform-origin: left center; animation: line-draw .8s cubic-bezier(.16,1,.3,1) .12s both; }
  .hero__sub { animation: fade-up .7s cubic-bezier(.16,1,.3,1) .45s both; }
  .hero .btn-row .btn { animation: btn-pop .62s cubic-bezier(.16,1.4,.3,1) both; }
  .hero .btn-row .btn:nth-child(1) { animation-delay: .72s; }
  .hero .btn-row .btn:nth-child(2) { animation-delay: .82s; }
  .hero__note li { animation: fade-up .55s cubic-bezier(.16,1,.3,1) both; }
  .hero__note li:nth-child(1) { animation-delay: .9s; }
  .hero__note li:nth-child(2) { animation-delay: 1s; }
  .hero__note li:nth-child(3) { animation-delay: 1.08s; }
  .quote-float { animation: form-in .8s cubic-bezier(.16,1,.3,1) .35s both; }

  .logo-slot--showcase { animation: brand-float 6s ease-in-out infinite; }

  .btn--primary::before {
    content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 42%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
    transform: translateX(-220%); pointer-events: none;
  }
  .btn--primary:hover::before,
  .btn--primary:focus-visible::before { animation: btn-sheen 680ms var(--ease); }
  .btn--primary:hover, .btn--primary:focus-visible {
    box-shadow: 0 2px 6px rgba(162,10,0,.28), 0 14px 32px rgba(242,2,0,.42), 0 0 0 4px rgba(242,2,0,.16);
  }
  .btn--ghost:hover, .btn--ghost:focus-visible {
    box-shadow: 0 0 0 3px rgba(245,183,0,.35), 0 8px 22px rgba(245,183,0,.18);
  }

  .js .reveal {
    opacity: 0; transform: translateY(52px);
    transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), box-shadow 280ms var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: translateY(0); }

  .js .section-head.reveal h2,
  .js h2.reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path .9s cubic-bezier(.16,1,.3,1);
  }
  .js .section-head.reveal.is-in h2,
  .js h2.reveal.is-in { clip-path: inset(0); }

  .js .card.reveal,
  .js .tile.reveal,
  .js .step .reveal {
    transform: translateY(44px) scale(.92);
  }
  .js .card.reveal.is-in,
  .js .tile.reveal.is-in,
  .js .step .reveal.is-in { transform: translateY(0) scale(1); }

  .js .card.reveal .card__media img,
  .js .gallery figure.reveal img,
  .js .framed.reveal img {
    transform: scale(1.12);
    transition: transform 1.1s cubic-bezier(.16,1,.3,1);
  }
  .js .card.reveal.is-in .card__media img,
  .js .gallery figure.reveal.is-in img,
  .js .framed.reveal.is-in img { transform: scale(1); }

  .js .quotes.is-carousel .quote.reveal { opacity: 1; transform: none; }

  .js .steps:not(.is-drawn) .step::after { transform: scaleY(0); }
  .js .steps.is-drawn .step::after { transform: scaleY(1); transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
  .js .steps.is-drawn .step:nth-child(2)::after { transition-delay: 160ms; }
  .js .steps.is-drawn .step:nth-child(3)::after { transition-delay: 320ms; }
  .js .steps.is-drawn .step:nth-child(4)::after { transition-delay: 480ms; }
  .js .steps.is-drawn .step:nth-child(5)::after { transition-delay: 640ms; }

  .js .steps:not(.is-drawn) .step::before { transform: scale(0); }
  .js .steps.is-drawn .step::before { animation: step-pop .55s cubic-bezier(.16,1.2,.3,1) both; }
  .js .steps.is-drawn .step:nth-child(2)::before { animation-delay: .2s; }
  .js .steps.is-drawn .step:nth-child(3)::before { animation-delay: .4s; }
  .js .steps.is-drawn .step:nth-child(4)::before { animation-delay: .6s; }
  .js .steps.is-drawn .step:nth-child(5)::before { animation-delay: .8s; }
  .js .steps.is-drawn .step:nth-child(6)::before { animation-delay: 1s; }

  .js .stats__card:not(.is-counted) .stat-bar__fill { transform: scaleX(0); }
  .js .stats__card.is-counted .stat-bar__fill {
    transform: scaleX(calc(var(--ring, 100) / 100));
    transition: transform 1.8s cubic-bezier(.16,1,.3,1);
  }

  .energy-flow .energy-cell,
  .energy-flow .energy-wire,
  .energy-flow .energy-bolt { animation-play-state: paused; }
  .energy-flow.is-on .energy-cell { animation: cell-lit 2.4s ease-in-out infinite; }
  .energy-flow.is-on .energy-wire { animation: energy-dash 1.1s linear infinite; }
  .energy-flow.is-on .energy-bolt { animation: bolt-pulse 1.6s ease-in-out infinite; }
  .energy-flow.is-on .energy-cell:nth-child(1) { animation-delay: 0s; }
  .energy-flow.is-on .energy-cell:nth-child(2) { animation-delay: .08s; }
  .energy-flow.is-on .energy-cell:nth-child(3) { animation-delay: .16s; }
  .energy-flow.is-on .energy-cell:nth-child(4) { animation-delay: .24s; }
  .energy-flow.is-on .energy-cell:nth-child(5) { animation-delay: .12s; }
  .energy-flow.is-on .energy-cell:nth-child(6) { animation-delay: .2s; }
  .energy-flow.is-on .energy-cell:nth-child(7) { animation-delay: .28s; }
  .energy-flow.is-on .energy-cell:nth-child(8) { animation-delay: .36s; }
  .energy-flow.is-on .energy-cell:nth-child(9) { animation-delay: .24s; }
  .energy-flow.is-on .energy-cell:nth-child(10) { animation-delay: .32s; }
  .energy-flow.is-on .energy-cell:nth-child(11) { animation-delay: .4s; }
  .energy-flow.is-on .energy-cell:nth-child(12) { animation-delay: .48s; }

  .logo-row.is-marquee { animation: marquee 32s linear infinite; }
  .marquee-host:hover .is-marquee,
  .marquee-host:focus-within .is-marquee { animation-play-state: paused; }

  .finance-partners li { animation: partner-float 5.5s ease-in-out infinite; }
  .finance-partners li:nth-child(2) { animation-delay: .4s; }
  .finance-partners li:nth-child(3) { animation-delay: .8s; }
  .finance-partners li::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%);
    transform: translateX(-140%);
    animation: partner-sheen 5.5s ease-in-out infinite;
  }
  .finance-partners li:nth-child(2)::after { animation-delay: .4s; }
  .finance-partners li:nth-child(3)::after { animation-delay: .8s; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-ken 20s ease-in-out infinite alternate; transform-origin: 62% 40%; }
  .hero-godray--1 { animation: godray-sweep-m 9s ease-in-out infinite; }
  .hero-godray--2 { animation: godray-sweep-m 11s ease-in-out 1.4s infinite; }
  .hero-godray--3 { animation: godray-sweep-m 12s ease-in-out 2.6s infinite; }
}
@media (max-width: 767px) {
  .quotes.is-carousel .quotes__nav {
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    gap: .1rem; scroll-margin-bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .quotes.is-carousel .quotes__dots { gap: 0; }
  .quotes.is-capped .quote { overflow: hidden; min-height: 0; }
  .quotes.is-capped .quote blockquote {
    flex: 1 1 auto; min-height: 0; margin-bottom: .75rem;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .steps:not(.is-drawn) .step::after { transform: scaleX(0); }
  .js .steps.is-drawn .step::after { transform: scaleX(1); }
  .js .card.reveal {
    transform: perspective(800px) rotateX(18deg) translateY(40px) scale(.92);
    transform-origin: center bottom;
  }
  .js .card.reveal.is-in { transform: perspective(800px) rotateX(0deg) translateY(0) scale(1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover,
  .js .card.reveal.is-in:hover,
  .tile:hover,
  .js .tile.reveal.is-in:hover,
  .step:hover,
  .quote:hover,
  .js .quote.reveal.is-in:hover,
  .logo-chip:hover,
  .js .logo-chip.reveal.is-in:hover,
  .finance-partners li:hover,
  .finance-card:hover,
  .js .finance-card.reveal.is-in:hover,
  .gallery figure:hover,
  .js .gallery figure.reveal.is-in:hover,
  .link-grid a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
  .js .card.reveal.is-in:hover { transform: perspective(800px) rotateX(0) translateY(-4px) scale(1); }
  .card:hover .card__media img,
  .gallery figure:hover img { transform: scale(1.045); }
  .card__media img,
  .gallery img { transition: transform 400ms var(--ease); }
  .tile, .step, .quote, .logo-chip, .finance-partners li, .finance-card, .gallery figure {
    transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn--primary.is-magnet {
    transition: transform 80ms linear, box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
    transform: translate(var(--mx, 0px), var(--my, 0px));
  }
  .btn--primary.is-magnet:hover { transform: translate(var(--mx, 0px), var(--my, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .card:has(:focus-visible),
  .js .card.reveal.is-in:has(:focus-visible),
  .tile:has(:focus-visible),
  .js .tile.reveal.is-in:has(:focus-visible),
  .quote:has(:focus-visible),
  .js .quote.reveal.is-in:has(:focus-visible),
  .link-grid a:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
}
html.tab-hidden * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .hero-word > span, .hero .eyebrow, .hero__sub, .hero .btn-row .btn, .hero__note li, .quote-float { animation: none !important; transform: none !important; }
  .hero__media img { transform: scale(1) !important; }
  .logo-slot--showcase { animation: none !important; }
  .card:hover, .btn:hover, .btn:active, .link-grid a:hover, .tile:hover, .step:hover, .quote:hover,
  .logo-chip:hover, .finance-partners li:hover, .finance-card:hover, .gallery figure:hover { transform: none; }
  .card:hover .card__media img, .gallery figure:hover img { transform: none; }
  .stat-bar__fill { transform: scaleX(calc(var(--ring, 100) / 100)); }
  .finance-partners li,
  .finance-partners li::after { animation: none !important; transform: none; }
}
@keyframes hero-ken {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.15) translate(-3%, 2%); }
}
@keyframes hero-glow { from { opacity: .7; } to { opacity: 1; } }
@keyframes hero-word-up { from { transform: translateY(.65em); } to { transform: translateY(0); } }
@keyframes eyebrow-in { from { transform: translateX(-28px); } to { transform: none; } }
@keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes btn-pop { from { transform: scale(.85); } 72% { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes form-in {
  from { transform: translateX(40px); box-shadow: 0 8px 24px rgba(10,37,64,.08); }
  to { transform: none; box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.8); }
}
@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes godray-sweep {
  0%, 100% { transform: rotate(16deg) translateX(-10%); opacity: .1; }
  50% { transform: rotate(26deg) translateX(14%); opacity: .24; }
}
@keyframes godray-sweep-m {
  0%, 100% { transform: rotate(10deg) translateX(-4px); opacity: .62; }
  50% { transform: rotate(22deg) translateX(8px); opacity: .95; }
}
@keyframes partner-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes partner-sheen {
  0%, 58% { transform: translateX(-140%); }
  82%, 100% { transform: translateX(140%); }
}
@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes btn-sheen { to { transform: translateX(380%); } }
@keyframes step-pop { 0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes cell-lit {
  0%, 55%, 100% { fill: #123a63; }
  22% { fill: #F5B700; }
}
@keyframes energy-dash { to { stroke-dashoffset: -32; } }
@keyframes bolt-pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Batch 1 service pages: spec / feature lists (unused on existing pages) */
.spec-list {
  display: grid;
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px) {
  .spec-list { grid-template-columns: 1fr 1fr; }
}
.spec-list li {
  background: #fff;
  border: 1px solid rgba(10,37,64,.08);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}
.spec-list strong {
  display: block;
  color: var(--navy);
  font-size: 1.0625rem;
  margin-bottom: .25rem;
}
.spec-list span { color: #4b5563; font-size: 1rem; line-height: 1.5; }

/* Batch 2: careers and service-request textareas; spec-list headings */
.field textarea {
  width: 100%;
  min-height: 140px;
  padding: .875rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 2px rgba(10,37,64,.06);
  resize: vertical;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(245,183,0,.45);
}
.field textarea[aria-invalid="true"] { border-color: var(--red-600); }
.spec-list h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 .25rem;
  color: var(--navy);
}
.spec-list p { margin: 0; color: #4b5563; font-size: 1rem; line-height: 1.5; }

/* Batch 3: blog cards and the privacy-policy cookie table */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s3);
}
.post-list > li { margin: 0; }
.post-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  min-height: 48px;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(10,37,64,.06);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-decoration: none;
}
.post-list a:hover,
.post-list a:focus-visible {
  color: inherit;
  box-shadow: var(--shadow-lg);
}
.post-list h2,
.post-list h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--navy);
}
.post-list p {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.5;
}
.post-list .text-link { font-weight: 700; color: var(--red-600); }
.table-wrap {
  overflow-x: auto;
  margin: var(--s3) 0;
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.prose th {
  color: var(--navy);
  font-weight: 700;
  background: #f8fafc;
}


/* ASRA 2026 theme additions */
.asra-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.wp-fallback { padding: 4rem 0 5rem; }
.wp-fallback .btn + .btn { margin-left: .75rem; }
