/* ==========================================================================
   Hydro Home & Pool Service — design system
   Same layout system as Bluewater Pool Care, recolored to the Hydro logo blue
   ========================================================================== */

:root {
  /* Brand */
  --c-primary: #3374e4;          /* Hydro logo blue: decorative, large type */
  --c-primary-strong: #1f5bcc;   /* AA-safe fill for white text */
  --c-primary-deep: #17449c;
  --c-blue: #4fa3ff;
  --c-ice: #e6eefc;
  --c-deep: #0d2552;             /* top bar / navy */

  /* Neutrals */
  --c-ink: #0c1730;
  --c-text: #2e3646;
  --c-muted: #566176;
  --c-dark: #0f1a2e;
  --c-dark-2: #0a1222;
  --c-sand: #f3f6fb;
  --c-gray: #eef2f8;
  --c-line: #dde4ee;
  --c-white: #ffffff;

  /* Type */
  --f-head: "Saira", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 84px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(10, 24, 60, 0.06);
  --shadow: 0 18px 50px -18px rgba(10, 30, 80, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(6, 20, 60, 0.45);

  /* z-index scale */
  --z-header: 50;
  --z-menu: 60;
  --z-lightbox: 80;
  --z-intro: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--c-ink); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-primary); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--c-ink); color: #fff; padding: 12px 18px; border-radius: 999px; transform: translateY(-160%); transition: transform var(--dur) var(--ease-out); }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
.h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
.h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; }
.lead { font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--c-muted); max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary-strong);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 20px; flex: none;
  background: url("../img/mark-blue.png") center / contain no-repeat;
}
.eyebrow--light { color: #a9c6ff; }
.eyebrow--plain::before { display: none; }

/* Split-text word masks (built by JS) */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-primary-strong);
  --btn-fg: #fff;
  --btn-icon-bg: #fff;
  --btn-icon-fg: var(--c-primary-strong);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 6px 6px 6px 26px;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-body); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  touch-action: manipulation; cursor: pointer; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--c-ink); transform: translateY(101%);
  transition: transform 520ms var(--ease-out);
}
.btn__icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--btn-icon-bg); color: var(--btn-icon-fg);
  transition: transform 520ms var(--ease-out);
}
.btn__icon svg { width: 20px; height: 20px; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: rotate(45deg); }
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 50px; padding-left: 20px; font-size: 0.82rem; }
.btn--sm .btn__icon { width: 38px; height: 38px; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-icon-bg: var(--c-primary-strong); --btn-icon-fg: #fff; border-color: var(--c-ink); }
.btn--outline:hover, .btn--outline:focus-visible { --btn-fg: #fff; }
.btn--ghost-light { --btn-bg: rgba(255,255,255,0.08); --btn-fg: #fff; --btn-icon-bg: #fff; --btn-icon-fg: var(--c-ink); border-color: rgba(255,255,255,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { --btn-fg: var(--c-ink); --btn-icon-bg: var(--c-primary-strong); --btn-icon-fg: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-row--center { justify-content: center; }



/* Header floats transparently over dark heroes until scrolled */
.has-hero .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header:not(.is-scrolled) .nav__link,
.has-hero .site-header:not(.is-scrolled) .nav__link.is-active { color: #9dbdff; }
.has-hero .site-header:not(.is-scrolled) .site-header__cta { --btn-bg: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--c-deep); color: #e6edfb; font-size: 0.85rem; position: relative; z-index: calc(var(--z-header) + 1); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__contact { display: flex; align-items: center; gap: 18px; }
.topbar__tag { font-weight: 500; opacity: 0.85; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar__item svg { width: 16px; height: 16px; color: var(--c-primary); }
@media (max-width: 899px) { .topbar__tag { display: none; } }
@media (max-width: 479px) { .topbar__contact { gap: 12px; } .topbar__item:first-child { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 450ms var(--ease-out), border-color var(--dur), box-shadow var(--dur);
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: var(--shadow-sm); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; position: relative; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(16px, 1.8vw, 28px); }
.nav__link {
  position: relative; display: inline-block; padding: 10px 0; white-space: nowrap;
  font-family: var(--f-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--c-primary); transform: scaleX(0); transform-origin: right;
  transition: transform 420ms var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--c-primary-strong); }

.menu-toggle { display: none; position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--c-ink); margin-left: auto; z-index: calc(var(--z-menu) + 1); }
.menu-toggle__bar { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform 450ms var(--ease-out), top 450ms var(--ease-out); }
.menu-toggle__bar:nth-child(2) { top: 21px; }
.menu-toggle__bar:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] { background: var(--c-primary-strong); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { top: 25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { top: 25px; transform: rotate(-45deg); }

@media (max-width: 1239px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  :root { --header-h: 74px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--c-dark);
  color: #fff;
  clip-path: circle(0% at calc(100% - 46px) 60px);
  transition: clip-path 700ms var(--ease-in-out), visibility 0s linear 700ms;
  visibility: hidden;
}
.mobile-menu[hidden] { display: block; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 60px); visibility: visible; transition: clip-path 800ms var(--ease-in-out), visibility 0s; }
.mobile-menu__panel { height: 100%; overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 110px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.mobile-menu__list { display: grid; gap: 6px; }
.mobile-menu__link { display: flex; align-items: baseline; gap: 16px; padding: 8px 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.1; color: #fff; }
.mobile-menu__link span { font-size: 0.85rem; font-family: var(--f-body); color: var(--c-primary); letter-spacing: 0.1em; }
.mobile-menu__link.is-active { color: var(--c-primary); }
.mobile-menu__foot { display: grid; gap: 18px; justify-items: start; margin-top: 40px; }
.mobile-menu__phone { font-weight: 600; color: #d3e1fb; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 42px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--c-dark-2);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.hero__shade { z-index: 2; }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,14,32,0.7) 0%, rgba(6,14,32,0.18) 26%, rgba(6,14,32,0.3) 50%, rgba(6,14,32,0.92) 100%),
    linear-gradient(90deg, rgba(6,18,40,0.72) 0%, rgba(6,18,40,0.35) 45%, rgba(6,18,40,0) 75%),
    rgba(6, 18, 40, 0.34);
}
.hero__content { position: relative; padding-block: 40px 28px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero__eyebrow img { width: 14px; }
.hero__title { text-shadow: 0 2px 30px rgba(0,0,0,0.35); color: #fff; max-width: 15ch; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.02; }
.hero__title em { font-style: normal; color: #9dbdff; }
.hero__text { text-shadow: 0 1px 12px rgba(0,0,0,0.45); max-width: 54ch; margin-top: 22px; font-size: clamp(1rem, 1.25vw, 1.125rem); color: rgba(255,255,255,0.88); }


@media (max-width: 767px) {
  .hero { min-height: calc(100svh - 42px); }
  .hide-sm { display: none; }
  .hero__eyebrow { font-size: 0.75rem; margin-bottom: 16px; }
  .hero__text { font-size: 0.98rem; margin-top: 16px; }
  .hero .btn-row { margin-top: 24px; gap: 10px; }
  .hero__content { padding-block: 24px 16px; }
  .hero .btn-row .btn { flex: 1 1 auto; justify-content: space-between; }
}

/* Scroll cue */
.scroll-cue { position: absolute; right: var(--gutter); bottom: 120px; display: grid; justify-items: center; gap: 10px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.75); writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 54px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(-100%); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 1023px) { .scroll-cue { display: none; } }


/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); position: relative; }
.section--sand { background: var(--c-sand); }
.section--gray { background: var(--c-gray); }
.section--dark { background: var(--c-dark); color: #c6cfdf; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:not(.eyebrow) { margin-top: 20px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 72px; align-items: end; }
.section-head__aside p { color: var(--c-muted); }
@media (max-width: 899px) { .section-head--split { grid-template-columns: 1fr; } }


/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(380px, 38vw, 520px); padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg); color: #fff; background: var(--c-dark);
  box-shadow: var(--shadow);
}
.service-card__media { position: absolute; inset: 0; z-index: -2; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,14,32,0.05) 20%, rgba(6,14,32,0.88) 100%); transition: background var(--dur); }
.service-card h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.service-card p { margin-top: 12px; color: rgba(255,255,255,0.86); max-width: 46ch; }
.service-card__go {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--c-ink);
  transition: transform 600ms var(--ease-out), background var(--dur), color var(--dur);
}
.service-card__go svg { width: 22px; height: 22px; }
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card:hover .service-card__go { transform: rotate(45deg); background: var(--c-primary-strong); color: #fff; }
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card__link:focus-visible { outline: none; }
.service-card:has(.service-card__link:focus-visible) { outline: 3px solid var(--c-primary); outline-offset: 4px; }
@media (max-width: 767px) { .services-grid { grid-template-columns: 1fr; } }

/* Feature cards (light) */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature {
  position: relative; padding: 34px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out), border-color var(--dur);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--c-ice); color: var(--c-primary-strong); margin-bottom: 22px; transition: background var(--dur), color var(--dur), transform 600ms var(--ease-out); }
.feature__icon svg { width: 28px; height: 28px; }
.feature:hover .feature__icon { background: var(--c-primary-strong); color: #fff; transform: rotate(-8deg); }
.feature h3 { font-size: 1.3rem; }
.feature p { margin-top: 10px; color: var(--c-muted); font-size: 0.97rem; }
.section--dark .feature { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.section--dark .feature p { color: #b3bfd3; }
.section--dark .feature__icon { background: rgba(51,116,228,0.16); color: #9dbdff; }
@media (max-width: 1023px) { .features-grid, .features-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .features-grid, .features-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Process timeline (mirrors Bluewater "How it works") ---------- */
.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.process__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.process__steps { position: relative; display: grid; gap: 22px; padding-left: 64px; }
.process__rail { position: absolute; left: 20px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--c-ice); }
.process__rail-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-primary), var(--c-blue)); transform-origin: top; transform: scaleY(0); border-radius: inherit; }
.step {
  position: relative; padding: clamp(26px, 3vw, 36px); border-radius: var(--radius);
  background: var(--c-primary-strong); color: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}
.step:nth-child(odd of .step) { background: var(--c-dark); }
.step::before {
  content: ""; position: absolute; left: -56px; top: 34px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-ice); transition: border-color var(--dur), background var(--dur), transform 500ms var(--ease-out);
}
.step.is-lit::before { border-color: var(--c-primary); background: var(--c-primary); transform: scale(1.12); box-shadow: 0 0 0 8px rgba(51,116,228,0.15); }
.step__num { display: inline-grid; place-items: center; min-width: 52px; height: 44px; padding: 0 10px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 10px; font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 18px; }
.step h3 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.step p { margin-top: 10px; }
@media (max-width: 899px) { .process { grid-template-columns: 1fr; } .process__intro { position: static; } .process__steps { padding-left: 44px; } .process__rail { left: 10px; } .step::before { left: -45px; width: 22px; height: 22px; } }


/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__list { display: grid; gap: 14px; }
.faq-item { border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); transition: border-color var(--dur), box-shadow var(--dur); }
.faq-item.is-open { border-color: transparent; box-shadow: var(--shadow); }
.faq-item h3 { font-size: inherit; }
.faq-item__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; text-align: left; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--c-ink); min-height: 64px; }
.faq-item__icon { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--c-ice); transition: background var(--dur), transform 500ms var(--ease-out); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--c-primary-strong); border-radius: 2px; transition: transform 500ms var(--ease-out), background var(--dur); }
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-item__icon { background: var(--c-primary-strong); transform: rotate(180deg); }
.faq-item.is-open .faq-item__icon::before, .faq-item.is-open .faq-item__icon::after { background: #fff; }
.faq-item.is-open .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease-out); }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel > div { overflow: hidden; }
.faq-item__panel p { padding: 0 24px 24px; color: var(--c-muted); }
@media (max-width: 899px) { .faq { grid-template-columns: 1fr; } .faq__intro { position: static; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 32px; }
.contact-info__item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
a.contact-info__item:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.contact-info__item i { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--c-ice); color: var(--c-primary-strong); }
.contact-info__item i svg { width: 22px; height: 22px; }
.contact-info__item small { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.contact-info__item strong { font-family: var(--f-head); font-weight: 600; color: var(--c-ink); font-size: 1.05rem; overflow-wrap: anywhere; }

.form-card { padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--c-dark); color: #c6cfdf; box-shadow: var(--shadow-lg); }
.form-card h3 { color: #fff; font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.form-card > p { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #e6ecf7; }
.field label .req { color: #9dbdff; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); color: #fff;
  font: inherit; font-size: 16px; transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23ffffff' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.field select option { color: var(--c-ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); background: rgba(51,116,228,0.08); box-shadow: 0 0 0 4px rgba(51,116,228,0.2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff8a8a; }
.field__error { font-size: 0.85rem; color: #ffb4b4; font-weight: 600; min-height: 0; }
.form-chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.form-chips legend { margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.22); font-weight: 600; font-size: 0.9rem; color: #fff; transition: background var(--dur), border-color var(--dur); }
.chip input:checked + span { background: var(--c-primary-strong); border-color: var(--c-primary-strong); }
.chip input:focus-visible + span { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 26px; }
.form-note { font-size: 0.82rem; color: #9daecb; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-weight: 600; display: none; }
.form-status.is-success { display: block; background: rgba(46, 204, 140, 0.14); color: #a6f5cf; }
.form-status.is-error { display: block; background: rgba(255, 120, 120, 0.14); color: #ffc2c2; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading .btn__icon svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }


/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark-2); color: #a8b4c9; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr; gap: 40px; padding-block: 64px; }
.site-footer__brand p { margin: 20px 0 26px; max-width: 36ch; }
.site-footer__title { font-family: var(--f-head); font-size: 1.05rem; color: #fff; margin: 0 0 14px; }
.site-footer__title:not(:first-child) { margin-top: 26px; }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { transition: color var(--dur); }
.site-footer__col a:hover { color: var(--c-primary); }
.site-footer__muted { font-size: 0.9rem; opacity: 0.8; }
.site-footer__contact a { overflow-wrap: anywhere; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 26px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.86rem; }
.site-footer__bottom a { color: #9dbdff; }
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .site-footer__grid { grid-template-columns: 1fr; } }


/* ==========================================================================
   Animation initial states (only when JS + GSAP are active)
   ========================================================================== */
.js.anim-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(36px); }
.js.anim-ready [data-reveal="fade"]:not(.is-in) { transform: none; }
.js.anim-ready [data-reveal="left"]:not(.is-in) { transform: translateX(-40px); }
.js.anim-ready [data-reveal="right"]:not(.is-in) { transform: translateX(40px); }
.js.anim-ready [data-reveal="scale"]:not(.is-in) { transform: scale(0.94); }
.js.anim-ready [data-clip] { clip-path: inset(100% 0 0 0 round var(--radius-lg)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js.anim-ready [data-reveal]:not(.is-in), .js.anim-ready [data-clip] { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Fixes: overflow + menu stacking ---------- */
html { overflow-x: clip; }
.section, .stats, .cta-band { overflow-x: clip; }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); transform: none; }
.menu-open .menu-toggle { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }

/* ==========================================================================
   Still hero — rack-focus pull (blur → crisp), same approach as Media by Reagan
   The photo is held soft until JS adds .is-focusing after the intro. If scripts never
   run, a delayed failsafe pulls focus on its own. Fill mode "backwards" leaves no filter
   on the photo afterwards (a lingering blur(0) layer can render soft in Safari).
   ========================================================================== */
.hero--still .hero__media { background: #0d2552; }
.hero__drift { position: absolute; inset: 0; transform-origin: 40% 70%; }
.hero__drift picture, .hero__drift img { display: block; width: 100%; height: 100%; }
.hero__drift img { object-fit: cover; object-position: 38% 70%; }
.hero--still .hero__shade {
  background:
    linear-gradient(180deg, rgba(6,16,36,0.55) 0%, rgba(6,16,36,0) 22%, rgba(6,16,36,0) 55%, rgba(6,16,36,0.7) 100%),
    linear-gradient(90deg, rgba(6,18,40,0.8) 0%, rgba(6,18,40,0.5) 38%, rgba(6,18,40,0) 68%);
}
@media (max-width: 767px) {
  .hero--still .hero__shade { background: linear-gradient(180deg, rgba(6,16,36,0.55) 0%, rgba(6,16,36,0.15) 30%, rgba(6,16,36,0.55) 62%, rgba(6,16,36,0.88) 100%); }
}

@keyframes hero-settle { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes hero-focus {
  from { filter: blur(18px) brightness(0.6); transform: scale(1.14); }
  to { filter: none; transform: none; }
}
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.06) translate3d(-1%, -0.6%, 0); } }

@media (prefers-reduced-motion: no-preference) {
  /* Phones: cheaper fade + settle (full-screen blur is costly on mobile GPUs) */
  .js .hero--still:not(.is-focusing) .hero__drift picture { animation: hero-settle 1.8s cubic-bezier(0.22, 1, 0.36, 1) 3.2s backwards; }
  .js .hero--still.is-focusing .hero__drift picture { animation: hero-settle 1.8s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  @media (hover: hover) and (pointer: fine) {
    .js .hero--still:not(.is-focusing) .hero__drift picture { animation: hero-focus 2.2s cubic-bezier(0.22, 1, 0.36, 1) 3.2s backwards; }
    .js .hero--still.is-focusing .hero__drift picture { animation: hero-focus 2.4s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
    /* After focus lands, a slow drone-like drift keeps the frame alive */
    .hero--still.is-focusing .hero__drift { animation: hero-drift 26s ease-in-out 2.4s infinite alternate; }
  }
}
@media (max-width: 767px) { .hero__drift img { object-position: 50% 50%; } }

/* ---------- Mobile action bar (phones only) ---------- */
.action-bar { display: none; }
@media (max-width: 767px) {
  .action-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: calc(var(--z-header) - 1);
    display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 6px;
    border-radius: 999px; background: rgba(10, 18, 34, 0.9);
    backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255,255,255,0.08);
    transform: translateY(calc(100% + 24px)); opacity: 0;
    transition: transform 520ms var(--ease-out), opacity 300ms var(--ease-out);
  }
  .action-bar.is-visible { transform: none; opacity: 1; }
  .menu-open .action-bar { transform: translateY(calc(100% + 24px)); opacity: 0; }
  .action-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px;
    border-radius: 999px; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase;
    touch-action: manipulation; transition: transform var(--dur-fast);
  }
  .action-bar a:active { transform: scale(0.97); }
  .action-bar svg { width: 18px; height: 18px; }
  .action-bar__call { color: #fff; background: rgba(255,255,255,0.1); }
  .action-bar__cta { color: #fff; background: var(--c-primary-strong); }
  .site-footer { padding-bottom: 84px; }
}

/* ==========================================================================
   Hydro Home & Pool Service layer
   Saira echoes the squared, rounded-corner letterforms of the Hydro wordmark.
   The wave from the logo is the one signature motif: eyebrow glyph, hero stroke,
   section edges and the loading screen. It appears nowhere else.
   ========================================================================== */
h1, h2, h3, h4 { letter-spacing: -0.01em; }

/* Eyebrows: sentence case with the logo wave in front */
.eyebrow { font-family: var(--f-body); font-size: 0.98rem; font-weight: 700; letter-spacing: 0.01em; text-transform: none; }
.eyebrow::before {
  width: 30px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'><path d='M1.5 8.5C6 2 11 1.5 15 6s9.5 5 13.5-1.5' fill='none' stroke='%231f5bcc' stroke-width='2.6' stroke-linecap='round'/></svg>") center / contain no-repeat;
}
.eyebrow--light::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'><path d='M1.5 8.5C6 2 11 1.5 15 6s9.5 5 13.5-1.5' fill='none' stroke='%239dbdff' stroke-width='2.6' stroke-linecap='round'/></svg>");
}
.hero__eyebrow { font-family: var(--f-body); font-weight: 700; letter-spacing: 0.02em; text-transform: none; font-size: 0.92rem; }
.hero__eyebrow img { width: 20px; }

/* Wave edge between sections. Its color matches the section it belongs to. */
.wave-edge { position: absolute; left: 0; right: 0; height: clamp(28px, 4.5vw, 64px); pointer-events: none; line-height: 0; z-index: 3; }
.wave-edge svg { display: block; width: 100%; height: 100%; }
.wave-edge path { fill: currentColor; }
.wave-edge--top { bottom: calc(100% - 1px); }

.wave-edge--white { color: #fff; }
.wave-edge--dark { color: var(--c-dark); }
.wave-edge--footer { color: var(--c-dark-2); }
.site-footer { position: relative; }

/* Hero: the logo wave draws under the headline as the photo pulls into focus */
.hero__wave { display: block; width: clamp(150px, 18vw, 240px); height: auto; margin-top: 18px; overflow: visible; }
.hero__wave path { fill: none; stroke: #9dbdff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 0; }
.hero { padding-bottom: clamp(28px, 4.5vw, 64px); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__wave path { stroke-dashoffset: 300; }
  .js .hero.is-focusing .hero__wave path { transition: stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.9s; stroke-dashoffset: 0; }
  .js .hero:not(.is-focusing) .hero__wave path { animation: wave-failsafe 0s 4s forwards; }
}
@keyframes wave-failsafe { to { stroke-dashoffset: 0; } }

/* ---------- Loading screen (first visit per session, like Bluewater's logo loader) ---------- */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-items: center;
  background: var(--c-dark-2);
  pointer-events: none;
}
.intro__inner { display: grid; justify-items: center; gap: 22px; }
.intro__mark { width: clamp(84px, 11vw, 120px); height: auto; }
.intro__word { width: clamp(200px, 26vw, 280px); height: auto; }
.intro__wave { width: clamp(150px, 18vw, 210px); height: auto; overflow: visible; }
.intro__wave path { fill: none; stroke: var(--c-primary); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
html:not(.js) .intro, html.intro-seen .intro { display: none; }
/* Failsafe: if scripts never run, the loader still gets out of the way. */
.intro { animation: intro-failsafe 0.5s ease 3.4s forwards; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* Logo lockup: H mark + official wordmark, swapping white/black with the header state */
.brand--hydro { gap: 14px; }
.brand--hydro .brand__mark { width: 52px; height: auto; transition: transform 500ms var(--ease-out); }
.brand--hydro .brand__wordmark { width: 190px; height: auto; }
.brand--hydro .brand__wordmark--light { display: none; }
.brand--hydro:hover .brand__mark { transform: translateX(-3px); }
.has-hero .site-header:not(.is-scrolled) .brand__wordmark--dark,
.menu-open .brand__wordmark--dark { display: none; }
.has-hero .site-header:not(.is-scrolled) .brand__wordmark--light,
.menu-open .brand__wordmark--light { display: block; }
.brand--footer .brand__wordmark--dark { display: none; }
.brand--footer .brand__wordmark--light { display: block; }
@media (max-width: 479px) {
  .brand--hydro .brand__mark { width: 40px; }
  .brand--hydro .brand__wordmark { width: 150px; }
}

/* Section heads: keep the aside close to its heading once it stacks */
@media (max-width: 899px) { .section-head--split { gap: 14px; } }

/* ---------- Video block under the hero (mirrors Bluewater's video section) ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-dark); box-shadow: var(--shadow-lg); }
.video-frame__media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(80% 90% at 50% 40%, var(--c-primary-deep) 0%, var(--c-dark) 100%);
  border: 2px dashed rgba(157,189,255,0.35); border-radius: inherit;
  color: #fff; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.video-frame__play { display: grid; place-items: center; width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--c-primary-strong); box-shadow: 0 0 0 12px rgba(255,255,255,0.12); }
.video-frame__play svg { width: 42%; margin-left: 6%; }

/* ---------- Services: three tall cards on desktop, compact rows on phones ---------- */
.services-grid--3 { grid-template-columns: repeat(3, 1fr); }
.services-grid--3 .service-card { min-height: 440px; }
@media (max-width: 1023px) and (min-width: 768px) { .services-grid--3 { grid-template-columns: 1fr; } .services-grid--3 .service-card { min-height: 340px; } }
@media (max-width: 767px) {
  .services-grid--3 { grid-template-columns: 1fr; gap: 12px; }
  .services-grid--3 .service-card {
    min-height: 0; display: grid; grid-template-columns: 92px 1fr; column-gap: 16px; align-items: center;
    padding: 12px 16px 12px 12px; border-radius: var(--radius); background: #fff; color: var(--c-text);
    border: 1px solid var(--c-line); box-shadow: var(--shadow-sm);
  }
  .services-grid--3 .service-card::before, .services-grid--3 .service-card__go { display: none; }
  .services-grid--3 .service-card__media { position: relative; inset: auto; z-index: 0; grid-row: span 2; width: 92px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
  .services-grid--3 .service-card h3 { color: var(--c-ink); font-size: 1.12rem; align-self: end; }
  .services-grid--3 .service-card p { margin-top: 4px; color: var(--c-muted); font-size: 0.9rem; line-height: 1.5; align-self: start; }
}

/* ---------- Why Hydro: one lead card (the visit report), three supporting points ---------- */
.features-grid--lead { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* Desktop: the report card runs full width with the sample email beside its copy; the three points sit in a row below */
.features-grid--lead .feature--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(30px, 3.5vw, 52px); background: var(--c-primary-strong); border-color: transparent; }
.features-grid--lead .feature--lead > .report { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; padding-top: 0; }
.feature--lead h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.section--dark .feature--lead > p { color: rgba(255,255,255,0.92); font-size: 1.05rem; max-width: 40ch; }
.section--dark .feature--lead .feature__icon { background: rgba(255,255,255,0.16); color: #fff; }
.features-grid--lead .feature:not(.feature--lead) { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; padding: 26px; }
.features-grid--lead .feature:not(.feature--lead) .feature__icon { grid-row: span 2; margin-bottom: 0; width: 52px; height: 52px; border-radius: 16px; }
.features-grid--lead .feature:not(.feature--lead) p { margin-top: 6px; }
.feature:hover { transform: none; }
.report { margin-top: auto; padding-top: 28px; }
/* Mirrors the Skimmer service email: header, photo, readings, chemicals, checklist, tech note */
.report__card { border-radius: var(--radius); background: #fff; color: var(--c-text); padding: 20px; box-shadow: var(--shadow); font-size: 0.9rem; line-height: 1.45; }
.report__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.report__brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--c-ink); font-size: 0.85rem; }
.report__brand img { width: 28px; height: auto; }
.report__tag { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--c-sand); color: var(--c-muted); font-size: 0.75rem; font-weight: 700; }
.report__title { margin-top: 16px; font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; line-height: 1.2; color: var(--c-ink); }
.report__meta { margin-top: 4px; display: flex; flex-wrap: wrap; column-gap: 14px; color: var(--c-muted); font-size: 0.82rem; }
.report__photo { position: relative; margin: 14px 0 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 8; }
.report__photo img { width: 100%; height: 100%; object-fit: cover; }
.report__photo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(12,23,48,0.72); color: #fff; font-size: 0.74rem; font-weight: 600; }
.report__group { margin-top: 16px; }
.report__label { margin-bottom: 8px; font-size: 0.74rem; font-weight: 700; color: var(--c-primary-strong); }
.report__readings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.report__readings li { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; padding: 9px 11px; border-radius: 10px; background: var(--c-sand); color: var(--c-muted); font-size: 0.78rem; }
.report__readings b { grid-column: 2; color: var(--c-ink); font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.report__readings small { color: var(--c-muted); font-size: 0.72rem; font-weight: 600; }
.report__dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31,157,85,0.16); }
.report__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--c-line); }
.report__rows li:last-child { border-bottom: 0; }
.report__rows b { color: var(--c-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.report__checks li { display: flex; align-items: center; gap: 9px; padding: 4px 0; color: var(--c-ink); }
.report__checks svg { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #1f9d55; color: #fff; }
.report__memo { margin-top: 16px; padding: 11px 13px; border-radius: 10px; background: var(--c-sand); border-left: 3px solid var(--c-primary); color: var(--c-text); }
.report__memo b { color: var(--c-ink); }
.section--dark .feature .report__note { margin-top: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.9); }
@media (max-width: 899px) {
  .features-grid--lead { grid-template-columns: 1fr; }
  .features-grid--lead .feature--lead { display: flex; flex-direction: column; }
  .features-grid--lead .feature--lead > .report { padding-top: 28px; }
}

/* Hero on phones: a portrait crop centred on the pool, and a tighter headline */
@media (max-width: 767px) {
  .hero__drift img { object-position: 45% 60%; }
  .hero__title { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
}

/* ==========================================================================
   Hero video (vertical footage)
   Phones: the clip fills the screen behind the headline.
   Desktop: the clip sits in a tall frame on the right, over a blurred still from the same shoot.
   ========================================================================== */
.hero__backdrop { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(1.1) brightness(0.72); }
.hero__reel { position: absolute; inset: 0; z-index: 1; }
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; background: #0d2552; }
.hero__toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(6,16,36,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer;
}
.hero__toggle svg { width: 18px; height: 18px; }
.hero__toggle-play { display: none; }
.hero__toggle[aria-pressed="true"] .hero__toggle-pause { display: none; }
.hero__toggle[aria-pressed="true"] .hero__toggle-play { display: block; }
.hero__toggle:focus-visible { outline: 3px solid #9dbdff; outline-offset: 3px; }

@media (max-width: 899px) {
  /* Full-bleed video: the shade sits above it so the headline stays readable */
  .hero__media--video .hero__shade { z-index: 2; background: linear-gradient(180deg, rgba(6,16,36,0.6) 0%, rgba(6,16,36,0.1) 28%, rgba(6,16,36,0.35) 55%, rgba(6,16,36,0.9) 100%); }
  .hero__drift { display: none; }
  .hero__toggle { top: calc(var(--header-h) + 12px); bottom: auto; }
}

@media (min-width: 900px) {
  .hero { --frame-h: min(calc(100svh - 42px - var(--header-h) - 96px), 720px); --frame-w: calc(var(--frame-h) * 9 / 16); }
  .hero__reel {
    inset: auto; z-index: 3;
    right: max(var(--gutter), calc((100% - var(--container)) / 2));
    bottom: clamp(40px, 5vw, 64px);
    width: var(--frame-w); height: var(--frame-h);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.14);
  }
  .hero__video { object-position: 50% 50%; }
  .hero__content { padding-right: calc(var(--frame-w) + clamp(40px, 5vw, 80px)); }
  .hero__title { font-size: clamp(2.8rem, 5.4vw, 5.4rem); }
  .hero__media--video .hero__shade { background: linear-gradient(90deg, rgba(6,18,40,0.82) 0%, rgba(6,18,40,0.55) 45%, rgba(6,18,40,0.35) 100%), linear-gradient(180deg, rgba(6,16,36,0.5) 0%, rgba(6,16,36,0) 25%, rgba(6,16,36,0) 70%, rgba(6,16,36,0.6) 100%); }
}

@keyframes reel-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .hero.is-focusing .hero__reel { animation: reel-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards; }
}

/* ---------- Video section: copy beside a vertical video ---------- */
.video-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(40px, 7vw, 110px); }
.video-split__copy .lead { margin-top: 20px; }
.video-split__copy .btn-row { margin-top: 28px; }
.video-frame--vertical { aspect-ratio: 9 / 16; width: min(400px, calc((100svh - 160px) * 9 / 16)); }
.video-frame--vertical .video-frame__media { object-fit: cover; background: var(--c-dark); }
.video-frame__start {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding-bottom: 26px;
  width: 100%; border: 0; cursor: pointer; color: #fff; align-content: end; flex-wrap: wrap; flex-direction: row;
  background: linear-gradient(180deg, rgba(6,16,36,0) 62%, rgba(6,16,36,0.7) 100%);
}
.video-frame__start[hidden] { display: none; }
.video-frame__start { align-items: flex-end; }
.video-frame__start .video-frame__play { width: 58px; box-shadow: 0 0 0 8px rgba(255,255,255,0.16); }
.video-frame__label { font-weight: 700; font-size: 0.95rem; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.video-frame__start:hover .video-frame__play { transform: scale(1.06); }
.video-frame__play { transition: transform 0.25s ease; }
.video-frame__start:focus-visible { outline: 3px solid var(--c-primary); outline-offset: -3px; }

@media (max-width: 899px) {
  .video-split { grid-template-columns: 1fr; gap: 28px; }
  .video-frame--vertical { width: min(100%, 420px, calc((100svh - 120px) * 9 / 16)); justify-self: center; }
}
