/* ==========================================================================
   aFiremansFriend site styles
   Fire brand + water accents. Edit tokens in :root to retheme everything.
   ========================================================================== */

:root {
  /* Brand (fire) */
  --ember: #c7281c;        /* primary CTA, passes AA on white + cream */
  --ember-dark: #9f1f15;
  --copper: #792813;
  --flame: #e1501d;        /* decorative only */
  --tangerine: #ec7807;    /* decorative only */
  --sand: #e6b98d;
  --cream: #fbf3ea;
  --char: #393433;         /* body text */

  /* Water accents */
  --deep: #0b3954;         /* dark sections, footer */
  --deeper: #072a3f;
  --pool: #0a6fa3;         /* links + blue text, AA on white */
  --aqua: #36b6d9;         /* decorative only */
  --aqua-light: #7fd3ea;   /* text on deep */
  --shallow: #e3f4fa;
  --foam: #f4fbfd;

  --muted: #5d6b75;
  --line: #d9e6ec;
  --white: #fff;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 57, 84, .08);
  --shadow: 0 14px 40px -12px rgba(11, 57, 84, .25);
  --shadow-lg: 0 30px 60px -20px rgba(11, 57, 84, .35);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* icon theming (see sprite classes) */
  --ic-line: var(--deep);
  --ic-fill: #fff;
  --ic-water: #9fdcf0;
  --ic-accent: var(--ember);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--char); background: var(--white); overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--pool); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ember); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.05; margin: 0 0 .5em; color: var(--deep); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.1; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Icon sprite theming ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 56px; height: 56px; flex: none; }
.ic .l, .ic .d, .ic .ck { fill: none; stroke: var(--ic-line); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ic .d { stroke-dasharray: 4 5; }
.ic .ck { stroke: #fff; stroke-width: 3; }
.ic .f { fill: var(--ic-fill); stroke: var(--ic-line); stroke-width: 2.6; stroke-linejoin: round; }
.ic .w { fill: var(--ic-water); stroke: var(--ic-line); stroke-width: 2.6; stroke-linejoin: round; }
.ic .a { fill: var(--ic-accent); stroke: var(--ic-line); stroke-width: 2.6; stroke-linejoin: round; }
.g { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.15em; }
.on-deep .ic, .ic--deep { --ic-line: #fff; --ic-fill: rgba(255,255,255,.08); --ic-water: rgba(127, 211, 234, .55); --ic-accent: var(--tangerine); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-foam { background: var(--foam); }
.bg-shallow { background: var(--shallow); }
.bg-cream { background: var(--cream); }
.bg-deep { background: var(--deep); color: #dbe9f0; }
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep a:not(.btn) { color: var(--aqua-light); }
.bg-deep a:not(.btn):hover { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-body);
  font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ember);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ember), var(--tangerine)); }
.eyebrow--blue { color: var(--pool); }
.eyebrow--blue::before { background: linear-gradient(90deg, var(--pool), var(--aqua)); }
.bg-deep .eyebrow { color: #ffb57a; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.6; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ember); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg);
  box-shadow: 0 10px 24px -10px rgba(199, 40, 28, .7); overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn::after { /* shimmer */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { color: var(--fg); background: var(--ember-dark); border-color: var(--ember-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(199, 40, 28, .8); }
.btn:hover::after { transform: translateX(120%); }
.btn .g { transition: transform .25s var(--ease); }
.btn:hover .g { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--deep); border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { --fg: #fff; background: var(--deep); border-color: var(--deep); box-shadow: var(--shadow); }
.bg-deep .btn--ghost, .on-photo .btn--ghost { --fg: #fff; }
.bg-deep .btn--ghost:hover { background: #fff; border-color: #fff; --fg: var(--deep); }
.btn--water { --bg: var(--pool); box-shadow: 0 10px 24px -10px rgba(10, 111, 163, .7); }
.btn--water:hover { background: var(--deep); border-color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 2rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--pool); }
.link-arrow .g { transition: transform .25s var(--ease); }
.link-arrow:hover .g { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow .3s; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--ember), var(--tangerine) 35%, var(--aqua) 70%, var(--pool)); background-size: 200% 100%; animation: tide 12s linear infinite; z-index: 1; }
@keyframes tide { to { background-position: -200% 0; } }
.site-header.is-scrolled { box-shadow: 0 8px 28px -14px rgba(11,57,84,.35); }
.header-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height .3s; }
.is-scrolled .header-inner { height: 68px; }
.brand { display: block; flex: none; }
.brand img { width: 210px; transition: width .3s; }
.is-scrolled .brand img { width: 176px; }

.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--line); color: var(--deep); border-radius: 12px; padding: 9px 12px; font-weight: 700; }
.nav-toggle .g { width: 22px; height: 22px; }
.nav-toggle .g-close { display: none; }
.nav-toggle[aria-expanded="true"] .g-menu { display: none; }
.nav-toggle[aria-expanded="true"] .g-close { display: block; }

.primary-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.primary-nav a, .primary-nav .sub-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; background: none; border: 0;
  color: var(--deep); font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap; position: relative;
}
.primary-nav > ul > li > a:not(.btn)::after, .primary-nav .sub-toggle::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ember), var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav > ul > li > a:not(.btn):hover::after, .primary-nav .sub-toggle:hover::after, .primary-nav [aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a:hover, .primary-nav .sub-toggle:hover { color: var(--ember); }
.sub-toggle .g { width: 16px; height: 16px; transition: transform .25s; }
.sub-toggle[aria-expanded="true"] .g { transform: rotate(180deg); }
.has-sub { position: relative; }
.submenu {
  list-style: none; position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; padding: 10px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.submenu.is-open { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: flex; gap: 12px; padding: 10px 12px; width: 100%; white-space: normal; }
.submenu a:hover { background: var(--foam); }
.submenu .ic { width: 34px; height: 34px; }
.primary-nav a.nav-cta { background: var(--ember); border-color: var(--ember); margin-left: 10px; padding: .75em 1.25em; font-size: .95rem; color: #fff; }
.primary-nav a.nav-cta:hover { color: #fff; background: var(--ember-dark); }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: 84px 0 auto 0; max-height: calc(100vh - 84px); overflow: auto; background: #fff;
    border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px var(--gutter) 28px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .is-scrolled .primary-nav { inset: 68px 0 auto 0; }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line); }
  .primary-nav a, .primary-nav .sub-toggle { width: 100%; padding: 14px 4px; font-size: 1.1rem; justify-content: space-between; }
  .primary-nav > ul > li > a::after, .primary-nav .sub-toggle::after { display: none; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 10px; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; }
  .submenu.is-open { display: block; }
  .primary-nav > ul > li:last-child { border: 0; padding-top: 18px; }
  .primary-nav a.nav-cta { margin: 0; width: 100%; justify-content: center; }
}

/* ---------- Wave dividers ---------- */
.wave { position: absolute; left: 0; right: 0; height: 70px; pointer-events: none; overflow: hidden; line-height: 0; }
.wave--bottom { bottom: -1px; }
.wave--top { top: -1px; transform: scaleY(-1); }
.wave svg { width: 200%; max-width: none; height: calc(100% + 2px); animation: drift 18s linear infinite; will-change: transform; backface-visibility: hidden; }
.wave svg + svg { position: absolute; inset: 0; opacity: .45; animation-duration: 26s; animation-direction: reverse; }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(110px, 12vw, 160px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(54,182,217,.22), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(236,120,7,.10), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--foam) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .hl { background: linear-gradient(90deg, var(--pool), var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 58ch; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: center; width: 100%; }
.hero-blob {
  position: absolute; inset: 6%; overflow: hidden; background: var(--deep);
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; box-shadow: var(--shadow-lg);
  animation: morph 16s ease-in-out infinite alternate;
}
.hero-blob img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: shimmer 14s ease-in-out infinite alternate; }
@keyframes morph {
  50% { border-radius: 56% 44% 40% 60% / 44% 58% 42% 56%; }
  100% { border-radius: 42% 58% 60% 40% / 58% 42% 58% 42%; }
}
@keyframes shimmer { to { transform: scale(1.2) translate(-3%, 2%); } }
.ripple { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); transform: translate(-50%, -50%) scale(.2); opacity: 0; animation: ripple 5s ease-out infinite; }
.ripple:nth-child(3) { animation-delay: 1.6s; }
.ripple:nth-child(4) { animation-delay: 3.2s; }
@keyframes ripple { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3); } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff;
  border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; color: var(--deep); font-size: .95rem;
  animation: bob 6s ease-in-out infinite;
}
.chip .ic { width: 40px; height: 40px; }
.chip--1 { top: 6%; left: -4%; }
.chip--2 { top: 44%; right: -6%; animation-delay: -2s; }
.chip--3 { bottom: 4%; left: 6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Assess / Harden / Defend ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); position: relative; counter-reset: step; }
.trio-path { position: absolute; top: 34%; left: 12%; right: 12%; height: 40px; z-index: 0; }
.trio-path path { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.trio-card { position: relative; z-index: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.trio-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.trio-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--shallow); }
.trio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.trio-card:hover .trio-media img { transform: scale(1.07); }
.trio-num { position: relative; z-index: 2; margin: -32px 0 0 22px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.trio-num .ic { width: 40px; height: 40px; }
.trio-body { padding: 14px 26px 28px; }
.trio-body h3 { display: flex; align-items: baseline; gap: 10px; font-size: 2rem; }
.trio-body h3 span { font-size: 1rem; color: var(--ember); font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; }
.trio-body p { margin: 0; }

/* ---------- Community map ---------- */
.mapgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; background: #7a9a7f; }
.map > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(1.03); }
.map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,57,84,.0), rgba(11,57,84,.18)); pointer-events: none; }
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.map-overlay .net { fill: none; stroke: #fff; stroke-width: .5; stroke-dasharray: 1.5 1.2; filter: drop-shadow(0 0 .6px rgba(11,57,84,.9)); }
.map-overlay .net.is-drawn { animation: march 2.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -5.4; } }
.mk { transition: opacity .3s, transform .3s; transform-box: fill-box; transform-origin: center; }
.mk-hydrant circle { fill: var(--ember); stroke: #fff; stroke-width: .5; }
.mk-pool circle { fill: var(--aqua); stroke: #fff; stroke-width: .5; }
.mk-eval circle { fill: rgba(236,120,7,.25); stroke: var(--tangerine); stroke-width: .5; stroke-dasharray: 1 .8; }
.mk-gap circle { fill: url(#hatch); stroke: #fff; stroke-width: .4; stroke-dasharray: 1.2 1; }
.mk-pulse { animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.map[data-focus] .mk, .map[data-focus] .net { opacity: .18; }
.map[data-focus="hydrant"] .mk-hydrant, .map[data-focus="pool"] .mk-pool, .map[data-focus="eval"] .mk-eval,
.map[data-focus="net"] .net, .map[data-focus="net"] .mk-pool, .map[data-focus="gap"] .mk-gap { opacity: 1; }
.map-badge { position: absolute; z-index: 3; left: 14px; top: 14px; background: rgba(255,255,255,.94); color: var(--deep); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.legend { list-style: none; display: grid; gap: 10px; }
.legend-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.legend-item:hover, .legend-item.is-active { border-color: var(--aqua); transform: translateX(6px); box-shadow: var(--shadow); }
.legend-item h3 { font-size: 1.3rem; margin: 2px 0 2px; }
.legend-item p { margin: 0; font-size: .98rem; }
.legend-btn { border: 0; background: var(--foam); border-radius: 12px; padding: 6px; line-height: 0; }
.legend-btn .ic { width: 42px; height: 42px; }
.legend-btn[aria-pressed="true"] { background: var(--shallow); box-shadow: inset 0 0 0 2px var(--pool); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.map-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* ---------- Requirements (deep section) ---------- */
.caustics { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.caustics::before, .caustics::after {
  content: ""; position: absolute; inset: -40%;
  background:
    radial-gradient(closest-side, rgba(54,182,217,.22), transparent) 10% 20% / 40% 40% no-repeat,
    radial-gradient(closest-side, rgba(127,211,234,.14), transparent) 80% 30% / 50% 50% no-repeat,
    radial-gradient(closest-side, rgba(236,120,7,.10), transparent) 60% 90% / 40% 40% no-repeat;
  animation: swirl 30s linear infinite;
}
.caustics::after { animation-duration: 44s; animation-direction: reverse; opacity: .7; }
@keyframes swirl { to { transform: rotate(360deg); } }
.req-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.req-tiles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.req-tile {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); transition: background .3s, transform .35s var(--ease);
}
.req-tile:nth-child(even) { transform: translateY(34px); }
.req-tile:hover { background: rgba(255,255,255,.11); }
.req-tile .ic { width: 64px; height: 64px; margin-bottom: 18px; }
.req-tile h3 { font-size: 1.55rem; margin: 0; }
.req-tile .num { position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: rgba(255,255,255,.12); }
.req-check { position: absolute; right: 20px; bottom: 20px; width: 30px; height: 30px; border-radius: 50%; background: #2a8f5b; color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--ease) .6s; }
.is-visible .req-check { transform: scale(1); }
.req-check .g { width: 18px; height: 18px; }

/* ---------- Audience bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 20px; }
.aud {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--char); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.aud::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--ember), var(--tangerine), var(--aqua)); transform: scaleX(.18); transform-origin: left; transition: transform .5s var(--ease); }
.aud::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--foam); z-index: -1; transition: transform .6s var(--ease); }
a.aud:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--char); }
a.aud:hover::before { transform: scaleX(1); }
a.aud:hover::after { transform: scale(1.8); background: var(--shallow); }
.aud .ic { width: 64px; height: 64px; margin-bottom: 18px; transition: transform .4s var(--ease); }
a.aud:hover .ic { transform: rotate(-6deg) scale(1.08); }
.aud h3 { font-size: 1.6rem; margin-bottom: .35em; }
.aud p { margin: 0 0 1em; }
.aud .link-arrow { margin-top: auto; }
.aud--feature { grid-row: span 2; color: #fff; justify-content: flex-end; min-height: 460px; border: 0; background: var(--deep); }
.aud--feature::after { display: none; }
.aud--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.aud--feature .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,57,84,0) 25%, rgba(11,57,84,.92) 80%); }
.aud--feature h3 { color: #fff; font-size: 2.2rem; }
.aud--feature .ic { margin-top: auto; }
.aud--feature .link-arrow { margin-top: 0; }
.aud--feature .link-arrow { color: #ffd2a8; }
.aud--feature .ic { --ic-line: #fff; --ic-fill: rgba(255,255,255,.15); --ic-water: rgba(127,211,234,.6); --ic-accent: var(--tangerine); }
a.aud--feature:hover { color: #fff; }
a.aud--feature:hover img { transform: scale(1.06); }
.aud--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; gap: 24px; align-items: center; }
.aud--wide .ic { margin: 0; width: 76px; height: 76px; }
.aud--wide > div { flex: 1; }
.aud--soon { background: var(--cream); border-style: dashed; border-color: var(--sand); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--copper); border: 1px solid var(--sand); margin-top: auto; align-self: flex-start; }

/* ---------- Articles ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--char); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--char); }
.post-media { aspect-ratio: 16 / 10; background: var(--deep); overflow: hidden; display: grid; place-items: center; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-media img { transform: scale(1.06); }
.post-media--mark img { width: 46%; height: auto; object-fit: contain; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post time { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pool); }
.post h3 { font-size: 1.5rem; margin: 0; }
.post p { font-size: .98rem; margin: 0; color: var(--muted); }
.post .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.cta-photo { position: relative; }
.cta-photo .frame { position: relative; border-radius: 28px 28px 28px 120px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); background: var(--shallow); }
.cta-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 28px 28px 28px 120px; border: 3px solid var(--tangerine); z-index: -1; }
.cta-photo .stamp { position: absolute; right: -18px; top: -18px; width: 104px; height: 104px; border-radius: 50%; background: var(--pool); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); animation: spin 26s linear infinite; }
.stamp svg { width: 100%; height: 100%; }
.stamp text { fill: #fff; font: 700 9.5px var(--font-body); letter-spacing: 2.4px; text-transform: uppercase; }
.stamp .g { position: absolute; width: 30px; height: 30px; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--deep); color: #cfe0e8; padding: 120px 0 36px; margin-top: 0; }
.site-footer .wave { top: -1px; bottom: auto; height: 60px; transform: scaleY(-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 250px; margin-bottom: 18px; }
.footer-tag { font-family: var(--font-head); font-size: 1.6rem; color: #fff; margin-bottom: .4em; }
.site-footer h2 { font-size: 1.05rem; font-family: var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #ffb57a; margin-bottom: 1em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--aqua-light); text-decoration: underline; }
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: center; }
.footer-list .g { color: var(--aqua-light); }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top .g { transform: rotate(-90deg); }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal[data-reveal="left"] { transform: translate3d(-60px, 0, 0); }
.js .reveal[data-reveal="right"] { transform: translate3d(60px, 0, 0); }
.js .reveal[data-reveal="zoom"] { transform: scale(.9); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .req-tile.reveal.is-visible:nth-child(even) { transform: translateY(34px); }
.draw path { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 2s var(--ease); }
.draw.is-visible path { stroke-dashoffset: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .mapgrid, .req-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .trio { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .trio-path { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .aud--feature { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .articles { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
  .cta-photo { order: -1; max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img, .is-scrolled .brand img { width: 168px; }
  .header-inner, .is-scrolled .header-inner { height: 72px; }
  .primary-nav, .is-scrolled .primary-nav { inset: 72px 0 auto 0; }
  .chip { font-size: .85rem; padding: 6px 12px 6px 6px; }
  .chip .ic { width: 32px; height: 32px; }
  .chip--1 { left: 0; } .chip--2 { right: 0; }
  .req-tiles { grid-template-columns: 1fr; }
  .req-tile:nth-child(even), .js .req-tile.reveal.is-visible:nth-child(even) { transform: none; }
  .bento, .articles { grid-template-columns: 1fr; }
  .aud--feature, .aud--wide { grid-column: auto; }
  .aud--wide { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .cta-photo::before { inset: 14px -10px -14px 14px; }
  .cta-photo .stamp { width: 84px; height: 84px; right: -6px; }
  .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .draw path { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Interior page components
   ========================================================================== */

/* Breadcrumb */
.crumbs { font-size: .88rem; margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ember); text-decoration: underline; }
.crumbs [aria-current] { color: var(--deep); font-weight: 600; }
.on-photo .crumbs a, .on-photo .crumbs li::before { color: rgba(255,255,255,.85); }
.on-photo .crumbs [aria-current] { color: #fff; }

/* Page hero: base */
.phero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 10vw, 140px); background: linear-gradient(180deg, #fff, var(--foam)); }
.phero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.phero p { max-width: 62ch; }

/* split hero */
.phero--split .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.tilt-frame { position: relative; }
.tilt-frame .frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(2.5deg); transition: transform .6s var(--ease); aspect-ratio: 4 / 3.2; background: var(--shallow); }
.tilt-frame:hover .frame { transform: rotate(0); }
.tilt-frame .frame img { width: 100%; height: 100%; object-fit: cover; }
.tilt-frame::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border-radius: var(--radius); background: repeating-linear-gradient(135deg, rgba(54,182,217,.25) 0 2px, transparent 2px 12px); transform: rotate(-3deg); z-index: -1; }
.tilt-frame .badge { position: absolute; left: -22px; bottom: 26px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 700; color: var(--deep); animation: bob 6s ease-in-out infinite; max-width: 260px; line-height: 1.25; }
.tilt-frame .badge .ic { width: 46px; height: 46px; }

/* photo hero */
.phero--photo { color: #fff; background: var(--deep); padding-top: clamp(70px, 10vw, 140px); min-height: 640px; display: flex; align-items: center; }
.phero--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translate(-1%, -1%); } }
.phero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,42,63,.88) 0%, rgba(7,42,63,.6) 45%, rgba(7,42,63,.1) 100%); z-index: 1; }
.phero--photo .wrap { position: relative; z-index: 2; }
.phero--photo h1 { color: #fff; max-width: 15ch; }
.phero--photo .eyebrow { color: #ffc38f; }
.phero--photo .glass { max-width: 640px; }
.phero--photo .lede { color: #e8f3f7; }

/* card hero (light photo, white card) */
.phero--card { padding: 0; background: var(--foam); }
.phero--card .ph-img { position: relative; height: clamp(300px, 46vw, 560px); overflow: hidden; }
.phero--card .ph-img img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.phero--card .ph-card { position: relative; z-index: 2; margin-top: -160px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px 48px; align-items: end; }
.phero--card .ph-card .btn-row { margin: 0; justify-content: flex-end; }
.phero--card + .section { padding-top: clamp(56px, 7vw, 96px); }

/* centered hero */
.phero--center { text-align: center; background: radial-gradient(70% 90% at 50% 0%, var(--shallow), #fff 70%); }
.phero--center .wrap { position: relative; z-index: 1; }
.phero--center p, .phero--center h1 { margin-inline: auto; }
.phero--center h1 { max-width: 20ch; }
.phero--center .eyebrow, .phero--center .btn-row, .phero--center .crumbs ol { justify-content: center; }
.rings { position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none; }
.rings span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(54,182,217,.35); animation: ring 9s linear infinite; opacity: 0; }
.rings span:nth-child(2) { animation-delay: 3s; } .rings span:nth-child(3) { animation-delay: 6s; }
@keyframes ring { 0% { transform: scale(.15); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* Split content block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--wide-text { grid-template-columns: 1.2fr .8fr; }
.split--top { align-items: start; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--shallow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-offset { position: relative; }
.media-offset::after { content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: var(--radius); border: 3px solid var(--aqua); z-index: -1; }
.media-round .media-frame { border-radius: 50% 50% var(--radius) var(--radius); }

/* Checklist with water-drop bullets */
.checks { list-style: none; display: grid; gap: 12px; margin: 1.2rem 0; }
.checks li { position: relative; padding: 14px 18px 14px 58px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); font-weight: 500; transition: transform .25s var(--ease), box-shadow .25s; }
.checks li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.checks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--shallow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230a6fa3' d='M12 4c-3 4.2-5 7-5 9.6a5 5 0 0 0 10 0C17 11 15 8.2 12 4z'/%3E%3C/svg%3E") no-repeat center / 18px; }
.checks--plain li { background: transparent; box-shadow: none; padding: 6px 0 6px 44px; }
.checks--plain li::before { left: 0; }
.checks--grid { grid-template-columns: 1fr 1fr; }
.bg-deep .checks li { background: rgba(255,255,255,.07); color: #fff; box-shadow: none; }

/* Generic icon cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { position: relative; padding: 30px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ic { width: 62px; height: 62px; margin-bottom: 16px; }
.card h3 { margin-bottom: .4em; }
.card > :last-child { margin-bottom: 0; }
.card--accent { border-top: 5px solid var(--pool); }
.card--ember { border-top: 5px solid var(--ember); }
.card--deep { background: var(--deep); color: #dbe9f0; border: 0; }
.card--deep h3 { color: #fff; }
.card--deep a:not(.btn) { color: var(--aqua-light); }

/* Note callout */
.note { position: relative; padding: 18px 22px 18px 58px; border-radius: 14px; background: var(--cream); border: 1px solid var(--sand); color: var(--char); font-size: .98rem; }
.note::before { content: "i"; position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--copper); color: #fff; font: 700 15px/26px Georgia, serif; text-align: center; font-style: italic; }
.note p:last-child { margin: 0; }
.note--blue { background: var(--shallow); border-color: #bfe3f1; }
.note--blue::before { background: var(--pool); }
.strong-callout { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; color: var(--deep); font-weight: 700; padding-left: 20px; border-left: 5px solid var(--tangerine); margin: 1.5rem 0; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.4rem; }
.faq .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--shallow); position: relative; transition: background .3s, transform .4s var(--ease); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: var(--pool); border-radius: 2px; transition: transform .4s var(--ease), background .3s; }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { background: var(--ember); transform: rotate(180deg); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: #fff; }
.faq details[open] .plus::after { transform: rotate(0); }
.faq .answer { padding: 0 24px 22px; }
.faq .answer p { margin: 0; }
.faq summary:hover h3 { color: var(--ember); }

/* Vertical timeline (How It Works) */
.timeline { list-style: none; position: relative; max-width: 1000px; margin-inline: auto; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--line); border-radius: 4px; }
.timeline .fill { position: absolute; left: 50%; top: 0; width: 4px; margin-left: -2px; height: var(--progress, 0%); background: linear-gradient(180deg, var(--aqua), var(--pool), var(--ember)); border-radius: 4px; transition: height .2s linear; }
.tl-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 90px; margin-bottom: 40px; }
.tl-step:last-child { margin-bottom: 0; }
.tl-card { grid-column: 1; text-align: right; background: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.tl-step.is-right .tl-card { grid-column: 2; text-align: left; }
.tl-card h3 { margin-bottom: .35em; }
.tl-card p { margin: 0; }
.tl-dot { position: absolute; left: 50%; top: 22px; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--foam), var(--shadow); z-index: 1; }
.tl-dot .ic { width: 40px; height: 40px; }
.tl-num { position: absolute; top: 34px; font-family: var(--font-head); font-size: 4.5rem; font-weight: 700; line-height: 1; color: rgba(10,111,163,.12); }
.tl-step .tl-num { left: calc(50% + 56px); }
.tl-step.is-right .tl-num { left: auto; right: calc(50% + 56px); }

/* Role constellation (Cities) */
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin-inline: auto; }
.orbit .core { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; text-align: center; padding: 18px; box-shadow: var(--shadow-lg); }
.orbit .core h3 { color: #fff; font-size: 1.5rem; margin: 6px 0 0; }
.orbit .core .ic { width: 52px; height: 52px; margin-inline: auto; }
.orbit .track { position: absolute; inset: 8%; border-radius: 50%; border: 2px dashed rgba(10,111,163,.35); animation: spin 60s linear infinite; }
.orbit ul { list-style: none; }
.orbit li { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; color: var(--deep); white-space: nowrap; font-size: .95rem; }
.orbit li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--aqua); margin-right: 8px; }
.orbit li:nth-child(odd)::before { background: var(--ember); }

/* Numbered scope cards */
.numcards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: n; }
.numcards li { counter-increment: n; position: relative; padding: 70px 22px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); font-weight: 500; }
.numcards li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--ember); line-height: 1; }
.numcards li::after { content: ""; position: absolute; left: 22px; right: 22px; top: 60px; height: 2px; background: linear-gradient(90deg, var(--ember), transparent); }

/* Definition card (Homeowners) */
.defcard { position: relative; background: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); overflow: hidden; }
.defcard::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--shallow), transparent 70%); }
.defcard .term { display: flex; align-items: center; gap: 16px; }
.defcard .term .ic { width: 72px; height: 72px; }
.defcard h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0; }
.defcard .pron { font-style: italic; color: var(--muted); font-size: .95rem; }
.defcard .def { font-size: 1.2rem; margin: 1.2rem 0 0; padding-top: 1.2rem; border-top: 2px dashed var(--line); }

/* Hotspot photo (draft hydrant) */
.hotspots { position: relative; }
.hotspots .media-frame { aspect-ratio: 800 / 559; }
.hs { position: absolute; transform: translate(-50%, -50%); }
.hs-dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--pool); display: block; box-shadow: 0 0 0 0 rgba(54,182,217,.7); animation: hs 2.2s infinite; }
@keyframes hs { 70% { box-shadow: 0 0 0 16px rgba(54,182,217,0); } 100% { box-shadow: 0 0 0 0 rgba(54,182,217,0); } }
.hs-label { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; background: var(--deep); color: #fff; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.hs-label::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--deep); }

/* Photo CTA band */
.band { position: relative; overflow: hidden; color: #fff; background: var(--deep); padding-block: clamp(80px, 10vw, 140px); text-align: center; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 50%, rgba(11,57,84,.55), rgba(7,42,63,.92)); }
.band .wrap { position: relative; }
.band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.band p { max-width: 60ch; margin-inline: auto; color: #e3eff4; }
.band .btn-row { justify-content: center; }
.band .eyebrow { color: #ffc38f; justify-content: center; }
.band--light { color: var(--char); background: var(--shallow); }
.band--light::before { background: radial-gradient(60% 80% at 50% 50%, rgba(255,255,255,.85), rgba(227,244,250,.95)); }
.band--light h2 { color: var(--deep); }
.band--light p { color: var(--char); }
.band--light .eyebrow { color: var(--ember); }

/* Split CTA card */
.cta-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(120deg, var(--deep), #0e4d70); color: #dbe9f0; border-radius: 26px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(54,182,217,.15); }
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .3em; }
.cta-card p { margin: 0; }
.cta-card .ic { width: 84px; height: 84px; }
.cta-card .btn { position: relative; z-index: 1; }

/* Readiness checklist (Pilot) */
.ready { list-style: none; display: grid; gap: 14px; }
.ready label { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 2px solid var(--line); cursor: pointer; font-weight: 600; transition: border-color .25s, background .25s; }
.ready input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ready .box { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2.5px solid var(--pool); display: grid; place-items: center; transition: background .25s; }
.ready .box .g { width: 18px; height: 18px; color: #fff; transform: scale(0); transition: transform .3s var(--ease); }
.ready input:checked + label { border-color: var(--pool); background: var(--foam); }
.ready input:checked + label .box { background: var(--pool); }
.ready input:checked + label .box .g { transform: scale(1); }
.ready input:focus-visible + label { outline: 3px solid var(--tangerine); outline-offset: 2px; }
.meter { margin-top: 18px; height: 12px; border-radius: 12px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(90deg, var(--aqua), var(--pool)); transition: width .5s var(--ease); }
.meter-label { font-weight: 700; color: var(--pool); margin-top: 8px; font-size: .95rem; }

/* Steps rail (Pilot / Request) */
.rail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; }
.rail-card { position: relative; background: #fff; border-radius: var(--radius); padding: 34px 30px 30px; box-shadow: var(--shadow); }
.rail-card .step { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pool); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 10px; }

/* Year hero (About) */
.year { font-family: var(--font-head); font-weight: 700; font-size: clamp(7rem, 22vw, 18rem); line-height: .8; letter-spacing: -.03em; background: linear-gradient(180deg, var(--pool), var(--aqua) 60%, rgba(54,182,217,.1)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Profiles (About) */
.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.profile { background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.profile .mono { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--ember), var(--tangerine)); margin-bottom: 18px; box-shadow: 0 0 0 8px var(--cream); }
.profile .mono--photo { display: block; width: 132px; height: 132px; padding: 4px; object-fit: cover; background: linear-gradient(135deg, var(--ember), var(--tangerine)); transition: transform .5s var(--ease); }
.profile:nth-child(2) .mono--photo { background: linear-gradient(135deg, var(--pool), var(--aqua)); }
.profile:hover .mono--photo { transform: scale(1.05) rotate(-2deg); }
.profile:nth-child(2) .mono { background: linear-gradient(135deg, var(--pool), var(--aqua)); box-shadow: 0 0 0 8px var(--shallow); }
.profile .role { display: block; font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); font-weight: 700; margin-top: 4px; }

/* Source cards (Evidence) */
.source { display: grid; grid-template-columns: auto 1fr; gap: 24px; background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-left: 6px solid var(--pool); }
.source + .source { margin-top: 22px; }
.source .ic { width: 70px; height: 70px; }
.source .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pool); margin-bottom: 6px; display: block; }
.source .cite { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: var(--foam); font-weight: 700; text-decoration: none; }
.source .cite:hover { background: var(--shallow); }

/* Contact strip */
.contact-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; list-style: none; }
.contact-strip li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); padding: 10px 18px; border-radius: 999px; }
.contact-strip a { color: #fff; text-decoration: none; }
.contact-strip a:hover { text-decoration: underline; color: #fff; }
.contact-strip .g { color: var(--aqua-light); }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1.45fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--deep); }
.field .opt { font-weight: 500; color: var(--muted); font-size: .9rem; }
.field .req { color: var(--ember); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 12px; border: 2px solid #c9d9e0; background: var(--foam); color: var(--char); width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230b3954' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pool); background: #fff; box-shadow: 0 0 0 4px rgba(54,182,217,.25); }
.field [aria-invalid="true"] { border-color: var(--ember); background: #fff6f5; }
.field .err { color: var(--ember); font-size: .9rem; font-weight: 600; display: none; }
.field [aria-invalid="true"] ~ .err { display: block; }
.form-intro { font-style: italic; color: var(--muted); }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-weight: 600; display: none; }
.form-status.is-error { display: block; background: #fff1ef; color: var(--ember-dark); border: 1px solid #f3c4bd; }
.form-status.is-ok { display: block; background: #eaf7f0; color: #1d6b43; border: 1px solid #bfe5cf; }
.hp { position: absolute; left: -9999px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.sticky-side { position: sticky; top: 110px; display: grid; gap: 20px; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 28px; align-items: start; }
.calc-panel { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--ember); }
.calc-panel .help { font-size: .92rem; color: var(--muted); margin: 0 0 8px; line-height: 1.45; }
.calc-panel .field { margin-top: 18px; }
.calc-panel input { font-size: 1.25rem; font-weight: 600; }
.calc-results h3 { color: #fff; }
.calc-results { background: var(--deep); color: #dbe9f0; border-radius: 24px; padding: 32px; position: relative; overflow: hidden; }
.calc-empty { border: 2px dashed rgba(255,255,255,.3); border-radius: 18px; padding: 28px; text-align: center; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 20px; }
.stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--aqua-light); }
.stat .v { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: #fff; line-height: 1.05; margin-top: 4px; }
.calc-results .small { font-size: .92rem; margin-top: 18px; color: #c7dbe4; }
.calc-results details { margin-top: 16px; background: rgba(255,255,255,.06); border-radius: 14px; padding: 16px 18px; }
.calc-results summary { cursor: pointer; font-weight: 700; color: #fff; }
.asm { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; font-size: .9rem; }
.asm b { display: block; font-size: 1.15rem; color: #fff; }
.flag { background: rgba(236,120,7,.15); border: 1px solid rgba(236,120,7,.6); padding: 10px 12px; font-size: .88rem; border-radius: 10px; color: #ffd9b5; }
.calc-err { color: var(--ember); font-weight: 600; margin-top: 14px; }

/* Legal placeholder */
.legal { min-height: 30vh; }

@media (max-width: 980px) {
  .phero--split .wrap, .split, .split--wide-text, .form-wrap, .calc, .rail, .profiles { grid-template-columns: 1fr; }
  .phero--card .ph-card { grid-template-columns: 1fr; margin-top: -100px; }
  .phero--card .ph-card .btn-row { justify-content: flex-start; }
  .tilt-frame { max-width: 560px; }
  .checks--grid { grid-template-columns: 1fr; }
  .timeline::before, .timeline .fill { left: 32px; }
  .tl-step { grid-template-columns: 1fr; padding-left: 90px; }
  .tl-step .tl-card, .tl-step.is-right .tl-card { grid-column: 1; text-align: left; }
  .tl-dot { left: 32px; }
  .tl-num, .tl-step.is-right .tl-num { display: none; }
  .cta-card { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .media-offset::after { inset: 14px -10px -14px 14px; }
}
@media (max-width: 640px) {
  .form-grid, .calc-out { grid-template-columns: 1fr; }
  .phero--photo { min-height: 520px; }
  .phero--photo::before { background: linear-gradient(180deg, rgba(7,42,63,.55), rgba(7,42,63,.9)); }
  .orbit li { font-size: .8rem; padding: 7px 11px; }
  .tilt-frame .badge { left: 8px; bottom: -18px; }
  .source { grid-template-columns: 1fr; }
  .tl-step { padding-left: 76px; }
  .tl-dot { width: 52px; height: 52px; margin-left: -26px; left: 26px; }
  .timeline::before, .timeline .fill { left: 26px; }
}

[hidden] { display: none !important; }
.on-deep .card:not(.card--deep) .ic, .on-deep .aud .ic { --ic-line: var(--deep); --ic-fill: #fff; --ic-water: #9fdcf0; --ic-accent: var(--ember); }
.bg-deep .card:not(.card--deep) h3, .bg-deep .aud h3 { color: var(--deep); }
.bg-deep .aud .link-arrow { color: var(--pool); }
.cta-card a:not(.btn) { color: var(--aqua-light); }
.cta-card a:not(.btn):hover { color: #fff; }

/* Accordion animation wrapper (added by JS) */
details > .dt-body { overflow: hidden; }

/* Pipe schematic */
.schematic { margin: 0; background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(14px, 2.5vw, 28px); }
.schem-svg { width: 100%; height: auto; border-radius: 18px; }
.schem-label { font: 700 26px var(--font-head); fill: var(--deep); }
.schem-strong { font: 700 24px var(--font-head); fill: var(--deep); letter-spacing: .04em; }
.hose { fill: none; stroke: #c9d3d9; stroke-width: 30; stroke-linecap: round; }
.arrow { stroke: var(--aqua); stroke-width: 7; marker-end: url(#arrowhead); fill: none; }
.flow { fill: none; stroke: #7fd3ea; stroke-width: 5; stroke-dasharray: 10 14; stroke-linecap: round; opacity: .95; animation: flow 1.2s linear infinite; }
.flow--soft { opacity: .45; animation-duration: 2.4s; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.rotor { transform-origin: 880px 364px; animation: spin 6s linear infinite; }
.badges circle { fill: var(--tangerine); stroke: #fff; stroke-width: 3; }
.badges text { font: 700 17px var(--font-body); fill: var(--deep); text-anchor: middle; }
.schem-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 18px 0 4px; padding: 0; font-weight: 600; color: var(--deep); }
.schem-legend li { display: flex; align-items: center; gap: 10px; }
.schem-legend span { width: 30px; height: 30px; border-radius: 50%; background: var(--tangerine); color: var(--deep); display: grid; place-items: center; font-weight: 700; font-size: .95rem; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.faq details.is-closing .plus { background: var(--shallow); transform: none; }
.faq details.is-closing .plus::before, .faq details.is-closing .plus::after { background: var(--pool); }
.faq details.is-closing .plus::after { transform: rotate(90deg); }

/* Legal pages */
.legal-body h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 2.2em; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin-bottom: .4em; }
.legal-toc { background: var(--foam); border-radius: 16px; padding: 20px 24px; margin-bottom: 2.5rem; }
.legal-toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 4px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
