/* ==========================================================================
   Swim Pools & Spas — "Dive in" concept
   Structure: tokens → base → components → sections → motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Water */
  --aqua-50: #ecf9f8;
  --aqua-100: #d3f1ef;
  --aqua-200: #a9e5e3;
  --aqua-300: #7fe3e6;
  --aqua-400: #5fcdd0;
  --aqua-500: #2ba6b4;
  --teal-600: #0e7c8c;
  --teal-700: #0a6c7e;

  /* Depth */
  --deep-500: #0f5470;
  --deep-600: #0b3b5a;
  --deep-700: #093150;
  --deep-800: #07223b;
  --deep-900: #05182c;
  --abyss: #030e1b;

  /* Stone */
  --sand-50: #faf7f0;
  --sand-100: #f5f0e6;
  --sand-200: #ece3d3;
  --sand-300: #e0d2b9;
  --stone-500: #a8977a;

  /* Accent (sunset coral) */
  --coral: #ff8466;
  --coral-hi: #ff9a80;
  --coral-soft: #ffd9cd;

  /* Text */
  --ink: #062036;
  --ink-2: #3c5163;
  --on-dark: #eaf6f7;
  --on-dark-2: #b3cbd6;

  --focus: #0a6c7e;

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(3.3rem, 1.4rem + 7.2vw, 8.6rem);
  --fs-h2: clamp(2.5rem, 1.55rem + 3.6vw, 5.1rem);
  --fs-h3: clamp(1.6rem, 1.25rem + 1.1vw, 2.2rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --radius: 24px;
  --radius-sm: 14px;
  --section-pad: clamp(80px, 9.5vw, 150px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow-soft: 0 1px 2px rgba(6, 32, 54, 0.05), 0 18px 40px -18px rgba(6, 32, 54, 0.22);
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

[data-tone="dark"] { --focus: var(--aqua-300); }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, box-shadow 0.35s, border-color 0.25s, color 0.25s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.35s var(--ease-out); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--lg { min-height: 56px; padding: 0 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--coral {
  --btn-bg: var(--coral);
  color: var(--ink);
  box-shadow: 0 12px 28px -12px rgba(232, 92, 60, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--coral:hover { --btn-bg: var(--coral-hi); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(232, 92, 60, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* Shimmer sweep on primary CTAs */
.btn--shimmer::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.65) 46%, rgba(255, 255, 255, 0.0) 60%);
  transform: translateX(-120%);
  animation: shimmer 4.8s 1.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { transform: translateX(-120%); }
  28%, 100% { transform: translateX(120%); }
}

.btn--glass {
  --btn-bg: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, 0.62); transform: translateY(-2px); }

.btn--outline {
  --btn-bg: #fff;
  color: var(--ink);
  border-color: rgba(6, 32, 54, 0.2);
}
.btn--outline:hover { border-color: var(--teal-700); --btn-bg: var(--aqua-50); transform: translateY(-1px); }
.btn--outline .icon { color: #128c7e; }
.btn--text {
  --btn-bg: transparent;
  color: var(--ink-2);
  padding: 0 0.9em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.btn--text:hover { color: var(--ink); }

.btn--glass-dark {
  --btn-bg: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn--glass-dark:hover { --btn-bg: rgba(255, 255, 255, 0.12); border-color: rgba(127, 227, 230, 0.55); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: background-color 0.4s, box-shadow 0.4s, color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(250, 247, 240, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  transition: opacity 0.4s, background-color 0.4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { border-bottom-color: rgba(6, 32, 54, 0.08); }
.site-header.is-scrolled[data-tone="dark"] { color: var(--on-dark); border-bottom-color: rgba(255, 255, 255, 0.08); }
.site-header.is-scrolled[data-tone="dark"]::before { background: rgba(5, 24, 44, 0.72); }
.site-header:not(.is-scrolled) { --focus: var(--ink); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
/* The client's icon on a transparent background, in two identically shaped versions:
   navy palms on light sections and the hero, pale palms when the header turns dark */
.brand__mark { position: relative; flex: none; width: 61px; height: 44px; }
.brand__icon { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transition: opacity 0.4s; }
.brand__icon--dark { opacity: 0; }
.site-header.is-scrolled[data-tone="dark"] .brand__icon--light,
html:not(.js) .site-header .brand__icon--light,
body.menu-open .site-header .brand__icon--light { opacity: 0; }
.site-header.is-scrolled[data-tone="dark"] .brand__icon--dark,
html:not(.js) .site-header .brand__icon--dark,
body.menu-open .site-header .brand__icon--dark { opacity: 1; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.005em; white-space: nowrap; }
.brand__sub { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin-top: 4px; white-space: nowrap; }

.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.25s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 9px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }

/* Two numbers in one pill, each its own tel: link */
.header-phones {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 46px;
  padding: 0 4px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 32, 54, 0.14);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s, border-color 0.3s;
}
.header-phones__icon { width: 18px; height: 18px; margin-right: 2px; color: var(--teal-700); }
.header-phones__num {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.25s, color 0.25s;
}
.header-phones__num:hover { background: var(--coral); color: var(--ink); }
.header-phones__div { width: 1px; height: 18px; background: currentColor; opacity: 0.25; }
.site-header[data-tone="dark"].is-scrolled .header-phones { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
.site-header[data-tone="dark"].is-scrolled .header-phones__icon { color: var(--aqua-300); }
@media (min-width: 1081px) {
  .site-header__inner { gap: 16px; }
  .nav__list { gap: 0; }
  .nav__list a { padding: 0 8px; font-size: 0.88rem; }
  .nav__list a::after { left: 8px; right: 8px; }
  .header-phones { padding-left: 12px; }
  .header-phones__num { padding: 0 9px; font-size: 0.86rem; }
}
/* until the container reaches full width the nav needs the room: keep the main number */
@media (min-width: 1081px) and (max-width: 1439px) {
  .header-phones__div, .header-phones__num--alt { display: none; }
}

.header-call {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(6, 32, 54, 0.16);
  background: rgba(255, 255, 255, 0.42);
  color: inherit;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header-call .icon { width: 20px; height: 20px; }
.site-header.is-scrolled[data-tone="dark"] .header-call, body.menu-open .header-call { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
@media (max-width: 767px) { .header-call { display: grid; } }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.menu-toggle__bars { position: relative; width: 22px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 767px) {
  .header-phones { display: none; }
  .site-header__inner { gap: 10px; }
  .brand { gap: 10px; }
  .brand__mark { width: 53px; height: 38px; }
  .brand__name { font-size: 1.22rem; }
  .brand__sub { font-size: 0.56rem; letter-spacing: 0.12em; }
}

/* Without JavaScript the header can't track the section beneath it: keep it solid */
html:not(.js) .site-header { color: var(--on-dark); }
html:not(.js) .site-header::before { opacity: 1; background: rgba(5, 24, 44, 0.9); }

/* Header colour when the menu is open */
body.menu-open .site-header { color: var(--on-dark); }
body.menu-open .site-header::before { opacity: 0; }
body.menu-open .site-header { border-bottom-color: transparent; --focus: var(--aqua-300); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow-y: auto;
  color: var(--on-dark);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(95, 205, 208, 0.25), transparent 60%),
    linear-gradient(180deg, var(--deep-600), var(--deep-900));
  --focus: var(--aqua-300);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu { scrollbar-width: thin; scrollbar-color: rgba(127, 227, 230, 0.35) transparent; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
}
.mobile-menu__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.1;
  text-decoration: none;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms + 80ms);
}
.mobile-menu.is-open .mobile-menu__list a { transform: none; opacity: 1; }
.mobile-menu__num { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; color: var(--aqua-300); letter-spacing: 0.1em; }
.mobile-menu__contact { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }
.mobile-menu__note { margin: 4px 0 0; text-align: center; font-size: 0.9rem; color: var(--on-dark-2); }
body.menu-open { overflow: hidden; }

/* ---------- Depth gauge ---------- */
.gauge {
  --gauge-c: var(--ink);
  --gauge-dim: rgba(6, 32, 54, 0.32);
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  transform: translateY(-50%);
  color: var(--gauge-c);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transition: color 0.5s;
}
.gauge[data-tone="dark"] { --gauge-c: var(--on-dark); --gauge-dim: rgba(234, 246, 247, 0.32); }
@media (min-width: 1280px) { .gauge { display: flex; } }
/* leave a clear lane for the gauge on smaller desktops */
@media (min-width: 1280px) and (max-width: 1439px) { :root { --container: 1140px; } }

.gauge__cap, .gauge__section { opacity: 0.7; }
.gauge__section {
  max-width: 9em;
  text-align: right;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: 9.5em;
  margin-top: 6px;
  white-space: nowrap;
}
.gauge__track {
  position: relative;
  width: 14px;
  height: min(46vh, 400px);
  /* minor ticks every 0.1 m, major every 0.4 m */
  background:
    repeating-linear-gradient(to bottom, var(--gauge-dim) 0 1px, transparent 1px calc(100% / 24)) right / 7px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--gauge-c) 0 1.5px, transparent 1.5px calc(100% / 6)) right / 14px 100% no-repeat;
  transition: background 0.5s;
}
.gauge__track::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--gauge-dim);
}
.gauge__label { position: absolute; right: 22px; transform: translateY(-50%); letter-spacing: 0.04em; opacity: 0.6; font-variant-numeric: tabular-nums; }
.gauge__label--top { top: 0; }
.gauge__label--mid { top: 50%; }
.gauge__label--bot { top: 100%; }
.gauge__fill {
  position: absolute;
  right: 0; top: 0;
  width: 2px;
  height: calc(var(--p, 0) * 100%);
  background: linear-gradient(var(--aqua-400), var(--coral));
  border-radius: 2px;
}
.gauge__marker {
  position: absolute;
  right: -5px;
  top: calc(var(--p, 0) * 100%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 132, 102, 0.22);
  transform: translateY(-50%);
}
.gauge__value {
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--gauge-c);
  color: var(--sand-50);
  font-size: 11px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color 0.5s, color 0.5s;
}
.gauge[data-tone="dark"] .gauge__value { color: var(--deep-900); }
.gauge__value small { font-size: 9px; opacity: 0.7; }

/* ---------- Shared section bits ---------- */
/* single-column grids must not grow past the viewport because of wide content */
.promise__body, .bento, .designer, .designer__panel, .qform, .leak, .leak__grid, .process, .areas, .faq, .contact, .section-head--split, .footer__top {
  grid-template-columns: minmax(0, 1fr);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  background: linear-gradient(180deg, var(--top), var(--bot));
}
.section > .container, .section > .gallery-wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow--dark { color: var(--aqua-300); }
.eyebrow__depth {
  display: inline-grid;
  place-items: center;
  min-width: 4.4em;
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgba(6, 32, 54, 0.1), 0 2px 6px rgba(6, 32, 54, 0.08);
}
.eyebrow--dark .eyebrow__depth { background: rgba(234, 246, 247, 0.94); color: var(--deep-900); box-shadow: none; }
.eyebrow__rule { width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--teal-600); }
.display__line { display: block; }
.card__title, .pstep__title, .bucket__title, .signs__title, .qa summary span, .call-sheet__title, .summary__title { text-wrap: balance; }
[data-tone="dark"] .display { color: var(--on-dark); }
[data-tone="dark"] .display em { color: var(--aqua-300); }

.display + .lead, .display + .section-head__lead { margin-top: clamp(20px, 2.4vw, 30px); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 40em; }
[data-tone="dark"] .lead { color: var(--on-dark-2); }
[data-tone="dark"] { color: var(--on-dark); }
[data-tone="dark"] a { color: inherit; }

.section-head { max-width: 860px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .display { max-width: 16ch; }
.section-head__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34em; margin-top: 22px; }
[data-tone="dark"] .section-head__lead { color: var(--on-dark-2); }
.section-head--split {
  max-width: none;
  display: grid;
  gap: 24px;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .section-head--split .section-head__lead { margin: 0 0 8px; }
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--aqua-100), var(--sand-200));
  aspect-ratio: var(--ar, auto);
}
[data-tone="dark"] .img-frame { background: linear-gradient(135deg, #12445f, #0b2c47); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame img[data-parallax] { height: 112%; margin-top: -6%; will-change: transform; }

/* Moving caustic light layer (texture generated in main.js) */
.caustic-bg { overflow: clip; }
.caustic-bg::before {
  content: "";
  position: absolute;
  inset: -256px;
  z-index: 0;
  background-image: var(--caustic, none);
  background-size: 256px 256px;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  animation: caustic-drift 60s linear infinite;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
@keyframes caustic-drift { to { transform: translate3d(256px, 256px, 0); } }

/* Underwater light shafts for dark sections */
.rays { overflow: clip; }
.rays::before {
  content: "";
  position: absolute;
  inset: -10% -20% 30%;
  z-index: 0;
  background:
    linear-gradient(104deg, transparent 18%, rgba(127, 227, 230, 0.09) 22%, transparent 27%),
    linear-gradient(98deg, transparent 38%, rgba(127, 227, 230, 0.07) 41%, transparent 47%),
    linear-gradient(108deg, transparent 58%, rgba(127, 227, 230, 0.06) 62%, transparent 66%),
    linear-gradient(101deg, transparent 74%, rgba(127, 227, 230, 0.05) 77%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  filter: blur(6px);
  transform-origin: 50% 0;
  animation: rays-sway 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rays-sway {
  from { transform: skewX(-3deg) translateX(-1.5%); }
  to { transform: skewX(3deg) translateX(1.5%); }
}

/* ---------- Hero ---------- */
.hero {
  --focus: var(--ink);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background: var(--aqua-400);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--caustic, none) 0 0 / 520px 520px;
  opacity: 0.5;
  filter: blur(0.6px);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(60% 60% at 26% 52%, rgba(0, 0, 0, 0.3), #000 85%);
  mask-image: radial-gradient(60% 60% at 26% 52%, rgba(0, 0, 0, 0.3), #000 85%);
}
.hero__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 18% 20%, rgba(214, 255, 250, 0.75), transparent 60%),
    radial-gradient(70% 60% at 85% 85%, rgba(20, 130, 160, 0.45), transparent 70%),
    linear-gradient(170deg, #8fe3e0 0%, #4cc5cc 45%, #26a4b6 100%);
}
.hero__water, .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__water.is-live, .hero__video.is-live { opacity: 1; }
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 65% at 22% 45%, rgba(236, 255, 252, 0.34), transparent 70%),
    linear-gradient(180deg, rgba(236, 255, 252, 0.26) 0%, transparent 22%);
  pointer-events: none;
}
.hero.has-video .hero__veil {
  background:
    radial-gradient(80% 70% at 22% 45%, rgba(236, 255, 252, 0.6), transparent 72%),
    linear-gradient(180deg, rgba(236, 255, 252, 0.3), transparent 30%);
}
/* coping edge where the water meets the stone */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: linear-gradient(180deg, #fbf8f1, #ece2cf);
  box-shadow: 0 -10px 24px rgba(4, 60, 80, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 2;
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(32px, 6vh, 72px));
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0 0 26px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero__eyebrow .icon { color: var(--teal-700); }
@media (max-width: 559px) {
  .hide-sm { display: none; }
  .hero__lead { font-size: 1.02rem; }
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-shadow: 0 1px 30px rgba(220, 255, 250, 0.35);
}
.hero__line { display: block; }
.hero__title em { font-style: italic; color: #07465f; padding-right: 0.06em; }
.hero__lead {
  max-width: 35em;
  margin: clamp(22px, 3vh, 34px) 0 0;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.6;
  color: #0a2a40;
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: clamp(28px, 4vh, 40px); }
.lead-short { display: none; }
/* both numbers as one split glass pill, each half its own tel: link */
.hero__phones {
  display: inline-flex;
  align-items: stretch;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  overflow: hidden;
}
.hero__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.25s;
}
.hero__phone + .hero__phone { border-left: 1px solid rgba(6, 32, 54, 0.16); }
.hero__phone .icon { width: 1.1em; height: 1.1em; color: var(--teal-700); }
.hero__phone:focus-visible { outline-offset: -3px; border-radius: 999px; }
@media (hover: hover) { .hero__phone:hover { background: rgba(255, 255, 255, 0.55); } }

/* Split-word reveal (words wrapped by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.1em 0; margin: 0 -0.08em -0.1em 0; }
.w__i { display: inline-block; }
html.js.motion-ok [data-split]:not(.is-split) { visibility: hidden; }
html.js.motion-ok .w__i { transform: translateY(108%); animation: word-rise 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 75ms + 150ms); }
@keyframes word-rise { to { transform: none; } }
html.js.motion-ok .hero__eyebrow,
html.js.motion-ok .hero__lead,
html.js.motion-ok .hero__ctas,
html.js.motion-ok .trust { opacity: 0; animation: fade-up 1s var(--ease-out) forwards; }
html.js.motion-ok .hero__eyebrow { animation-delay: 0.05s; }
html.js.motion-ok .hero__lead { animation-delay: 0.65s; }
html.js.motion-ok .hero__ctas { animation-delay: 0.8s; }
html.js.motion-ok .trust { animation-delay: 1s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__cue {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  bottom: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.hero__cue span:first-child { writing-mode: vertical-rl; }
.hero__cue-line { position: relative; width: 1px; height: 64px; background: rgba(6, 32, 54, 0.25); overflow: hidden; }
.hero__cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--ink);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { to { top: 100%; } }
@media (max-width: 899px) { .hero__cue { display: none; } }

.trust {
  position: relative;
  z-index: 1;
  padding-bottom: 14px;
  background: rgba(236, 252, 250, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.trust__list {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 16px 28px;
  padding-block: 22px;
  font-size: 0.92rem;
  color: var(--ink);
}
.trust__list li { display: flex; align-items: center; gap: 10px; }
.trust__list .icon { width: 22px; height: 22px; color: var(--teal-700); }
.trust__list strong { font-weight: 800; }
@media (max-width: 899px) {
  .trust__list { grid-template-columns: 1fr 1fr; padding-block: 18px; font-size: 0.86rem; }
}

/* ---------- Promise ---------- */
.s-promise { --top: #f6f1e7; --bot: #f4efe5; padding-bottom: clamp(56px, 6vw, 96px); }
.promise .display { max-width: 14ch; }
.promise__body {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
}
@media (min-width: 900px) {
  .promise__body { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .promise__figure { position: sticky; top: calc(var(--header-h) + 40px); margin-top: 56px; }
}
.promise__copy p:not(.lead):not(.relay__label) { color: var(--ink-2); max-width: 36em; }
.promise__figure { margin: 0; }
.promise__img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.promise__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.promise__stats span { border-top: 1px solid rgba(6, 32, 54, 0.14); padding-top: 12px; }
.promise__stats strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.2rem); line-height: 1; color: var(--ink); margin-bottom: 6px; }

.relay {
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(6, 32, 54, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 22px;
}
.relay__row { display: grid; gap: 12px; }
.relay__label { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.relay__row--us .relay__label { color: var(--teal-700); }
.relay__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}
.relay__track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.relay__track li::before {
  content: "";
  position: absolute;
  top: 15px; left: 50%;
  width: 100%;
  height: 2px;
  background: var(--ink);
}
.relay__track li:last-child::before { display: none; }
.relay__track--many li::before { background: repeating-linear-gradient(90deg, rgba(6, 32, 54, 0.3) 0 4px, transparent 4px 9px); left: calc(50% + 22px); width: calc(100% - 44px); }
.relay__dot {
  position: relative;
  z-index: 1;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: hsl(var(--h) 40% 72%);
  box-shadow: inset 0 -8px 0 hsl(var(--h) 35% 58%);
}
.relay__dot::after { content: ""; position: absolute; left: 50%; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); transform: translateX(-50%); }
.relay__dot--owner { background: var(--ink); box-shadow: 0 0 0 4px var(--coral-soft), inset 0 -8px 0 #0e3a55; }
.relay__dot--owner::after { background: var(--coral); }
.relay__row--us .relay__track { color: var(--ink); }

/* ---------- Services (bento) ---------- */
.s-services { --top: #f4efe5; --bot: #e5f1ee; }
.bento { display: grid; gap: 18px; }
@media (min-width: 680px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--a, .card--f, .card--g { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .card--a { grid-column: 1 / 5; grid-row: 1 / 3; }
  .card--b { grid-column: 5 / 7; grid-row: 1 / 3; }
  .card--c { grid-column: 1 / 3; }
  .card--d { grid-column: 3 / 5; }
  .card--e { grid-column: 5 / 7; }
  .card--f { grid-column: 1 / 5; }
  .card--g { grid-column: 5 / 7; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fffdf9;
  border: 1px solid rgba(6, 32, 54, 0.08);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(6, 32, 54, 0.05), 0 28px 50px -22px rgba(6, 32, 54, 0.32); }
.card__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 32px); flex: 1; }
.card__body p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.card__num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--teal-700); }
.card__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.05; }
.card__media { flex: none; aspect-ratio: 16 / 10; }
.card__media img { transition: transform 1.4s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--teal-700);
}
.card__link .icon { transition: transform 0.4s var(--ease-out); }
.card:hover .card__link .icon { transform: translateX(5px); }
/* whole card is the tap target */
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__link:focus-visible { outline: none; }
/* secondary link inside a card: sits above the whole-card tap target */
.card__more { position: relative; z-index: 4; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -10px; font-size: 0.9rem; font-weight: 700; color: inherit; opacity: 0.9; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card__more:hover { opacity: 1; text-decoration-thickness: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags li { padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; background: rgba(6, 32, 54, 0.05); color: var(--ink-2); }

/* Spotlight that follows the pointer */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(95, 205, 208, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* Big photo card — text over image */
.card--a { min-height: 520px; background: var(--deep-700); color: #fff; border: 0; }
.card--a .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--a .card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4, 24, 40, 0.9) 0%, rgba(4, 24, 40, 0.55) 34%, rgba(4, 24, 40, 0) 64%);
}
.card--a .card__body { justify-content: flex-end; max-width: 640px; }
.card--a .card__link { margin-top: 6px; }
.card--a .card__media img { object-position: 50% 40%; }
.card--a .card__body p { color: rgba(255, 255, 255, 0.86); }
.card--a .card__num, .card--a .card__link { color: var(--aqua-300); }
.card--a .card__title { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.card--a .tags li { background: rgba(255, 255, 255, 0.14); color: #fff; }
.card--a { --focus: var(--aqua-300); }
@media (min-width: 1040px) { .card--a { min-height: 640px; } }

/* Dark leak card */
.card--b { background: radial-gradient(120% 80% at 50% 0%, #135273, var(--deep-700) 70%); color: var(--on-dark); border-color: rgba(127, 227, 230, 0.16); --focus: var(--aqua-300); }
.card--b .card__body p { color: var(--on-dark-2); }
.card--b .card__num, .card--b .card__link { color: var(--aqua-300); }
.card--b .spotlight::before, .card--b::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 227, 230, 0.16), transparent 45%); }
.card__art { position: relative; z-index: 2; padding: 26px 26px 0; }
.sonar-mini { width: 100%; max-height: 260px; }
.sonar-mini__rings circle { transform-origin: 100px 92px; transform-box: view-box; animation: sonar 3.6s var(--ease-out) infinite; opacity: 0; }
.sonar-mini__rings circle:nth-child(2) { animation-delay: 1.2s; }
.sonar-mini__rings circle:nth-child(3) { animation-delay: 2.4s; }
@keyframes sonar { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(4.2); opacity: 0; } }

/* Covers card */
.card--d { background: linear-gradient(180deg, #f8f2e6, #f1e8d6); }
.cover-mini { width: 100%; }
.cover-mini__slats { transform-box: fill-box; transform-origin: right center; transform: scaleX(0.62); transition: transform 1.6s var(--ease-out); }
.card--d:hover .cover-mini__slats { transform: scaleX(0.12); }

/* Wide landscaping card */
@media (min-width: 680px) {
  .card--f { flex-direction: row; }
  .card--f .card__media { width: 50%; aspect-ratio: auto; min-height: 320px; }
}

/* CTA card */
.card--g {
  background: linear-gradient(140deg, #7fdcdb, #2ba6b4);
  border: 0;
  overflow: hidden;
}
.card--g::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--caustic, none);
  background-size: 220px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  z-index: 0;
}
.card--g .card__body { justify-content: center; gap: 16px; }
.card--g .card__body p { color: #08304a; }
.card--g .card__title { color: var(--ink); }
.card--g .btn { align-self: flex-start; }

/* ---------- Designer ---------- */
.s-design { --top: #e5f1ee; --bot: #c4e7e6; }
.designer { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1000px) {
  .designer { grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 28px; }
  .designer__stage { position: sticky; top: calc(var(--header-h) + 24px); }
}
.designer__canvas {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #9db58a;
  box-shadow: 0 2px 4px rgba(6, 32, 54, 0.06), 0 30px 60px -30px rgba(6, 50, 70, 0.45);
  border: 6px solid #fff;
}
.plan { width: 100%; height: auto; aspect-ratio: 640 / 420; }
.designer__note { margin: 14px 4px 0; font-size: 0.82rem; color: var(--ink-2); }
@media (max-width: 999px) {
  .designer__stage {
    position: sticky;
    top: calc(var(--header-h) + 6px);
    z-index: 5;
    margin-inline: calc(var(--gutter) * -0.5);
    padding: 8px calc(var(--gutter) * 0.5) 10px;
    background: linear-gradient(180deg, rgba(212, 236, 234, 0.96) 70%, rgba(212, 236, 234, 0));
  }
  .designer__canvas { border-width: 4px; max-width: 560px; margin-inline: auto; }
  .designer__note { display: none; }
}

/* Plan SVG text styles */
.plan text { font-family: var(--font-body); }
.plan .dim-text { font-size: 13px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 4px; stroke-linejoin: round; }
.plan .end-text { font-size: 9px; font-weight: 800; letter-spacing: 0.18em; fill: rgba(255, 255, 255, 0.8); }
@media (max-width: 640px) {
  .plan .dim-text { font-size: 21px; stroke-width: 6px; }
  .plan .end-text { font-size: 13px; }
  .plan .tiny-text { font-size: 15px !important; }
}
.plan .tiny-text { font-size: 9.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, 0.8); stroke-width: 3px; }
.plan .caustic-a { animation: plan-drift-a 16s linear infinite; }
.plan .caustic-b { animation: plan-drift-b 23s linear infinite; }
@keyframes plan-drift-a { to { transform: translate(128px, 128px); } }
@keyframes plan-drift-b { to { transform: translate(-128px, 128px); } }
.plan .cover-slats { transform-box: fill-box; transform-origin: right center; transition: transform 1.1s var(--ease-out); }
.plan .light-glow { animation: glow 3.2s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0.65; } to { opacity: 1; } }
.plan .heat-wave { animation: heat 2.4s ease-in-out infinite; }
.plan .heat-wave:nth-of-type(2) { animation-delay: 0.8s; }
.plan .heat-wave:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes heat { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 0.9; } 100% { transform: translateY(-10px); opacity: 0; } }

/* Panel with animated border beam */
@property --beam {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.designer__panel {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}
.designer__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--beam), rgba(6, 32, 54, 0.1) 0deg, rgba(6, 32, 54, 0.1) 200deg, var(--aqua-400) 270deg, var(--coral) 320deg, rgba(6, 32, 54, 0.1) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 7s linear infinite;
  pointer-events: none;
}
@keyframes beam { to { --beam: 360deg; } }

.opt__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.opt__step {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.shape-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .shape-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shape-opt { position: relative; }
.shape-opt input, .swatch input, .toggle input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.shape-opt__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 76px;
  padding: 12px 6px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(6, 32, 54, 0.12);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
  pointer-events: none;
}
.shape-opt__tile svg { width: 44px; height: 26px; fill: var(--aqua-200); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; transition: fill 0.25s; }
.shape-opt:hover .shape-opt__tile { border-color: rgba(6, 32, 54, 0.3); transform: translateY(-1px); }
.shape-opt input:checked + .shape-opt__tile { border-color: var(--teal-700); background: var(--aqua-50); box-shadow: 0 0 0 3px rgba(43, 166, 180, 0.18); }
.shape-opt input:checked + .shape-opt__tile svg { fill: var(--aqua-400); }
.shape-opt input:focus-visible + .shape-opt__tile, .swatch input:focus-visible ~ .swatch__chip, .toggle input:focus-visible + .toggle__switch { outline: 3px solid var(--focus); outline-offset: 3px; }

.range { display: grid; gap: 4px; }
.range + .range { margin-top: 10px; }
.range__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.range__label output { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.range__input {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--aqua-500) var(--fill), rgba(6, 32, 54, 0.12) var(--fill));
}
.range__input::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(6, 32, 54, 0.12); }
.range__input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--aqua-500); }
.range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal-700);
  box-shadow: 0 4px 12px rgba(6, 32, 54, 0.25);
  transition: transform 0.2s;
}
.range__input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--teal-700); box-shadow: 0 4px 12px rgba(6, 32, 54, 0.25); }
.range__input:active::-webkit-slider-thumb { transform: scale(1.12); }
.range__input:focus-visible { outline: none; }
.range__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--focus); }
.range__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--focus); }

.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.swatches--stone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swatches--stone .swatch { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 10px 6px; min-height: 84px; }
.swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(6, 32, 54, 0.1);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.swatch:hover { border-color: rgba(6, 32, 54, 0.28); }
.swatch:has(input:checked) { border-color: var(--teal-700); background: var(--aqua-50); box-shadow: 0 0 0 3px rgba(43, 166, 180, 0.18); }
.swatch__chip {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--a), var(--b));
  box-shadow: inset 0 0 0 1px rgba(6, 32, 54, 0.15);
  pointer-events: none;
}
.swatch__chip--stone {
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.14) 48% 52%, transparent 52%) 0 0 / 100% 50%,
    linear-gradient(0deg, transparent 47%, rgba(0, 0, 0, 0.14) 47% 53%, transparent 53%),
    linear-gradient(135deg, var(--a), var(--b));
}
.swatch__name { font-size: 0.82rem; font-weight: 700; line-height: 1.2; pointer-events: none; }

.toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .toggles { grid-template-columns: 1fr; } }
.toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(6, 32, 54, 0.1);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.25s, background-color 0.25s;
}
.toggle:hover { border-color: rgba(6, 32, 54, 0.28); }
.toggle:has(input:checked) { border-color: var(--teal-700); background: var(--aqua-50); }
.toggle > span:last-child { pointer-events: none; }
.toggle__switch {
  position: relative;
  flex: none;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: rgba(6, 32, 54, 0.18);
  transition: background-color 0.25s;
  pointer-events: none;
}
.toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease-out);
}
.toggle input:checked + .toggle__switch { background: var(--teal-700); }
.toggle input:checked + .toggle__switch::after { transform: translateX(16px); }

.summary {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--sand-100);
  border: 1px solid rgba(6, 32, 54, 0.06);
}
.summary__title { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; margin-bottom: 14px; }
.summary__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0 0 18px; }
.summary__list div { min-width: 0; }
.summary__list dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.summary__list dd { margin: 2px 0 0; font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.summary__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.summary__more .btn--outline { flex: 1 1 auto; }

/* ---------- Drop-off ---------- */
.dropoff {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  height: clamp(220px, 28vw, 320px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(180deg, #c4e7e6 0%, #6fc0c9 30%, #1f7f98 65%, var(--deep-500) 100%);
}
.dropoff::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #c4e7e6, rgba(196, 231, 230, 0) 30%);
  pointer-events: none;
}
.dropoff__tile {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #e8f1f2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 30px -12px rgba(3, 30, 50, 0.6);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--deep-800);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.dropoff__text { position: relative; z-index: 1; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(3, 30, 50, 0.42); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: #eaf6f7; }

/* ---------- Leak ---------- */
.s-leak { --top: var(--deep-500); --bot: var(--deep-600); }
.leak { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1000px) { .leak { grid-template-columns: 1fr 1.05fr; } }
.leak__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.leak__diagram { margin: 0; }
.xsection { width: 100%; height: auto; border-radius: var(--radius); background: linear-gradient(180deg, #0f4a66 0%, #0f4a66 31%, transparent 31%); }
.xsection__small { font-size: 12px; font-weight: 700; fill: var(--on-dark-2); font-family: var(--font-body); }
.xsection__marks text { font-family: var(--font-body); }
.xsection__pings path { transform-box: fill-box; transform-origin: 50% 0; animation: ping 2.6s var(--ease-out) infinite; opacity: 0; }
.xsection__pings path:nth-child(2) { animation-delay: 0.85s; }
.xsection__pings path:nth-child(3) { animation-delay: 1.7s; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.95; } 100% { transform: scale(3.4); opacity: 0; } }
.xsection__leak { transform-box: fill-box; transform-origin: center; animation: leak-pulse 1.6s ease-in-out infinite; }
@keyframes leak-pulse { 50% { transform: scale(1.35); } }
.xsection__drips path { animation: drip 2.2s ease-in infinite; }
.xsection__drips path:nth-child(2) { animation-delay: 1.1s; }
@keyframes drip { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
.xsection__surface { animation: surface 4s ease-in-out infinite alternate; }
@keyframes surface { to { transform: translateX(-10px); } }

.legend { display: grid; gap: 12px; margin-top: 22px; font-size: 0.95rem; color: var(--on-dark-2); }
.legend li { display: flex; gap: 12px; align-items: flex-start; }
.legend span {
  flex: none;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--deep-900);
  font-size: 0.8rem;
  font-weight: 800;
}

.leak__grid { display: grid; gap: 18px; margin-top: clamp(56px, 8vw, 104px); }
.leak__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 40px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(127, 227, 230, 0.18);
}
.leak__tab {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-2);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 0.25s, color 0.25s;
}
.leak__tab[aria-selected="true"] { background: var(--aqua-300); color: var(--deep-900); }
.leak__tabs:not([hidden]) + .leak__grid { margin-top: 14px; }
@media (min-width: 900px) { .leak__grid { grid-template-columns: 1.15fr 0.85fr; } }
.bucket, .signs {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(127, 227, 230, 0.16);
}
.bucket__head { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.bucket__art { width: 104px; flex: none; }
.bucket__kicker { margin: 0 0 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.bucket__title, .signs__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.05; color: var(--on-dark); }
.bucket__intro { margin: 8px 0 0; color: var(--on-dark-2); font-size: 0.98rem; }
.steps-list { counter-reset: step; display: grid; gap: 14px; }
.steps-list li { counter-increment: step; position: relative; padding-left: 46px; color: var(--on-dark); }
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(127, 227, 230, 0.5);
  color: var(--aqua-300);
  font-weight: 800;
  font-size: 0.85rem;
}
.bucket__tip { margin: 22px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(127, 227, 230, 0.08); color: var(--on-dark-2); font-size: 0.95rem; }
.bucket__tip strong { color: var(--aqua-300); }
@media (max-width: 480px) { .bucket__head { flex-direction: column; align-items: flex-start; } .bucket__art { width: 84px; } }

.signs__title { margin-bottom: 18px; }
.signs__list { display: grid; gap: 12px; }
.signs__list li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.signs__list .icon { color: var(--aqua-300); margin-top: 3px; }
.signs__foot { margin: 18px 0 0; color: var(--on-dark-2); font-size: 0.95rem; }

/* ---------- Process ---------- */
.s-process { --top: var(--deep-600); --bot: var(--deep-700); }
.process { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .process { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
  .process__aside { position: sticky; top: calc(var(--header-h) + 64px); }
}
.process__progress { display: none; }
.process__steps { position: relative; display: grid; gap: 18px; counter-reset: none; }
.process__steps::before,
.process__steps::after {
  content: "";
  position: absolute;
  left: 31px; top: 24px; bottom: 24px;
  z-index: 0;
  width: 4px;
  border-radius: 4px;
}
/* lane rope: the track and the filled rope */
.process__steps::before { background: rgba(255, 255, 255, 0.08); }
.process__steps::after {
  bottom: auto;
  height: calc(var(--rope, 0) * (100% - 48px));
  background: repeating-linear-gradient(180deg, var(--coral) 0 10px, #fff 10px 13px, var(--aqua-300) 13px 23px, #fff 23px 26px);
  box-shadow: 0 0 18px rgba(127, 227, 230, 0.35);
}
.pstep {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 22px;
  padding: 26px 26px 26px 0;
  border-radius: var(--radius);
  transition: background-color 0.5s, border-color 0.5s;
}
.pstep__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--deep-700);
  border: 1px solid rgba(127, 227, 230, 0.3);
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--aqua-300);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.pstep.is-active .pstep__num { background: var(--aqua-300); color: var(--deep-900); border-color: var(--aqua-300); box-shadow: 0 0 0 8px rgba(127, 227, 230, 0.12); }
.pstep.is-active { background: rgba(255, 255, 255, 0.04); }
.pstep__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.05; margin: 10px 0 10px; color: var(--on-dark); }
.pstep p { color: var(--on-dark-2); margin-bottom: 14px; }
.pstep__who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 132, 102, 0.14);
  color: var(--coral-hi);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ---------- Gallery ---------- */
.s-gallery { --top: var(--deep-700); --bot: #082945; }
.gallery__more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 52px); }
.gallery__hint { display: none; margin: -12px auto 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--on-dark-2); }
.gallery-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 14.5vw, 210px);
  gap: 18px;
}
.gallery__item { grid-column: span 4; grid-row: span 2; min-width: 0; }
.gallery__item:nth-child(1) { grid-column: span 7; }
.gallery__item:nth-child(2) { grid-column: span 5; }
.gallery__item:nth-child(6) { grid-column: span 5; }
.gallery__item:nth-child(7) { grid-column: span 3; }
.gallery__item figure { position: relative; margin: 0; height: 100%; }
.gallery__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: none;
  color: inherit;
  cursor: zoom-in;
}
.gallery__btn .img-frame { display: block; }
.gallery__btn:focus-visible { outline-offset: 4px; border-radius: 18px; }
.gallery__item .img-frame { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 18px; }
.gallery__item .img-frame img { transition: filter 0.6s; }
.gallery__item figure:hover .img-frame img { filter: saturate(1.1) brightness(1.05); }
.gallery__item figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(4, 20, 38, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
@media (max-width: 999px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 22vw, 200px); }
  .gallery__item, .gallery__item:nth-child(n) { grid-column: span 3; }
  .gallery__item:nth-child(1) { grid-column: span 6; }
}
@media (max-width: 639px) {
  .gallery-wrap { padding-inline: 0; }
  .gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 10px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item, .gallery__item:nth-child(n) { flex: 0 0 78%; margin: 0; scroll-snap-align: start; }
  .gallery__item .img-frame { aspect-ratio: 4 / 5; height: auto; }
}

/* ---------- Areas ---------- */
.s-areas { --top: #082945; --bot: var(--deep-800); padding-top: 0; overflow: clip; }
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 104px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 2rem + 4vw, 6.4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 227, 230, 0.35);
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 10px; height: 10px;
  margin-inline: 0.5em;
  border-radius: 50%;
  background: rgba(255, 132, 102, 0.6);
}
@keyframes marquee { to { transform: translateX(-50%); } }

.areas { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
  .areas { grid-template-columns: 1fr 1fr; grid-template-areas: "copy chips" "map map"; column-gap: 72px; row-gap: 48px; }
  .areas__copy { grid-area: copy; }
  .areas__chips { grid-area: chips; align-self: center; }
  .areas__chips .chip-groups { margin-top: 0; }
  .areas__map { grid-area: map; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(127, 227, 230, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.chip:hover, .chip[aria-pressed="true"] { background: rgba(127, 227, 230, 0.16); border-color: var(--aqua-300); }
.chip--base { border-color: rgba(255, 132, 102, 0.6); }
.chip--ask { border-style: dashed; color: var(--aqua-300); }
.chip-groups { display: grid; gap: 22px; margin-top: 30px; }
.chip-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua-300);
}
.chip-group__title::after { content: ""; flex: 1; height: 1px; background: rgba(127, 227, 230, 0.2); }
.chip-groups .chips { margin-top: 0; }
.areas__map { margin: 0; }
.sonar {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
}
.sonar__sweep { transform-origin: 0 0; transform-box: view-box; animation: sweep 9s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.sonar__km text { font-family: var(--font-body); font-size: 2.6px; }

/* Two regions with identical weight: same halo and label style */
.region-zone__halo { fill: url(#regionHalo); stroke: rgba(127, 227, 230, 0.28); stroke-width: 0.35; stroke-dasharray: 1.2 1.4; transition: stroke 0.3s; }
.region-zone__label { font-family: var(--font-display); font-size: 6.4px; fill: var(--on-dark); paint-order: stroke; stroke: rgba(6, 30, 50, 0.85); stroke-width: 1px; transition: fill 0.3s; }
.region-zone.is-active .region-zone__halo { stroke: rgba(255, 150, 125, 0.8); }
.region-zone.is-active .region-zone__label { fill: #fff; }

/* Town markers (Northamptonshire and the places between share one style; in-between ones are smaller) */
.town text { font-family: var(--font-body); font-size: 3.4px; font-weight: 600; fill: #cfe9ee; paint-order: stroke; stroke: rgba(6, 30, 50, 0.9); stroke-width: 0.9px; transition: fill 0.25s; }
.town--mid text { font-size: 2.9px; font-weight: 500; fill: #a9c8d2; }
.town__dot { fill: var(--aqua-300); transition: fill 0.25s; }
.town--mid .town__dot { fill: #9fd7dc; }
.town__halo { fill: rgba(127, 227, 230, 0.16); transform-box: fill-box; transform-origin: center; transition: transform 0.4s var(--ease-out), fill 0.25s; }
.town.is-active text { fill: #fff; }
.town.is-active .town__dot { fill: var(--coral); }
.town.is-active .town__halo { transform: scale(2); fill: rgba(255, 132, 102, 0.3); }

/* London: Greater London outline, the Thames, and soft North/East/South/West/Central zones */
.region-zone__glow { fill: url(#regionHalo); }
.region-zone__halo--shape { stroke: none; }

.region path { fill: rgba(127, 227, 230, 0.045); stroke: none; transition: fill 0.3s; }
.region--outline path { fill: none; stroke: rgba(127, 227, 230, 0.55); stroke-width: 0.4; stroke-linejoin: round; transition: stroke 0.3s, stroke-width 0.3s; }
.region--central path { fill: rgba(127, 227, 230, 0.13); stroke: rgba(127, 227, 230, 0.5); stroke-width: 0.3; transition: fill 0.3s, stroke 0.3s; }
.ldn-dividers path { fill: none; stroke: rgba(127, 227, 230, 0.26); stroke-width: 0.3; stroke-linecap: round; }
.ldn-thames { fill: none; stroke: #7fe3e6; stroke-opacity: 0.7; stroke-width: 0.6; stroke-linecap: round; stroke-linejoin: round; }
.region__seg { font-family: var(--font-body); font-size: 2.8px; font-weight: 700; letter-spacing: 0.02em; fill: #cfe9ee; paint-order: stroke; stroke: rgba(6, 30, 50, 0.85); stroke-width: 0.8px; transition: fill 0.25s; }
.region.is-active path { fill: rgba(255, 140, 112, 0.3); }
.region--central.is-active path { fill: rgba(255, 132, 102, 0.5); stroke: #ffc9b8; }
.region.is-active .region__seg { fill: #fff; }
.region--outline.is-active path { fill: none; stroke: #ff9a80; stroke-width: 0.7; }

/* phones: the narrow viewBox is set by main.js; type a touch larger to stay legible */
@media (max-width: 679px) {
  .town text { font-size: 4.1px; }
  .town--mid text { font-size: 3.5px; }
  .region-zone__label { font-size: 7.4px; }
  .region__seg { font-size: 3.2px; }
  .sonar__km text { font-size: 3px; }
  .sonar__km .sonar__km-far { display: none; }
}
.areas__map figcaption { margin-top: 10px; text-align: center; font-size: 0.82rem; color: var(--on-dark-2); }

/* ---------- FAQ ---------- */
.s-faq { --top: var(--deep-800); --bot: #061d33; }
.faq { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .faq { grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 64px); }
}
.faq__head a { color: var(--aqua-300); }
.qa { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.qa:first-child { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
  color: var(--on-dark);
  transition: color 0.25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--aqua-300); }
.qa__icon {
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(127, 227, 230, 0.35);
  transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--aqua-300);
  transform: translate(-50%, -50%);
}
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(45deg); background: rgba(127, 227, 230, 0.12); }
.qa__body { padding: 0 56px 26px 0; color: var(--on-dark-2); }
.qa__body p { margin: 0; }
.qa__body a { color: var(--aqua-300); }
.qa[open] .qa__body { animation: qa-in 0.5s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contact ---------- */
.s-contact { --top: #061d33; --bot: #041426; color-scheme: dark; }
.contact { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }
.contact__phone {
  display: inline-flex;
  flex-direction: column;
  margin: 30px 0 26px;
  text-decoration: none;
}
.contact__phone-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); }
.contact__phone-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 1.8rem + 3.6vw, 4.6rem);
  line-height: 1.05;
  color: var(--on-dark);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.contact__phone:hover .contact__phone-num { background-size: 100% 1px; color: #fff; }
.contact__list { display: grid; gap: 10px; }
.contact__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  font-weight: 700;
  word-break: break-word;
  transition: background-color 0.25s, border-color 0.25s;
}
.contact__list a:hover { background: rgba(127, 227, 230, 0.08); border-color: rgba(127, 227, 230, 0.4); }
.contact__list .icon { width: 24px; height: 24px; color: var(--aqua-300); }
.contact__list small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.contact__hours, .contact__base { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--on-dark-2); font-weight: 600; }
.contact__base { margin-top: 10px; }
.contact__hours .icon, .contact__base .icon { color: var(--coral); }

.contact__card {
  position: relative;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(127, 227, 230, 0.18);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.qform { display: grid; gap: 18px; }
.qform__title, .qdone__title { font-family: var(--font-display); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1.05; color: var(--on-dark); text-wrap: balance; }
.qform__alert:focus { outline: 2px solid var(--coral); outline-offset: 2px; }
.qform__hint { margin: 8px 0 0; font-size: 0.88rem; color: var(--on-dark-2); }
.qform__designnote { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(127, 227, 230, 0.12); color: var(--aqua-300); font-weight: 700; font-size: 0.92rem; }
.field { display: grid; gap: 8px; align-content: start; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--on-dark); }
.req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 14, 27, 0.35);
  color: var(--on-dark);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field input, .field textarea, .cselect__trigger { caret-color: var(--aqua-300); }
.field textarea {
  resize: vertical;
  min-height: 140px;
  max-height: 420px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 227, 230, 0.4) transparent;
}
.field textarea::-webkit-resizer { background: linear-gradient(135deg, transparent 50%, rgba(127, 227, 230, 0.5) 50% 58%, transparent 58% 70%, rgba(127, 227, 230, 0.5) 70% 78%, transparent 78%); }
.field ::placeholder { color: rgba(179, 203, 214, 0.62); opacity: 1; }
.qform ::selection { background: rgba(127, 227, 230, 0.35); color: #fff; }
.field input.is-filled, .field textarea.is-filled { border-color: rgba(255, 255, 255, 0.3); background: rgba(3, 14, 27, 0.45); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(127, 227, 230, 0.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua-300); box-shadow: 0 0 0 4px rgba(127, 227, 230, 0.2); background: rgba(3, 14, 27, 0.5); }
.field [aria-invalid="true"] { border-color: #ff9c85; box-shadow: 0 0 0 3px rgba(255, 132, 102, 0.18); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(255, 132, 102, 0.28); }
.field__error { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 0.86rem; font-weight: 600; line-height: 1.4; color: #ffb4a2; }
.field__error::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm-.9 4h1.8l-.2 5.4H7.3zM8 12.6a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm-.9 4h1.8l-.2 5.4H7.3zM8 12.6a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Browser autofill: keep the dark field look (Chrome/Safari paint it pale otherwise) */
@keyframes autofill-start { from { outline-color: transparent; } to { outline-color: transparent; } }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--on-dark);
  caret-color: var(--aqua-300);
  -webkit-box-shadow: 0 0 0 1000px #0c2235 inset;
  box-shadow: 0 0 0 1000px #0c2235 inset;
  border-color: rgba(127, 227, 230, 0.45);
  transition: background-color 600000s 0s, color 600000s 0s;
  animation-name: autofill-start;
  animation-duration: 0.01s;
}
.field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #0b1f31 inset, 0 0 0 4px rgba(127, 227, 230, 0.2); box-shadow: 0 0 0 1000px #0b1f31 inset, 0 0 0 4px rgba(127, 227, 230, 0.2); border-color: var(--aqua-300); }
.field input:autofill { box-shadow: 0 0 0 1000px #0c2235 inset; border-color: rgba(127, 227, 230, 0.45); }

/* sending: fields read as paused, not broken */
.qform.is-sending .field input, .qform.is-sending .field textarea, .qform.is-sending .cselect__trigger { opacity: 0.6; pointer-events: none; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.select select option { color: var(--on-dark); background: var(--deep-700); }

/* --- enhanced (JS) service dropdown --- */
.select.is-enhanced select {
  position: absolute;
  inset: auto auto 0 0;
  width: 1px; height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.select.is-enhanced::after { display: none; }
.cselect__trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 48px 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 14, 27, 0.35);
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.cselect__trigger:hover { border-color: rgba(127, 227, 230, 0.45); }
.cselect__trigger:focus { outline: none; }
.cselect__trigger:focus-visible, .select.is-open .cselect__trigger { border-color: var(--aqua-300); box-shadow: 0 0 0 4px rgba(127, 227, 230, 0.2); background: rgba(3, 14, 27, 0.5); }
.cselect__trigger:not(.is-placeholder) { border-color: rgba(255, 255, 255, 0.3); background: rgba(3, 14, 27, 0.45); }
.cselect__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect__trigger.is-placeholder .cselect__value { color: rgba(179, 203, 214, 0.75); }
.cselect__chev {
  position: absolute;
  right: 19px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--aqua-300);
  border-bottom: 2px solid var(--aqua-300);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.select.is-open .cselect__chev { transform: translateY(-25%) rotate(-135deg); }

.cselect__pop {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 58, 86, 0.97), rgba(9, 36, 60, 0.98));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(127, 227, 230, 0.24);
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: 50% 0;
  transition: opacity 0.18s ease, transform 0.24s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 227, 230, 0.4) transparent;
}
.cselect__pop.is-above { top: auto; bottom: calc(100% + 8px); transform-origin: 50% 100%; transform: translateY(6px) scale(0.985); }
.cselect__pop.is-open { opacity: 1; transform: none; }
.cselect__list { margin: 0; padding: 0; list-style: none; outline: none; }
.cselect__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  color: var(--on-dark);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.cselect__opt + .cselect__opt { margin-top: 2px; }
.cselect__opt.is-active { background: rgba(127, 227, 230, 0.14); }
.cselect__opt:active { background: rgba(127, 227, 230, 0.22); }
.cselect__opt[aria-selected="true"] { color: var(--aqua-300); }
.cselect__opt--none .cselect__text { color: var(--on-dark-2); font-weight: 500; }
.cselect__opt--none[aria-selected="true"] .cselect__text { color: var(--aqua-300); }
.cselect__check { width: 18px; height: 18px; flex: none; opacity: 0; color: var(--aqua-300); }
.cselect__opt[aria-selected="true"] .cselect__check { opacity: 1; }

/* phone sheet version of the list */
.sheet--service .call-sheet__panel { max-height: 86vh; max-height: 86dvh; grid-template-rows: auto minmax(0, 1fr) auto; }
.sheet__slot { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 2px 4px; scrollbar-width: thin; scrollbar-color: rgba(127, 227, 230, 0.4) transparent; }
.sheet--service .cselect__opt { min-height: 54px; padding: 12px 16px; border-radius: 16px; font-size: 1rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.sheet--service .cselect__opt + .cselect__opt { margin-top: 8px; }
.sheet--service .cselect__opt[aria-selected="true"] { border-color: var(--aqua-300); background: rgba(127, 227, 230, 0.12); }
.sheet--service .cselect__list:focus-visible .cselect__opt.is-active { box-shadow: 0 0 0 2px var(--aqua-300); }
.select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--aqua-300);
  border-bottom: 2px solid var(--aqua-300);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.qform__small { margin: 0; font-size: 0.84rem; color: var(--on-dark-2); text-align: center; }
.qform__small a { color: var(--aqua-300); }
.qform__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qform__alert {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 132, 102, 0.12);
  border: 1px solid rgba(255, 132, 102, 0.4);
  color: var(--on-dark);
  font-size: 0.95rem;
}
.qform__alert p { margin: 0; }
.qform__alert-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qform__alert-actions .btn { min-height: 44px; font-size: 0.88rem; }
.qform__submit[aria-busy="true"] { cursor: progress; opacity: 1; --btn-bg: var(--coral-hi); }
.qform__submit[aria-busy="true"]::after { animation-duration: 1.3s; animation-delay: 0s; }
.qform__submit:disabled:not([aria-busy="true"]) { opacity: 0.6; cursor: not-allowed; }
.qform__submit[aria-busy="true"] > .icon { display: none; }
.qform__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(6, 32, 54, 0.2); border-top-color: var(--ink); border-right-color: var(--ink); animation: spin 0.75s linear infinite; }
.qform__submit[aria-busy="true"] .qform__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.qdone { display: grid; gap: 14px; justify-items: start; }
.qdone[hidden] { display: none; }
.qdone p { color: var(--on-dark-2); margin: 0; }
.qdone__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--aqua-300); color: var(--deep-900); }
.qdone__icon .icon { width: 28px; height: 28px; }
.qdone__title:focus { outline: none; }
.qdone__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.qdone__icon--wait { background: var(--coral); }
.qdone__summary { display: grid; gap: 10px; width: 100%; margin: 4px 0; padding: 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.qdone__summary div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
.qdone__summary dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); padding-top: 3px; }
.qdone__summary dd { margin: 0; color: var(--on-dark); white-space: pre-line; overflow-wrap: anywhere; }
.qdone__small { font-size: 0.92rem; }
.qdone__small a, .qdone p a { color: var(--aqua-300); }
.qdone__actions--stack { display: grid; width: 100%; gap: 10px; }
.qdone__or { margin: 8px 0 0 !important; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.qdone__back { min-height: 44px; padding: 0; border: 0; background: none; color: var(--aqua-300); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #041426, var(--abyss));
  color: var(--on-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__top { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 64px; } }
.footer__lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.footer__lockup .footer__name, .footer__lockup .pg-footer__name { margin: 0; }
.footer__mark { flex: none; width: 89px; height: 64px; }
.footer__mark img { display: block; width: 100%; height: 100%; }
.footer__mark.footer__mark--sm { width: 45px; height: 32px; }
.footer__name { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--on-dark); }
.footer__name span { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-2); margin-top: 6px; }
.footer__blurb { max-width: 30em; font-size: 0.95rem; }
.footer__h { margin-bottom: 14px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua-300); }
.footer__nav a, .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--on-dark); text-decoration: none; font-weight: 600; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--aqua-300); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { flex-basis: 100%; max-width: 78ch; line-height: 1.6; opacity: 0.85; }
.footer__legal a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__credit { display: inline-flex; align-items: center; gap: 0.35em; opacity: 0.9; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-weight: 700; }

/* ---------- Mobile action bar ---------- */
.actionbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .actionbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 44;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(5, 24, 44, 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    --focus: var(--aqua-300);
    transition: transform 0.4s var(--ease-out);
  }
  .actionbar a, .actionbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--on-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    font-family: inherit;
  }
  .actionbar .icon { width: 20px; height: 20px; color: var(--aqua-300); }
  .actionbar .actionbar__quote { background: var(--coral); color: var(--ink); }
  .actionbar .actionbar__quote .icon { color: var(--ink); }
  body.menu-open .actionbar,
  body.is-typing .actionbar,
  body.form-in-view .actionbar { transform: translateY(115%); }
}

/* ==========================================================================
   Phone-first refinements (≤767px) — tighter rhythm, compact components
   ========================================================================== */
@media (max-width: 767px) {
  :root { --section-pad: clamp(56px, 15vw, 72px); --radius: 20px; }

  /* type: balanced, slightly smaller section titles */
  .display { font-size: clamp(2.15rem, 1.45rem + 3.2vw, 2.7rem); line-height: 1.02; }
  .eyebrow { margin-bottom: 14px; font-size: 0.72rem; }
  .lead, .section-head__lead { font-size: 1.02rem; line-height: 1.6; }
  .section-head { margin-bottom: 28px; }
  .section-head--split { gap: 0; }
  .card__title, .pstep__title, .bucket__title, .signs__title, .qa summary span, .qdone__title, .qform__title { text-wrap: balance; }
  p { text-wrap: pretty; }

  /* hero */
  .hero__inner { padding-top: calc(var(--header-h) + 22px); padding-bottom: 26px; justify-content: safe center; }
  .hero__eyebrow { margin-bottom: 16px; padding: 6px 12px 6px 10px; font-size: 0.74rem; }
  .hero__title { font-size: clamp(2.7rem, 1.55rem + 5.4vw, 3.5rem); line-height: 0.95; }
  .hero__line { text-wrap: balance; }
  .lead-long { display: none; }
  .lead-short { display: inline; }
  .hero__lead { margin-top: 14px; font-size: 1.02rem; line-height: 1.55; }
  .hero__ctas { display: grid; gap: 10px; margin-top: 20px; }
  .hero__ctas .btn--lg { width: 100%; min-height: 54px; }
  .hero__phones { display: grid; grid-template-columns: 1fr 1fr; width: 100%; min-height: 52px; }
  .hero__phone { padding: 0 8px; gap: 6px; font-size: 0.95rem; min-height: 50px; }
  .trust__list { padding-block: 14px; gap: 10px 14px; font-size: 0.8rem; line-height: 1.3; }
  .trust__list .icon { width: 18px; height: 18px; }

  /* promise */
  .promise__body { gap: 28px; }
  .relay { margin-top: 24px; padding: 18px 14px; gap: 16px; }
  .relay__track { font-size: 0.72rem; }
  .relay__dot { width: 28px; height: 28px; }
  .relay__track li::before { top: 13px; }
  .promise__img { aspect-ratio: 4 / 3; }
  .promise__stats { margin-top: 16px; }

  /* services */
  .bento { gap: 14px; }
  .card__body { padding: 20px; gap: 8px; }
  .card__body p { font-size: 0.95rem; }
  .card__media { aspect-ratio: 16 / 9; }
  .card--a { min-height: 430px; }
  .card--a .card__title { font-size: 2rem; }
  .card__art { padding: 16px 20px 0; }
  .sonar-mini { max-height: 130px; }
  .cover-mini { max-width: 260px; margin-inline: auto; }
  .card__link { padding-top: 4px; }

  /* pool designer: small pinned preview, controls as compact rows */
  .designer { gap: 12px; }
  .designer__stage {
    padding-top: 6px;
    padding-bottom: 14px;
    background: linear-gradient(180deg, rgba(214, 237, 235, 0.97) 86%, rgba(214, 237, 235, 0));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .designer__canvas { width: min(100%, calc(23vh * 1.524)); width: min(100%, calc(23svh * 1.524)); border-width: 3px; border-radius: 16px; }
  .designer__panel { padding: 18px 14px; gap: 18px; }
  .opt__legend { margin-bottom: 10px; font-size: 0.74rem; }
  .shape-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .shape-opt__tile { min-height: 64px; padding: 8px 2px; gap: 4px; font-size: 0.7rem; }
  .shape-opt__tile svg { width: 36px; height: 22px; }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .swatches--stone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatch { flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 80px; padding: 8px 4px; }
  .swatch__chip { width: 28px; height: 28px; }
  .swatch__name { font-size: 0.7rem; }
  .toggles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .toggle { min-height: 52px; padding: 8px 10px; gap: 8px; font-size: 0.76rem; }
  .toggle__switch { width: 34px; height: 20px; }
  .toggle__switch::after { width: 14px; height: 14px; }
  .toggle input:checked + .toggle__switch::after { transform: translateX(14px); }
  .range__label output { font-size: 1.35rem; }
  .range + .range { margin-top: 2px; }
  .range__input { touch-action: pan-y; }
  .range__input::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -12px; }
  .summary { padding: 16px; }
  .summary__title { font-size: 1.4rem; margin-bottom: 10px; }
  .summary__list { gap: 8px 12px; margin-bottom: 14px; }
  .summary__list dd { font-size: 0.86rem; }

  /* drop-off */
  .dropoff { height: 150px; gap: 10px; }
  .dropoff__tile { width: 72px; height: 72px; font-size: 1.05rem; }

  /* leak */
  .leak { gap: 32px; }
  .leak__ctas { margin-top: 22px; }
  .leak__ctas .btn { width: 100%; }
  .legend { margin-top: 16px; font-size: 0.9rem; gap: 10px; }
  .bucket, .signs { padding: 20px; }
  .bucket__head { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 16px; }
  .bucket__art { width: 64px; }
  .bucket__intro { font-size: 0.92rem; }
  .steps-list { gap: 10px; font-size: 0.95rem; }
  .steps-list li { padding-left: 40px; }
  .steps-list li::before { width: 28px; height: 28px; }
  .bucket__tip { margin-top: 16px; font-size: 0.9rem; }
  .signs__title { margin-bottom: 12px; }
  .signs__list { gap: 8px; font-size: 0.95rem; }
  .signs__list li { padding-bottom: 8px; }

  /* process */
  .process { gap: 28px; }
  .process__steps { gap: 6px; }
  .process__steps::before, .process__steps::after { left: 22px; top: 18px; bottom: 18px; }
  .process__steps::after { height: calc(var(--rope, 0) * (100% - 36px)); }
  .pstep { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 14px 14px 14px 0; }
  .pstep__num { width: 48px; height: 48px; font-size: 1.3rem; }
  .pstep__title { font-size: 1.45rem; margin: 6px 0 6px; }
  .pstep p { font-size: 0.95rem; margin-bottom: 10px; }

  /* gallery */
  .gallery__hint { display: block; }

  /* areas */
  .marquee { padding-block: 22px 40px; }
  .marquee__track span { font-size: 2.6rem; }
  .areas { gap: 28px; }
  .chips { gap: 6px; margin-top: 20px; }
  .chip-groups { gap: 18px; margin-top: 22px; }
  .chip { padding: 0 14px; font-size: 0.88rem; }

  /* faq */
  .faq { gap: 20px; }
  .qa summary { padding: 18px 0; font-size: 1.28rem; gap: 14px; }
  .qa__icon { width: 36px; height: 36px; }
  .qa__body { padding: 0 0 20px; font-size: 0.97rem; }

  /* contact */
  .contact { gap: 32px; }
  .contact__phone { margin: 18px 0 16px; }
  .contact__phone-num { font-size: clamp(2.5rem, 1.6rem + 4vw, 3rem); }
  .contact__list { gap: 8px; }
  .contact__list a { min-height: 56px; padding: 8px 14px; }
  .contact__hours { margin-top: 16px; }
  .contact__card { padding: 22px 18px; border-radius: 22px; }
  .qform { gap: 14px; }
  .field input, .field select, .cselect__trigger { min-height: 52px; font-size: 16px; }
  .field textarea { font-size: 16px; min-height: 120px; }
  .qform__submit { scroll-margin-bottom: 24px; }

  /* footer */
  .site-footer { padding-top: 48px; }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 18px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__lockup { gap: 14px; margin-bottom: 16px; }
  .footer__mark { width: 72px; height: 52px; }
  .footer__name { font-size: 1.6rem; }
  .footer__name span { font-size: 0.64rem; letter-spacing: 0.14em; }
  .footer__nav a, .footer__contact a { font-size: 0.95rem; overflow-wrap: anywhere; }
  .footer__bottom { margin-top: 32px; }
}

/* phones: services become a swipeable row of equal cards */
.bento__hint { display: none; }
@media (max-width: 679px) {
  .bento__hint { display: block; margin: -10px 0 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); }
  .bento {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento > .card { flex: 0 0 84%; scroll-snap-align: start; min-height: 0; }
  .bento > .card--a { min-height: 470px; }
  .card--f { flex-direction: column; }
  .card--f .card__media { width: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .gallery__item .img-frame { aspect-ratio: 1 / 1; }
}

/* very small phones */
@media (max-width: 374px) {
  .brand__sub { letter-spacing: 0.1em; }
}
/* the narrowest phones: the bottom action bar already has Call, so the header keeps just brand + menu */
@media (max-width: 359px) {
  .header-call { display: none !important; }
  .hero__phone { font-size: 0.88rem; gap: 4px; }
  .hero__phone .icon { display: none; }
}

/* landscape phones: no pinned preview, shorter hero */
@media (max-height: 520px) and (orientation: landscape) {
  .designer__stage { position: static !important; }
  .hero { min-height: auto; }
  .hero__inner { padding-top: calc(var(--header-h) + 20px); padding-bottom: 28px; }
  .hero__title { font-size: clamp(2.4rem, 11vh, 3.2rem); }
  .hero__eyebrow { margin-bottom: 14px; }
  .hero__lead { margin-top: 12px; }
  .hero__ctas { margin-top: 18px; }
  .lead-long { display: none; }
  .lead-short { display: inline; }
  .designer__canvas { max-width: 440px; }
}

/* touch: no hover-only effects left stuck on after a tap */
@media (hover: none) {
  .btn:hover, .card:hover, .btn--coral:hover, .btn--glass:hover, .btn--glass-dark:hover, .btn--outline:hover { transform: none; }
  .card:hover { box-shadow: var(--shadow-soft); }
  .card:hover .card__media img { transform: none; }
  .card:hover .card__link .icon, .btn:hover .icon:last-child:not(:first-child) { transform: none; }
  .card--d:hover .cover-mini__slats { transform: scaleX(0.62); }
  .header-phones__num:hover { background: transparent; color: inherit; }
  .spotlight::before { display: none; }
  .qa summary:hover { color: var(--on-dark); }
  .chip:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(127, 227, 230, 0.28); }
  .chip[aria-pressed="true"] { background: rgba(127, 227, 230, 0.16); border-color: var(--aqua-300); }
}

/* ---------- Call sheet (mobile) ---------- */
.call-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; --focus: var(--aqua-300); }
.call-sheet__backdrop { position: absolute; inset: 0; background: rgba(3, 14, 27, 0.55); opacity: 0; transition: opacity 0.3s; }
.call-sheet__panel {
  position: relative;
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, var(--deep-600), var(--deep-800));
  color: var(--on-dark);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.call-sheet.is-open .call-sheet__backdrop { opacity: 1; }
.call-sheet.is-open .call-sheet__panel { transform: none; }
.call-sheet__title { margin: 0 4px 6px; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.call-sheet__opt {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
  text-decoration: none;
}
.call-sheet__opt:first-of-type { background: var(--coral); color: var(--ink); border-color: transparent; }
.call-sheet__opt strong { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.call-sheet__opt small { display: block; font-size: 0.82rem; opacity: 0.85; }
.call-sheet__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); flex: none; }
.call-sheet__cancel { min-height: 52px; margin-top: 4px; border: 0; border-radius: 16px; background: transparent; color: var(--on-dark-2); font-weight: 700; }
body.sheet-open, body.lb-open { overflow: hidden; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: clamp(56px, 7vw, 88px) clamp(12px, 6vw, 96px);
  color: var(--on-dark);
  --focus: var(--aqua-300);
}
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(3, 12, 24, 0.92); opacity: 0; transition: opacity 0.3s; }
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__figure { position: relative; margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; max-height: 100%; opacity: 0; transform: scale(0.97); transition: opacity 0.3s, transform 0.4s var(--ease-out); touch-action: pan-y; }
.lightbox.is-open .lightbox__figure { opacity: 1; transform: none; }
.lightbox__frame { border-radius: 14px; overflow: hidden; background: #0b2c47; }
.lightbox__img { display: block; max-width: min(1400px, 100%); max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); width: auto; height: auto; object-fit: contain; transition: opacity 0.25s; }
.lightbox__img.is-loading { opacity: 0.35; }
.lightbox__cap { display: flex; gap: 12px; align-items: baseline; font-weight: 600; text-align: center; }
.lightbox__count { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; color: var(--aqua-300); font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.25s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 64px 10px 92px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .lightbox__img { max-height: calc(100svh - 230px); }
}

/* ==========================================================================
   Our work pages
   ========================================================================== */
.work-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 88px)) 0 clamp(36px, 5vw, 64px);
  background: radial-gradient(120% 90% at 85% 0%, rgba(127, 227, 230, 0.32), transparent 60%), linear-gradient(180deg, var(--aqua-50), var(--sand-50));
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: clamp(16px, 2vw, 24px); font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.45; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--teal-700); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 32px; }
.work-hero .display { max-width: 15ch; }
.work-hero__lead { max-width: 38em; margin-top: clamp(18px, 2.2vw, 26px); font-size: var(--fs-lead); color: var(--ink-2); }

.s-work { --top: var(--sand-50); --bot: #f1ece2; padding-top: clamp(8px, 2vw, 24px); }
.s-work + .s-work { padding-top: 0; }
.work-h2 { margin-bottom: clamp(18px, 2.4vw, 28px); font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.05; }

/* Photo grid: uniform rows of 3:4 tiles; landscape photos span two columns */
.work-grid { --cols: 2; --gap: 10px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap); }
@media (min-width: 700px) { .work-grid { --cols: 3; --gap: 14px; } }
@media (min-width: 1100px) { .work-grid { --cols: 4; --gap: 16px; } }
@media (min-width: 1100px) { .work-grid--three { --cols: 3; --gap: 18px; } }
.work-grid__item { min-width: 0; aspect-ratio: 3 / 4; }
.work-grid__item--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
@supports (width: 1cqi) {
  .work-wrap { container-type: inline-size; }
  .work-grid { grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * 4 / 3); }
  .work-grid__item, .work-grid__item--wide { aspect-ratio: auto; }
}
.work-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sand-200);
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(6, 32, 54, 0.06), 0 14px 30px -20px rgba(6, 32, 54, 0.45);
}
.work-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.work-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(6, 32, 54, 0.06); pointer-events: none; }
@media (hover: hover) { .work-tile:hover img { transform: scale(1.04); } }
.work-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Overview: one card per category */
.work-cats { display: grid; gap: clamp(14px, 2vw, 22px); }
@media (min-width: 760px) { .work-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.work-cat__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-200); }
.work-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work-cat__body { display: flex; flex-direction: column; gap: 6px; padding: clamp(18px, 2vw, 24px); }
.work-cat__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.05; }
.work-cat__meta { font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.work-cat__go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 4px; font-weight: 700; font-size: 0.95rem; color: var(--teal-700); }
.work-cat__go .icon { transition: transform 0.4s var(--ease-out); }
@media (hover: hover) {
  .work-cat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(6, 32, 54, 0.06), 0 26px 50px -24px rgba(6, 32, 54, 0.4); }
  .work-cat:hover .work-cat__media img { transform: scale(1.05); }
  .work-cat:hover .work-cat__go .icon { transform: translateX(5px); }
}
.work-cat:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Previous / next category */
.work-pager { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 640px) { .work-pager { grid-template-columns: 1fr 1fr; } }
.work-pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 32, 54, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s;
}
.work-pager a:hover { border-color: var(--teal-700); background: #fff; }
.work-pager small { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-700); }
.work-pager span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.work-pager__next { text-align: right; align-items: flex-end; }
@media (min-width: 640px) { .work-pager__next:only-child { grid-column: 2; } }

/* Quote call to action */
.s-work-cta { --top: var(--deep-700); --bot: var(--deep-800); color: var(--on-dark); padding-block: clamp(64px, 8vw, 112px); }
.work-cta { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .work-cta { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.work-cta .display { max-width: 14ch; color: var(--on-dark); }
.work-cta .display em { color: var(--aqua-300); }
.work-cta p { max-width: 34em; margin-top: 18px; font-size: var(--fs-lead); color: var(--on-dark-2); }
.work-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 899px) { .work-cta__actions .btn { flex: 1 1 220px; } }

/* ---------- Reveal on scroll ---------- */
html.js.motion-ok .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js.motion-ok .reveal.is-in { opacity: 1; transform: none; }
/* cards keep their own hover transform once revealed */
html.js.motion-ok .card.reveal.is-in { transition: opacity 1s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn--shimmer::after, .caustic-bg::before, .rays::before, .marquee__track, .sonar__sweep, .hero__cue-line::after { animation: none !important; }
  .marquee { display: none; }
  .s-areas { padding-top: var(--section-pad); }
  .img-frame img[data-parallax] { height: 100%; margin-top: 0; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .gauge, .actionbar, .hero__media, .mobile-menu, .call-sheet, .lightbox { display: none !important; }
  .section, .hero { background: #fff !important; color: #000 !important; }
}
