/* ==========================================================================
   Harbor Plumbing & Heating — stylesheet
   Palette: paper #FAF8F5 · navy #13293D · copper #B06E3B
   Spacing on an 8px scale. Radii: 4 / 8 / 16 / 999.
   ========================================================================== */

/* Self-hosted latin subsets from Google Fonts (SIL OFL). Same-origin saves
   two connection set-ups on the critical path; both files are preloaded. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/fraunces-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FAF8F5;
  --paper-2: #F3EFE9;
  --navy: #13293D;
  --navy-2: #0E2031;
  --copper: #B06E3B;          /* brand — lines, icons, large display */
  --copper-deep: #985829;     /* buttons & bands carrying light text */
  --copper-ink: #8E5426;      /* small copper text on paper */
  --copper-glow: #D9A57A;     /* small copper text on navy */
  --ink: #13293D;
  --muted: #55667A;
  --on-dark: #FAF8F5;
  --on-dark-muted: rgba(250, 248, 245, 0.74);
  --line: rgba(19, 41, 61, 0.12);
  --line-dark: rgba(250, 248, 245, 0.14);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  --max: 1160px;
  --gutter: 24px;
  --section: clamp(56px, 9vw, 128px);
  --header-h: 72px;
  --demo-h: 36px;
  --top-h: calc(var(--demo-h) + var(--header-h));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-sm: 0 1px 2px rgba(19, 41, 61, 0.06), 0 2px 8px rgba(19, 41, 61, 0.05);
  --shadow-md: 0 8px 24px rgba(19, 41, 61, 0.10), 0 2px 6px rgba(19, 41, 61, 0.06);
  --shadow-lg: 0 24px 56px rgba(19, 41, 61, 0.16), 0 4px 12px rgba(19, 41, 61, 0.08);
  --shadow-copper: 0 10px 28px rgba(176, 110, 59, 0.38);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--copper); color: var(--paper); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: var(--r-sm); }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--copper-glow); }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 8px 16px; border-radius: var(--r-md);
  background: var(--navy); color: var(--paper); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }
.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;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
/* Below-the-fold blocks skip style/layout/paint until they near the viewport.
   Only used after the last ScrollTrigger on a page, so trigger positions
   never depend on a placeholder size. */
.cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section--alt { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--on-dark); }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--f-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: inherit;
}
h1, .h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.05; }
h2, .h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; }
h3, .h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper-ink);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--copper); border-radius: 2px; }
.on-dark .eyebrow, .section--navy .eyebrow { color: var(--copper-glow); }

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 40ch; }
.on-dark .lede, .section--navy .lede { color: var(--on-dark-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 + p { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--copper-deep); --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 18px; letter-spacing: 0.01em; line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
  transform: translate(var(--mx, 0px), var(--my, 0px));
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); box-shadow: var(--shadow-copper); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.06s; }
.btn--ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(250, 248, 245, 0.5); }
.btn--ghost:hover { --bg: rgba(250, 248, 245, 0.08); box-shadow: inset 0 0 0 1.5px var(--paper), 0 10px 28px rgba(0, 0, 0, 0.25); }
.btn--navy { --bg: var(--navy); --fg: var(--paper); }
.btn--navy:hover { box-shadow: 0 10px 28px rgba(19, 41, 61, 0.35); }
.btn--paper { --bg: var(--paper); --fg: var(--navy); }
.btn--paper:hover { box-shadow: 0 10px 28px rgba(14, 32, 49, 0.35); }
.btn--outline { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--navy), var(--shadow-md); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-magnetic { transition: transform 0.25s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--copper-ink);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg, a:hover > .link-arrow svg, .card:hover .link-arrow svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
  background: var(--copper);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}
.demo-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  height: var(--demo-h);
  background: #0B1825; color: rgba(250, 248, 245, 0.82);
  font-size: 14px; line-height: 1;
  border-bottom: 1px solid rgba(137, 207, 240, 0.14);
}
.demo-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 24px; }
.demo-link { display: inline-flex; align-items: center; gap: 10px; min-height: var(--demo-h); transition: color 0.2s; }
.demo-link strong { color: #fff; font-weight: 600; }
.demo-link:hover { color: #fff; }
.wave-mark { width: 22px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.demo-link:hover .wave-mark { transform: translateX(-2px) scale(1.06); }
.demo-cta { display: none; align-items: center; gap: 6px; color: #89CFF0; font-weight: 600; }
.demo-cta svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.demo-cta:hover svg { transform: translateX(4px); }
@media (min-width: 900px) { .demo-inner { justify-content: space-between; } .demo-cta { display: inline-flex; } }
.site-header {
  position: fixed; inset: var(--demo-h) 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 248, 245, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled { color: var(--navy); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(19, 41, 61, 0.06); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: 0.02em; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 5px; opacity: 0.8; }

.nav { display: none; }
.nav ul { display: flex; gap: 32px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: 16px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--copper); border-radius: 2px;
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }

.open-chip {
  display: none; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: 0.92;
}
.open-chip[hidden] { display: none !important; }
.open-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); position: relative; }
.open-chip.is-open .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--copper); opacity: 0;
  animation: chipPulse 2.4s var(--ease) infinite;
}
@keyframes chipPulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

.header-call { display: none; }

.menu-toggle {
  width: 48px; height: 48px; margin-right: -8px; border-radius: var(--r-md);
  display: grid; place-items: center;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle span + span { margin-top: 6px; }
.menu-toggle .bars { display: block; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: var(--paper);
  padding: calc(var(--top-h) + 32px) var(--gutter) 120px;
  display: flex; flex-direction: column; gap: 40px;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
}
.nav-open .mobile-nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s; }
.nav-open .site-header { color: var(--paper); }
.nav-open .site-header::before { opacity: 0; }
.nav-open .site-header.is-scrolled { box-shadow: none; }
.mobile-nav ul { display: grid; gap: 8px; }
.mobile-nav a.m-link {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-display); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; line-height: 1.2;
  padding: 8px 0; border-bottom: 1px solid var(--line-dark);
}
.mobile-nav a.m-link svg { width: 24px; height: 24px; color: var(--copper); }
.mobile-nav .m-meta { color: var(--on-dark-muted); font-size: 16px; }
.mobile-nav .m-meta strong { display: block; color: var(--paper); font-size: 20px; margin-bottom: 4px; }

@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .nav { display: block; }
  .open-chip { display: inline-flex; }
  .header-call { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  background: var(--navy-2);
  overflow: hidden;
}
.hero--page { min-height: clamp(520px, 72svh, 720px); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture, .card-media picture, .curtain picture { width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.hero-media--duotone img { filter: grayscale(1) contrast(1.05) brightness(1.25); }
.hero-media--duotone::after { content: ""; position: absolute; inset: 0; background: var(--copper); mix-blend-mode: color; opacity: 0.38; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 32, 49, 0.62) 0%, rgba(14, 32, 49, 0.25) 30%, rgba(14, 32, 49, 0.55) 62%, rgba(14, 32, 49, 0.94) 100%),
    linear-gradient(90deg, rgba(19, 41, 61, 0.75) 0%, rgba(19, 41, 61, 0.15) 70%);
}
.hero-scrim-deep { position: absolute; inset: 0; z-index: -1; background: var(--navy-2); opacity: 0; pointer-events: none; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); background-size: 160px 160px;
  opacity: 0.035; mix-blend-mode: overlay;
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--top-h) + 64px); padding-bottom: clamp(120px, 14vw, 176px); }
.hero--page .hero-content { padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero--page h1 { max-width: 16ch; }
.hero .lede { margin-top: 24px; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font-size: 15px; font-weight: 600; color: var(--on-dark-muted);
}
.hero-badge .ring { width: 28px; height: 28px; color: var(--copper); }
.crumbs { display: flex; gap: 8px; font-size: 15px; color: var(--on-dark-muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--paper); }

/* split-line masks */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > .line { display: block; }
html.js [data-split] { visibility: hidden; animation: failsafeShow 0s 4s forwards; }
html.js [data-split].split-ready { visibility: visible; animation: none; }
@keyframes failsafeShow { to { visibility: visible; } }

/* ---------- Trust strip (overlaps hero) ---------- */
.trust { position: relative; z-index: 2; margin-top: clamp(-96px, -8vw, -64px); }
.trust-card {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
}
.trust-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 28px 24px; align-items: start; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
.trust-item svg { width: 48px; height: 48px; color: var(--copper); }
.trust-item h3 { font-size: 22px; margin-bottom: 4px; }
.trust-item p { color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (min-width: 900px) {
  .trust-card { grid-template-columns: repeat(3, 1fr); }
  .trust-item { padding: 40px 32px; }
  .trust-item + .trust-item { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  transform-style: preserve-3d;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:active { transform: translateY(-1px) scale(0.99); transition-duration: 0.08s; }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 41, 61, 0) 50%, rgba(19, 41, 61, 0.45) 100%); }
.card:hover .card-media img { transform: scale(1.03); }
.card-num {
  position: absolute; left: 20px; bottom: 16px; z-index: 1;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; color: var(--paper);
}
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { color: var(--muted); font-size: 17px; line-height: 1.55; flex: 1; }
.card-body .link-arrow { margin-top: 12px; }
.card > a.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.js-tilt-glare { border-radius: var(--r-lg); }

/* ---------- Stats — the signature pipe run ---------- */
.stats-section { overflow: hidden; isolation: isolate; }
.motif {
  position: absolute; z-index: -1; pointer-events: none;
  color: var(--copper); opacity: 0.1;
  width: 140%; left: -20%; top: -10%; height: 120%;
}
.motif path { fill: none; stroke: currentColor; stroke-width: 2; }
.stats { position: relative; display: grid; gap: 56px; padding-left: 48px; }
.stats-pipe { position: absolute; left: 11px; top: 12px; bottom: 12px; width: 3px; background: var(--line-dark); border-radius: 3px; }
.stats-pipe .fill { position: absolute; inset: 0; background: var(--copper); border-radius: 3px; transform: scaleY(0); transform-origin: 50% 0; }
.stat { position: relative; }
.stat .node {
  position: absolute; left: -48px; top: 2px;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--navy); box-shadow: inset 0 0 0 3px rgba(250, 248, 245, 0.25);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.stat .node::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--copper); opacity: 0; transform: scale(0.6); }
.stat.is-lit .node { background: var(--copper); box-shadow: inset 0 0 0 3px var(--copper), 0 0 0 6px rgba(176, 110, 59, 0.18); }
.stat.is-lit .node::after { animation: nodeRing 0.9s var(--ease) forwards; }
@keyframes nodeRing { 0% { opacity: 1; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.8); } }
.stat-value {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--f-display); font-weight: 600; line-height: 1; letter-spacing: -0.03em;
  font-size: clamp(64px, 9vw, 112px); color: var(--copper);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-value .unit { font-size: 0.42em; letter-spacing: -0.01em; color: var(--copper-glow); }
.stat-label { margin-top: 12px; font-size: 18px; font-weight: 600; color: var(--paper); }
.stat-note { font-size: 16px; color: var(--on-dark-muted); max-width: 28ch; margin-top: 4px; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 32px; padding-left: 0; padding-top: 64px; }
  .stats-pipe { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 3px; }
  .stats-pipe .fill { transform: scaleX(0); transform-origin: 0 50%; }
  .stat .node { left: 0; top: -64px; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step {
  position: relative; padding: 32px; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.step:hover { transform: translateY(-4px); background: #fff; box-shadow: inset 0 0 0 1px transparent, var(--shadow-md); }
.step-num {
  display: flex; align-items: center; gap: 16px; margin-bottom: 40px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; color: var(--copper-ink);
}
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step-icon { width: 56px; height: 56px; color: var(--copper); margin-bottom: 24px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 17px; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 32px; overflow: visible; margin: 0; padding: 0; }
}
.quote {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-mark { width: 32px; height: 32px; color: var(--copper); }
.quote blockquote { font-size: 18px; line-height: 1.6; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: var(--paper);
  font-family: var(--f-display); font-weight: 600; font-size: 18px;
}
.quote .who { font-weight: 600; line-height: 1.3; }
.quote .where { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.stars { display: flex; gap: 2px; color: var(--copper); }
.stars svg { width: 18px; height: 18px; }
.quotes-hint { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.quotes-hint span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color 0.3s, transform 0.3s var(--ease); }
.quotes-hint span.is-active { background: var(--copper); transform: scale(1.3); }
@media (min-width: 900px) { .quotes-hint { display: none; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--copper-deep); color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px);
  display: grid; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 140% at 100% 0%, var(--copper) 0%, rgba(176, 110, 59, 0) 60%);
}
.cta-band .cta-motif { position: absolute; right: -40px; bottom: -40px; width: 480px; z-index: -1; color: var(--navy); opacity: 0.22; }
.cta-band .cta-motif path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: rgba(250, 248, 245, 0.88); margin-top: 16px; max-width: 44ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; gap: 64px; } }

/* ---------- Emergency banner (services) ---------- */
.emergency {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg); background: var(--navy); color: var(--paper);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 72px);
  display: grid; gap: 32px; align-items: center;
}
.emergency .em-icon { width: 64px; height: 64px; color: var(--copper); }
.emergency h2 { font-size: clamp(30px, 4vw, 48px); }
.emergency p { color: var(--on-dark-muted); margin-top: 12px; max-width: 52ch; }
.emergency .cta-motif { position: absolute; right: -40px; bottom: -80px; width: 420px; z-index: -1; color: var(--copper); opacity: 0.16; }
.emergency .cta-motif path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; }
@media (min-width: 900px) { .emergency { grid-template-columns: auto 1fr auto; gap: 48px; } }

/* ---------- Curtain image reveal ---------- */
.curtain { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); }
.curtain img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.curtain:hover img { transform: scale(1.03); }
html.js .curtain::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: var(--copper);
  transform-origin: 100% 50%;
  transition: transform 1.05s var(--ease-io);
}
html.js .curtain img { transform: scale(1.14); transition: transform 1.4s var(--ease); }
html.js .curtain.is-in::after { transform: scaleX(0); }
html.js .curtain.is-in img { transform: scale(1); }
html.js .curtain.is-in:hover img { transform: scale(1.03); transition-duration: 0.7s; }

/* ---------- Services page ---------- */
.svc-nav {
  position: sticky; top: var(--top-h); z-index: 50;
  background: rgba(250, 248, 245, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.svc-nav ul { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-pill); white-space: nowrap;
  font-weight: 600; font-size: 15px; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.svc-nav a:hover { color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.svc-nav a.is-active { background: var(--navy); color: var(--paper); box-shadow: none; }

.svc-row { display: grid; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 96px); content-visibility: auto; contain-intrinsic-size: auto 760px; overflow-clip-margin: 32px; }
.svc-row + .svc-row { border-top: 1px solid var(--line); }
.svc-row .curtain { aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.svc-num { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; color: var(--copper-ink); margin-bottom: 12px; display: block; }
.svc-copy h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.svc-copy p { color: var(--muted); }
.svc-copy p + p { margin-top: 16px; }
.ticks { display: grid; gap: 12px; margin: 28px 0 32px; }
@media (min-width: 640px) { .ticks { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-weight: 600; font-size: 17px; line-height: 1.4; }
.ticks svg { width: 24px; height: 24px; color: var(--copper); margin-top: -1px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 1fr 1fr; gap: 80px; }
  .svc-row:nth-child(even) .curtain { order: 2; }
}

/* ---------- About page ---------- */
.story { display: grid; gap: 48px; align-items: start; }
.story-media { position: relative; }
.story-media .curtain { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.story-media .since {
  position: absolute; right: -8px; bottom: 32px; z-index: 3;
  background: var(--navy); color: var(--paper);
  border-radius: var(--r-lg); padding: 20px 24px;
  box-shadow: var(--shadow-lg);
}
.since .y { font-family: var(--f-display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--copper-glow); }
.since .t { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; color: var(--on-dark-muted); }
.story-copy h2 { margin-bottom: 24px; }
.story-copy p { color: var(--muted); }
.story-copy p + p { margin-top: 16px; }
.pull {
  margin: 40px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.01em; color: var(--navy);
}
.pull cite { display: block; margin-top: 16px; font-family: var(--f-body); font-style: normal; font-size: 16px; font-weight: 600; letter-spacing: 0.02em; color: var(--copper-ink); }
@media (min-width: 900px) {
  .story { grid-template-columns: 5fr 6fr; gap: 96px; }
  .story-media { position: sticky; top: calc(var(--top-h) + 32px); }
  .story-media .since { right: -32px; }
}

.values { display: grid; gap: 1px; background: var(--line-dark); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
.value { background: var(--navy); padding: clamp(28px, 4vw, 48px); transition: background-color 0.35s var(--ease); }
.value:hover { background: #172F45; }
.value svg { width: 44px; height: 44px; color: var(--copper); margin-bottom: 24px; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--on-dark-muted); }

.creds { display: grid; gap: 16px; }
@media (min-width: 900px) { .creds { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.cred { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.cred svg { width: 44px; height: 44px; color: var(--copper); }
.cred .k { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cred .v { font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.25; margin-top: 4px; }

.area { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .area { grid-template-columns: 1fr 1.1fr; gap: 96px; } }
.towns { display: flex; flex-wrap: wrap; gap: 12px; }
.towns li {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: 16px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.towns li:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--copper), var(--shadow-sm); }
.towns li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.towns li.home { background: var(--navy); color: var(--paper); box-shadow: none; }
.area-note { margin-top: 24px; color: var(--muted); }

/* ---------- Form ---------- */
.callback { display: grid; gap: 48px; }
@media (min-width: 900px) { .callback { grid-template-columns: 1fr 1.1fr; gap: 96px; align-items: start; } }
.form { display: grid; gap: 20px; background: #fff; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B06E3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(19, 41, 61, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); background: #fff; box-shadow: 0 0 0 4px rgba(176, 110, 59, 0.16); }
.field input::placeholder, .field textarea::placeholder { color: #7A8796; }
.form .fine { font-size: 14px; color: var(--muted); }
.form .fine a { text-decoration: underline; text-underline-offset: 2px; }
.form-done { display: none; text-align: center; padding: 32px 8px; }
.form-done svg { width: 64px; height: 64px; color: var(--copper); margin: 0 auto 16px; }
.form.is-sent > :not(.form-done) { display: none; }
.form.is-sent .form-done { display: block; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--navy); color: var(--paper); padding: calc(var(--top-h) + 72px) 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.legal-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.legal-hero p { color: var(--on-dark-muted); margin-top: 16px; }
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 56px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #3B4D60; }
.legal p + p { margin-top: 16px; }
.legal ul { margin: 16px 0; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 24px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 2px; background: var(--copper); }
.legal a { color: var(--copper-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .toc { padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 56px; }
.legal .toc p { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.legal .toc ol { display: grid; gap: 4px; counter-reset: t; margin: 0; }
.legal .toc li { padding-left: 32px; }
.legal .toc li::before { counter-increment: t; content: counter(t, decimal-leading-zero); background: none; width: auto; height: auto; top: 0; left: 0; font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--copper-ink); }
.legal .toc a { text-decoration: none; color: var(--ink); }
.legal .toc a:hover { color: var(--copper-ink); }
.demo-note { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 104px) 0 40px; position: relative; overflow: hidden; isolation: isolate; content-visibility: auto; contain-intrinsic-size: auto 720px; }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.site-footer .brand { color: var(--paper); margin-bottom: 20px; }
.footer-blurb { max-width: 34ch; font-size: 16px; }
.footer-col h3 { font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-glow); margin-bottom: 16px; }
.footer-col li + li { margin-top: 4px; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-col .big { font-family: var(--f-display); font-weight: 600; font-size: 26px; color: var(--paper); letter-spacing: -0.01em; }
.footer-col p { font-size: 16px; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 15px;
}
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(250, 248, 245, 0.3); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.footer-bottom a:hover { color: var(--paper); text-decoration-color: var(--copper); }
.footer-pipe { position: absolute; right: -80px; top: -40px; width: 520px; color: var(--copper); opacity: 0.08; z-index: -1; pointer-events: none; }
.footer-pipe path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(19, 41, 61, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px rgba(14, 32, 49, 0.25);
  color: var(--paper);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.call-bar.is-visible { transform: none; }
.call-bar .cb-text { flex: 1; line-height: 1.25; font-size: 14px; color: var(--on-dark-muted); }
.call-bar .cb-text strong { display: block; color: var(--paper); font-size: 16px; }
.call-bar .btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
.site-footer { padding-bottom: calc(40px + 76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .call-bar { display: none; } .site-footer { padding-bottom: 40px; } }

/* ---------- Scroll reveals ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Intro: "The Drop" ---------- */
.intro { display: none; }
html.js:not(.intro-seen) .intro {
  display: block;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy);
  color: var(--copper);
  animation: introFailsafe 0.4s 8s forwards;
}
html.js:not(.intro-seen) .intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--copper); }
html.intro-playing { overflow: hidden; }
.intro-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro-svg .pipe { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: butt; stroke-linejoin: round; }
.intro-svg .cap { fill: none; stroke: currentColor; stroke-width: 3; }
.intro-svg .drop { fill: currentColor; }
.intro-svg .ripple { fill: none; stroke: currentColor; stroke-width: 1.5; }
.intro-word {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center; color: var(--copper);
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  pointer-events: none;
}
.intro-word .w1 { display: block; font-size: clamp(44px, 9vw, 104px); letter-spacing: 0.14em; line-height: 1; margin-right: -0.14em; }
.intro-word .w2 { display: block; margin-top: 14px; font-family: var(--f-body); font-weight: 600; font-size: clamp(12px, 1.5vw, 16px); letter-spacing: 0.42em; margin-right: -0.42em; }
.intro-word .ch { display: inline-block; opacity: 0; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { transform: none; transition: opacity 0.5s linear; transition-delay: calc(var(--i, 0) * 60ms); }
  html.js .curtain::after { transition: opacity 0.5s linear; transform: none; }
  html.js .curtain.is-in::after { opacity: 0; transform: none; }
  html.js .curtain img, html.js .curtain.is-in img { transform: none; transition: none; }
  .btn:hover, .card:hover, .step:hover, .quote:hover, .towns li:hover { transform: none; }
  .card:hover .card-media img, .curtain:hover img { transform: none; }
  .open-chip.is-open .dot::after { animation: none; }
  html.js [data-split] { visibility: visible; animation: none; }
  html.js:not(.intro-seen) .intro { animation: introFailsafe 0.4s 3s forwards; }
}
