:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090a;
  --bg-rgb: 7, 9, 10;
  --fg-rgb: 255, 255, 255;
  --bg-elevated: #0e1113;
  --card: #111416;
  --border: rgba(var(--fg-rgb), 0.09);
  --border-soft: rgba(var(--fg-rgb), 0.05);
  --text: #f2f3f4;
  --text-muted: #a3a8ac;
  --text-faint: #8a9095;

  --titanium-1: #e8e9ea;
  --titanium-2: #b7bcc0;
  --titanium-3: #7d8286;
  --ti-a: #f6f6f4; --ti-b: #d4d6d8; --ti-c: #a2a6a9; --ti-d: #cfd1d3; --ti-e: #90949a;
  --ti-bevel: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.3)) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22));
  --faucet-shadow: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.4));

  --emerald: #34c37f;
  --emerald-dim: #1f8f5c;
  --emerald-glow: rgba(52, 195, 127, 0.18);
  --on-emerald: #03150c;
  --water-rgb: 52, 195, 127;

  --copper: #d08556;
  --copper-dim: #8a4f2c;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f5;
  --bg-rgb: 244, 246, 245;
  --fg-rgb: 20, 23, 26;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --border: rgba(0,0,0,0.1);
  --border-soft: rgba(0,0,0,0.06);
  --text: #14171a;
  --text-muted: #4d5358;
  --text-faint: #5f656a;

  --titanium-1: #3c4043;
  --titanium-2: #5c6165;
  --titanium-3: #83888c;
  --ti-a: #8d9296; --ti-b: #585c60; --ti-c: #2d3033; --ti-d: #55595c; --ti-e: #25282a;
  --ti-bevel: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3)) drop-shadow(0 3px 4px rgba(20, 30, 25, 0.14));
  --faucet-shadow: drop-shadow(0 14px 16px rgba(20, 30, 25, 0.28));

  --emerald: #167a4e;
  --emerald-dim: #0f6240;
  --on-emerald: #ffffff;
  --emerald-glow: rgba(26, 134, 86, 0.14);
  --water-rgb: 22, 122, 78;

  --copper: #b0663a;
  --copper-dim: #7a4324;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--emerald); color: var(--on-emerald); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(34px, 5.2vw, 72px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; }
.accent { color: var(--emerald); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--emerald); color: var(--on-emerald); box-shadow: 0 0 0 0 var(--emerald-glow); }
.btn-primary:hover { box-shadow: 0 0 0 8px var(--emerald-glow); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: rgba(var(--fg-rgb), 0.03); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-small { padding: 12px 18px; min-height: 44px; font-size: 14px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, transform 0.5s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(var(--bg-rgb), 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border-soft);
}
.site-header.hide { transform: translateY(-100%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad);
}
/* Titanium wordmark: vertical metal gradient + fine brushed grain + a light glint, clipped to the letters */
.wordmark { display: flex; align-items: baseline; gap: 9px; font-family: var(--display); }
.ti {
  display: inline-block;
  background-image:
    /* 1. glint that sweeps across the letters (animated) */
    linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 60%),
    /* 2. soft anisotropic sheen, like light stretched along brushed metal */
    linear-gradient(100deg, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0.24) 30%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0.14) 72%, rgba(255, 255, 255, 0) 90%),
    /* 3. brushed grain: three out-of-step line patterns so it never reads as stripes */
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(0, 0, 0, 0.04) 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 2px, rgba(255, 255, 255, 0.03) 2px 7px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, rgba(0, 0, 0, 0.03) 1px 11px),
    /* 4. the metal itself */
    linear-gradient(180deg, var(--ti-a) 0%, var(--ti-b) 30%, var(--ti-c) 54%, var(--ti-d) 78%, var(--ti-e) 100%);
  background-size: 260% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: 140% 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: var(--ti-bevel);
}
.wordmark-main { font-size: 26px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.wordmark-sub { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; line-height: 1; }
.wordmark-inc { font-family: var(--body); font-size: 10px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; line-height: 1; margin-left: -2px; }
.wordmark-small .wordmark-main { font-size: 21px; }
.wordmark .ti { animation: ti-glint 1.5s var(--ease) 1.9s 1 both; }
.wordmark:hover .ti { animation: ti-glint 1.1s var(--ease) 1; }
@keyframes ti-glint { from { background-position: 140% 0, 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: -40% 0, 0 0, 0 0, 0 0, 0 0, 0 0; } }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: 14px; color: var(--text-muted); position: relative; padding: 4px 0; transition: color 0.3s; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--emerald); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); transition: color 0.3s; }
.header-phone:hover { color: var(--emerald); }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted); transition: color 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.theme-toggle:hover { color: var(--emerald); border-color: var(--emerald); transform: rotate(25deg); }
:root[data-theme="dark"] .icon-sun, :root:not([data-theme="light"]) .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Progress, rail, gauge, cursor ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  background: linear-gradient(90deg, var(--emerald-dim), var(--emerald));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

.rail {
  position: fixed; left: clamp(14px, 2vw, 30px); top: 18vh; bottom: 18vh; width: 2px; z-index: 40;
  display: none;
}
.rail-line { position: absolute; inset: 0; background: var(--border); border-radius: 2px; }
.rail-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--copper), var(--emerald)); transform: scaleY(0); transform-origin: top; border-radius: 2px; }
.rail-drop {
  position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: var(--emerald); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 0 18px 4px var(--emerald-glow);
}
.rail-node {
  position: absolute; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  display: grid; place-items: center;
}
.rail-node i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text-faint);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.rail-node span {
  position: absolute; left: 30px; top: 50%; transform: translate(-6px, -50%);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--text-muted);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease);
  background: rgba(var(--bg-rgb), 0.8); padding: 2px 8px; border-radius: 6px;
}
.rail-node:hover span { opacity: 1; transform: translate(0, -50%); }
.rail-node.passed i { background: var(--emerald); border-color: var(--emerald); }
.rail-node.active i { transform: scale(1.7); background: var(--emerald); border-color: var(--emerald); }

.gauge {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 40;
  padding: 10px 14px 8px; border-radius: 16px;
  background: rgba(var(--bg-rgb), 0.7); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-align: center; pointer-events: none;
}
.gauge svg { width: 96px; height: auto; margin: 0 auto; }
.gauge-arc, .gauge-arc-fill { fill: none; stroke-width: 6; stroke-linecap: round; }
.gauge-arc { stroke: var(--border); }
.gauge-arc-fill { stroke: var(--emerald); stroke-dasharray: 151; stroke-dashoffset: 151; }
#gauge-needle line { stroke: var(--copper); stroke-width: 2.5; stroke-linecap: round; }
#gauge-needle circle { fill: var(--copper); }
.gauge-read { font-size: 11px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-top: -2px; }
.gauge-read b { font-family: var(--display); font-size: 18px; color: var(--text); margin-right: 4px; letter-spacing: 0; }

.cursor {
  position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; z-index: 100;
  border-radius: 50%; border: 1.5px solid var(--emerald); pointer-events: none; opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, opacity 0.3s;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--emerald-glow); }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px var(--pad) 100px; overflow: hidden; isolation: isolate;
}
#water { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 20% 30%, rgba(var(--bg-rgb), 0.85), transparent 70%);
}
.hero-inner { max-width: 1100px; margin-left: clamp(0px, 4vw, 70px); }
.hero-title { font-size: clamp(52px, 11vw, 168px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; margin-bottom: 32px; }
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0 0.18em; margin-bottom: -0.16em; }
.hero-title .line-in { display: inline-block; will-change: transform; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--copper), var(--emerald));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-muted); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}
.scroll-cue i { width: 1px; height: 46px; background: var(--border); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--emerald); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-16px); } 100% { transform: translateY(46px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 22px 0; background: var(--bg-elevated); }
.marquee-track { display: flex; gap: 36px; width: max-content; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 60px); letter-spacing: -0.03em; white-space: nowrap; will-change: transform; }
.marquee-track span { color: transparent; -webkit-text-stroke: 1px var(--titanium-3); }
.marquee-track span:nth-child(4n+1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee-track b { color: var(--copper); font-size: 0.4em; align-self: center; }

/* ---------- Services (stacked by default, horizontal when .h-scroll) ---------- */
.services { padding: 110px var(--pad); }
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.services-head h2 { max-width: 14ch; }
.services-meter { display: none; min-width: 190px; font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.services-meter .of { font-size: 15px; color: var(--text-faint); margin-left: 6px; font-weight: 500; letter-spacing: 0; }
.meter-bar { height: 2px; background: var(--border); margin-top: 10px; border-radius: 2px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--emerald); transform: scaleX(0); transform-origin: left; }

.services-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.panel {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--card), var(--bg-elevated));
  border: 1px solid var(--border); overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.panel::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%;
  background: radial-gradient(closest-side, var(--emerald-glow), transparent); opacity: 0; transition: opacity 0.6s;
}
.panel.active, .panel:hover { border-color: rgba(var(--water-rgb), 0.5); }
.panel.active::before, .panel:hover::before { opacity: 1; }
.panel-num { font-family: var(--display); font-size: 14px; letter-spacing: 0.2em; color: var(--text-faint); }
.panel p { color: var(--text-muted); max-width: 40ch; }
.panel-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: 10px; align-items: center;
  padding: 13px 22px; min-height: 44px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.panel-cta span { transition: transform 0.4s var(--ease); }
.panel-cta:hover { background: var(--emerald); color: var(--on-emerald); border-color: var(--emerald); }
.panel-cta:hover span { transform: translateX(5px); }

.tank {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden; display: grid; place-items: center;
  background: rgba(var(--fg-rgb), 0.02); color: var(--text);
}
.tank svg { position: relative; z-index: 2; mix-blend-mode: normal; }
.tank-water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: linear-gradient(180deg, rgba(var(--water-rgb), 0.55), rgba(var(--water-rgb), 0.18));
  transition: height 1.6s var(--ease);
}
.tank-water::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -10px; height: 20px;
  background: radial-gradient(ellipse at center, rgba(var(--water-rgb), 0.55) 0 55%, transparent 56%) 0 0 / 60px 20px repeat-x;
  animation: slosh 3.2s linear infinite;
}
@keyframes slosh { to { background-position: 60px 0; } }
.panel.active .tank-water, .panel:hover .tank-water { height: var(--fill); }

/* Horizontal scroll mode (desktop, set by script.js) */
.services.h-scroll { padding: 0; }
.services.h-scroll .services-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 40px; overflow: hidden; }
.services.h-scroll .services-head { padding: 0 var(--pad); margin-bottom: 36px; }
.services.h-scroll .services-meter { display: block; }
.services.h-scroll .services-track { display: flex; gap: 24px; padding: 0 var(--pad); width: max-content; }
.services.h-scroll .panel { width: clamp(320px, 30vw, 440px); min-height: 52vh; flex: none; }

/* ---------- Method ---------- */
.method { padding: 120px var(--pad); border-top: 1px solid var(--border-soft); }
.method-inner { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(32px, 6vw, 110px); max-width: 1320px; margin: 0 auto; }
.method-side { position: sticky; top: 120px; align-self: start; }
.method-side h2 { margin-bottom: 36px; }
.method-counter { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 9vw, 130px); letter-spacing: -0.06em; line-height: 1; color: var(--text); }
.method-counter span { font-size: 18px; letter-spacing: 0; color: var(--text-faint); margin-left: 8px; font-weight: 500; }
.steps { list-style: none; padding: 0 0 0 44px; position: relative; display: flex; flex-direction: column; gap: 0; }
.steps::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 18px; width: 2px; background: var(--border); border-radius: 2px; }
.steps-fill { position: absolute; left: 9px; top: 18px; width: 2px; height: calc(100% - 36px); background: linear-gradient(180deg, var(--copper), var(--emerald)); transform: scaleY(0); transform-origin: top; border-radius: 2px; }
.step { position: relative; padding: 0 0 clamp(60px, 14vh, 150px); opacity: 0.35; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transform: translateX(8px); }
.step:last-child { padding-bottom: 0; }
.step.active { opacity: 1; transform: none; }
.step.done { opacity: 0.65; transform: none; }
.step-dot {
  position: absolute; left: -44px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--text-faint); transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.step.active .step-dot, .step.done .step-dot { border-color: var(--emerald); background: var(--emerald); }
.step.active .step-dot { box-shadow: 0 0 0 8px var(--emerald-glow); }
.step h3 { font-size: clamp(28px, 3.6vw, 52px); margin-bottom: 14px; }
.step p { color: var(--text-muted); max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); }

/* ---------- Flow / numbers ---------- */
.flow { padding: 90px 0; overflow: hidden; }
/* Scroll-expansion card (pattern from 21st.dev "Scroll Expansion Hero"): grows to full width on scroll */
.flow-card { position: relative; padding: 90px var(--pad); background: var(--bg-elevated); border-block: 1px solid var(--border); overflow: hidden; will-change: transform; }
.flow-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 50% 120%, var(--emerald-glow), transparent); pointer-events: none; }
.about-copy-wrap { perspective: 1200px; }
.flow-inner { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1320px; margin: 0 auto; }
.stat { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--border); padding-left: 24px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 12vw, 190px); letter-spacing: -0.06em; line-height: 0.9;
  background: linear-gradient(180deg, var(--text), var(--titanium-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--text-muted); font-size: 16px; display: flex; flex-direction: column; }
.stat small { color: var(--text-faint); font-size: 13px; }

/* ---------- About ---------- */
.about { padding: 130px var(--pad); }
.about-inner { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); max-width: 1320px; margin: 0 auto; align-items: start; }
.about-copy h2 { margin-bottom: 32px; }
.about-copy p { color: var(--text-muted); margin-bottom: 18px; max-width: 60ch; font-size: 17px; }
.about-list { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 30px; color: var(--text); }
.about-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 16px; height: 2px; background: var(--copper); }
.about-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 32px;
  background: linear-gradient(160deg, var(--card), var(--bg-elevated)); transform-style: preserve-3d; will-change: transform;
  position: sticky; top: 130px;
}
.about-card-row { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.about-card-row:last-child { border: 0; }
.about-card-label { color: var(--text-faint); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.about-card-value { font-family: var(--display); font-weight: 700; font-size: 20px; text-align: right; }

/* ---------- Contact ---------- */
.contact { padding: 130px var(--pad); border-top: 1px solid var(--border-soft); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 60px; background: linear-gradient(var(--emerald), transparent); }
.contact-inner { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 100px); max-width: 1320px; margin: 0 auto; }
.contact-info h2 { margin-bottom: 26px; }
.contact-lede { color: var(--text-muted); max-width: 46ch; font-size: 18px; margin-bottom: 36px; }
.contact-methods { display: grid; gap: 14px; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color 0.3s, transform 0.4s var(--ease); }
a.contact-method:hover { border-color: var(--emerald); transform: translateX(6px); }
.contact-method-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--emerald-glow); color: var(--emerald); flex: none; }
.contact-method strong { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.contact-method span span { color: var(--text); }

.contact-form { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--card), var(--bg-elevated)); display: grid; gap: 18px; align-self: start; }
.form-row label { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; font-weight: 600; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-split label { margin-bottom: 8px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(var(--fg-rgb), 0.03);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
select option { background: var(--bg-elevated); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-glow); background: transparent; }
textarea { resize: vertical; min-height: 110px; }
.form-honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.success { color: var(--emerald); }
.form-status.error { color: #e5604d; }
.contact-form.picked select { border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-glow); }

/* ---------- Footer ---------- */
.site-footer { padding: 36px var(--pad) 90px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; max-width: 1320px; margin: 0 auto; }
.footer-meta { color: var(--text-faint); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) {
  .rail { display: block; }
  .hero-inner { margin-left: 40px; }
}
@media (max-width: 1000px) {
  .method-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .method-side { position: relative; top: 0; }
  .method-counter { display: none; }
  .about-card { position: relative; top: 0; }
  .flow-inner { grid-template-columns: 1fr; }
  .stat { flex-direction: row; align-items: baseline; gap: 20px; }
  .stat-num { font-size: 84px; min-width: 1.4ch; }
}
/* keep the footer's contact line clear of the fixed pressure gauge when you reach the end of the page */
@media (min-width: 861px) {
  .footer-inner { padding-right: 150px; }
}
@media (max-width: 860px) {
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }
  .btn-small { display: none; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--pad) 24px;
    background: rgba(var(--bg-rgb), 0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform 0.5s var(--ease); z-index: -1;
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); color: var(--text); }
  .gauge { display: none; }
  .services-head { flex-direction: column; align-items: flex-start; }
  .form-row-split { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Faucet (a cut-out product photo; the water is drawn on the canvas by water.js) ---------- */
.hero { --fw: clamp(176px, 19vw, 320px); --fr: calc(var(--pad) + 7vw); }   /* faucet width / its right offset (clear of the gauge) */
.faucet {
  position: absolute; z-index: 1;
  bottom: var(--wb, 22%);                       /* the foot rests on the pool's resting waterline (set by script.js so it stays on screen) */
  right: var(--fr);
  width: var(--fw); aspect-ratio: 614 / 962;
  pointer-events: none; filter: var(--faucet-shadow);
}
.faucet-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
#faucet-spokes { transform-origin: 46.4% 21.6%; will-change: transform; }   /* hub of the wheel */
#faucet-lever { transform-origin: 67.4% 80.7%; will-change: transform; }    /* foot of the lever */
.faucet-tip { position: absolute; left: 16.29%; top: 65.49%; width: 1px; height: 1px; }   /* centre of the spray head's face */
.valve { position: absolute; left: 44%; top: 66%; width: 36%; height: 30%; pointer-events: auto; cursor: pointer; border-radius: 18px; }
.valve-wheel { left: 15.3%; top: 1.9%; width: 61.9%; height: 39.5%; border-radius: 50%; }
.valve:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.valve-hint {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); padding: 6px 11px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  font: 600 11px/1 var(--body); letter-spacing: 0.04em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.valve:hover .valve-hint, .valve:focus-visible .valve-hint, .faucet[data-water="off"] .valve-hint { opacity: 1; }
.faucet[data-water="on"] .valve-hint::before { content: "Turn water off"; }
.faucet[data-water="off"] .valve-hint::before { content: "Turn water on"; }

@media (max-width: 860px) {
  .hero { --fw: 150px; --fr: 14px; }
}
@media (max-width: 560px) {
  .hero { --fw: 92px; --fr: 4px; }
}

/* ---------- Polished stone vanity under the faucet. Its top edge is the pool's resting waterline. ---------- */
.counter {
  position: absolute; z-index: 0; right: 0; bottom: 0; height: var(--wb, 22%);
  width: calc(var(--fr) + 0.53 * var(--fw)); pointer-events: none;
}
.counter-top {
  position: relative; height: 34px; overflow: hidden; border-radius: 8px 0 0 3px;
  box-shadow: 0 14px 22px -8px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.12);
}
.counter-top svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.counter-top::after {                          /* polished bevel: bright top edge, soft darkening toward the front edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0, rgba(255,255,255,0.18) 14%, rgba(255,255,255,0) 40%, rgba(0,0,0,0.22) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 1px 0 0 rgba(255,255,255,0.35);
}
.counter-body::before {                         /* a recessed cabinet-door panel */
  content: ""; position: absolute; inset: 22px 26px -2px 26px; border-radius: 4px 4px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(255, 255, 255, 0.55);
}
:root[data-theme="dark"] .counter-body::before { border-color: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 0 rgba(0, 0, 0, 0.6); }
.marble-dark { display: none; }
:root[data-theme="dark"] .marble-dark { display: inline; }
:root[data-theme="dark"] .marble-light { display: none; }
.counter-body {
  position: relative; margin-left: 10px; height: calc(100% - 34px);
  background: linear-gradient(180deg, #e7e4dc 0%, #d9d5cb 100%);
  box-shadow: inset 0 18px 18px -14px rgba(0, 0, 0, 0.45), inset 1px 0 0 rgba(255, 255, 255, 0.5);
}
:root[data-theme="dark"] .counter-body { background: linear-gradient(180deg, #121916 0%, #090d0b 100%); box-shadow: inset 0 18px 18px -14px rgba(0, 0, 0, 0.8), inset 1px 0 0 rgba(255, 255, 255, 0.07); }

@media print { .faucet, .counter { display: none; } }
