/* ============================================================================
   AQUAFULLY LEAK DETECTION — DESIGN SYSTEM
   ----------------------------------------------------------------------------
   Dark · precise · technical · water.

   Everything is driven by the tokens in :root. No arbitrary values below this
   block — if a number is needed more than once, it becomes a token.

   Sections
     01 tokens & reset          08 reviews
     02 typography              09 gallery / work
     03 buttons & badges        10 map & service areas
     04 forms & inputs          11 FAQ
     05 header & navigation     12 lead form
     06 hero                    13 final CTA
     07 sections that use        14 footer
        diagnostic / process     15 mobile bar, cursor, states
        / visualisation / tech   16 responsive & reduced motion
   ========================================================================== */

/* ==========================================================================
   01 — TOKENS & RESET
   --------------------------------------------------------------------------
   The luxury is in the restraint: a near-black ground, hairlines that behave
   like light catching an edge, one accent used sparingly, and type given a lot
   of room. Nothing here is shiny for the sake of it.
   ========================================================================== */
:root {
  /* Surface — deeper and cooler than v1; the layers read as one material */
  --ink:        #02040a;
  --navy-900:   #04080f;
  --navy-800:   #060d17;
  --navy-700:   #08131f;
  --graphite:   #0b1219;
  --slate:      #131c26;
  --slate-lite: #1c2733;

  /* Water — single accent family, used with restraint */
  --aqua:       #46d5f5;
  --aqua-bright:#7fe6ff;
  --aqua-deep:  #0e8fb4;
  --aqua-ink:   #062e3d;
  --aqua-glow:  rgba(70, 213, 245, 0.45);

  /* Frost — the headline white. Never pure #fff: on a ground this dark a
     slightly cooled paper white is what reads as expensive type. */
  --frost:      #f4f9fd;

  /* Brass — the single warm note. Permitted only on ratings, and on the few
     hairline awards/credentials marks. If it starts to spread, delete it. */
  --brass:      #c8a86b;
  --brass-dim:  rgba(200, 168, 107, 0.32);

  /* Text */
  --text:       #e6eef5;
  --text-soft:  #b3c2ce;
  --muted:      #788a99;
  --muted-dim:  #53636f;

  /* Lines & glass — hairlines carry the structure, so they get the detail:
     a gradient hairline reads as a lit edge instead of a drawn rule. */
  --line:       rgba(255, 255, 255, 0.10);
  --line-soft:  rgba(255, 255, 255, 0.055);
  --line-aqua:  rgba(70, 213, 245, 0.32);
  --hairline:   linear-gradient(90deg, transparent, rgba(255,255,255,0.16) 18%, rgba(255,255,255,0.16) 82%, transparent);
  --hairline-aqua: linear-gradient(90deg, transparent, rgba(70,213,245,0.55), transparent);
  --glass:      rgba(6, 14, 24, 0.72);
  --glass-lite: rgba(12, 24, 36, 0.55);
  --paper:      #ffffff;
  --grain:      0.035;

  /* Photographic grade. Every photograph on the site passes through this, so
     nine frames shot on different days in different light read as one set.
     Mild desaturation plus a lift in contrast is the whole trick; the cool
     cast does the rest, and it costs nothing at runtime. */
  --grade:        saturate(0.86) contrast(1.07) brightness(0.93);
  --grade-hover:  saturate(0.94) contrast(1.06) brightness(1.01);

  /* Status */
  --ok:         #3ddc9a;
  --warn:       #f5b544;
  --danger:     #ff6b6b;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale — fluid, so breakpoints stay few. Larger than v1: scale is the
     cheapest luxury there is, and it costs no bytes. */
  --fs-mega:  clamp(3rem, 9.4vw, 7.6rem);
  --fs-xxl:   clamp(2.3rem, 6vw, 4.6rem);
  --fs-xl:    clamp(1.8rem, 4.4vw, 3.1rem);
  --fs-lg:    clamp(1.3rem, 2.4vw, 1.72rem);
  --fs-md:    clamp(1.06rem, 1.4vw, 1.25rem);
  --fs-body:  clamp(0.99rem, 1.08vw, 1.09rem);
  --fs-sm:    0.885rem;
  --fs-xs:    0.78rem;
  --fs-mono:  0.72rem;

  /* Line-height pairs with scale: big type needs tighter, body needs looser. */
  --lh-display: 0.96;
  --lh-body: 1.72;

  /* Space */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Shell */
  --wrap: 1280px;
  --wrap-narrow: 800px;
  --gutter: clamp(22px, 5.5vw, 64px);
  --header-h: 74px;

  /* Radius — nearly square. Rounded corners are the tell of a template;
     a 2–5px radius reads as machined metal. */
  --r-xs: 2px; --r-sm: 3px; --r-md: 5px; --r-lg: 8px; --r-pill: 999px;

  /* Elevation — plus an inset highlight, so every raised surface has a lit
     top edge the way a real object would. */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --sh-2: 0 14px 40px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --sh-3: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --sh-glow: 0 0 0 1px var(--line-aqua), 0 18px 50px -18px var(--aqua-glow);

  /* Motion — slower and softer than v1. Calm reads as confidence; fast reads
     as a marketing site. */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-lux: cubic-bezier(0.65, 0, 0.2, 1);
  --t-fast: 180ms;
  --t-mid: 360ms;
  --t-slow: 820ms;

  --z-header: 100;
  --z-drawer: 200;
  --z-mobile-bar: 150;
  --z-overlay: 300;
  --z-toast: 400;
  --z-cursor: 500;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
html.is-locked, body.is-locked { overflow: hidden; }

body {
  margin: 0;
  /* A barely-there vertical wash instead of a flat fill: on OLED and on good
     monitors a single flat near-black looks like an unloaded page. */
  background:
    linear-gradient(180deg, #04070d 0%, var(--ink) 22%, var(--ink) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: `overflow-x: hidden` turns the body into a scroll
     container and silently kills every `position: sticky` descendant
     (the scroll-driven visualisation depends on it). */
  overflow-x: clip;
}

/* The hidden attribute must beat component display rules — a class like
   .btn { display: inline-flex } would otherwise keep a hidden control
   visible (and focusable) for keyboard users. */
[hidden] { display: none !important; }

img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--aqua); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--aqua-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-toast);
  background: var(--aqua); color: var(--navy-900);
  padding: var(--sp-3) var(--sp-5); font-weight: 600;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

.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;
}

/* ==========================================================================
   02 — TYPOGRAPHY
   ========================================================================== */
/* Display type is set LIGHT and TIGHT. Weight 700 at 7rem shouts; weight 500
   at 7rem with -0.035em tracking is what an expensive site does. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: var(--lh-display);
  margin: 0;
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
h1 { font-size: var(--fs-mega); font-weight: 500; letter-spacing: -0.038em; }
h2 { font-size: var(--fs-xxl); }
h3 { font-size: var(--fs-lg); font-weight: 600; line-height: 1.16; letter-spacing: -0.024em; }
h4 { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; letter-spacing: -0.014em; }
p  { margin: 0 0 var(--sp-4); max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--frost); }

/* An opening line that sets up the reader — one step up from body, one step
   down from a heading, and never bold. */
.intro-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--frost);
  max-width: 44ch;
}

/* Grain: a fine film over the cinematic surfaces. It is what stops large dark
   gradients from banding, and it is the cheapest way to make a screen look
   like a material rather than a screen. Applied per-section, not globally, so
   it never costs a full-page compositing layer while scrolling. */
.hero::after, .viz-sticky::after, .final::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* A rule that fades at both ends, for between sections and under headings. */
.rule {
  height: 1px; border: 0; margin: var(--sp-7) 0;
  background: var(--hairline);
}
.rule--aqua { background: var(--hairline-aqua); }
em { font-style: italic; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: var(--sp-6);
}
.eyebrow::before {
  content: ""; width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aqua));
  opacity: 0.75;
}
.eyebrow--plain::before { display: none; }

.lede { font-size: var(--fs-md); color: var(--text-soft); max-width: 60ch; line-height: 1.62; }
.dim { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); color: var(--muted); }
.aqua { color: var(--aqua); }
.measure { max-width: var(--wrap-narrow); }
.center { text-align: center; }
.center p, .center .lede { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   03 — BUTTONS, CARDS, BADGES
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  padding: 16px 30px;
  min-height: 52px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.015em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease),
              transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Primary — the aqua "act now" button. The gradient is deliberately short and
   the highlight is a 1px inset, so it reads as a machined surface rather than
   a web gradient. */
.btn--primary {
  --btn-bg: linear-gradient(180deg, #8ceaff 0%, var(--aqua) 48%, #1ba8cf 100%);
  --btn-fg: #03222e;
  --btn-bd: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 34px -16px var(--aqua-glow);
}
.btn--primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 22px 48px -18px rgba(70, 213, 245, 0.6);
  --btn-fg: #021a23;
}
.btn--primary .btn__sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,0.85) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0s;
}
.btn--primary:hover .btn__sweep,
.btn--primary:focus-visible .btn__sweep,
.btn--primary.is-scanning .btn__sweep { animation: sweep 900ms var(--ease-out) 1; }
@keyframes sweep { to { transform: translateX(130%); } }

/* Ghost buttons brighten at the edge rather than tinting the fill — light
   catching a surface, not a colour change. */
.btn--ghost { --btn-bd: var(--line); background: rgba(255,255,255,0.022); }
.btn--ghost:hover {
  --btn-bd: rgba(255, 255, 255, 0.24);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 34px -20px rgba(0,0,0,0.9);
}

.btn--outline-aqua { --btn-bd: var(--line-aqua); --btn-fg: var(--aqua); }
.btn--outline-aqua:hover { background: rgba(70,213,245,0.07); --btn-bd: rgba(127,230,255,0.55); }

.btn--quiet { --btn-bd: transparent; --btn-fg: var(--text-soft); padding-inline: var(--sp-3); box-shadow: none; }
.btn--quiet:hover { --btn-fg: var(--aqua); transform: none; }

.btn--lg { padding: 19px 38px; min-height: 60px; font-size: 1.03rem; }
.btn--sm { padding: 10px 18px; min-height: 40px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 12px; min-height: 46px; min-width: 46px; }
.btn--danger { --btn-fg: var(--danger); --btn-bd: rgba(255,107,107,0.35); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.btn-row--center { justify-content: center; }

/* Phone CTA — the number itself, always live */
.phone-cta {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.005em;
  color: var(--text); white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.phone-cta svg { color: var(--aqua); flex: none; transition: transform var(--t-fast) var(--ease); }
.phone-cta:hover { color: var(--aqua); }
.phone-cta:hover svg { transform: rotate(-12deg) scale(1.06); }

/* Card — a raised panel with a lit top edge and a soft drop shadow. Hover
   brightens the edge and lifts it a little; it does not flood it with colour. */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.008));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  box-shadow: var(--sh-1);
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.card--hover:hover {
  border-color: rgba(255, 255, 255, 0.17);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  box-shadow: 0 26px 60px -30px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.09);
  transform: translateY(-2px);
}
.card--pad-lg { padding: var(--sp-7); }

/* Badge / chip */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 5px 11px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft);
  background: rgba(255,255,255,0.03);
}
.chip--aqua { border-color: var(--line-aqua); color: var(--aqua); background: rgba(70,213,245,0.05); }
.chip--ok { border-color: rgba(61,220,154,0.35); color: var(--ok); }
.chip--warn { border-color: rgba(245,181,68,0.35); color: var(--warn); }
.chip--demo { border-color: rgba(245,181,68,0.5); color: var(--warn); }

/* Small status light used across diagnostics */
.led {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--muted-dim); box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.led--on { background: var(--ok); box-shadow: 0 0 0 3px rgba(61,220,154,0.16), 0 0 14px rgba(61,220,154,0.6); animation: pulse 2.4s var(--ease) infinite; }
.led--aqua { background: var(--aqua); box-shadow: 0 0 0 3px rgba(70,213,245,0.16), 0 0 14px var(--aqua-glow); }
.led--warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,181,68,0.16); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Grids */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ==========================================================================
   04 — FORMS & INPUTS
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field > label, .field .label {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-soft);
}
.field .req { color: var(--aqua); margin-left: 4px; }

.input, .textarea, .select {
  width: 100%;
  padding: 15px 17px;
  min-height: 52px;
  /* recessed rather than raised: an inset top shadow is what makes a field
     read as cut into the surface */
  background: rgba(2, 6, 12, 0.72);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-dim); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--aqua);
  background: rgba(6, 18, 28, 0.9);
  box-shadow: 0 0 0 3px rgba(70,213,245,0.14);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237f92a3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 42px;
}
.field.has-error .input, .field.has-error .textarea, .field.has-error .select {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}
.field-error {
  display: none; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); color: var(--danger);
}
.field.has-error .field-error { display: flex; }
.field-hint { font-size: var(--fs-xs); color: var(--muted); }

/* Checkbox / radio option tiles */
.options { display: grid; gap: var(--sp-3); }
.options--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.options--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.opt {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 16px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; text-align: left;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  min-height: 56px;
}
.opt:hover { border-color: var(--line-aqua); background: rgba(70,213,245,0.05); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--muted); position: relative;
  transition: border-color var(--t-fast) var(--ease);
}
.opt input:checked ~ .opt__mark { border-color: var(--aqua); }
.opt input:checked ~ .opt__mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--aqua);
  box-shadow: 0 0 12px var(--aqua-glow);
}
.opt input:checked ~ .opt__label { color: #fff; }
.opt:has(input:checked) { border-color: var(--aqua); background: rgba(70,213,245,0.09); }
.opt input:focus-visible ~ .opt__mark { outline: 2px solid var(--aqua-bright); outline-offset: 3px; }
.opt__label { font-size: 0.95rem; color: var(--text-soft); }

/* Photo upload */
.upload { display: grid; gap: var(--sp-3); }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-5);
  border: 1px dashed var(--line); border-radius: var(--r-md);
  background: rgba(255,255,255,0.02);
  text-align: center; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--aqua); background: rgba(70,213,245,0.06); }
.dropzone svg { color: var(--aqua); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: var(--sp-3); }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--navy-800); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__x {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(0,0,0,0.72); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
}
.thumb__x:hover { background: var(--danger); }
.thumb__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 9px; background: rgba(0,0,0,0.66); color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-error { color: var(--danger); font-size: var(--fs-sm); }

/* ==========================================================================
   05 — HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease),
              height var(--t-mid) var(--ease), backdrop-filter var(--t-mid) var(--ease);
}
.site-header.is-stuck {
  height: 64px;
  background: rgba(5, 12, 22, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.site-header__inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); flex: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.02em; color: #fff;
}
.brand__sub {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--aqua); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 10px 11px;
  font-size: 0.87rem; font-weight: 500; color: var(--text-soft);
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav__link[aria-current="page"] { color: var(--aqua); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1px;
  background: var(--aqua); box-shadow: 0 0 10px var(--aqua-glow);
}
/* diagnostic tick that appears on service links */
.nav__link[data-tick]::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 3px; height: 3px;
  border-radius: 50%; background: var(--aqua); transform: translateY(-50%) scale(0);
  transition: transform var(--t-mid) var(--ease);
}
.nav__link[data-tick]:hover::before { transform: translateY(-50%) scale(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.header-actions .phone-cta { font-size: 0.9rem; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 2px; background: rgba(255,255,255,0.03);
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.1em;
  color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--aqua); color: var(--navy-900); font-weight: 600; }
.lang-switch button:hover:not([aria-pressed="true"]) { color: #fff; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(255,255,255,0.03); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text);
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(3, 7, 12, 0.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  padding: var(--sp-5) 0 var(--sp-6);
  transform: translateY(-100%);
  transition: transform var(--t-slow) var(--ease-out);
  overflow-y: auto;
  visibility: hidden;
}
.drawer[data-open="true"] { transform: translateY(0); visibility: visible; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter) var(--sp-5); }
.drawer__nav { display: flex; flex-direction: column; padding: 0 var(--gutter); }
.drawer__link {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer__link::after { content: "→"; color: var(--aqua); font-size: 1rem; }
.drawer__link:hover { color: var(--aqua); }
.drawer__foot { margin-top: auto; padding: var(--sp-6) var(--gutter) 0; display: grid; gap: var(--sp-3); }
.drawer__meta { padding: var(--sp-5) var(--gutter) 0; color: var(--muted); font-size: var(--fs-sm); display: grid; gap: var(--sp-2); }

/* ==========================================================================
   06 — HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-8);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 62% 42%;
  opacity: 0.45;
  filter: saturate(0.9) contrast(1.08) brightness(0.66);
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.05) translate3d(0,0,0); } to { transform: scale(1.13) translate3d(-1.5%, -2%, 0); } }

/* layered gradients: underwater darkness, vignette, aqua bloom */
.hero__wash {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 78% 22%, rgba(14, 143, 180, 0.42) 0%, transparent 60%),
    radial-gradient(90% 70% at 12% 88%, rgba(6, 46, 61, 0.6) 0%, transparent 62%),
    linear-gradient(178deg, rgba(3, 6, 11, 0.42) 0%, rgba(3, 7, 13, 0.78) 48%, var(--ink) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(70,213,245,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,213,245,0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 80% at 65% 30%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(120% 80% at 65% 30%, #000 12%, transparent 76%);
  animation: gridPan 40s linear infinite;
}
@keyframes gridPan { to { background-position: 68px 68px, 68px 68px; } }

/* particle layer */
.hero__particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__particles i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(127, 230, 255, 0.55); filter: blur(0.4px);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 0.85; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-102svh) translateX(22px); opacity: 0; }
}

/* the animated sonar figure on the right */
.hero__figure {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 720px); z-index: -1; opacity: 0.85; pointer-events: none;
}
.hero__figure svg { width: 100%; height: auto; overflow: visible; }

.hero__inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 { max-width: 17ch; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(105%);
  animation: wordIn 900ms var(--ease-out) forwards;
}
.hero h1 .word:nth-child(2) > span { animation-delay: 90ms; }
.hero h1 .word:nth-child(3) > span { animation-delay: 180ms; }
@keyframes wordIn { to { transform: translateY(0); } }
.hero .lede { margin-top: var(--sp-6); max-width: 48ch; }
.hero .btn-row { margin-top: var(--sp-7); }

.hero__status {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-7);
  padding: 8px 14px;
  border: 1px solid var(--line-aqua); border-radius: var(--r-pill);
  background: rgba(6, 26, 36, 0.6);
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__status .state--located { display: none; color: var(--ok); }
.hero__status[data-state="located"] .state--searching { display: none; }
.hero__status[data-state="located"] .state--located { display: inline; }
.hero__status[data-state="located"] { border-color: rgba(61,220,154,0.4); }
.hero__status[data-state="located"] .led { background: var(--ok); }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dim);
}
.hero__scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--aqua), transparent); animation: scrollHint 2.4s var(--ease) infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0.2); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0.2); transform-origin: bottom; } }

/* ==========================================================================
   07 — SECTIONS: LAYOUT + COMPONENT BLOCKS
   ========================================================================== */
.section { position: relative; padding: clamp(64px, 9vw, 130px) 0; }
.section--tight { padding: clamp(44px, 6vw, 84px) 0; }
.section--ink { background: var(--ink); }
.section--navy { background: var(--navy-900); }
.section--deep {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(14,143,180,0.10), transparent 70%),
    var(--navy-900);
}
.section--edge { border-top: 1px solid var(--line-soft); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 66ch; }
.section__head h2 + .lede { margin-top: var(--sp-5); }

/* --- trust strip -------------------------------------------------------- */
.trustbar {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 12, 22, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.trustbar__row {
  display: flex; flex-wrap: wrap; align-items: stretch;
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
}
.trustbar__item {
  flex: 1 1 180px; min-width: 0;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  position: relative;
}
.trustbar__item + .trustbar__item::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
  background: var(--line-soft);
}
.trustbar__item + .trustbar__item { padding-left: var(--sp-5); }
.trustbar__ico { color: var(--aqua); flex: none; }
.trustbar__val { display: block; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; font-size: 1rem; color: var(--frost); line-height: 1.2; }
.trustbar__lab { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.stars { display: inline-flex; gap: 2px; color: var(--brass); filter: drop-shadow(0 1px 6px rgba(200,168,107,0.22)); }
.stars svg { width: 15px; height: 15px; }

/* --- diagnostic tool --------------------------------------------------- */
.diag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--sp-7); align-items: start; }
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-3); }
.problem {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-5);
  background: rgba(255,255,255,0.028);
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  cursor: pointer; text-align: left;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
  position: relative; overflow: hidden;
}
.problem::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
  transform: scaleX(0); transition: transform var(--t-slow) var(--ease-out);
}
.problem:hover { border-color: var(--line-aqua); background: rgba(70,213,245,0.06); transform: translateY(-2px); }
.problem:hover::after, .problem[aria-selected="true"]::after { transform: scaleX(1); }
.problem[aria-selected="true"] { border-color: var(--aqua); background: rgba(70,213,245,0.1); }
.problem__ico { color: var(--aqua); flex: none; margin-top: 2px; }
.problem__t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff; }
.problem__s { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }

.diag-panel {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(10,24,38,0.9), rgba(5,12,22,0.9));
  padding: var(--sp-6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--sh-3);
}
.diag-visual {
  position: relative; height: 108px; margin-bottom: var(--sp-5);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: radial-gradient(120% 100% at 50% 120%, rgba(14,143,180,0.35), rgba(4,10,18,0.9) 70%);
  overflow: hidden;
}
.diag-visual::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(70,213,245,0.08) 0 1px, transparent 1px 22px);
  opacity: 0.6;
}
.diag-visual__wave { position: absolute; inset: 0; }
.diag-visual__wave path {
  fill: none; stroke: var(--aqua); stroke-width: 1.4; opacity: 0.85;
  stroke-dasharray: 6 5;
  animation: dash 2.6s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -110; } }
.diag-visual__scan {
  position: absolute; top: 0; bottom: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(70,213,245,0.28), transparent);
  animation: scanX 3.4s var(--ease) infinite;
}

.diag-progress { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.diag-progress__bar { flex: 1; height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.diag-progress__bar i { display: block; height: 100%; width: 0; background: var(--aqua); box-shadow: 0 0 10px var(--aqua-glow); transition: width var(--t-slow) var(--ease-out); }
.diag-q { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; color: #fff; margin-bottom: var(--sp-4); }
.diag-answers { display: grid; gap: var(--sp-2); }
.diag-summary {
  margin-top: var(--sp-5); padding: var(--sp-4);
  border-left: 2px solid var(--aqua); background: rgba(70,213,245,0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm); color: var(--text-soft);
  white-space: pre-line;
}
.diag-empty { color: var(--muted-dim); font-size: var(--fs-sm); }
.is-flash { animation: flash 700ms var(--ease); }
@keyframes flash { 0% { background-color: rgba(70,213,245,0.25); } 100% { background-color: transparent; } }

/* --- process timeline -------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; }
.stage {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-6) 0;
  border-top: 1px solid var(--line);
}
.stage::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px;
  background: var(--aqua); box-shadow: 0 0 12px var(--aqua-glow);
  transition: width 900ms var(--ease-out);
}
.stage.is-lit::before { width: 100%; }
.stage__num { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.2em; color: var(--aqua); }
.stage__t { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; margin: var(--sp-3) 0 var(--sp-3); color: #fff; }
.stage__b { font-size: var(--fs-sm); color: var(--muted); }
.stage__dot {
  position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted-dim); transition: background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.stage.is-lit .stage__dot { background: var(--aqua); box-shadow: 0 0 12px var(--aqua-glow); }

/* --- leak visualisation (scroll driven) -------------------------------- */
.viz-scroll { position: relative; height: 320vh; background: var(--ink); }
.viz-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.viz-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-copy {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  pointer-events: none;
}
.viz-copy h2 { max-width: 16ch; }
.viz-copy .lede { margin-top: var(--sp-5); }
.viz-readout {
  position: absolute; z-index: 3; right: var(--gutter); bottom: var(--sp-8);
  min-width: 230px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(4, 12, 20, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.viz-readout[data-show="true"] { opacity: 1; transform: translateY(0); }
.viz-readout__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 5px 0; }
.viz-readout__row b { color: var(--aqua); font-weight: 500; }
.viz-readout__hit { color: var(--ok); }

/* stage legend for the visualisation (HTML, not SVG text, so it stays
   translatable and never clips when the viewBox is cropped) */
.viz-legend {
  position: absolute; z-index: 3; left: var(--gutter); bottom: var(--sp-8);
  display: grid; gap: var(--sp-3);
}
.viz-legend__row {
  display: flex; align-items: center; gap: var(--sp-4);
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dim);
}
.viz-legend__row i { display: block; width: 46px; height: 1px; background: var(--line-aqua); flex: none; }
.viz-legend__row[data-stage="surface"], .viz-legend__row[data-stage="flow"] { color: var(--text-soft); }
.viz-legend[data-state="tracing"] .viz-legend__row[data-stage="soil"],
.viz-legend[data-state="tracing"] .viz-legend__row[data-stage="pipe"] { color: var(--aqua); }
.viz-legend[data-state="located"] .viz-legend__row[data-stage="hit"] { color: var(--ok); }

/* --- services explorer ------------------------------------------------- */
.explorer { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: var(--sp-7); align-items: start; }
.explorer__list { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 24px); }
.exp-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-4);
  padding: 15px var(--sp-4);
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.02);
  cursor: pointer; text-align: left;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.exp-item:hover { background: rgba(70,213,245,0.06); }
.exp-item[aria-selected="true"] { border-color: var(--line-aqua); background: rgba(70,213,245,0.1); }
.exp-item__n { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); }
.exp-item[aria-selected="true"] .exp-item__n { color: var(--aqua); }
.exp-item__t { font-family: var(--font-display); font-weight: 500; font-size: 0.96rem; color: var(--text-soft); }
.exp-item[aria-selected="true"] .exp-item__t { color: #fff; }
.exp-item__a { color: var(--aqua); opacity: 0; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); transform: translateX(-4px); }
.exp-item[aria-selected="true"] .exp-item__a { opacity: 1; transform: translateX(0); }

.exp-panel { min-height: 420px; }
.exp-panel__media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-soft); margin-bottom: var(--sp-5); background: var(--navy-800);
}
.exp-panel__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.exp-panel__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,7,13,0.15), rgba(3,7,13,0.9));
}
.exp-panel__badge { position: absolute; z-index: 2; left: var(--sp-4); bottom: var(--sp-4); }
.exp-panel h3 { margin-bottom: var(--sp-4); }
.exp-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-6); margin-top: var(--sp-6); }
.ticklist { display: grid; gap: var(--sp-3); }
.ticklist li { display: flex; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-soft); }
.ticklist svg { color: var(--aqua); flex: none; margin-top: 3px; }
.mini-head { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); margin-bottom: var(--sp-4); }

/* service cards (services.html) */
.svc-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.svc-card__n { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--aqua); letter-spacing: 0.18em; }
.svc-card__ico { color: var(--aqua); }
.svc-card h3 { font-size: var(--fs-lg); }
.svc-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.svc-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--aqua); font-weight: 500; }
.svc-card__more svg { transition: transform var(--t-fast) var(--ease); }
.card--hover:hover .svc-card__more svg { transform: translateX(4px); }

/* --- technology panels ------------------------------------------------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--sp-4); }
.tech-panel {
  position: relative; aspect-ratio: 3 / 4;
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(9,22,36,0.9), rgba(4,10,18,0.95));
  overflow: hidden; padding: var(--sp-5);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tech-panel__art { position: absolute; inset: 0; opacity: 0.9; }
.tech-panel__t { position: relative; display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff; }
.tech-panel__c { position: relative; display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); }
.tech-panel__tag {
  position: absolute; top: var(--sp-4); left: var(--sp-4);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-dim);
}

/* --- journey ----------------------------------------------------------- */
.journey { display: flex; gap: var(--sp-4); overflow-x: auto; padding-bottom: var(--sp-5); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.journey::-webkit-scrollbar { height: 4px; }
.journey::-webkit-scrollbar-thumb { background: var(--slate-lite); border-radius: 4px; }
.journey__step {
  flex: 0 0 clamp(230px, 30vw, 320px); scroll-snap-align: start;
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-5);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  position: relative;
}
.journey__step::after {
  content: ""; position: absolute; right: calc(var(--sp-4) * -1); top: 50%; width: var(--sp-4); height: 1px;
  background: linear-gradient(90deg, var(--line-aqua), transparent);
}
.journey__step:last-child::after { display: none; }
.journey__n { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--aqua); letter-spacing: 0.2em; margin-bottom: var(--sp-4); }
.journey__t { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: #fff; line-height: 1.25; }
.journey__b { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-3); }

/* --- why / editorial split -------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: 0 56px 100px -60px rgba(0, 0, 0, 0.98);
}
.split__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: var(--grade); }
.split__media--wide img { aspect-ratio: 16 / 10; }
.split__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em;
  color: var(--text-soft);
  background: linear-gradient(transparent, rgba(2, 6, 12, 0.94));
}

/* the surface → soil → pipe → leak diagram caption block */
.strata { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.strata__row { display: flex; align-items: center; gap: var(--sp-4); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.strata__row i { display: block; height: 1px; flex: 1; background: linear-gradient(90deg, var(--line-aqua), transparent); }
.strata__row b { color: var(--aqua); font-weight: 500; }
.strata__row--hit b { color: var(--ok); }

/* ==========================================================================
   08 — REVIEWS
   ========================================================================== */
.reviews-head { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: flex-end; justify-content: space-between; margin-bottom: var(--sp-7); }
.rating-block { display: flex; align-items: center; gap: var(--sp-5); }
.rating-block__score { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--frost); }
.rating-block__meta { display: grid; gap: 5px; }
.rating-block__src { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.rail { display: flex; gap: var(--sp-4); overflow-x: auto; padding-bottom: var(--sp-5); scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--slate-lite); border-radius: 4px; }
.review {
  flex: 0 0 clamp(280px, 34vw, 400px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
}
.review__quote { font-size: 1rem; color: var(--text); line-height: 1.65; flex: 1; }
.review__quote::before { content: "“"; color: var(--aqua); font-family: var(--font-display); font-size: 1.8rem; line-height: 0; vertical-align: -0.25em; margin-right: 4px; }
.review__foot { display: flex; align-items: center; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--aqua-deep), var(--aqua-ink));
  border: 1px solid var(--line-aqua);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--aqua-bright);
}
.review__who { display: grid; gap: 2px; min-width: 0; }
.review__name { font-weight: 600; color: #fff; font-size: 0.94rem; }
.review__date { font-size: var(--fs-xs); color: var(--muted); }
.review__facts { display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.review__facts b { color: var(--text-soft); font-weight: 500; }

.rail-controls { display: flex; gap: var(--sp-2); }
.rail-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(255,255,255,0.03); color: var(--text-soft); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.rail-btn:hover { border-color: var(--line-aqua); color: var(--aqua); background: rgba(70,213,245,0.08); }
.rail-btn[disabled] { opacity: 0.35; cursor: not-allowed; }

/* ==========================================================================
   09 — GALLERY / WORK
   ========================================================================== */
/* An editorial grid, not a thumbnail wall. One cinematic lead frame, then
   pairs at portrait ratio, each mounted like a print: hairline edge, a deep
   shadow underneath, and a caption set in mono directly below the frame. */
.masonry { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); }
.shot { grid-column: span 6; display: flex; flex-direction: column; gap: var(--sp-4); margin: 0; }
.shot--lead { grid-column: 1 / -1; }
/* A lone last frame sits centred rather than leaving a hole in the row. */
.shot--solo { grid-column: 4 / span 6; }

.shot__btn {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: var(--navy-800);
  overflow: hidden; cursor: zoom-in;
  box-shadow: 0 46px 90px -56px rgba(0, 0, 0, 0.98);
  transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
/* The inner hairline is what makes a photo read as framed rather than placed,
   and the low bloom keeps the bottom edge from floating. */
.shot__btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055), inset 0 -80px 100px -70px rgba(2, 6, 12, 0.95);
}
.shot__btn img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: var(--grade);
  transition: transform 1400ms var(--ease-lux), filter var(--t-slow) var(--ease);
}
.shot--lead .shot__btn img { aspect-ratio: 16 / 9; }
.shot__btn:hover { border-color: rgba(255, 255, 255, 0.17); box-shadow: 0 56px 110px -56px rgba(0, 0, 0, 1); }
.shot__btn:hover img { transform: scale(1.035); filter: var(--grade-hover); }

.shot__zoom {
  position: absolute; right: var(--sp-4); bottom: var(--sp-4); z-index: 2;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 11px; border: 1px solid var(--line-aqua); border-radius: var(--r-pill);
  background: rgba(4, 12, 20, 0.72); color: var(--aqua);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.shot__zoom svg { width: 12px; height: 12px; }
.shot__btn:hover .shot__zoom, .shot__btn:focus-visible .shot__zoom { opacity: 1; transform: translateY(0); }

.shot__cap { display: flex; align-items: baseline; gap: var(--sp-4); padding-left: 2px; }
.shot__idx {
  flex: none; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.18em; color: var(--aqua); opacity: 0.8;
}
.shot__txt { font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; }

/* --- the photograph viewer ---------------------------------------------
   Full-screen, keyboard driven, one frame at a time. Opened by any gallery
   frame; the chrome stays out of the way until you move. */
.lb { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: var(--gutter); }
.lb__scrim {
  position: absolute; inset: 0; background: rgba(2, 4, 10, 0.95);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  animation: lbIn 320ms var(--ease-out);
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__stage { position: relative; display: grid; gap: var(--sp-5); justify-items: center; width: min(100%, 1360px); }
.lb__figure { margin: 0; display: grid; gap: var(--sp-4); justify-items: center; }
.lb__img {
  max-height: 72svh; width: auto; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); filter: var(--grade-hover);
  animation: lbImg 420ms var(--ease-out);
}
@keyframes lbImg { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lb__cap { font-size: var(--fs-xs); color: var(--text-soft); text-align: center; max-width: 72ch; }
.lb__bar { display: flex; align-items: center; gap: var(--sp-3); }
.lb__count {
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); min-width: 92px; text-align: center;
}
.lb__btn {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lb__btn:hover { border-color: var(--line-aqua); background: rgba(70, 213, 245, 0.08); color: var(--aqua); }
.lb__btn--close { border-radius: var(--r-pill); }
.lb__close {
  position: fixed; top: var(--sp-5); right: var(--sp-5); z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(4, 10, 18, 0.7); color: var(--text-soft); cursor: pointer;
}
.lb__close:hover { color: var(--aqua); border-color: var(--line-aqua); }

.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filter {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase;
  transition: all var(--t-fast) var(--ease);
}
.filter:hover { color: #fff; border-color: var(--line-aqua); }
.filter[aria-pressed="true"] { background: var(--aqua); border-color: var(--aqua); color: var(--navy-900); font-weight: 600; }

/* case study cards */
.case-card { display: grid; gap: var(--sp-4); }
.case-row { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: var(--sp-4); align-items: start; }
.case-row__k { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua); padding-top: 3px; }
.case-row__v { font-size: var(--fs-sm); color: var(--text-soft); }

/* ==========================================================================
   10 — MAP & SERVICE AREAS
   ========================================================================== */
.map-shell {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--navy-800);
  min-height: 380px;
}
.map-shell iframe, .map-shell > img { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(0.72) contrast(1.05) brightness(0.86); }
.map-shell__fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--sp-6);
  background: radial-gradient(100% 100% at 50% 0%, rgba(14,143,180,0.16), rgba(4,10,18,0.98));
}
.map-shell[data-map="ready"] .map-shell__fallback { display: none; }
.map-card {
  position: absolute; z-index: 2; left: var(--sp-5); bottom: var(--sp-5); right: var(--sp-5);
  max-width: 380px;
  padding: var(--sp-5);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(4, 12, 20, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.map-card h3 { font-size: 1rem; margin-bottom: var(--sp-3); }
.map-card address { font-style: normal; font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: var(--sp-4); }

.area-list { display: grid; gap: var(--sp-3); }
.area {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: rgba(255,255,255,0.025);
}
.area__city { font-family: var(--font-display); font-weight: 600; color: #fff; }
.area__meta { font-size: var(--fs-xs); color: var(--muted); }
.area--primary { border-color: var(--line-aqua); background: rgba(70,213,245,0.07); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.hours-table th { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.hours-table td.val { text-align: right; color: var(--text-soft); }
.hours-table tr.is-today td { color: #fff; }
.hours-table tr.is-today td.val { color: var(--aqua); }

/* ==========================================================================
   11 — FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-5) 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; color: var(--text);
  transition: color var(--t-fast) var(--ease);
}
.faq-q:hover { color: var(--aqua); }
.faq-q__ico { flex: none; width: 26px; height: 26px; position: relative; color: var(--aqua); }
.faq-q__ico::before, .faq-q__ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%);
}
.faq-q__ico::before { width: 13px; height: 1.5px; }
.faq-q__ico::after { width: 1.5px; height: 13px; transition: transform var(--t-mid) var(--ease); }
.faq-item[data-open="true"] .faq-q__ico::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height var(--t-mid) var(--ease); }
.faq-a__in { padding: 0 var(--sp-8) var(--sp-5) 0; color: var(--text-soft); font-size: var(--fs-body); }

/* ==========================================================================
   12 — LEAD FORM
   ========================================================================== */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.stephead { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.stephead__bar { flex: 1; display: flex; gap: 4px; }
.stephead__bar i { height: 2px; flex: 1; background: rgba(255,255,255,0.09); border-radius: 2px; transition: background var(--t-mid) var(--ease); }
.stephead__bar i.is-done { background: var(--aqua-deep); }
.stephead__bar i.is-now { background: var(--aqua); box-shadow: 0 0 10px var(--aqua-glow); }
.stephead__n { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.form-step { display: none; }
.form-step[data-active="true"] { display: block; animation: stepIn 420ms var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.form-step h3 { margin-bottom: var(--sp-5); }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); }

.form-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  padding: var(--sp-6);
}
.form-aside h4 { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); margin-bottom: var(--sp-5); }
.review-list { display: grid; gap: var(--sp-3); }
.review-list__row { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-sm); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line-soft); }
.review-list__row dt { color: var(--muted); flex: none; }
.review-list__row dd { margin: 0; color: var(--text-soft); text-align: right; word-break: break-word; }
.review-list__row--summary dd { white-space: pre-line; text-align: left; }

.form-status { display: none; }
.form-status[data-show="true"] { display: block; }
.result {
  border: 1px solid var(--line-aqua); border-radius: var(--r-md);
  background: radial-gradient(120% 120% at 50% 0%, rgba(14,143,180,0.22), rgba(4,12,20,0.95));
  padding: clamp(32px, 6vw, 56px); text-align: center;
}
.result__ico { width: 62px; height: 62px; margin: 0 auto var(--sp-5); border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-aqua); color: var(--aqua); background: rgba(70,213,245,0.08); }
.result--error { border-color: rgba(255,107,107,0.4); background: radial-gradient(120% 120% at 50% 0%, rgba(255,107,107,0.16), rgba(4,12,20,0.95)); }
.result--error .result__ico { border-color: rgba(255,107,107,0.45); color: var(--danger); background: rgba(255,107,107,0.08); }
.result h2 { margin-bottom: var(--sp-5); }

/* ==========================================================================
   13 — FINAL CTA
   ========================================================================== */
.final {
  position: relative; overflow: hidden;
  padding: clamp(90px, 14vw, 180px) 0;
  background: var(--ink);
  text-align: center;
}
.final__media { position: absolute; inset: 0; opacity: 0.26; }
.final__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) brightness(0.6); }
.final__wash { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, rgba(14,143,180,0.28), rgba(3,7,13,0.94) 72%); }
.final__inner { position: relative; }
.final h2 { font-size: var(--fs-mega); }
.final .btn-row { margin-top: var(--sp-7); }
.final__point {
  width: 10px; height: 10px; border-radius: 50%; margin: 0 auto var(--sp-6);
  background: var(--aqua-bright); box-shadow: 0 0 0 0 var(--aqua-glow);
  animation: pointPulse 3s var(--ease) infinite;
}
@keyframes pointPulse {
  0%   { box-shadow: 0 0 0 0 rgba(70,213,245,0.55), 0 0 30px var(--aqua-glow); }
  70%  { box-shadow: 0 0 0 26px rgba(70,213,245,0), 0 0 40px var(--aqua-glow); }
  100% { box-shadow: 0 0 0 0 rgba(70,213,245,0), 0 0 30px var(--aqua-glow); }
}

/* ==========================================================================
   14 — FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line-soft); padding: clamp(56px, 8vw, 96px) 0 var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-7); }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-5); font-weight: 400; }
.footer-col ul { display: grid; gap: var(--sp-3); }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: var(--text-soft); }
.footer-col a:hover { color: var(--aqua); }
.footer-brand p { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-5); max-width: 34ch; }
.footer-cta { margin-top: var(--sp-6); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.footer-bottom {
  margin-top: var(--sp-8); padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--muted-dim);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-5); }

/* ==========================================================================
   15 — MOBILE BAR, WISHLIST OF STATES, CURSOR
   ========================================================================== */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobile-bar);
  display: none;
  background: rgba(5, 12, 22, 0.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 10px var(--sp-4) calc(10px + env(safe-area-inset-bottom));
  gap: var(--sp-3);
}
.mobile-bar .btn { flex: 1; }

/* toast */
.toast-host { position: fixed; z-index: var(--z-toast); left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: var(--sp-2); width: min(92vw, 460px); }
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line); border-left: 2px solid var(--aqua);
  border-radius: var(--r-sm);
  background: rgba(6, 16, 26, 0.96);
  box-shadow: var(--sh-3);
  font-size: var(--fs-sm); color: var(--text-soft);
  animation: toastIn 320ms var(--ease-out);
}
.toast--error { border-left-color: var(--danger); }
.toast--ok { border-left-color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* generic empty / loading states */
.state-block {
  display: grid; gap: var(--sp-3); place-items: center; text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border: 1px dashed var(--line); border-radius: var(--r-md);
  color: var(--muted); font-size: var(--fs-sm);
}
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,0.05); border-radius: var(--r-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  animation: shimmer 1.4s var(--ease) infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.spinner {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(3,36,48,0.35);
  border-top-color: #032430; animation: spin 700ms linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* reveal-on-scroll */
/* Slower and shorter than a marketing site: 16px over 880ms reads as the page
   settling rather than as an animation asking to be noticed. */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 880ms var(--ease-lux), transform 880ms var(--ease-lux);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* desktop-only custom cursor */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor [role="button"],
  body.has-cursor input, body.has-cursor select, body.has-cursor textarea, body.has-cursor label { cursor: none; }
  body.has-cursor .cursor {
    display: block; position: fixed; z-index: var(--z-cursor); pointer-events: none;
    width: 6px; height: 6px; border-radius: 50%; background: var(--aqua-bright);
    box-shadow: 0 0 12px var(--aqua-glow);
    transform: translate(-50%, -50%);
    top: 0; left: 0;
  }
  body.has-cursor .cursor-ring {
    display: flex; position: fixed; z-index: var(--z-cursor); pointer-events: none;
    width: 34px; height: 34px; border: 1px solid rgba(70,213,245,0.5); border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 0; left: 0;
    align-items: center; justify-content: center;
    transition: width 200ms var(--ease), height 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--navy-900);
    opacity: 0;
  }
  body.has-cursor .cursor-ring[data-label] { width: 56px; height: 56px; background: var(--aqua); border-color: var(--aqua); opacity: 1; }
  body.has-cursor .cursor-ring[data-label]::after { content: attr(data-label); font-weight: 700; }
  body.has-cursor .cursor-ring[data-state="hover"] { width: 52px; height: 52px; border-color: var(--aqua); opacity: 1; }
}
@media (hover: none), (pointer: coarse) { body.has-cursor { cursor: auto; } }

/* ==========================================================================
   16 — RESPONSIVE & MOTION PREFERENCES
   ========================================================================== */
@media (max-width: 1180px) {
  .tech-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .diag { grid-template-columns: minmax(0,1fr); }
  .explorer { grid-template-columns: 250px minmax(0,1fr); }
}

/* The full nav needs 1152px of content box to hold six links, the language
   switch, the phone number and the CTA in both languages — measured, not
   guessed. Below that it becomes the drawer rather than spilling off-screen. */
@media (max-width: 1279px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 1040px) {
  .header-actions .phone-cta { display: none; }
  .hero__figure { width: 82vw; right: -22%; opacity: 0.5; }
}

@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-shell { grid-template-columns: minmax(0,1fr); }
  .form-aside { position: static; }
  .explorer { grid-template-columns: minmax(0,1fr); }
  .explorer__list { position: static; flex-direction: column; }
  .exp-item { grid-template-columns: auto 1fr auto; }
  .exp-item__a { display: none; }
  .viz-legend { display: none; }
  .split { grid-template-columns: minmax(0,1fr); }
  .split--reverse .split__media { order: 0; }
  .shot, .shot--solo, .shot--lead { grid-column: 1 / -1; }
  .lb__img { max-height: 64svh; }
  .viz-readout { left: var(--gutter); right: var(--gutter); min-width: 0; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
  .mobile-bar .btn { min-height: 46px; padding: 12px 14px; font-size: 0.88rem; }
  .toast-host { bottom: 88px; }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .trustbar__item { flex: 1 1 100%; padding: var(--sp-4) 0; }
  .trustbar__item + .trustbar__item { padding-left: 0; }
  .trustbar__item + .trustbar__item::before { left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: 1px; }
  .problem-grid { grid-template-columns: minmax(0,1fr); }
  .options--2, .options--3 { grid-template-columns: minmax(0,1fr); }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: minmax(0,1fr); }
  .exp-cols { grid-template-columns: minmax(0,1fr); }
  .tech-grid { grid-template-columns: minmax(0,1fr); }
  .process { grid-template-columns: minmax(0,1fr); }
  .masonry { gap: var(--sp-6) 0; }
  .shot--lead .shot__btn img { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .case-row { grid-template-columns: minmax(0,1fr); gap: var(--sp-2); }
  .viz-scroll { height: 250vh; }
  .hero__media img { opacity: 0.32; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .phone-cta { justify-content: center; }
  .rail-btn { display: none; }
  .rating-block { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .pagehead { padding-top: calc(var(--header-h) + 40px); }
  /* Small screens keep the header to brand + language + menu; the sticky bar
     and the drawer carry the calls to action instead of crowding the bar. */
  .header-actions .btn--primary { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 0.95rem; }
  .prose h2 { margin-top: var(--sp-7); }
}

/* ==========================================================================
   17 — PAGE HEADERS (inner routes)
   ========================================================================== */
.pagehead {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(44px, 6vw, 76px);
  background:
    radial-gradient(90% 80% at 18% 0%, rgba(14,143,180,0.17), transparent 62%),
    radial-gradient(70% 70% at 92% 20%, rgba(6,46,61,0.5), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.pagehead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image:
    linear-gradient(rgba(70,213,245,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,213,245,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.pagehead > .wrap { position: relative; z-index: 1; }
.pagehead h1 { font-size: var(--fs-xxl); max-width: 22ch; }
.pagehead .lede { margin-top: var(--sp-5); }
.pagehead--center { text-align: center; }
.pagehead--center h1, .pagehead--center .lede { margin-inline: auto; }
.pagehead--center .eyebrow { justify-content: center; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--sp-5);
}
.crumbs a:hover { color: var(--aqua); }
.crumbs span[aria-current] { color: var(--text-soft); }
.casestep, .caseresult { display: block; }

/* prose blocks (guides, legal) */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-xl); margin: var(--sp-8) 0 var(--sp-5); }
.prose h3 { margin: var(--sp-7) 0 var(--sp-4); }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { margin: 0 0 var(--sp-5); display: grid; gap: var(--sp-3); }
.prose ul li { position: relative; padding-left: var(--sp-5); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 12px; height: 1px; background: var(--aqua); }
.prose a { color: var(--aqua); border-bottom: 1px solid var(--line-aqua); }

@media (print) {
  .site-header, .mobile-bar, .cursor, .cursor-ring, .hero__particles, .viz-scroll { display: none !important; }
  body { background: #fff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero h1 .word > span { transform: none !important; }
  .hero__media img { animation: none !important; transform: scale(1.02); }
  .viz-scroll { height: auto; }
  /* Static, stacked layout: no pinning, no scroll hijacking. */
  .viz-sticky { position: static; height: auto; display: block; padding: clamp(56px, 8vw, 96px) 0; }
  .viz-readout {
    position: static; margin: var(--sp-6) auto 0;
    width: auto; min-width: 0; max-width: 420px;
    opacity: 1; transform: none;
  }
  .viz-readout__row { font-size: 0.66rem; }
}
