/* ==========================================================================
   NEXGEN ROOFING SYSTEMS — Design System & Site Styles
   --------------------------------------------------------------------------
   Every color here is derived from the official logo:
     Nexgen Gold  #FDB625  (measured median of the logo's gold pixels)
     Nexgen Royal #021A9E  (measured median of the logo's blue pixels)
   Type mirrors the logo: Montserrat heavy italic (NEXGEN) for display,
   Montserrat light/italic with wide tracking (ROOFING SYSTEMS) for eyebrows.
   The logo's roof pitch (~38.7°, rise/run 0.8) drives the diagonal motifs.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --gold-300: #FED787;
  --gold-400: #FEC851;
  --gold-500: #FDB625;          /* brand gold */
  --gold-600: #E89E0B;
  --gold-700: #B97A00;
  --gold-800: #8A5A00;          /* gold that passes AA on white for text */
  --navy-50:  #F2F4FD;
  --navy-100: #E3E8FB;
  --navy-200: #C3CDF5;
  --navy-400: #4A63DB;
  --navy-500: #1F3BC6;
  --navy-600: #021A9E;          /* brand royal blue */
  --navy-700: #02137A;
  --navy-800: #010E5A;
  --navy-900: #010A3D;
  --navy-950: #00062A;

  /* Neutrals (cool, tinted toward the brand blue) */
  --ink: #0B1020;
  --ink-2: #2A3150;
  --muted: #545C7A;
  --line: #E1E5F0;
  --line-strong: #C9CFE0;
  --paper: #FFFFFF;
  --mist: #F5F7FC;
  --mist-2: #ECEFF8;

  /* Functional */
  --danger: #C62828;
  --success: #1B7F4B;

  /* Type */
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* One shared scale. rem-based (follows browser text-size settings); headings ease between a
     phone minimum and a desktop maximum. Use these tokens instead of one-off sizes. */
  --fs-2xs: 0.8125rem;                                    /* 13px  uppercase micro-labels, tags, badges */
  --fs-xs: 0.875rem;                                      /* 14px  captions, meta, hints, fine print */
  --fs-sm: 1rem;                                          /* 16px  supporting copy: cards, lists, notes */
  --fs-base: 1.0625rem;                                   /* 17px  body */
  --fs-lg: clamp(1.0625rem, 0.4vw + 0.98rem, 1.3125rem);  /* 17–21 lead paragraphs */
  --fs-h4: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem);       /* 17–20 card / item titles */
  --fs-h3: clamp(1.1875rem, 0.65vw + 1.05rem, 1.625rem);  /* 19–26 sub-section titles */
  --fs-h2-sm: clamp(1.375rem, 1.2vw + 1.1rem, 2rem);      /* 22–32 compact section titles (asides, related, forms) */
  --fs-h2: clamp(1.625rem, 2.75vw + 1rem, 3rem);          /* 26–48 section titles */
  --fs-h1: clamp(2rem, 4.2vw + 1.1rem, 4.5rem);           /* 32–72 page titles */
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-body: 1.68;

  /* Space (8pt) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4rem, 7vw, 7.5rem);
  --gutter: clamp(1rem, 3vw, 2rem);
  --container: 1240px;

  /* Shape — angular like the logo, small radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(1, 10, 61, .06), 0 2px 8px rgba(1, 10, 61, .06);
  --shadow-md: 0 6px 24px -6px rgba(1, 10, 61, .18), 0 2px 6px rgba(1, 10, 61, .06);
  --shadow-lg: 0 24px 60px -18px rgba(1, 10, 61, .35);
  --shadow-gold: 0 10px 30px -10px rgba(253, 182, 37, .65);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-settle: cubic-bezier(.34, 1.4, .64, 1);   /* "shingle settles into place" */
  --dur: .35s;

  /* Patterns */
  --shingle-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cpath d='M0 47.5H96M0 23.5H96M24 0V23.5M72 0V23.5M0 24V47.5M48 24V47.5' stroke='%23fff' stroke-opacity='.055' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  --header-h: 76px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;   /* clip (not hidden) keeps position:sticky working */
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-600); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy-500); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
blockquote { margin: 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--gold-500); color: var(--navy-900); }
main:focus { outline: none; }

/* Focus: thick gold ring with navy offset — visible on both light and dark */
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-400); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--gold-500); color: var(--navy-900);
  padding: .75rem 1.25rem; font-weight: 800; border-radius: var(--r-sm); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 var(--s-4); letter-spacing: -.015em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; font-weight: 800; }
.h2-sm { font-size: var(--fs-h2-sm); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); font-weight: 700; }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); font-weight: 700; }
/* Two-tone accent echoing NEX|GEN */
h1 em, h2 em, .display em { font-style: italic; font-weight: 900; color: var(--navy-600); }
.on-dark h1 em, .on-dark h2 em, .hero h1 em, .page-hero h1 em, .section--navy h2 em, .cta-band em, .faith-band em { color: var(--gold-500); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.on-dark .lead { color: rgba(255, 255, 255, .82); }
.muted { color: var(--muted); }
.text-pretty { text-wrap: pretty; }

/* Eyebrow = the logo's "ROOFING SYSTEMS" line: italic, uppercase, wide tracking */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 var(--s-4);
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: var(--fs-2xs); line-height: 1.4;
  letter-spacing: .24em; text-transform: uppercase; color: var(--navy-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 12px; flex: none;
  background: currentColor;
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 82% 100%, 50% 38%, 18% 100%);   /* mini roof peak */
}
.eyebrow--gold, .on-dark .eyebrow { color: var(--gold-500); }
.eyebrow--center { justify-content: center; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-900) var(--shingle-pattern); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-5); }
.section-head--split > div { max-width: 720px; }
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.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--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}
.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--navy-600); --btn-fg: #fff; --btn-lip: var(--navy-800);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem; border: 2px solid transparent; border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: .975rem; letter-spacing: .01em; line-height: 1.2;
  box-shadow: 0 4px 0 var(--btn-lip);   /* solid "shingle lip" */
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .2s, color .2s;
}
.btn .i { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease-out); }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-lip), 0 14px 28px -12px rgba(1, 10, 61, .45); }
.btn:hover .i use[href="#i-arrow"], .btn:hover .i--arrow { transform: translateX(3px); }
.btn:hover > .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-lip); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); --btn-lip: var(--gold-700); }
.btn--gold:hover { --btn-bg: var(--gold-400); }
.btn--navy { --btn-bg: var(--navy-600); }
.btn--navy:hover { --btn-bg: var(--navy-500); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-lip: transparent; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-600); --btn-lip: transparent; border-color: var(--navy-600); box-shadow: none; }
.btn--outline:hover { --btn-bg: var(--navy-50); box-shadow: none; }
.btn--sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .9rem; box-shadow: 0 3px 0 var(--btn-lip); }
.btn--lg { min-height: 60px; padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 800;
  color: var(--navy-600); text-decoration: none; font-size: var(--fs-sm);
}
.link-arrow .i { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease-out); }
.link-arrow:hover .i { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--gold-500); }

.i { width: 1.25em; height: 1.25em; flex: none; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); flex: none; box-shadow: 0 0 0 0 rgba(253, 182, 37, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(253, 182, 37, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 182, 37, 0); } }

/* ---------- 6. Top bar / header / navigation ---------- */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .85); font-size: var(--fs-2xs); }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: var(--s-5); min-height: 40px; }
.topbar__alert { display: flex; align-items: center; gap: .55rem; margin: 0; flex-wrap: wrap; justify-content: center; }
.topbar__alert strong { color: #fff; }
@media (max-width: 479px) { .topbar__q { display: none; } }
.topbar__phone { color: var(--gold-500); font-weight: 800; text-decoration: none; white-space: nowrap; }
.topbar__phone:hover { color: var(--gold-400); text-decoration: underline; }
.topbar__links { display: none; list-style: none; gap: var(--s-5); }
.topbar__links a { color: rgba(255, 255, 255, .8); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar__links a:hover, .topbar__links a[aria-current] { color: #fff; text-decoration: underline; }
.topbar__rating .i { width: 14px; height: 14px; color: var(--gold-500); }
@media (min-width: 900px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__links { display: flex; }
}

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -14px rgba(1, 10, 61, .35); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--header-h); transition: height .3s var(--ease-out); }
.site-header.is-scrolled .site-header__inner { height: 64px; }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 38px; transition: height .3s var(--ease-out); }
@media (min-width: 640px) { .brand img { height: 44px; } }
.site-header.is-scrolled .brand img { height: 38px; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; list-style: none; gap: clamp(.1rem, .5vw, .75rem); }
.primary-nav a {
  position: relative; display: block; padding: .6rem .5rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; white-space: nowrap;
}
/* active/hover: a small roof-peak under the link */
.primary-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 26px; height: 9px; transform: translateX(-50%) scaleX(0);
  background: var(--gold-500); clip-path: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 40%, 20% 100%);
  transition: transform .3s var(--ease-settle);
}
.primary-nav a:hover { color: var(--navy-600); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--navy-600); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.header-cta { display: none; white-space: nowrap; }
.menu-toggle {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--r-sm);
  background: var(--navy-600); color: #fff;
}
.menu-toggle .i { width: 24px; height: 24px; }
.menu-toggle .i--close { display: none; }
.menu-toggle[aria-expanded="true"] .i--menu { display: none; }
.menu-toggle[aria-expanded="true"] .i--close { display: block; }
@media (min-width: 480px) { .header-cta { display: inline-flex; } }
/* Seven top-level links need ~1280px at default text size; em lets the breakpoint follow the browser's text-size
   setting, so enlarged text gets the menu sheet instead of an overflowing bar. Phone number stays in the top bar. */
@media (min-width: 80em) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .site-header__inner { gap: var(--s-4); }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy-900) var(--shingle-pattern); color: #fff;
  padding: calc(var(--header-h) + 56px) var(--gutter) calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--s-6);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: sheetIn .35s var(--ease-out); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-12px); } }
.mobile-menu__list { list-style: none; }
.mobile-menu__list a {
  display: flex; justify-content: space-between; align-items: center; padding: .95rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; font-style: italic;
}
.mobile-menu__list a[aria-current="page"] { color: var(--gold-500); }
.mobile-menu__actions { display: grid; gap: var(--s-3); }
.mobile-menu__note { display: flex; align-items: center; gap: .55rem; justify-content: center; color: rgba(255, 255, 255, .75); font-size: var(--fs-sm); margin: var(--s-2) 0 0; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: #fff; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem;
  background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 30px -12px rgba(1, 10, 61, .35);
  transform: translateY(110%); transition: transform .35s var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 800; text-decoration: none; font-size: .98rem; text-align: center; line-height: 1.2;
}
.mobile-bar__call { background: var(--navy-600); color: #fff; }
.mobile-bar__cta { background: var(--gold-500); color: var(--navy-900); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 72px; } }

/* ---------- 7. Home hero (storm → protected scene) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 75% 10%, #0C1E7A 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--shingle-pattern); opacity: .7; z-index: -1; }
.hero__inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 7vw, 6.5rem); }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr); } }
.hero__copy h1 { color: #fff; margin-bottom: var(--s-5); }
.hero__copy .lead { margin-bottom: var(--s-6); color: rgba(255, 255, 255, .86); }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; margin-top: var(--s-6); font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust .i { color: var(--gold-500); width: 1.1em; height: 1.1em; }
.hero__trust strong { color: #fff; }
.stars { display: inline-flex; gap: 1px; color: var(--gold-500); }
.stars .i { width: 1em; height: 1em; }

.scene { position: relative; }
.scene__frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 800 / 560;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
  background: #0B1233;
}
.scene__svg, .scene__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__fx { pointer-events: none; }
.scene__hud {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3);
}
.scene__steps { display: flex; gap: .35rem; list-style: none; flex-wrap: wrap; font-size: var(--fs-2xs); font-family: var(--font-display); font-weight: 700; }
.scene__steps li {
  padding: .3rem .6rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .6);
  transition: background .3s, color .3s; white-space: nowrap;
}
.scene__steps li.is-active { background: var(--gold-500); color: var(--navy-900); }
.scene__steps li.is-done { color: #fff; background: rgba(253, 182, 37, .18); }
.scene__controls { display: flex; gap: .4rem; flex: none; }
.scene__btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* visible on phones */
.scene__progress { display: none; }
.scene__btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s, border-color .2s;
}
.scene__btn:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.scene__btn .i { width: 16px; height: 16px; }
.scene__caption {
  position: absolute; left: 14px; top: 14px; z-index: 3; padding: .45rem .8rem; border-radius: var(--r-sm);
  background: rgba(0, 6, 42, .72); backdrop-filter: blur(6px); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  color: #fff; display: flex; align-items: center; gap: .5rem; max-width: calc(100% - 28px);
}
.scene__caption b { color: var(--gold-500); font-weight: 800; white-space: nowrap; }
.hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4vw, 56px); color: var(--paper); }
.rotor { transform-box: fill-box; transform-origin: center; animation: rotor .08s linear infinite alternate; }
@keyframes rotor { to { transform: scaleX(.3); } }

/* ---------- 8. Inner page hero ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-600) 130%);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--shingle-pattern); z-index: -1; }
.page-hero__roof { position: absolute; right: -4%; bottom: 0; width: min(62%, 760px); opacity: .14; z-index: -1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, .85); }
.page-hero .btn-row { margin-top: var(--s-6); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; font-size: var(--fs-xs); margin-bottom: var(--s-5); color: rgba(255, 255, 255, .7); font-weight: 600; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.page-hero .hero__edge { color: var(--paper); }
.page-hero--mist-edge .hero__edge { color: var(--mist); }

/* ---------- 9. Trust strip / brands ---------- */
.brands { border-bottom: 1px solid var(--line); padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.brands__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; }
.brands__label { margin: 0; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brands__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.25rem; list-style: none; }
.brands__list li { font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--ink-2); letter-spacing: .02em; opacity: .8; transition: opacity .2s, color .2s; }
.brands__list li:hover { opacity: 1; color: var(--navy-600); }

/* ---------- 10. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(7.5rem, calc(50% - 1px)), 1fr));   /* 2 columns; 1 when text is enlarged */ gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: clamp(1.25rem, 2.5vw, 2rem); }
.stat__num { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; color: var(--navy-600); display: flex; align-items: baseline; gap: .15rem; }
.stat__num small { font-size: .5em; color: var(--gold-700); font-style: normal; }
.stat__label { margin: .5rem 0 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.on-dark .stats { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.on-dark .stat { background: rgba(0, 6, 42, .55); }
.on-dark .stat__num { color: var(--gold-500); }
.on-dark .stat__label { color: rgba(255, 255, 255, .75); }

/* ---------- 11. Value cards ("Why Nexgen") ---------- */
.value-card {
  position: relative; padding: clamp(1.5rem, 2.6vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-200); }
.value-card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s-5); border-radius: 12px;
  background: var(--navy-600); color: var(--gold-500); position: relative;
}
.value-card__icon .i { width: 28px; height: 28px; }
.value-card h3 { font-size: var(--fs-h4); margin-bottom: var(--s-3); }
.value-card p { color: var(--muted); margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
.value-card__quote { margin-top: var(--s-4) !important; padding-top: var(--s-4); border-top: 1px dashed var(--line-strong); font-style: italic; color: var(--ink-2) !important; }

/* ---------- 12. Service cards ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.service-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 6, 42, .55)); }
.service-card__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; padding: .3rem .65rem; border-radius: var(--r-pill);
  background: var(--gold-500); color: var(--navy-900); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xs); letter-spacing: .04em;
}
.service-card__body { position: relative; padding: 1.5rem 1.5rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
/* roof-peak line that draws across the card top on hover */
.service-card__peak { position: absolute; left: 0; right: 0; top: -1px; height: 22px; width: 100%; transform: translateY(-100%); overflow: visible; }
.service-card__peak path { fill: none; stroke: var(--gold-500); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset .7s var(--ease-out); }
.service-card:hover .service-card__peak path, .service-card:focus-visible .service-card__peak path { stroke-dashoffset: 0; }
.service-card__icon { position: absolute; right: 1.25rem; top: -28px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--navy-600); color: var(--gold-500); box-shadow: var(--shadow-md); z-index: 2; }
.service-card__icon .i { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--fs-h4); margin-bottom: .5rem; padding-right: 3.5rem; }
.service-card p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; margin-bottom: var(--s-4); }
.service-card .link-arrow { margin-top: auto; }

/* ---------- 13. Roof anatomy (3D exploded layers) ---------- */
.anatomy { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) {
  .anatomy { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .anatomy .anatomy__stage { position: sticky; top: calc(var(--header-h) + 3rem); }   /* layers stay in view while the list scrolls */
}
.anatomy__stage { position: relative; aspect-ratio: 1 / .82; perspective: 1400px; perspective-origin: 50% 20%; }
.anatomy__stack {
  position: absolute; left: 50%; top: 56%; width: 64%; aspect-ratio: 1 / .78; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(var(--rz, -38.66deg));   /* 38.66° = the logo's roof pitch */
}
.layer {
  --z: 0; position: absolute; inset: 0; border-radius: 4px; transform: translateZ(calc(var(--z) * var(--gap, 6px)));
  transition: transform .9s var(--ease-out), filter .3s, box-shadow .3s; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.layer::after { content: attr(data-num); position: absolute; right: 8px; top: 6px; font: 800 12px/1 var(--font-display); color: rgba(255, 255, 255, .85); transform: rotateZ(38.66deg); }
.layer--deck { --z: 0; background: repeating-linear-gradient(90deg, #A07A4E 0 2px, #B88E5C 2px 46px), #B88E5C; background-blend-mode: multiply; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55); }
.layer--deck::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 32%, rgba(80, 52, 22, .35) 32% 33%); border-radius: inherit; }
.layer--ice { --z: 1; background: linear-gradient(90deg, #2B2F3A 0 18%, transparent 18% 82%, #2B2F3A 82%), linear-gradient(0deg, #2B2F3A 0 14%, transparent 14%); }
.layer--under { --z: 2; inset: 3% 3% 3% 3%; overflow: hidden; background: repeating-linear-gradient(0deg, #D9DDE6 0 18%, #C8CDD9 18% 18.6%), #D9DDE6; }
.layer--under::before { content: "NEXGEN · SYNTHETIC UNDERLAYMENT · NEXGEN"; position: absolute; left: 6%; top: 40%; font: 800 9px/1 var(--font-display); color: var(--navy-600); letter-spacing: .2em; opacity: .55; white-space: nowrap; }
.layer--starter { --z: 3; inset: auto 3% 3% 3%; height: 10%; background: #3A3F4C; }
.layer--shingle { --z: 4; inset: 3% 3% 3% 3%;
  background:
    repeating-linear-gradient(90deg, transparent 0 12.2%, rgba(0, 0, 0, .35) 12.2% 12.6%),
    repeating-linear-gradient(0deg, #4B5163 0 9.5%, #3B4050 9.5% 10%, #565C70 10% 19.5%, #2F3442 19.5% 20%);
}
.layer--ridge { --z: 5; inset: 3% 3% auto 3%; height: 9%; background: repeating-linear-gradient(90deg, #2F3442 0 7%, #474D5E 7% 14%); }
.layer.is-hot { filter: brightness(1.25) saturate(1.2); box-shadow: 0 0 0 3px var(--gold-500), 0 20px 40px -10px rgba(253, 182, 37, .5); }
.anatomy__list { list-style: none; counter-reset: layer; display: grid; gap: .5rem; }
.anatomy__item {
  display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; padding: .9rem 1rem; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: default; transition: background .25s, border-color .25s;
}
.anatomy__item:hover, .anatomy__item:focus-within, .anatomy__item.is-hot { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.anatomy__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy-600); color: var(--gold-500); font: 900 italic 1.05rem/1 var(--font-display); }
.anatomy__item h3 { font-size: var(--fs-h4); margin: 0 0 .2rem; }
.anatomy__item p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.anatomy__item button { all: unset; display: contents; }

/* ---------- 14. Process timeline (scroll-drawn roofline) ---------- */
.process { position: relative; }
.process__track { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 68px; display: none; overflow: visible; }
.process__track path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.process__track .track-bg { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 2 10; }
.process__track .track-fg { stroke: var(--gold-500); }
.process__steps { list-style: none; display: grid; gap: var(--s-6); position: relative; counter-reset: step; }
.process__steps::before { content: ""; position: absolute; left: 33px; top: 20px; bottom: 20px; width: 3px; background: linear-gradient(var(--gold-500) var(--progress, 0%), rgba(255, 255, 255, .14) var(--progress, 0%)); }
.step { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 1.1rem; align-content: start; }
.step__badge {
  position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 16px;
  background: var(--navy-800); border: 2px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .7);
  transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease-settle);
}
.step__badge .i { width: 30px; height: 30px; }
.step__badge span { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-950); border: 2px solid rgba(255, 255, 255, .2); font: 900 italic var(--fs-2xs)/22px var(--font-display); text-align: center; color: #fff; }
.step.is-active .step__badge { background: var(--gold-500); border-color: var(--gold-400); color: var(--navy-900); transform: translateY(-4px) rotate(-3deg); }
.step.is-active .step__badge span { background: var(--navy-600); border-color: var(--gold-500); }
.step h3 { color: #fff; font-size: var(--fs-h4); margin: .35rem 0 .45rem; }
.step p { color: rgba(255, 255, 255, .72); font-size: var(--fs-sm); margin: 0; }
.step__meta { display: inline-block; margin-top: .6rem; font: 700 italic var(--fs-2xs)/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); }
@media (min-width: 1000px) {
  .process__track { display: block; }
  .process__steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
  .process__steps::before { display: none; }
  .step { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .step__badge { margin-bottom: .5rem; }
}

/* ---------- 15. Insurance: test square + damage slider ---------- */
.testsq { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #2F3442; box-shadow: var(--shadow-lg); }
.testsq svg { width: 100%; height: auto; }
.testsq__readout {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; padding: .85rem 1.1rem; background: var(--navy-950); color: #fff;
  font-family: var(--font-display);
}
.testsq__count { font-weight: 900; font-style: italic; font-size: 2.1rem; line-height: 1; color: var(--gold-500); font-variant-numeric: tabular-nums; min-width: 1.4ch; }
.testsq__label { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.testsq__verdict { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: var(--r-pill); background: var(--gold-500); color: var(--navy-900); font-size: var(--fs-2xs); font-weight: 800; opacity: 0; transition: opacity .4s; }
.testsq.is-done .testsq__verdict { opacity: 1; }
.chalk { fill: none; stroke: #F4F1E6; stroke-linecap: round; stroke-linejoin: round; }

.compare { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y; background: #222; aspect-ratio: 16 / 10; }
.compare__layer { position: absolute; inset: 0; }
.compare__layer img, .compare__layer svg { width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--gold-500); pointer-events: none; }
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%23010A3D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__range:focus-visible + .compare__handle::after { outline: 3px solid #fff; outline-offset: 3px; }
.compare__tag { position: absolute; top: 14px; z-index: 2; padding: .35rem .7rem; border-radius: var(--r-pill); font: 800 var(--fs-2xs)/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.compare__tag--before { left: 14px; background: rgba(0, 6, 42, .8); color: #fff; }
.compare__tag--after { right: 14px; background: var(--gold-500); color: var(--navy-900); }
.compare__caption { margin-top: .75rem; font-size: var(--fs-sm); color: var(--muted); }

/* claim steps */
.claim-steps { list-style: none; display: grid; gap: 1rem; counter-reset: c; }
.claim-step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.claim-step::before { counter-increment: c; content: counter(c); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--navy-600); color: var(--gold-500); font: 900 italic 1.3rem/1 var(--font-display); }
.claim-step h3 { font-size: var(--fs-h4); margin: .2rem 0 .3rem; }
.claim-step p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.claim-step--us { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(253, 182, 37, .25); }
.claim-step--us .who { display: inline-block; margin-left: .4rem; padding: .15rem .5rem; border-radius: var(--r-pill); background: var(--gold-500); color: var(--navy-900); font: 800 var(--fs-2xs)/1.4 var(--font-display); vertical-align: middle; }

.callout { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-md); background: var(--navy-50); border-left: 5px solid var(--navy-600); }
.callout h3 { font-size: var(--fs-h4); margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--gold { background: #FFF7E4; border-left-color: var(--gold-500); }

.table-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.data-table th, .data-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.data-table th { position: sticky; top: 0; background: var(--navy-600); color: #fff; font-family: var(--font-display); font-weight: 700; z-index: 1; }
.data-table tr:hover td { background: var(--navy-50); }
.data-table a { font-weight: 700; white-space: nowrap; }
.search-input { width: 100%; max-width: 420px; min-height: 48px; padding: .7rem 1rem .7rem 2.75rem; border: 2px solid var(--line-strong); border-radius: var(--r-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23545C7A' stroke-width='2'/%3E%3Cpath d='M20 20l-4-4' stroke='%23545C7A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") .85rem center/20px no-repeat; }
.search-input:focus { border-color: var(--navy-600); outline: none; box-shadow: 0 0 0 4px rgba(2, 26, 158, .12); }

/* ---------- 16. Testimonials / ratings ---------- */
.rating-card {
  display: grid; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--navy-900) var(--shingle-pattern); color: #fff;
}
@media (min-width: 760px) { .rating-card { grid-template-columns: auto 1fr; align-items: center; gap: 2.5rem; } }
.rating-card__score { font: 900 italic clamp(3.5rem, 7vw, 5rem)/1 var(--font-display); color: var(--gold-500); }
.rating-card__meta { color: rgba(255, 255, 255, .8); font-size: var(--fs-sm); }
.rating-card__meta strong { color: #fff; }
.bars { display: grid; gap: .45rem; }
.bar { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(2.5rem, 1fr) auto; gap: .75rem; align-items: center; font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.bar__track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); background: var(--gold-500); border-radius: inherit; transform-origin: left; }
.js .bar__fill { transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.js .bars.is-in .bar__fill { transform: scaleX(1); }

.reviews-grid { columns: 1; column-gap: clamp(1rem, 2.4vw, 1.5rem); }
@media (min-width: 700px) { .reviews-grid { columns: 2; } }
@media (min-width: 1100px) { .reviews-grid { columns: 3; } }
.review {
  break-inside: avoid; position: relative; margin-bottom: clamp(1rem, 2.4vw, 1.5rem); padding: 1.6rem 1.6rem 1.4rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow .3s, transform .3s var(--ease-out);
}
.review:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.review__quote-icon { position: absolute; right: 1.2rem; top: 1.1rem; width: 34px; height: 34px; color: var(--navy-100); }
.review .stars { margin-bottom: .75rem; }
.review blockquote p { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-2); }
.review blockquote p:last-child { margin-bottom: 0; }
.review__who { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-600); color: var(--gold-500); font: 900 italic .95rem/1 var(--font-display); flex: none; }
.review__name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); display: block; line-height: 1.2; }
.review__src { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.review__src .i { width: 13px; height: 13px; }
.review--feature { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.review--feature blockquote p { color: #fff; font-size: var(--fs-lg); }
.review--feature .review__who { border-color: rgba(255, 255, 255, .2); }
.review--feature .review__src { color: rgba(255, 255, 255, .75); }
.review--feature .review__avatar { background: var(--gold-500); color: var(--navy-900); }
.review--feature .review__quote-icon { color: rgba(255, 255, 255, .15); }

/* testimonial slider (home) */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; margin: 0; }
@media (min-width: 760px) { .slider__track { grid-auto-columns: calc(50% - .625rem); } }
@media (min-width: 1100px) { .slider__track { grid-auto-columns: calc(33.333% - .84rem); } }
.slider__nav { display: flex; gap: .5rem; }
.slider__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy-600); background: #fff; color: var(--navy-600); transition: background .2s, color .2s; }
.slider__btn:hover { background: var(--navy-600); color: #fff; }
.slider__btn--prev .i { transform: rotate(180deg); }
.slider .review { height: 100%; margin: 0; }

/* ---------- 17. Faith / mission band ---------- */
.faith-band { position: relative; overflow: hidden; background: var(--navy-600); color: #fff; isolation: isolate; }
.faith-band::before { content: ""; position: absolute; inset: 0; background: var(--shingle-pattern); z-index: -1; }
.faith-band__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .faith-band__inner { grid-template-columns: 1.3fr .7fr; } }
.faith-band__verse { font: 800 italic clamp(1.6rem, 2.8vw, 2.5rem)/1.25 var(--font-display); color: #fff; margin: 0 0 1rem; text-wrap: balance; }
.faith-band__verse::before { content: "“"; color: var(--gold-500); }
.faith-band__verse::after { content: "”"; color: var(--gold-500); }
.faith-band cite { font-style: normal; font: 700 italic var(--fs-xs)/1.3 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-500); }
.faith-band__note { padding: 1.5rem; border-radius: var(--r-md); background: rgba(0, 6, 42, .35); border: 1px solid rgba(255, 255, 255, .14); }
.faith-band__note p { color: rgba(255, 255, 255, .88); font-size: var(--fs-sm); }
.faith-band__note .sig { font: 800 italic 1.2rem/1 var(--font-display); color: var(--gold-500); margin: 0; }
.faith-band__mark { position: absolute; right: -5%; bottom: -12%; width: 46%; opacity: .07; z-index: -1; }

/* ---------- 18. Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter {
  min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--r-pill); border: 2px solid var(--line-strong); background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); color: var(--ink-2); transition: all .2s;
}
.filter:hover { border-color: var(--navy-600); color: var(--navy-600); }
.filter[aria-pressed="true"] { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.filter span { opacity: .6; font-weight: 600; margin-left: .25rem; }
.gallery, .city-grid { list-style: none; }
.gallery { columns: 2; column-gap: .9rem; }
@media (min-width: 760px) { .gallery { columns: 3; column-gap: 1.1rem; } }
@media (min-width: 1200px) { .gallery { columns: 4; } }
.gallery__item { break-inside: avoid; margin-bottom: .9rem; }
@media (min-width: 760px) { .gallery__item { margin-bottom: 1.1rem; } }
.gallery__item[hidden] { display: none; }
.gallery__btn { all: unset; display: block; position: relative; width: 100%; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--mist-2); }
.gallery__btn:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.gallery__btn img { width: 100%; transition: transform .7s var(--ease-out), filter .4s; }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.25rem .9rem .8rem; color: #fff; font-size: var(--fs-xs); font-weight: 600; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0, 6, 42, .85)); transform: translateY(30%); opacity: 0; transition: all .35s var(--ease-out);
}
.gallery__btn:hover .gallery__cap, .gallery__btn:focus-visible .gallery__cap { transform: none; opacity: 1; }
.gallery__cap b { display: block; font-family: var(--font-display); color: var(--gold-500); font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .15rem; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4rem 1rem; background: rgba(0, 4, 26, .94); }
.lightbox[hidden] { display: none; }
.lightbox__fig { max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: .75rem; justify-items: center; }
.lightbox__img { max-height: calc(100vh - 10rem); width: auto; border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__cap { color: rgba(255, 255, 255, .85); font-size: var(--fs-sm); text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; }
.lightbox__btn:hover { background: var(--gold-500); color: var(--navy-900); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

.feature-project { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .feature-project { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.feature-project__media { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; }
.feature-project__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.feature-project__media .tall { grid-row: span 2; }

/* photo mosaic (home "Our work") */
.mosaic { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } }
.mosaic a { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--mist-2); aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .mosaic a { aspect-ratio: auto; }
  .mosaic .m-wide { grid-column: span 2; }
  .mosaic .m-tall { grid-row: span 2; }
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic span { position: absolute; left: .7rem; bottom: .7rem; padding: .3rem .6rem; border-radius: var(--r-pill); background: rgba(0, 6, 42, .78); color: #fff; font: 700 var(--fs-2xs)/1.2 var(--font-display); backdrop-filter: blur(4px); }

/* ---------- 19. FAQ accordion ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq:has(.faq__q[aria-expanded="true"]) { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }
.faq__q {
  all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 1.15rem 1.35rem;
  cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base); color: var(--ink); line-height: 1.35;
}
.faq__q:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: var(--r-md); }
.faq__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-50); color: var(--navy-600); transition: transform .35s var(--ease-out), background .25s, color .25s; }
.faq__icon .i { width: 18px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(180deg); background: var(--navy-600); color: var(--gold-500); }
.faq__a { overflow: hidden; }
.faq__a[hidden] { display: block; height: 0; visibility: hidden; }
.no-js .faq__a[hidden] { height: auto; visibility: visible; }
.faq__a-inner { padding: 0 1.35rem 1.25rem; color: var(--ink-2); }
.faq__a-inner p:last-child { margin-bottom: 0; }
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

/* ---------- 20. Forms ---------- */
.form-card { padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--gold-500) 0 50%, var(--navy-600) 50%); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { position: relative; display: grid; gap: .4rem; }
.field label, .field legend { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border: 2px solid var(--line-strong); border-radius: var(--r-sm); background: var(--mist);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); background: #fff; box-shadow: 0 0 0 4px rgba(2, 26, 158, .12); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF6F6; }
.field__error { color: var(--danger); font-size: var(--fs-xs); font-weight: 700; min-height: 0; }
.field__hint { color: var(--muted); font-size: var(--fs-xs); }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--line-strong); border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-xs); background: #fff; transition: all .2s; }
.choice input:checked + span { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin: .75rem 0 0; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-sm); font-weight: 700; display: none; }
.form-status.is-error { display: block; background: #FFF0F0; color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; }
.btn[data-loading] { pointer-events: none; opacity: .85; }

/* contact info list */
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; }
.contact-list__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy-600); color: var(--gold-500); }
.contact-list__icon .i { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-list a, .contact-list strong { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--navy-600); text-decoration: underline; }

.emergency-banner {
  display: grid; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: var(--navy-950) var(--shingle-pattern); color: #fff;
  border-left: 6px solid var(--gold-500);
}
@media (min-width: 760px) { .emergency-banner { grid-template-columns: auto 1fr auto; } }
.emergency-banner__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); }
.emergency-banner__icon .i { width: 26px; height: 26px; }
.emergency-banner h2 { color: #fff; font-size: var(--fs-h3); margin: 0 0 .2rem; }
.emergency-banner p { margin: 0; color: rgba(255, 255, 255, .8); font-size: var(--fs-sm); }

.map-facade { position: relative; display: grid; place-items: center; min-height: 340px; border-radius: var(--r-lg); overflow: hidden; background: #DDE3F2; border: 1px solid var(--line); }
.map-facade__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-facade__card { position: relative; z-index: 1; display: grid; gap: .75rem; justify-items: center; text-align: center; padding: 1.5rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-md); max-width: 320px; }
.map-facade__card p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 21. Service areas ---------- */
.city-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.city {
  display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; transition: all .25s var(--ease-out);
}
.city .i { color: var(--gold-600); width: 20px; height: 20px; }
.city:hover { border-color: var(--navy-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.city small { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-2xs); color: var(--muted); }
.city--hq { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.city--hq small { color: rgba(255, 255, 255, .75); }
.city--hq .i { color: var(--gold-500); }
.area-map { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-900); }
.area-map svg { width: 100%; height: auto; }
.area-map .ring { fill: none; stroke: var(--gold-500); stroke-opacity: .35; stroke-dasharray: 4 6; }
.area-map .dot { fill: var(--gold-500); }
.area-map .hq { fill: #fff; }
.area-map text { font: 700 14px var(--font-display); fill: rgba(255, 255, 255, .88); }   /* SVG units: scales with the map */
.area-map .ring-label { font-size: 13px; fill: var(--gold-500); }
.area-map .hq-label { font-size: 15px; font-weight: 800; fill: #fff; }

/* ---------- 22. About ---------- */
.founder { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) {
  .founder { grid-template-columns: .8fr 1.2fr; }
  .founder__card { position: sticky; top: calc(var(--header-h) + 24px); }   /* sticky on desktop only */
}
.founder__card { padding: 2rem; border-radius: var(--r-lg); background: var(--navy-900) var(--shingle-pattern); color: #fff; text-align: center; overflow: hidden; }
.founder__mono { width: 140px; height: 140px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy-600); border: 4px solid var(--gold-500); font: 900 italic 3rem/1 var(--font-display); color: var(--gold-500); box-shadow: 0 0 0 10px rgba(253, 182, 37, .12); }
.founder__name { font: 800 1.4rem/1.2 var(--font-display); color: #fff; margin: 0; }
.founder__role { color: var(--gold-500); font: 700 italic var(--fs-2xs)/1.4 var(--font-display); letter-spacing: .16em; text-transform: uppercase; margin: .4rem 0 1.25rem; }
.founder__facts { list-style: none; display: grid; gap: .55rem; text-align: left; font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.25rem; }
.founder__facts li { display: flex; gap: .6rem; align-items: start; }
.founder__facts .i { color: var(--gold-500); margin-top: .2rem; width: 1.05em; height: 1.05em; }
.letter { font-size: var(--fs-base); line-height: 1.8; color: var(--ink-2); }
.letter__sig { font: 800 italic clamp(1.35rem, .6vw + 1.2rem, 1.6rem)/1.2 var(--font-display); color: var(--navy-600); margin: 1.5rem 0 .2rem; }
.pull { margin: 2rem 0; padding: 1.5rem 1.75rem; border-left: 5px solid var(--gold-500); background: var(--mist); border-radius: 0 var(--r-md) var(--r-md) 0; font: 700 italic clamp(1.125rem, .6vw + 1rem, 1.25rem)/1.5 var(--font-display); color: var(--navy-700); }
.pull__by { display: block; margin-top: .6rem; font: 600 normal var(--fs-xs)/1.4 var(--font-body); color: var(--muted); }
.laws { display: grid; gap: 1rem; }
@media (min-width: 760px) { .laws { grid-template-columns: 1fr 1fr; } }
.law { padding: 1.75rem; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.law__num { position: absolute; right: 1rem; top: .2rem; font: 900 italic 5rem/1 var(--font-display); color: var(--navy-50); z-index: 0; }
.law > * { position: relative; }
.law h3 { font-size: var(--fs-h4); }
.law p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

.photo-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame__badge { position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-md); font: 800 var(--fs-xs)/1.2 var(--font-display); color: var(--ink); }
.photo-frame__badge .i { color: var(--navy-600); width: 26px; height: 26px; }
.photo-stack { position: relative; padding: 0 0 2.5rem 2.5rem; }
.photo-stack .photo-frame:last-child { position: absolute; left: 0; bottom: 0; width: 46%; border: 6px solid #fff; }

.check-list { list-style: none; display: grid; gap: .65rem; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: .65rem; align-items: start; }
.check-list .i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); }
.on-dark .check-list li { color: rgba(255, 255, 255, .88); }

/* Services detail */
.svc-detail { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
@media (min-width: 960px) {
  .svc-detail { grid-template-columns: 1fr 1fr; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 2; }
}
.svc-detail__media { position: relative; }
.svc-detail__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.svc-detail__media .chip { position: absolute; right: 1rem; top: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: var(--r-pill); background: var(--gold-500); color: var(--navy-900); font: 800 var(--fs-2xs)/1.2 var(--font-display); }
.chip .i { width: 14px; height: 14px; }
.chip--navy { background: var(--navy-600); color: #fff; }
.svc-detail h2 { font-size: var(--fs-h2-sm); line-height: 1.2; }
.svc-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-jump a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font: 700 var(--fs-xs)/1.25 var(--font-display); transition: all .2s; }
.svc-jump a:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.svc-jump .i { width: 16px; height: 16px; }

.shingle-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.shingle-card { padding: 1.4rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.shingle-card__swatch { height: 64px; margin: -1.4rem -1.4rem 1.1rem; background: repeating-linear-gradient(90deg, transparent 0 18%, rgba(0, 0, 0, .3) 18% 18.6%), repeating-linear-gradient(0deg, var(--c1) 0 24%, var(--c2) 24% 25%, var(--c3) 25% 49%, var(--c2) 49% 50%); }
.shingle-card h3 { font-size: var(--fs-h4); margin-bottom: .3rem; }
.shingle-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* ---------- 23. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 100% 0%, rgba(2, 26, 158, .9), transparent 60%), var(--shingle-pattern); }
.cta-band__bg::after { content: ""; position: absolute; right: -6%; bottom: -30%; width: 55%; aspect-ratio: 1; background: radial-gradient(circle, rgba(253, 182, 37, .22), transparent 65%); }
.cta-band__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 980px) { .cta-band__inner { grid-template-columns: 1.3fr .9fr; } }
.cta-band__title { color: #fff; }
.cta-band__copy p:not(.eyebrow) { color: rgba(255, 255, 255, .8); max-width: 56ch; }
.cta-band__actions { display: grid; gap: .75rem; }
.cta-band__note { display: flex; gap: .55rem; align-items: center; color: rgba(255, 255, 255, .75); font-size: var(--fs-sm); margin: .25rem 0 0; }

/* ---------- 24. Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: rgba(255, 255, 255, .78); padding-top: clamp(3.5rem, 6vw, 5rem); margin-top: 0; }
.site-footer__roofline { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; color: var(--navy-950); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr .8fr .8fr 1.3fr; } }
.site-footer__brand img { width: 190px; margin-bottom: 1.25rem; }
.site-footer__verse { font: 600 italic var(--fs-sm)/1.6 var(--font-display); color: rgba(255, 255, 255, .85); max-width: 34ch; }
.site-footer__verse cite { display: block; margin-top: .4rem; font-style: normal; font-size: var(--fs-2xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-500); }
.site-footer__title { color: #fff; font-size: var(--fs-2xs); line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; font-style: italic; margin-bottom: 1.1rem; }
.site-footer__col ul { list-style: none; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); text-decoration: underline; }
.site-footer__contact li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; font-size: var(--fs-sm); }
.site-footer__contact .i { color: var(--gold-500); width: 18px; height: 18px; margin-top: .25rem; }
.site-footer .muted { color: rgba(255, 255, 255, .5); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); }
.site-footer__bottom p { margin: 0; }
.site-footer__credit { flex-basis: 100%; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; color: rgba(255, 255, 255, .6); }
.site-footer__credit a { color: var(--gold-500); font-weight: 700; display: inline-flex; align-items: center; min-height: 32px; }
.site-footer__credit a:hover { color: var(--gold-400); }
.social { display: flex; gap: .5rem; list-style: none; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s, color .2s; }
.social a:hover { background: var(--gold-500); color: var(--navy-900); }
.social .i { width: 20px; height: 20px; }

/* ---------- 25. Utility components ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.trust-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .9rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font: 700 var(--fs-xs)/1.2 var(--font-display); color: var(--ink); }
.trust-badge .i { color: var(--navy-600); width: 18px; height: 18px; }
.trust-badge .i--star { color: var(--gold-600); }
.on-dark .trust-badge { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.on-dark .trust-badge .i { color: var(--gold-500); }
.divider-roof { display: block; width: 120px; height: 24px; margin: 0 auto 1.5rem; color: var(--gold-500); }
.kicker-num { font: 900 italic 1rem/1 var(--font-display); color: var(--gold-700); }
.note-small { font-size: var(--fs-xs); color: var(--muted); }
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ---------- 25a. Services dropdown + service pages ---------- */
.topbar__links a, .topbar__phone { display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 359px) {   /* smallest phones: keep logo + menu button inside the screen */
  .brand img { height: 32px; }
  .site-header__inner { gap: .75rem; }
}
.page-hero__media img[src*="ridge-cap-at-brick-wall"] { object-position: 50% 15%; }
.primary-nav a[data-active-section] { color: var(--navy-600); }
.primary-nav a[data-active-section]::after { transform: translateX(-50%) scaleX(1); }
.nav-sub { position: relative; display: flex; align-items: center; }
.nav-sub__toggle {
  display: grid; place-items: center; width: 30px; height: 40px; margin-left: -.4rem; padding: 0; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--ink-2);
}
.nav-sub__toggle:hover { color: var(--navy-600); background: var(--navy-50); }
.nav-sub__toggle .i { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.nav-sub.is-open .nav-sub__toggle .i { transform: rotate(180deg); }
.primary-nav .nav-sub__menu {
  position: absolute; top: 100%; left: -.75rem; z-index: 120; display: none; flex-direction: column; gap: 0; min-width: 270px;
  margin-top: .5rem; padding: .5rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.primary-nav .nav-sub__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }   /* hover bridge */
.nav-sub.is-open .nav-sub__menu { display: flex; }
@media (hover: hover) { .nav-sub:hover .nav-sub__menu { display: flex; } }
.primary-nav .nav-sub__menu a { padding: .65rem .8rem; border-radius: var(--r-sm); font-size: .93rem; }
.primary-nav .nav-sub__menu a::after { display: none; }
.primary-nav .nav-sub__menu a:hover, .primary-nav .nav-sub__menu a:focus-visible { background: var(--navy-50); color: var(--navy-600); }
.primary-nav .nav-sub__menu a[aria-current="page"] { background: var(--navy-50); color: var(--navy-600); box-shadow: inset 3px 0 0 var(--gold-500); }
.nav-sub__all { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.primary-nav .nav-sub__all a { color: var(--muted); font-weight: 600; }

.mobile-menu__sub { list-style: none; margin: 0 0 .4rem .2rem; padding: 0 0 0 1rem; border-left: 2px solid rgba(253, 182, 37, .45); }
.mobile-menu__list .mobile-menu__sub a { min-height: 44px; padding: .55rem 0; border: 0; font-size: var(--fs-base); font-style: normal; font-weight: 700; color: rgba(255, 255, 255, .86); }
.mobile-menu__list .mobile-menu__sub a[aria-current="page"] { color: var(--gold-500); }

/* Service page hero: copy + authentic photo */
.page-hero--service { padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.page-hero__grid { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero--service h1 { max-width: 20ch; }
.page-hero__media { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-800); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media figcaption { position: absolute; left: .75rem; bottom: .75rem; right: .75rem; width: fit-content; padding: .4rem .7rem; border-radius: var(--r-sm); background: rgba(0, 6, 42, .78); color: rgba(255, 255, 255, .9); font-size: var(--fs-xs); line-height: 1.35; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-top: var(--s-5); }

/* Content helpers used across service pages */
.check-list--2 { gap: .75rem 1.5rem; }
@media (min-width: 720px) { .check-list--2 { grid-template-columns: 1fr 1fr; } }
.prose { max-width: 70ch; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul:not([class]) { padding-left: 1.2rem; display: grid; gap: .4rem; }
.decision { display: grid; gap: 1rem; }
@media (min-width: 760px) { .decision { grid-template-columns: 1fr 1fr; } }
.decision__card { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.decision__card h3 { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-h4); }
.decision__card h3 .i { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--navy-600); color: var(--gold-500); }
.decision__card--alt h3 .i { background: var(--gold-500); color: var(--navy-900); }
.decision__card ul { list-style: none; display: grid; gap: .55rem; }
.decision__card li { position: relative; padding-left: 1.2rem; color: var(--ink-2); font-size: var(--fs-sm); }
.decision__card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg); }
.safety { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-md); background: #FFF7E4; border: 1px solid #F6DFA8; }
.safety h2, .safety h3 { font-size: var(--fs-h3); }
.safety ol { padding-left: 1.25rem; display: grid; gap: .6rem; }
.safety li::marker { font-weight: 800; color: var(--gold-800); }

/* Related services */
.related-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.related-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }   /* six cards → 3 + 3 on desktop */
.svc-link {
  display: grid; grid-template-columns: 44px 1fr; gap: .25rem .85rem; align-items: start; padding: 1.1rem 1.15rem; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.svc-link:hover { border-color: var(--navy-200); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink); }
.svc-link__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy-600); color: var(--gold-500); }
.svc-link__icon .i { width: 22px; height: 22px; }
.svc-link strong { font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.3; }
.svc-link span:last-child { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }

/* ---------- 25b. Shared layout helpers ---------- */
/* Grid children default to min-width:auto, which lets long words/emails widen columns past the screen */
.split > *, .grid > *, .anatomy > *, .founder > *, .faq-layout > *, .contact-list li > *, .photo-stack > *,
.faq-side__topics, .faq-side__help, .faq-main,
.cta-band__inner > *, .rating-card > *, .svc-detail > *, .feature-project > *, .faith-band__inner > *,
.hero__inner > *, .site-footer__grid > *, .form-grid > *, .emergency-banner > * { min-width: 0; max-width: 100%; }
.chip { max-width: calc(100% - 2rem); }
.founder__facts a { padding-block: .2rem; }
.contact-list a, .contact-list strong, .founder__facts a, .site-footer__contact a { overflow-wrap: anywhere; }
.site-footer__contact li > * { min-width: 0; }
.scene__btn[hidden] { display: none; }
.eyebrow { align-items: flex-start; }
.eyebrow::before { margin-top: .38em; }   /* keeps the roof-peak glyph on the first line when an eyebrow wraps */

/* Sidebars stick only when there is a sidebar (desktop) */
@media (min-width: 960px) {
  .sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* FAQ: desktop = sticky sidebar beside the list; phones = chips → questions → help box */
.faq-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.faq-side__title { font-size: var(--fs-h2-sm); line-height: 1.2; }
.faq-side__topics .faq-cats { margin-bottom: 0; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: .85fr 1.15fr; }
  .faq-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s-5); }
  .faq-side__title { margin-bottom: var(--s-4); }
}
@media (max-width: 959px) {
  .faq-layout { display: flex; flex-direction: column; gap: var(--s-5); }
  .faq-side { display: contents; }
  .faq-side__topics { order: 1; }
  .faq-main { order: 2; }
  .faq-side__help { order: 3; }
  .faq-side__title { margin-bottom: var(--s-3); }
}

/* ---------- 25c. Mobile refinements (desktop untouched) ---------- */
@media (max-width: 899px) {
  /* Touch targets: ≥44px tall for anything tappable */
  .topbar__phone { display: inline-flex; align-items: center; min-height: 40px; padding-inline: .25rem; }
  .brand { display: flex; align-items: center; min-height: 48px; }
  .link-arrow { min-height: 44px; }
  .svc-jump a { min-height: 44px; padding-inline: 1rem; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
  .site-footer__col ul { gap: 0; }
  .site-footer__col li > a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer__contact ul { gap: .35rem; }
  .site-footer__contact a { display: inline-block; padding-block: .55rem; }
  .faq__q { padding: 1rem 1.1rem; }
  .faq__a-inner { padding: 0 1.1rem 1.1rem; }
}

@media (max-width: 639px) {
  /* Hero */
  .hero__inner { padding-block: 2rem 3.75rem; gap: 2rem; }
  .hero .eyebrow, .page-hero .eyebrow { letter-spacing: .12em; gap: .5rem; }
  .eyebrow { letter-spacing: .18em; }
  .hero__copy .btn-row, .page-hero .btn-row { display: grid; grid-template-columns: 1fr; gap: .75rem; }
  .hero__copy .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
  .hero__trust { display: grid; grid-template-columns: 1fr; gap: .65rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero__trust li { display: flex; align-items: center; gap: .6rem; }

  /* Hero animation: caption moves out of the picture into a compact HUD with big, labeled controls */
  .scene__caption { display: none; }
  .scene__frame { border-radius: var(--r-md); }
  .scene__hud { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: .85rem; }
  .scene__steps { display: none; }
  .scene__progress { display: grid; gap: .55rem; }
  .scene__progress-label { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; min-height: 2.9em; font: 600 var(--fs-xs)/1.4 var(--font-body); color: rgba(255, 255, 255, .86); }
  .scene__progress-label b { font: 800 .95rem/1.2 var(--font-display); color: var(--gold-500); }
  .scene__progress-count { padding: .22rem .5rem; border-radius: var(--r-pill); background: rgba(253, 182, 37, .16); color: var(--gold-400); font: 800 var(--fs-2xs)/1 var(--font-display); font-variant-numeric: tabular-nums; }
  .scene__progress-bar { position: relative; display: block; height: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); overflow: hidden; }
  .scene__progress-fill { position: absolute; inset: 0; background: var(--gold-500); transform-origin: left center; transform: scaleX(1); transition: transform .12s linear; }
  .scene__progress-bar::after {   /* six step segments */
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 3px), var(--navy-900) calc(100% / 6 - 3px) calc(100% / 6));
  }
  .scene__controls { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .scene__controls:has(> .scene__btn[hidden]) { grid-template-columns: 1fr; }
  .scene__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: auto; height: 48px; border-radius: var(--r-sm); font: 800 .95rem/1 var(--font-display); }
  .scene__btn .i { width: 18px; height: 18px; }
  .scene__btn-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .scene__btn--toggle { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
  .scene__btn--toggle:hover { background: var(--gold-400); border-color: var(--gold-400); }

  /* 3D roof layers: keep the exploded stack inside the screen */
  [data-anatomy] { overflow-x: clip; }
  .anatomy__stage { aspect-ratio: 1 / .92; }
  .anatomy__stack { width: 52%; top: 55%; }
  .anatomy__item { padding: .75rem .6rem; grid-template-columns: 40px 1fr; }
  .anatomy__num { width: 40px; height: 40px; }

  /* Chip rows (FAQ topics, gallery filters) scroll sideways instead of wrapping into ragged rows */
  .faq-cats, .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .faq-cats::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
  .faq-cats .filter, .filters .filter { flex: none; scroll-snap-align: start; }
  .filters { margin-bottom: 1.25rem; }

  /* Service-area cities: two compact columns instead of 16 full-width rows */
  .city-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5rem), 1fr)); gap: .5rem; }   /* 2 columns; 1 when text is enlarged */
  .city { align-items: flex-start; gap: .5rem; padding: .75rem .7rem; font-size: var(--fs-sm); line-height: 1.25; }
  .city .i { width: 18px; height: 18px; margin-top: .05rem; }
  .city small { margin-top: .2rem; }
  .city--hq { grid-column: 1 / -1; }
  .area-map svg g text { display: none; }   /* tiny city labels are unreadable at phone size; the list below names them */
  .area-map svg > text { font-size: 26px; }

  /* About: founder card becomes a compact header instead of a full-screen block */
  .founder__card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .2rem 1rem; padding: 1.4rem; text-align: left; }
  .founder__mono { grid-row: span 2; width: 80px; height: 80px; margin: 0; font-size: 1.8rem; border-width: 3px; box-shadow: 0 0 0 6px rgba(253, 182, 37, .12); }
  .founder__name { align-self: end; font-size: 1.15rem; }
  .founder__role { align-self: start; margin: 0; letter-spacing: .08em; }
  .founder__facts { grid-column: 1 / -1; margin-top: 1.1rem; padding-top: 1.1rem; }
  .founder__facts a { display: inline-block; }   /* email drops to its own line instead of splitting mid-word */
  .letter { line-height: 1.75; }
  .pull { padding: 1.1rem 1.2rem; }
  .photo-stack { display: grid; grid-template-columns: 1.35fr 1fr; gap: .6rem; padding: 0; align-items: stretch; }
  .photo-stack .photo-frame, .photo-stack .photo-frame:last-child { position: static; width: auto; border: 0; aspect-ratio: 3 / 4; }
  .law { padding: 1.4rem; }
  .law__num { font-size: 4rem; }

  /* Contact */
  .emergency-banner { padding: 1.1rem; text-align: left; }
  .emergency-banner .btn { width: 100%; }
  .form-card { padding: 1.4rem 1.1rem; }
  .map-facade { min-height: 300px; }

  /* Services: jump links as an even two-column grid instead of ragged wrapped pills */
  .svc-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .svc-jump a { justify-content: flex-start; padding-inline: .85rem; border-radius: var(--r-sm); }
  .svc-detail { padding-block: 2rem; gap: 1.25rem; }

  /* Misc */
  .rating-card { padding: 1.4rem; }
  .rating-card .btn-row { display: grid; grid-template-columns: 1fr; }
  .rating-card .btn-row .btn { width: 100%; }
  .bar { grid-template-columns: minmax(0, 7.6rem) minmax(2.5rem, 1fr) auto; gap: .6rem; font-size: var(--fs-xs); }
  .claim-step { grid-template-columns: 44px 1fr; gap: .85rem; padding: 1rem; }
  .claim-step::before { width: 44px; height: 44px; font-size: 1.1rem; }
  .feature-project { padding: 1rem; }
  .section-head { margin-bottom: 1.75rem; }
  .cta-band__actions .btn { width: 100%; }
}

/* Narrow phones (≤ 419px): roomier buttons for labels that wrap */
@media (max-width: 419px) {
  .btn--lg { padding-inline: 1.15rem; font-size: 1rem; }
  .cta-band__note { flex-wrap: wrap; }
}

/* Touch screens have no hover: always show gallery captions */
@media (hover: none) {
  .gallery__cap { opacity: 1; transform: none; padding-top: 1.75rem; }
}
@media (hover: none) and (max-width: 639px) {
  .gallery__cap { padding: 1.4rem .6rem .5rem; font-size: var(--fs-2xs); line-height: 1.3; }
  .gallery__cap b { display: none; }   /* the active filter already names the category */
}

/* ---------- 25d. Service-area blocks ---------- */
.city--core { border-color: var(--gold-500); box-shadow: inset 3px 0 0 var(--gold-500); }
.coverage { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.coverage__head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .85rem; align-items: center; }
.coverage__text { max-width: 70ch; margin: .85rem 0 0; color: var(--ink-2); font-size: var(--fs-sm); }
.coverage__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy-600); color: var(--gold-500); }
.coverage__icon .i { width: 22px; height: 22px; }
.coverage__title { font-size: var(--fs-h4); line-height: 1.3; margin: 0; }
.coverage__list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 1.1rem 0 0; }
.coverage__list li { padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--mist); border: 1px solid var(--line); font: 700 var(--fs-xs)/1.3 var(--font-display); color: var(--ink-2); }
.coverage__list li.is-core { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.coverage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin: 1.1rem 0 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 25e. Enlarged text (browser text size / zoom) ---------- */
/* A word longer than its column may break instead of pushing the column past the screen edge.
   (anywhere, unlike break-word, also lets grid/flex columns shrink below the longest word.) */
h1, h2, h3, h4, .btn, .faq__q, .mobile-bar a, .svc-link, .city span, .bar > span:first-child, .breadcrumb, .eyebrow, .coverage__list li { overflow-wrap: anywhere; }
.page-hero__grid > *, .decision > *, .claim-step > *, .related-grid > *, .city-grid > *, .stats > * { min-width: 0; }

/* ---------- 26. Scroll-reveal ("shingles settling") ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-settle); transition-delay: var(--d, 0s); }

/* ---------- 27. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .bar__fill { transform: none; }
  .layer { transition: none; }
}

/* ---------- 28. Print ---------- */
@media print {
  .topbar, .site-header, .mobile-bar, .mobile-menu, .scene, .cta-band, .site-footer__roofline { display: none !important; }
  body { color: #000; }
  .hero, .page-hero { background: #fff !important; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}
