/* Brightwater Plumbing — Elite / Plumbing ("Flow")
   The page is a drafting sheet: parchment paper, every hairline and label in blueprint blue, one orange dot.
   Hierarchy from scale (Switzer 300 at 80px+), three voices (Switzer / Supreme / IBM Plex Mono), no card chrome.
   See STYLE.md. */

:root {
  --bg: #F3EFE6;
  --surface: #ECE6D8;
  --ink: #0F1B2D;
  --muted: #5B6476;
  --line: rgba(10, 91, 216, 0.28);
  --line-soft: rgba(10, 91, 216, 0.12);
  --grid: rgba(10, 91, 216, 0.07);
  --accent: #0A5BD8;
  --accent-ink: #FFFFFF;
  --dot: #FF4000;
  --font-display: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Supreme", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 0;
  --space-section: clamp(96px, 11vw, 160px);
  --banner-h: 56px;
  --header-h: 64px;
  --gutter: clamp(20px, 4vw, 56px);
  --page: 1360px;
  --ease-in: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  /* claim-flow.css tokens */
  --paper: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--banner-h) + var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--dot); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Voices ---------- */
.display { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.03em; line-height: 0.95; text-wrap: balance; }
.mono { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; color: var(--accent); }
.mono--ink { color: var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex-shrink: 0; }
.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; max-width: 46ch; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--page)); margin-inline: auto; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); vertical-align: middle; }

/* The sheet: every section is a drawing panel with a hairline above and a coordinate label in the margin */
.sheet { position: relative; padding-block: var(--space-section); border-top: 1px solid var(--line); }
.sheet--grid { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 96px 96px; background-position: center top; }
.sheet--tint { background-color: var(--surface); }
.sheet--ink { background: var(--ink); color: var(--bg); --muted: #AEB6C6; --line: rgba(243, 239, 230, 0.22); --line-soft: rgba(243, 239, 230, 0.1); }
.sheet--ink .mono { color: #8FB4F5; }
.sheet--ink .eyebrow::before { background: #8FB4F5; }
.sheet__coord { position: absolute; top: 14px; left: var(--gutter); display: flex; gap: 24px; pointer-events: none; }
.sheet__coord::before { content: "+"; }
.section-head { max-width: 920px; margin-bottom: clamp(48px, 7vw, 112px); }
.section-head .display { font-size: clamp(44px, 7.2vw, 124px); margin-bottom: 28px; }
.section-head .lede { margin-top: 4px; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.skip-link:focus { top: calc(var(--banner-h) + 8px); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Actions: text + arrow; one filled pill (sticky CTA) ---------- */
.link {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; min-height: 44px;
  font-weight: 300; font-size: 17px; background: none; border: 0; color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease-in);
}
.link::after { content: "→"; transition: transform 0.5s var(--ease-out); }
.link:hover { border-bottom-color: currentColor; }
.link:hover::after { transform: translateX(6px); }
.link--lg { font-size: clamp(18px, 1.5vw, 22px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); font-weight: 400; font-size: 15px;
  border-radius: 999px; transition: background 0.4s var(--ease-in), transform 0.5s var(--ease-out);
}
.btn:hover { background: #0848AC; transform: translateY(-1px); }
.btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }

/* ---------- Preloader: a title block stamps itself ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; gap: 12px; background: var(--bg); color: var(--accent);
  transition: opacity 0.7s var(--ease-in), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__block { width: min(420px, 80vw); border: 1px solid var(--accent); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; position: relative; overflow: hidden; }
.preloader__block::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: right; animation: pl-wipe 1.1s var(--ease-out) 0.15s forwards; }
.preloader__block span { opacity: 0; animation: pl-pop 0.5s var(--ease-in) 0.9s forwards; }
.preloader__block span:nth-child(odd) { color: var(--ink); }
.preloader__rule { width: min(420px, 80vw); height: 1px; background: var(--accent); transform-origin: left; animation: pl-draw 1.1s var(--ease-out) forwards; }
@keyframes pl-wipe { to { transform: scaleX(0); } }
@keyframes pl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pl-pop { to { opacity: 1; } }

/* ---------- Banner, header, menu ---------- */
.sample-banner {
  position: sticky; top: 0; z-index: 120; min-height: var(--banner-h); display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 8px var(--gutter); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.sample-banner [data-buy] { font-family: var(--font-body); text-transform: none; letter-spacing: 0; flex-shrink: 0; }
.sample-banner > span { min-width: 0; }
.site-header {
  position: sticky; top: var(--banner-h); z-index: 110; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); background: rgba(243, 239, 230, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: -0.02em; }
.brand__mark { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex-shrink: 0; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); position: relative; padding: 8px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__right { display: flex; align-items: center; gap: 22px; }
.site-header__phone { font-size: 13px; color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); min-height: 40px; padding: 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.site-menu {
  position: fixed; inset: calc(var(--banner-h) + var(--header-h)) 0 0 0; z-index: 105; background: var(--bg); padding: 40px var(--gutter); display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.4s var(--ease-in), transform 0.4s var(--ease-in), visibility 0.4s; overflow: auto;
}
.site-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.site-menu a { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: 1.05; letter-spacing: -0.03em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.site-menu a[aria-current="page"] { color: var(--accent); }
.site-menu .mono { margin-top: 24px; }

/* ---------- Chapter 01: the cutaway (pinned canvas) ---------- */
.chapter { position: relative; }
.chapter__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.chapter__poster, .chapter__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 52% 50%; }
.chapter__canvas { opacity: 0; }
.js-motion .chapter__canvas { opacity: 1; }
.js-motion .chapter__poster { opacity: 0; }
.chapter__lamp { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 50% 58%, rgba(255, 255, 255, 0.35), transparent 70%); }
.chapter__frame { position: absolute; inset: calc(var(--banner-h) + var(--header-h) + 14px) var(--gutter) 18px; pointer-events: none; }
.chapter__frame i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); }
.chapter__frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.chapter__frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.chapter__frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.chapter__frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.chapter__ruler { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; height: 10px; pointer-events: none; background-image: linear-gradient(90deg, var(--accent) 1px, transparent 1px); background-size: 5% 100%; border-bottom: 1px solid var(--accent); opacity: 0.6; }
.chapter__load { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; height: 1px; background: var(--line-soft); overflow: hidden; }
.chapter__loadbar { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s linear; }
.chapter__load.is-done { opacity: 0; transition: opacity 0.6s 0.4s; }

.chapter__copy { position: absolute; left: var(--gutter); bottom: clamp(56px, 9vh, 110px); max-width: min(760px, 58vw); z-index: 3; }
.chapter__scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none; z-index: 2; background: linear-gradient(to top, rgba(243, 239, 230, 0.96) 0%, rgba(243, 239, 230, 0.75) 45%, rgba(243, 239, 230, 0) 100%); }
.chapter__copy .eyebrow { margin-bottom: 18px; }
.hero-headlines { position: relative; min-height: 3em; font-size: clamp(44px, 6.4vw, 104px); }
.hero-line { position: absolute; left: 0; bottom: 0; margin: 0; font-size: inherit; color: var(--accent); }
.hero-line .w { display: inline-block; opacity: 0; transform: translateY(0.35em); transition: opacity 0.55s var(--ease-in), transform 0.75s var(--ease-out); }
.hero-line.is-current .w { opacity: 1; transform: none; }
.hero-line:not(.is-current) { pointer-events: none; }
.chapter__copy .lede { margin-top: 20px; max-width: 42ch; }
.hero-cta { margin-top: 14px; }

.instruments { position: absolute; top: calc(var(--banner-h) + var(--header-h) + 36px); right: var(--gutter); z-index: 3; display: grid; gap: 18px; text-align: right; }
.instrument { display: grid; gap: 2px; }
.instrument__label { color: var(--muted); }
.instrument__value { font-family: var(--font-mono); font-size: clamp(22px, 2.4vw, 34px); line-height: 1; color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.instrument__value small { font-size: 0.5em; color: var(--muted); margin-left: 4px; }
.instrument__value--text { font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; color: var(--ink); }

.rail-wrap { position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 110px); z-index: 3; display: grid; gap: 10px; text-align: right; }
.rail { display: grid; gap: 8px; }
.rail li { display: grid; grid-template-columns: 1fr 24px; gap: 10px; align-items: baseline; justify-items: end; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.4s var(--ease-in); }
.rail li .idx::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; margin-left: 8px; vertical-align: 1px; transition: background 0.3s; }
.rail li .idx { order: 2; }
.rail li.is-done { color: var(--accent); }
.rail li.is-done .idx::before { background: var(--accent); border-color: var(--accent); }
.rail li.is-active { color: var(--ink); }
.rail li.is-active .idx::before { background: var(--dot); border-color: var(--dot); }
.chapter__hint { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 3; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.chapter__hint::after { content: ""; width: 1px; height: 28px; background: var(--accent); animation: hint 1.8s var(--ease-in) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.chapter.is-final .chapter__hint { opacity: 0; transition: opacity 0.4s; }

.chapter__static { display: none; }
.stage-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stage-list li { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stage-list .num, .stage-list .meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.stage-list .name { display: block; font-family: var(--font-display); font-weight: 300; font-size: 26px; letter-spacing: -0.02em; }
.stage-list .note { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- Signature: follow the leak (SVG drawing + draggable valve) ---------- */
.leak__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.drawing { position: relative; border: 1px solid var(--line); background: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; padding: 24px; }
.drawing svg { width: 100%; height: auto; overflow: visible; touch-action: none; }
.drawing text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--accent); }
.drawing .pipe { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.drawing .pipe--hot { stroke: var(--dot); opacity: 0.55; }
.drawing .flow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; opacity: 0.9; }
.drawing .flow--hot { stroke: var(--dot); }
.drawing .fixture { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.drawing .hair { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; fill: none; }
.drawing .drip { fill: var(--dot); }
.drawing .puddle { fill: var(--dot); opacity: 0.18; }
.drawing .leak-mark { fill: none; stroke: var(--dot); stroke-width: 1.2; }
.valve { cursor: grab; }
.valve:active { cursor: grabbing; }
.valve__body { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; }
.valve__handle { stroke: var(--dot); stroke-width: 5; stroke-linecap: round; }
.valve__hit { fill: transparent; }
.leak__panel { display: grid; gap: 28px; position: sticky; top: calc(var(--banner-h) + var(--header-h) + 24px); }
.readout { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.readout__value { font-family: var(--font-mono); font-size: clamp(26px, 2.6vw, 36px); color: var(--dot); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; transition: color 0.5s var(--ease-in); }
.readout.is-sealed .readout__value { color: var(--accent); }
.readout__state { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.readout__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); animation: blink 1.1s steps(2, start) infinite; }
.readout.is-sealed .readout__state::before { background: var(--accent); animation: none; }
@keyframes blink { to { visibility: hidden; } }
.valve-control { display: grid; gap: 10px; }
.valve-control label { display: flex; justify-content: space-between; }
.valve-control input[type="range"] { width: 100%; accent-color: var(--accent); }
.leak__after { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease-in), transform 0.6s var(--ease-out); }
.leak__after.is-in { opacity: 1; transform: none; }

/* ---------- Schedules (services, cases) — drawing-sheet tables, no cards ---------- */
.schedule { border-top: 1px solid var(--line); }
.schedule__row { display: grid; grid-template-columns: 72px minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); position: relative; }
.schedule__row:hover .display { color: var(--accent); }
.schedule__row .display { font-size: clamp(28px, 3.4vw, 52px); transition: color 0.3s var(--ease-in); }
.schedule__row p { color: var(--muted); max-width: 44ch; }
.schedule__row .link { justify-self: end; }

.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 96px); align-items: center; padding-block: clamp(40px, 6vw, 96px); border-top: 1px solid var(--line); }
.case--flip .case__figure { order: 2; }
.case__figure { position: relative; }
.case__figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.case__figure::after { content: attr(data-coord); position: absolute; left: 0; bottom: -22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.case__body { display: grid; gap: 20px; }
.case__body .display { font-size: clamp(32px, 4.2vw, 64px); }
.case__facts { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.case__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.case__facts dt { color: var(--muted); }
.case__facts dd { font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* ---------- The tool: leak-diagnosis wizard ---------- */
.wizard__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.wizard__form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; min-height: 46px; border-radius: 0; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 14px) 20px, calc(100% - 8px) 20px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); font-size: 15px; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.choices input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.choices input:focus-visible + span { outline: 2px solid var(--dot); outline-offset: 3px; }
.wizard__out { display: grid; gap: 28px; border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); position: sticky; top: calc(var(--banner-h) + var(--header-h) + 24px); }
.readout-block { display: grid; gap: 10px; }
.readout-block .display { font-size: clamp(30px, 3.4vw, 48px); }
.readout-list { display: grid; gap: 8px; }
.readout-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; }
.readout-list li::before { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.window { font-family: var(--font-mono); font-size: clamp(22px, 2.2vw, 30px); color: var(--accent); letter-spacing: -0.01em; line-height: 1.1; }
.window.is-urgent { color: var(--dot); }

/* ---------- Proof ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; margin-bottom: 56px; }
.stat dt { color: var(--muted); margin-bottom: 10px; }
.stat dd { font-size: clamp(48px, 6vw, 96px); font-variant-numeric: tabular-nums; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-bottom: 64px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.review blockquote { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 18px; }
.review blockquote::before { content: "“"; color: var(--accent); }

/* ---------- Consult ---------- */
.consult__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.consult__phone { font-size: clamp(28px, 3vw, 44px); display: inline-block; margin: 8px 0 12px; }
.consult__form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.field--full { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; color: var(--accent); }
.form-status.is-error { color: var(--dot); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }

/* ---------- Footer: title block ---------- */
.site-footer { border-top: 1px solid var(--accent); padding: 48px 0 120px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer__grid > * { border-left: 1px solid var(--line); padding-left: 20px; }
.site-footer__grid > :first-child { border-left: 0; padding-left: 0; }
.site-footer__name { font-size: 34px; margin-bottom: 10px; }
.site-footer__links { display: grid; gap: 8px; align-content: start; }
.site-footer__links a { font-size: 15px; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__legal { display: grid; gap: 10px; align-content: start; }

/* ---------- Sticky CTA / call bar / dialog ---------- */
.sticky-cta { position: fixed; right: 24px; bottom: 24px; z-index: 100; transform: translateY(140%); transition: transform 0.6s var(--ease-out); }
.sticky-cta.is-visible { transform: none; }
.call-bar { display: none; }
#buy-dialog { max-width: 590px; width: min(100% - 32px, 590px); padding: 36px; border: 1px solid var(--accent); background: var(--bg); color: var(--ink); border-radius: 0; }
#buy-dialog::backdrop { background: rgba(15, 27, 45, 0.72); backdrop-filter: blur(6px); }
#buy-dialog h2 { font-family: var(--font-display); font-size: 40px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 14px; padding-right: 52px; }
#buy-dialog > p, #buy-dialog .claim-card > p { color: var(--muted); margin-bottom: 24px; }
#buy-dialog form { display: grid; gap: 18px; }
#buy-dialog .link { justify-self: start; }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg); font-size: 26px; line-height: 1; }

/* ---------- Reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-in), transform 0.9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Sub pages ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 80px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-hero .display { font-size: clamp(48px, 8vw, 136px); margin: 20px 0 24px; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero__media figcaption { position: absolute; left: 0; bottom: -24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 16px 40px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.page-hero__facts b { display: block; font-weight: 400; color: var(--accent); }
.page-hero__facts span { color: var(--muted); font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.two-col .display { font-size: clamp(36px, 4.6vw, 72px); margin-bottom: 20px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list li::before { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.steps { display: grid; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps h3 { font-family: var(--font-display); font-weight: 300; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.prose { max-width: 66ch; font-size: 18px; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.05; margin-top: 2em; }
.prose ul { padding-left: 0; display: grid; gap: 8px; }
.prose ul li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.prose ul li::before { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 24px; gap: 20px; align-items: center; padding: 20px 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-size: 24px; transition: transform 0.4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--muted); }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.tile { display: grid; gap: 12px; }
.tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tile strong { font-family: var(--font-display); font-weight: 300; font-size: 26px; letter-spacing: -0.02em; display: block; }
.tile:hover strong { color: var(--accent); }
.tile p { color: var(--muted); font-size: 15px; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; border-top: 1px solid var(--accent); padding-top: 40px; }
.cta-band .display { font-size: clamp(36px, 5vw, 80px); }
.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.hours { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.hours div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.map { border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.map svg { width: 100%; height: 100%; }
.map text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .leak__grid { grid-template-columns: 1fr; }
  .leak__panel { position: static; }
  .schedule__row { grid-template-columns: 56px 1fr; }
  .schedule__row p, .schedule__row .link { grid-column: 2; justify-self: start; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-header .site-header__phone { display: none; }
  .page-hero__grid, .two-col, .wizard__grid, .consult__grid, .case { grid-template-columns: 1fr; }
  .case--flip .case__figure { order: 0; }
  .wizard__out { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .tile-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; align-items: start; }
  .consult__form { grid-template-columns: 1fr; }
  .instruments { top: auto; bottom: clamp(56px, 9vh, 110px); right: var(--gutter); gap: 10px; }
  .rail-wrap { display: none; }
  .chapter__copy { max-width: calc(100% - var(--gutter) * 2 - 120px); }
  .sample-banner { font-size: 11px; justify-content: space-between; gap: 12px; }
  .sticky-cta { display: none; }
  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ink); color: var(--bg); padding-bottom: env(safe-area-inset-bottom);
  }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-size: 15px; }
  .call-bar__cta { background: var(--accent); color: var(--accent-ink); }
  .call-bar__cta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
  .site-menu { padding-bottom: 96px; }
  #buy-dialog { padding: 28px 20px; }
  #buy-dialog h2 { font-size: 32px; }
  .site-footer { padding-bottom: 140px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .site-footer__grid > :first-child { border-top: 0; padding-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
  .case__facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- No-motion / mobile: footage becomes stills, same copy ---------- */
@media (prefers-reduced-motion: reduce), (max-width: 767px) {
  .preloader { display: none; }
  .chapter__stage { height: auto; min-height: 0; padding-top: 24px; }
  .chapter__poster { position: relative; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
  .chapter__canvas, .chapter__lamp, .chapter__scrim, .chapter__frame, .chapter__ruler, .chapter__load, .chapter__hint, .rail-wrap { display: none; }
  .chapter__copy { position: static; max-width: none; padding: 32px var(--gutter) 0; }
  .hero-headlines { min-height: 0; }
  .hero-line { position: static; }
  .hero-line:not(.is-current) { display: none; }
  .hero-line .w { opacity: 1; transform: none; }
  .instruments { position: static; text-align: left; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; padding: 24px var(--gutter) 0; }
  .chapter__static { display: block; padding: 48px var(--gutter) 0; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .readout__state::before { animation: none; }
  .chapter__hint::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* drawing: the one orange label */
.drawing .t-dot { fill: var(--dot); }

/* mobile: stage list and schedule stack */
@media (max-width: 767px) {
  .stage-list li { grid-template-columns: 40px 1fr; }
  .stage-list .meta { grid-column: 2; }
  .schedule__row { grid-template-columns: 40px 1fr; }
  .sample-banner { letter-spacing: 0.02em; font-size: 10px; }
}

/* The stable headline participates in flow so its label cannot overlap it. */
.hero-headlines{min-height:0;font-size:clamp(40px,5vw,78px)}
.hero-line{position:relative;max-width:18ch;line-height:1.05}
@media(max-width:600px){.hero-headlines{font-size:clamp(38px,10.6vw,48px)}}

/* Hero copy over the drawing: on wider screens the headline sits on the lower floor of the cutaway.
   A soft paper-coloured fade behind the copy keeps it readable without boxing it in. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .chapter__copy::before { content: ''; position: absolute; z-index: -1; inset: -56px -80px -40px -48px; pointer-events: none; background: radial-gradient(ellipse at 34% 62%, var(--bg) 0%, rgba(243, 239, 230, .92) 38%, rgba(243, 239, 230, .55) 58%, transparent 78%); }
}

/* Launch audit polish: a deeper orange for the dispatch line on cream (the dark theme keeps the bright dot colour). */
.window.is-urgent { color: #C83200; }

/* Previous-project links lead with their own arrow, so they skip the trailing one. */
.link--prev::after { content: none; }
