/* ==========================================================================
   Picks Plumbing — landing page
   Palette and type are derived from the brand mark: deep chrome-on-ink for the
   cinematic sections, brand blue #104088 and the logo's cream for daylight.
   ========================================================================== */

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* ink — dark surfaces */
  --ink-950: #05070b;
  --ink-900: #080b10;
  --ink-850: #0c1119;
  --ink-800: #111925;
  --ink-700: #18222f;
  --ink-600: #22303f;

  /* brand blue */
  --blue-900: #0a2455;
  --blue-800: #0c3170;
  --blue-700: #104088;
  --blue-600: #1553ac;
  --blue-500: #2a72d4;
  --blue-400: #52a0ee;
  --blue-300: #8ac6f8;

  /* chrome */
  --chrome-50:  #f4f8fb;
  --chrome-100: #e7eef4;
  --chrome-200: #d3dee7;
  --chrome-300: #b4c3cf;
  --chrome-400: #97a7b5;
  --chrome-500: #6c7d8c;

  /* paper — light surfaces */
  --paper:    #f7f5ef;
  --paper-2:  #ffffff;
  --paper-3:  #efeade;
  --rule:     #e2ddd0;

  /* text */
  --txt:      #10161e;
  --txt-mut:  #55636f;
  --txt-l:    var(--chrome-100);
  --txt-l-mut:var(--chrome-400);

  --ember:    #e0a155;

  /* semantic */
  --bg:       var(--ink-900);
  --focus:    var(--blue-400);
  --danger:   #d1483f;
  --ok:       #2f8f5b;

  /* type */
  --f-disp: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* spacing scale (8pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* --hdr-h is the header's resting height and is also read by the hero
     padding and the sticky 1957 mark, so it must NOT change on scroll.
     --hdr-h-c is the condensed height and is only ever applied to .hdr__in. */
  --hdr-h: 68px;
  --hdr-h-c: 60px;
  --wrap: 1200px;
  --gut: 20px;

  /* motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --t-fast: 160ms;
  --t-mid:  260ms;
  --t-slow: 480ms;

  --z-hero: 1;
  --z-bar: 40;
  --z-hdr: 60;
  --z-mnav: 80;

  color-scheme: dark;
}

@media (min-width: 861px) {
  :root { --hdr-h: 78px; --hdr-h-c: 64px; --gut: 32px; }
}

/* ── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* an anchor jump always leaves the header condensed, so clear that height */
  scroll-padding-top: calc(var(--hdr-h-c) + 16px);
}

body {
  background: var(--bg);
  color: var(--txt-l);
  font: 400 16px/1.6 var(--f-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite g { fill: none; stroke: currentColor; stroke-width: 1.75;
            stroke-linecap: round; stroke-linejoin: round; }

.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor;
       stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--blue-600); color: #fff; font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--t-mid) var(--e-out);
}
.skip:focus { transform: none; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--n { max-width: 820px; }

.sec { position: relative; padding-block: clamp(64px, 9vw, 118px); }
.sec--tight { padding-block-start: 0; }
.sec--paper { background: var(--paper); color: var(--txt); }
.sec--ink { background: var(--ink-900); color: var(--txt-l); }

/* soft seam where paper meets ink */
.sec--ink::before,
.sec--ink::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px;
  pointer-events: none;
}
.sec--ink::before { top: 0;    background: linear-gradient(180deg, rgba(5,7,11,.55), transparent); }
.sec--ink::after  { bottom: 0; background: linear-gradient(0deg,   rgba(5,7,11,.55), transparent); }

/* ── type ───────────────────────────────────────────────────────────────── */
.kicker {
  font: 600 12px/1 var(--f-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-700);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--s-4);
}
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .55;
}
.kicker--l { color: var(--blue-400); }
.shead--c .kicker { justify-content: center; }

.h2 {
  font: 700 clamp(30px, 4.6vw, 52px)/1.08 var(--f-disp);
  letter-spacing: -0.025em;
  color: var(--txt);
  text-wrap: balance;
}
.h2--l { color: #fff; }

.lede {
  margin-top: var(--s-4);
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--txt-mut);
}
.lede--l { color: var(--txt-l-mut); }

.shead { margin-bottom: clamp(36px, 5vw, 60px); }
.shead--c { text-align: center; }
.shead--c .lede { margin-inline: auto; }
.shead--split { display: flex; flex-wrap: wrap; gap: var(--s-6);
                align-items: flex-end; justify-content: space-between; }

.lnk {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--s-5);
  font-weight: 600; color: var(--blue-700);
  min-height: 44px;
}
.lnk .ico { width: 18px; height: 18px; transition: transform var(--t-mid) var(--e-out); }
.lnk:hover .ico { transform: translateX(4px); }

.br-d { display: none; }
@media (min-width: 861px) { .br-d { display: inline; } }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 15px/1 var(--f-body); letter-spacing: -0.005em;
  white-space: nowrap; cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast) var(--e-out),
              box-shadow var(--t-mid) var(--e-out),
              background-color var(--t-mid) var(--e-out),
              border-color var(--t-mid) var(--e-out);
}
.btn .ico { width: 19px; height: 19px; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:active { transform: scale(.975); }

.btn--primary {
  --btn-fg: #fff;
  background: linear-gradient(168deg, var(--blue-600), var(--blue-800) 62%, var(--blue-900));
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset,
              0 10px 26px -10px rgba(21,83,172,.75),
              0 2px 6px rgba(5,10,20,.35);
}
.btn--primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset,
              0 16px 34px -12px rgba(42,114,212,.9),
              0 2px 8px rgba(5,10,20,.4);
}
/* sheen */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden;
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.26) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 140% 0;
  transition: background-position 720ms var(--e-out);
}
.btn--primary:hover::after { background-position: -40% 0; }

.btn--glass {
  --btn-fg: var(--chrome-50);
  background: rgba(226,238,248,.07);
  border: 1px solid rgba(198,220,240,.22);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.btn--glass:hover { background: rgba(226,238,248,.13); border-color: rgba(198,220,240,.38); }

.btn--ghost {
  --btn-fg: var(--chrome-200);
  border: 1px solid rgba(198,220,240,.2);
}
.btn--ghost:hover { --btn-fg: #fff; border-color: rgba(198,220,240,.42);
                    background: rgba(226,238,248,.06); }

.btn--dark {
  --btn-fg: var(--paper);
  background: var(--ink-800);
  box-shadow: 0 10px 24px -12px rgba(8,14,24,.7);
}
.btn--dark:hover { background: var(--ink-700); }

.btn--call {
  --btn-fg: #fff;
  padding: 9px 20px 9px 16px; min-height: 50px;
  background: linear-gradient(168deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -10px rgba(21,83,172,.8);
}
.btn--call:hover { filter: brightness(1.08); }
.btn__lbl { display: flex; flex-direction: column; gap: 2px;
            font: 700 15px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.btn__sub { font: 600 10px/1 var(--f-body); letter-spacing: .12em;
            text-transform: uppercase; opacity: .72; }

/* ── header ─────────────────────────────────────────────────────────────── */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: var(--z-hdr);
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--t-slow) var(--e-out),
              backdrop-filter var(--t-slow) var(--e-out);
}
.hdr__in {
  display: flex; align-items: center; gap: var(--s-5);
  height: var(--hdr-h);
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gut);
  transition: height var(--t-slow) var(--e-out);
}
.hdr__line {
  position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190,214,236,.24) 18%,
                              rgba(190,214,236,.24) 82%, transparent);
  opacity: 0; transition: opacity var(--t-slow) var(--e-out);
}
.hdr.is-stuck {
  background: rgba(8,11,16,.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
/* the bar itself condenses, which is what the logo shrink is in service of —
   .hdr is fixed, so this reclaims screen without reflowing the page */
.hdr.is-stuck .hdr__in { height: var(--hdr-h-c); }
.hdr.is-stuck .hdr__line { opacity: 1; }

.hdr__brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.hdr__brand img {
  height: 34px; width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
  transition: height var(--t-slow) var(--e-out);
}
.hdr.is-stuck .hdr__brand img { height: 29px; }

.hdr__nav { display: none; gap: 4px; }
.hdr__nav a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 10px 13px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--chrome-300);
  transition: color var(--t-mid) var(--e-out);
}
.hdr__nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px;
  background: var(--blue-400); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--e-out);
}
.hdr__nav a:hover { color: #fff; }
.hdr__nav a:hover::after { transform: scaleX(1); }

.hdr__act { display: flex; align-items: center; gap: 10px; }
.hdr__quote { display: none; }
.hdr .btn--call { display: none; }

.hdr__burger {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-md);
  color: var(--chrome-100);
  background: rgba(226,238,248,.07);
  border: 1px solid rgba(198,220,240,.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  touch-action: manipulation;
}

@media (min-width: 861px) {
  .hdr__nav { display: flex; }
  .hdr__quote { display: inline-flex; }
  .hdr .btn--call { display: inline-flex; }
  .hdr__burger { display: none; }
  .hdr__brand img { height: 42px; }
  .hdr.is-stuck .hdr__brand img { height: 35px; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .hdr__nav a { padding-inline: 9px; font-size: 13.5px; }
  .hdr__quote { display: none; }
}

/* ── mobile nav ─────────────────────────────────────────────────────────── */
.mnav {
  position: fixed; inset: 0; z-index: var(--z-mnav);
  background: rgba(4,6,10,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--t-mid) var(--e-out);
}
.mnav.is-open { opacity: 1; }
.mnav__panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(400px, 92vw); height: 100%;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 16px) var(--s-5)
           calc(env(safe-area-inset-bottom) + 20px);
  background: linear-gradient(200deg, var(--ink-800), var(--ink-950));
  border-left: 1px solid rgba(198,220,240,.12);
  box-shadow: -30px 0 70px rgba(0,0,0,.55);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--e-out);
}
.mnav.is-open .mnav__panel { transform: none; }

.mnav__top { display: flex; align-items: center; justify-content: space-between;
             gap: var(--s-4); margin-bottom: var(--s-6); }
.mnav__logo { height: 34px; width: auto; }
.mnav__x {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--r-md); color: var(--chrome-200);
  border: 1px solid rgba(198,220,240,.18);
}

.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; padding: 8px 4px;
  font: 600 19px/1.2 var(--f-disp); letter-spacing: -0.015em; color: var(--chrome-100);
  border-bottom: 1px solid rgba(198,220,240,.09);
}
.mnav__links .ico { width: 18px; height: 18px; color: var(--chrome-500);
                    transition: transform var(--t-mid) var(--e-out); }
.mnav__links a:active .ico { transform: translateX(4px); }

.mnav__cta { margin-top: auto; padding-top: var(--s-6);
             display: flex; flex-direction: column; gap: 10px; }
.mnav__note { margin-top: 6px; text-align: center; font-size: 12.5px;
              color: var(--chrome-400); }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; height: 210svh; background: var(--ink-950); }
@media (min-width: 861px) { .hero { height: 250vh; } }

.hero__stage {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  display: grid; place-items: center;
}

.hero__canvas, .hero__still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__canvas { opacity: 0; transition: opacity 420ms var(--e-out); }
.hero__canvas.is-ready { opacity: 1; }

/* The poster is a full-bleed `cover` crop, while the canvas frames the same
   pipe smaller and off to one side — so cross-fading from one to the other on
   load reads as the hero shrinking and sliding. Whenever JS is live the poster
   therefore never paints; it is strictly the fallback, and site.js hands it
   back (.is-fallback) if the sequence is skipped or fails to load. */
.hero__still { opacity: 1; }
.js .hero__still { opacity: 0; }
.js .hero__still.is-fallback { opacity: 1; }

/* ambient blue bloom behind the pipe */
.hero__aura {
  position: absolute; left: 50%; top: 48%;
  width: min(1100px, 130vw); aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle,
              rgba(42,114,212,.20), rgba(16,64,136,.09) 42%, transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% 46%, transparent 34%, rgba(4,6,11,.62) 100%),
    linear-gradient(180deg, rgba(4,6,11,.86) 0%, transparent 26%,
                    transparent 44%, rgba(4,6,11,.90) 92%);
}

.hero__copy {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap);
  padding-inline: var(--gut);
  padding-top: var(--hdr-h);
  text-align: center;
  will-change: transform, opacity;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: rgba(226,238,248,.06);
  border: 1px solid rgba(198,220,240,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 12.5px/1 var(--f-body); letter-spacing: .04em;
  color: var(--chrome-200);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400);
       box-shadow: 0 0 0 0 rgba(82,160,238,.65); animation: pulse 2.6s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(82,160,238,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(82,160,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(82,160,238,0); }
}

.hero__h1 {
  margin-top: var(--s-5);
  font: 700 clamp(36px, 7.6vw, 82px)/1.02 var(--f-disp);
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero__h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #cfe6ff, var(--blue-400) 55%, var(--blue-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* The heading's tight negative tracking pulls this inline box inside the ink
     of its own last glyph, and background-clip:text paints nothing past the box
     edge — so the final letter loses its right side. Widen the paint box, then
     pull the following text back by the same amount so nothing else moves. */
  padding-inline: .03em .14em;
  margin-inline: -.03em -.14em;
}
.hero__h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__h1 .ln > span { display: block; }

.hero__sub {
  margin: var(--s-5) auto 0; max-width: 56ch;
  font-size: clamp(15px, 1.7vw, 18.5px); line-height: 1.6;
  color: var(--chrome-300);
}

.hero__btns { display: flex; flex-wrap: wrap; justify-content: center;
              gap: 12px; margin-top: var(--s-6); }

.hero__chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 20px; margin-top: var(--s-6);
}
.hero__chips li {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--chrome-400);
}
.hero__chips .ico { width: 15px; height: 15px; stroke-width: 2.4; color: var(--blue-400); }

/* scroll-driven captions */
.hero__cap {
  position: absolute; z-index: 2; left: 50%; bottom: 12svh;
  width: min(520px, calc(100% - 2 * var(--gut)));
  transform: translate3d(-50%, 0, 0); /* JS re-writes this during the scrub */
  text-align: center;
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
}
.hero__cap-k {
  font: 600 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-400); margin-bottom: 10px;
}
.hero__cap-t {
  font: 500 clamp(17px, 2.5vw, 24px)/1.45 var(--f-body);
  color: var(--chrome-100); text-wrap: balance;
}

/* mobile: pipe up top, copy stacked underneath it — never overlapping */
@media (max-width: 860px) {
  .hero__stage { align-items: end; }
  .hero__copy { padding-top: 0; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .hero__sub { display: none; }
  .hero__eyebrow { padding: 7px 14px 7px 11px; font-size: 11.5px; }
  .hero__h1 { margin-top: 18px; font-size: clamp(31px, 8.4vw, 42px); }
  .hero__btns { flex-direction: column; align-items: stretch; gap: 10px; margin-top: var(--s-5); }
  .hero__btns .btn { width: 100%; }
  .hero__btns .btn--lg { min-height: 54px; }
  .hero__chips { gap: 6px 14px; margin-top: 18px; }
  .hero__chips li { font-size: 12px; }
}

/* tablets in portrait: keep the copy off the edges, buttons side by side */
@media (min-width: 600px) and (max-width: 860px) {
  .hero__copy > * { max-width: 540px; margin-inline: auto; }
  .hero__h1 { font-size: 46px; }
  .hero__btns { flex-direction: row; justify-content: center; }
  .hero__btns .btn { width: auto; }
  .hero__chips li { font-size: 13px; }
}

/* landscape phones: not enough height to pin — fall back to a static hero */
@media (orientation: landscape) and (max-height: 560px) {
  .hero { height: auto; }
  .hero__stage {
    position: relative; height: auto; min-height: 0;
    align-items: center;
    padding-block: calc(var(--hdr-h) + 24px) 44px;
  }
  .hero__copy { padding-bottom: 0; }
  .hero__cap { display: none; }
}

/* desktop: copy left, pipe right */
@media (min-width: 961px) {
  .hero__stage { justify-items: start; }
  .hero__copy { text-align: left; }
  .hero__copy > * { max-width: 600px; margin-inline: 0; }
  .hero__h1 { font-size: clamp(42px, 4.5vw, 62px); max-width: 760px; }
  .hero__btns, .hero__chips { justify-content: flex-start; }
  .hero__vignette {
    background:
      linear-gradient(90deg, rgba(4,6,11,.94) 0%, rgba(4,6,11,.72) 34%, transparent 62%),
      radial-gradient(120% 78% at 62% 46%, transparent 30%, rgba(4,6,11,.6) 100%),
      linear-gradient(180deg, rgba(4,6,11,.8) 0%, transparent 22%,
                      transparent 62%, rgba(4,6,11,.88) 98%);
  }
  /* --pipe-x is written by the scrub loop so these track the pipe */
  .hero__aura { left: var(--pipe-x, 74%); }
  .hero__cap { left: var(--pipe-x, 74%); bottom: 13vh; width: min(460px, 42vw); }
}

/* between 961 and 1200 the copy column has to yield room to the pipe */
@media (min-width: 961px) and (max-width: 1199px) {
  .hero__copy > * { max-width: 465px; }
  .hero__h1 { font-size: clamp(38px, 4.6vw, 50px); max-width: 530px; }
  .hero__sub { font-size: 15.5px; }
}

.hero__cue {
  position: absolute; z-index: 2; left: 50%; translate: -50% 0;
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 600 10px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--chrome-500);
}
.hero__cue .ico { width: 18px; height: 18px; animation: nudge 2.2s var(--e-out) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(5px); opacity: 1; }
}
/* must sit after the base rule above, which would otherwise win on display */
@media (max-width: 860px) { .hero__cue { display: none; } }

/* ── trust band ─────────────────────────────────────────────────────────── */
.band {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, var(--ink-950), var(--ink-850));
  border-top: 1px solid rgba(198,220,240,.08);
  padding-block: clamp(40px, 6vw, 66px);
}
.band__in { display: grid; gap: clamp(28px, 4vw, 44px); }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3.4vw, 40px);
}
@media (min-width: 861px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { display: flex; flex-direction: column; gap: 8px; text-align: left; }
@media (min-width: 861px) {
  .stat { padding-left: var(--s-5); border-left: 1px solid rgba(198,220,240,.13); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}
.stat__n {
  display: flex; align-items: baseline; gap: 4px;
  font: 700 clamp(30px, 4.4vw, 46px)/1 var(--f-disp);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--chrome-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__star { width: .5em; height: .5em; fill: var(--ember); stroke: none;
              align-self: center; margin-left: 2px; }
/* "2nd" / "100%" / "2yr" — the parent clips its gradient over these too, since
   color:transparent inherits */
.stat__sup { align-self: flex-start; margin-top: .1em; margin-left: 1px;
             font-size: .44em; font-weight: 700; letter-spacing: 0; }
.stat__u   { font-size: .5em; font-weight: 700; letter-spacing: -0.01em; }
.stat__l { font-size: 13px; line-height: 1.45; color: var(--chrome-400); }

.creds {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid rgba(198,220,240,.09);
}
.creds li { display: flex; align-items: center; gap: 9px;
            font-size: 13.5px; font-weight: 500; color: var(--chrome-400); }
.creds .ico { width: 17px; height: 17px; color: var(--blue-400); }
.creds__sep { opacity: .4; }

/* ── services ───────────────────────────────────────────────────────────── */
.grid-svc { display: grid; gap: clamp(14px, 1.6vw, 20px); }
@media (min-width: 700px)  { .grid-svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-svc { grid-template-columns: repeat(3, 1fr); } }

.svc {
  position: relative;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(20,28,40,.04);
  transition: transform var(--t-slow) var(--e-out),
              box-shadow var(--t-slow) var(--e-out),
              border-color var(--t-slow) var(--e-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc:hover { transform: translateY(-4px);
               border-color: rgba(16,64,136,.28);
               box-shadow: 0 22px 44px -26px rgba(12,26,52,.42); }
}
.svc--hero {
  /* glow lives in the background so it can't leave a hard pseudo-element edge */
  background:
    radial-gradient(130% 95% at 6% 2%, rgba(42,114,212,.30), transparent 62%),
    linear-gradient(165deg, var(--ink-800), var(--ink-950) 78%);
  border-color: rgba(198,220,240,.14);
  color: var(--txt-l);
  overflow: hidden;
}
@media (min-width: 1000px) { .svc--hero { grid-row: span 2; } }

.svc__ico {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: var(--r-md);
  margin-bottom: var(--s-5);
  background: linear-gradient(160deg, rgba(16,64,136,.10), rgba(16,64,136,.04));
  border: 1px solid rgba(16,64,136,.16);
  color: var(--blue-700);
}
.svc--hero .svc__ico {
  background: linear-gradient(160deg, rgba(122,182,246,.20), rgba(42,114,212,.08));
  border-color: rgba(160,205,250,.28); color: var(--blue-300);
}
.svc h3 {
  position: relative;
  font: 700 clamp(19px, 1.9vw, 23px)/1.2 var(--f-disp);
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.svc--hero h3 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); }
.svc p { position: relative; font-size: 15px; line-height: 1.62; color: var(--txt-mut); }
.svc--hero p { color: var(--chrome-300); font-size: 15.5px; }

.svc__list { position: relative; display: grid; gap: 10px; margin-top: var(--s-5);
             padding-top: var(--s-5); border-top: 1px solid rgba(198,220,240,.13); }
.svc__list li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; color: var(--chrome-200);
}
.svc__list li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-400); box-shadow: 0 0 10px rgba(82,160,238,.7);
}
.svc--hero .lnk { color: var(--blue-300); }

/* starting price, pinned into the icon row so it never collides with the h3 */
.svc__price {
  position: absolute; z-index: 1;
  top: clamp(24px, 2.6vw, 32px); right: clamp(24px, 2.6vw, 32px);
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(16,64,136,.07);
  border: 1px solid rgba(16,64,136,.17);
  font: 500 12px/1 var(--f-body); letter-spacing: .01em;
  color: var(--blue-700); white-space: nowrap;
}
.svc__price b { font: 700 15px/1 var(--f-disp); letter-spacing: -0.02em;
                font-variant-numeric: tabular-nums; }
.svc--hero .svc__price {
  background: rgba(122,182,246,.15); border-color: rgba(160,205,250,.30);
  color: var(--blue-300);
}
.svc--hero .svc__price b { color: #fff; }

/* the "what we don't take" card — deliberately quieter than a service */
.svc--note { background: transparent; border-style: dashed; box-shadow: none; }
.svc--note .svc__ico { background: rgba(85,99,111,.06);
                       border-color: rgba(85,99,111,.18); color: var(--txt-mut); }
.svc--note h3 { color: var(--txt-mut); }
.svc--note strong { color: var(--txt); }
@media (hover: hover) and (pointer: fine) {
  .svc--note:hover { transform: none; box-shadow: none; border-color: rgba(85,99,111,.3); }
}

/* ── water heaters ──────────────────────────────────────────────────────── */
.wh { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 940px) { .wh { grid-template-columns: 1fr 1fr; } }

.wh__signs { display: grid; gap: 12px; margin-top: var(--s-6); }
.wh__signs li { display: flex; align-items: flex-start; gap: 12px;
                font-size: 15.5px; color: var(--txt); }
.wh__signs .ico { width: 20px; height: 20px; stroke-width: 2.6; margin-top: 2px;
                  padding: 3px; border-radius: 50%; color: #fff;
                  background: var(--blue-700); }
.wh__intro .btn { margin-top: var(--s-6); }

/* built-in-America callout */
.wh__made {
  margin-top: clamp(26px, 3vw, 34px);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(16,64,136,.075), rgba(16,64,136,.02));
  border: 1px solid rgba(16,64,136,.18);
}
.wh__made-k {
  font: 600 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: var(--s-4);
}
.wh__made-l { display: grid; gap: 12px; }
.wh__made-l li { display: flex; align-items: flex-start; gap: 11px;
                 font-size: 14.5px; line-height: 1.6; color: var(--txt); }
.wh__made-l .ico { width: 17px; height: 17px; flex: none; margin-top: 4px;
                   stroke-width: 2.8; color: var(--blue-700); }
.wh__made-n {
  margin-top: var(--s-5); padding-top: var(--s-5);
  border-top: 1px solid rgba(16,64,136,.14);
  font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--txt);
}

.wh__sub { margin-top: clamp(26px, 3vw, 34px); font-weight: 600;
           font-size: 14.5px; color: var(--txt-mut); }
.wh__signs { margin-top: var(--s-4); }

.wh__cards { display: grid; gap: var(--s-4); }
@media (min-width: 560px) and (max-width: 939px) { .wh__cards { grid-template-columns: 1fr 1fr; } }

.cmp {
  position: relative;
  padding: clamp(24px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.cmp--flag {
  background: linear-gradient(168deg, var(--ink-800), var(--ink-950));
  border-color: rgba(198,220,240,.16); color: var(--txt-l);
  box-shadow: 0 26px 60px -34px rgba(10,20,40,.7);
}
.cmp__flag {
  position: absolute; top: 0; right: clamp(20px, 2.6vw, 28px); translate: 0 -50%;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  font: 700 10.5px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; box-shadow: 0 6px 18px -8px rgba(42,114,212,.9);
}
.cmp__hd { margin-bottom: var(--s-5); }
.cmp h3 { font: 700 clamp(22px, 2.4vw, 28px)/1.1 var(--f-disp); letter-spacing: -0.025em; }
.cmp--flag h3 { color: #fff; }
.cmp__tag { margin-top: 4px; font-size: 14px; color: var(--txt-mut); }
.cmp--flag .cmp__tag { color: var(--blue-300); }

.cmp__specs { display: grid; gap: 0; }
.cmp__specs > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding: 13px 0; border-top: 1px solid var(--rule);
}
.cmp--flag .cmp__specs > div { border-color: rgba(198,220,240,.12); }
.cmp__specs dt { font-size: 13.5px; color: var(--txt-mut); flex: none; }
.cmp--flag .cmp__specs dt { color: var(--chrome-400); }
.cmp__specs dd { font-size: 14.5px; font-weight: 600; text-align: right; }
.cmp--flag .cmp__specs dd { color: var(--chrome-100); }
.cmp__note { margin-top: var(--s-5); padding-top: var(--s-5);
             border-top: 1px solid var(--rule);
             font-size: 14px; line-height: 1.55; color: var(--txt-mut); }
.cmp--flag .cmp__note { border-color: rgba(198,220,240,.12); color: var(--chrome-400); }

/* ── assurance band: guarantees + payment ───────────────────────────────── */
.assure {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
  border-block: 1px solid rgba(198,220,240,.08);
  padding-block: clamp(44px, 6vw, 68px);
  color: var(--txt-l);
}
.assure__in { display: grid; gap: clamp(34px, 4.4vw, 56px); }
@media (min-width: 940px) { .assure__in { grid-template-columns: 1.15fr 1fr; } }

.assure__list { display: grid; gap: clamp(20px, 2.4vw, 26px); align-content: start; }
.assure__list li { display: flex; align-items: flex-start; gap: 14px; }
.assure__list .ico {
  width: 26px; height: 26px; flex: none; margin-top: 1px; padding: 4px;
  border-radius: 50%; stroke-width: 2.5; color: #fff;
  background: linear-gradient(165deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 0 0 1px rgba(160,205,250,.2), 0 8px 18px -10px rgba(42,114,212,.8);
}
.assure__k { display: block; font: 700 16px/1.25 var(--f-disp);
             letter-spacing: -0.018em; color: #fff; }
.assure__t { display: block; margin-top: 5px; max-width: 46ch;
             font-size: 14px; line-height: 1.6; color: var(--chrome-400); }

.pays {
  padding: clamp(24px, 2.8vw, 32px);
  border-radius: var(--r-lg);
  background: rgba(226,238,248,.04);
  border: 1px solid rgba(198,220,240,.11);
}
.pays__h {
  display: flex; align-items: center; gap: 9px; margin-bottom: var(--s-5);
  font: 600 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-400);
}
.pays__h .ico { width: 17px; height: 17px; }
.pays__list { display: flex; flex-wrap: wrap; gap: 9px; }
.pays__list li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 16px; border-radius: var(--r-md);
  background: rgba(226,238,248,.06);
  border: 1px solid rgba(198,220,240,.14);
  font-size: 14.5px; font-weight: 600; color: var(--chrome-100);
}
.pays__list li span { font: 400 11px/1 var(--f-body); letter-spacing: .04em;
                      color: var(--chrome-500); }
.pays__note { margin-top: var(--s-5); font-size: 13px; line-height: 1.6;
              color: var(--chrome-400); }

/* ── story ──────────────────────────────────────────────────────────────── */
.story { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 940px) { .story { grid-template-columns: 0.8fr 1.2fr; } }

.story__mark { text-align: center; }
@media (min-width: 940px) { .story__mark { position: sticky; top: calc(var(--hdr-h) + 40px); } }
.story__est { font: 600 11px/1 var(--f-body); letter-spacing: .34em;
              text-transform: uppercase; color: var(--blue-700); }
.story__yr {
  margin-top: 14px;
  font: 800 clamp(84px, 15vw, 172px)/0.84 var(--f-disp);
  letter-spacing: -0.055em; font-variant-numeric: tabular-nums;
  background: linear-gradient(170deg, var(--blue-500), var(--blue-700) 42%, var(--blue-900));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story__rule { display: block; width: 66px; height: 2px; margin: 24px auto 0;
               border-radius: 2px;
               background: linear-gradient(90deg, transparent, var(--blue-600), transparent); }
.story__loc { margin-top: 16px; font-size: 13.5px; letter-spacing: .06em;
              color: var(--txt-mut); }

.story__body .h2 { margin-bottom: var(--s-5); }
.story__body > p { font-size: clamp(15.5px, 1.7vw, 17.5px); line-height: 1.72;
                   color: var(--txt-mut); max-width: 62ch; }
.story__body > p + p { margin-top: var(--s-4); }

.story__pillars {
  display: grid; gap: var(--s-5);
  margin-top: clamp(30px, 3.6vw, 42px);
  padding-top: clamp(30px, 3.6vw, 42px);
  border-top: 1px solid var(--rule);
}
@media (min-width: 620px) { .story__pillars { grid-template-columns: repeat(3, 1fr); } }
.story__pillars .ico { width: 22px; height: 22px; color: var(--blue-700);
                       margin-bottom: 11px; }
.story__pillars h3 { font: 700 15.5px/1.25 var(--f-disp); letter-spacing: -0.015em;
                     margin-bottom: 6px; }
.story__pillars p { font-size: 13.5px; line-height: 1.58; color: var(--txt-mut); }

/* ── process ────────────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; gap: clamp(28px, 3.4vw, 40px); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps__rail {
  position: absolute; left: 25px; top: 8px; bottom: 8px; width: 2px;
  background: rgba(198,220,240,.12); border-radius: 2px; overflow: hidden;
}
.steps__rail i {
  position: absolute; inset: 0 0 auto; height: 0; display: block;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-700));
  box-shadow: 0 0 14px rgba(82,160,238,.6);
}
@media (min-width: 900px) {
  .steps__rail { left: 8px; right: 8px; top: 26px; bottom: auto; width: auto; height: 2px; }
  .steps__rail i { inset: 0 auto 0 0; height: auto; width: 0;
                   background: linear-gradient(90deg, var(--blue-400), var(--blue-700)); }
}

.step { position: relative; padding-left: 66px; }
@media (min-width: 900px) { .step { padding-left: 0; padding-top: 74px; } }

.step__ico {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-850));
  border: 1px solid rgba(198,220,240,.16);
  color: var(--blue-300);
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.9);
}
.step__n {
  display: block; margin-bottom: 8px;
  font: 700 12px/1 var(--f-body); letter-spacing: .18em;
  font-variant-numeric: tabular-nums; color: var(--blue-400);
}
@media (min-width: 900px) { .step__n { position: absolute; top: 62px; left: 0; } }
.step h3 {
  font: 700 clamp(18px, 1.9vw, 21px)/1.25 var(--f-disp);
  letter-spacing: -0.02em; color: #fff; margin-bottom: 8px;
}
@media (min-width: 900px) { .step h3 { margin-top: 26px; } }
.step p { font-size: 14.5px; line-height: 1.62; color: var(--chrome-400); }

/* ── reviews ────────────────────────────────────────────────────────────── */
.rscore { display: flex; flex-direction: column; gap: 8px; }
.rscore__stars { display: flex; gap: 3px; }
.rscore__stars .ico { width: 21px; height: 21px; fill: var(--ember); stroke: none; }
.rscore__t { font-size: 14.5px; color: var(--txt-mut); font-variant-numeric: tabular-nums; }
.rscore__t strong { font: 700 17px/1 var(--f-disp); color: var(--txt); }

.grid-rev { display: grid; gap: clamp(14px, 1.6vw, 20px); }
/* two reviews shouldn't sit in a three-column grid with a hole on the end */
.grid-rev--2 { max-width: 900px; margin-inline: auto; }
@media (min-width: 760px)  { .grid-rev { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid-rev { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .grid-rev--2 { grid-template-columns: repeat(2, 1fr); } }

.rev {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper-2); border: 1px solid var(--rule);
}
.rev__stars { display: flex; gap: 2px; }
.rev__stars .ico { width: 17px; height: 17px; fill: var(--ember); stroke: none; }
.rev blockquote p { font-size: 15.5px; line-height: 1.66; color: var(--txt); }
.rev blockquote p::before { content: "\201C"; }
.rev blockquote p::after  { content: "\201D"; }
.rev figcaption { margin-top: auto; padding-top: var(--s-4);
                  border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.rev__who { font-weight: 600; font-size: 14.5px; }
.rev__meta { font-size: 13px; color: var(--txt-mut); }

/* ── service area ───────────────────────────────────────────────────────── */
.areas { display: grid; gap: clamp(32px, 4.4vw, 56px); align-items: center; }
@media (min-width: 900px) { .areas { grid-template-columns: 1fr 1.05fr; } }
.areas__copy .btn { margin-top: var(--s-6); }

.areas__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .areas__list { grid-template-columns: repeat(3, 1fr); } }
.areas__list li {
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--paper-2); border: 1px solid var(--rule);
  font-size: 14px; font-weight: 500;
}
.areas__list .ico { width: 16px; height: 16px; color: var(--blue-700); }

/* ── faq ────────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: 18px 4px;
  font: 600 clamp(16px, 1.8vw, 18.5px)/1.4 var(--f-body);
  letter-spacing: -0.01em; cursor: pointer;
  list-style: none; touch-action: manipulation;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__c { width: 22px; height: 22px; flex: none; color: var(--blue-700);
         transition: transform var(--t-mid) var(--e-out); }
.qa[open] .qa__c { transform: rotate(180deg); }
.qa__body { display: grid; grid-template-rows: 0fr;
            transition: grid-template-rows var(--t-slow) var(--e-out); }
.qa[open] .qa__body { grid-template-rows: 1fr; }
.qa__body > p { overflow: hidden; }
.qa[open] .qa__body > p { padding-bottom: 22px; }
.qa__body p { font-size: 15.5px; line-height: 1.68; color: var(--txt-mut);
              max-width: 68ch; padding-right: var(--s-6); }

/* ── quote ──────────────────────────────────────────────────────────────── */
.sec--quote { padding-block: clamp(64px, 8vw, 110px); }
.quote { display: grid; gap: clamp(36px, 4.6vw, 64px); align-items: start; }
@media (min-width: 940px) { .quote { grid-template-columns: 0.9fr 1.1fr; } }

.quote__call {
  display: inline-flex; align-items: center; gap: var(--s-4);
  margin-top: var(--s-7); padding: 14px 26px 14px 14px;
  border-radius: var(--r-pill);
  background: rgba(226,238,248,.06);
  border: 1px solid rgba(198,220,240,.18);
  transition: border-color var(--t-mid) var(--e-out), background-color var(--t-mid) var(--e-out);
}
.quote__call:hover { background: rgba(226,238,248,.11); border-color: rgba(198,220,240,.36); }
.quote__call-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(160deg, var(--blue-500), var(--blue-800)); color: #fff;
  box-shadow: 0 8px 22px -10px rgba(42,114,212,.9);
}
.quote__call-k { display: block; font: 600 10.5px/1 var(--f-body);
                 letter-spacing: .18em; text-transform: uppercase; color: var(--blue-300); }
.quote__call-n { display: block; margin-top: 5px;
                 font: 700 clamp(20px, 2.4vw, 25px)/1 var(--f-disp);
                 letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }

.quote__meta { display: grid; gap: 12px; margin-top: var(--s-7);
               padding-top: var(--s-6); border-top: 1px solid rgba(198,220,240,.12); }
.quote__meta li { display: flex; align-items: center; gap: 11px;
                  font-size: 14.5px; color: var(--chrome-400); }
.quote__meta .ico { width: 18px; height: 18px; color: var(--blue-400); }

/* form */
.qform {
  display: grid; gap: var(--s-4);
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-xl);
  background: linear-gradient(168deg, rgba(24,34,47,.92), rgba(8,11,16,.92));
  border: 1px solid rgba(198,220,240,.13);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.95);
}
@media (min-width: 640px) { .qform { grid-template-columns: 1fr 1fr; } }
.fld--wide { grid-column: 1 / -1; }
.qform__hp { position: absolute; left: -9999px; }

.fld { display: grid; gap: 7px; align-content: start; }
.fld label { font-size: 13.5px; font-weight: 600; color: var(--chrome-200); }
.req { color: var(--blue-400); }

.fld input, .fld textarea, .fld select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(6,9,14,.66);
  border: 1px solid rgba(198,220,240,.16);
  color: #fff; font-size: 16px; /* 16px avoids iOS zoom-on-focus */
  transition: border-color var(--t-mid) var(--e-out), background-color var(--t-mid) var(--e-out),
              box-shadow var(--t-mid) var(--e-out);
}
.fld textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
.fld input::placeholder, .fld textarea::placeholder { color: #5c6b7a; }
.fld input:hover, .fld textarea:hover, .fld select:hover { border-color: rgba(198,220,240,.3); }
.fld input:focus, .fld textarea:focus, .fld select:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(82,160,238,.2);
}
.fld input:focus-visible, .fld textarea:focus-visible, .fld select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px;
}

.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer; }
.sel select:invalid { color: #5c6b7a; }
.sel option { background: var(--ink-800); color: #fff; }
.sel__c { position: absolute; right: 15px; top: 50%; translate: 0 -50%;
          width: 20px; height: 20px; color: var(--chrome-500); pointer-events: none; }

.hint { font-size: 12.5px; line-height: 1.45; color: var(--chrome-400); }
.err { font-size: 12.5px; line-height: 1.45; color: #ff9d95; min-height: 0; }
.err:empty { display: none; }
.fld.is-bad input, .fld.is-bad textarea, .fld.is-bad select {
  border-color: #d1483f; box-shadow: 0 0 0 3px rgba(209,72,63,.16);
}

.qform__foot { gap: var(--s-4); }
.qform__fine { font-size: 12.5px; line-height: 1.5; color: var(--chrome-400); text-align: center; }
.qform__status { font-size: 14.5px; line-height: 1.5; text-align: center; }
.qform__status:empty { display: none; }
.qform__status.is-ok  { color: #7fe0ab; }
.qform__status.is-bad { color: #ff9d95; }

.spin { display: none; width: 18px; height: 18px; border-radius: 50%;
        border: 2px solid rgba(255,255,255,.32); border-top-color: #fff;
        animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-busy { pointer-events: none; opacity: .82; }
.btn.is-busy .spin { display: block; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.ftr {
  background: var(--ink-950);
  border-top: 1px solid rgba(198,220,240,.09);
  padding-block: clamp(48px, 6vw, 76px) 0;
}
.ftr__top { display: grid; gap: clamp(32px, 4vw, 48px); }
@media (min-width: 720px)  { .ftr__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ftr__top { grid-template-columns: 1.6fr 1fr 1fr 1.15fr; } }

.ftr__brand img { height: 116px; width: auto; margin-bottom: var(--s-5); }
.ftr__brand p { max-width: 40ch; font-size: 14.5px; line-height: 1.62;
                color: var(--chrome-500); margin-bottom: var(--s-5); }

.ftr__col { display: flex; flex-direction: column; align-items: flex-start; }
.ftr__col h3 { font: 600 11.5px/1 var(--f-body); letter-spacing: .16em;
               text-transform: uppercase; color: var(--chrome-300); margin-bottom: var(--s-4); }
.ftr__col a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14.5px; color: var(--chrome-500);
  transition: color var(--t-mid) var(--e-out);
}
.ftr__col a:hover { color: var(--blue-300); }
.ftr__hrs, .ftr__lic { margin-top: var(--s-4); font-size: 13.5px; line-height: 1.6;
                       color: var(--chrome-500); }

.ftr__bot {
  display: flex; flex-wrap: wrap; gap: 8px var(--s-5);
  justify-content: space-between; align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(198,220,240,.09);
  font-size: 13px; color: var(--chrome-500);
}

/* ── mobile call bar ────────────────────────────────────────────────────── */
.callbar {
  position: fixed; inset: auto 0 0; z-index: var(--z-bar);
  display: none; gap: 10px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,11,16,.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(198,220,240,.14);
  transform: translateY(104%);
  transition: transform var(--t-slow) var(--e-out);
}
.callbar.is-up { transform: none; }
.callbar__b {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: var(--r-pill);
  font: 600 15px/1 var(--f-body); touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast) var(--e-out);
}
.callbar__b:active { transform: scale(.97); }
.callbar__b .ico { width: 18px; height: 18px; }
.callbar__b--p {
  color: #fff; background: linear-gradient(168deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -10px rgba(21,83,172,.9);
}
.callbar__b--s { color: var(--chrome-200); background: rgba(226,238,248,.08);
                 border: 1px solid rgba(198,220,240,.2); }

@media (max-width: 860px) {
  .callbar { display: flex; }
  body { padding-bottom: 0; }
  .ftr__bot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ── scroll reveal ──────────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 700ms var(--e-out), transform 700ms var(--e-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* hero copy line reveal on first paint */
.js .hero__h1 .ln > span {
  transform: translate3d(0, 108%, 0);
  transition: transform 1000ms var(--e-out);
}
.js .hero.is-lit .hero__h1 .ln:nth-child(1) > span { transform: none; }
.js .hero.is-lit .hero__h1 .ln:nth-child(2) > span { transform: none; transition-delay: 90ms; }

.js .hero__eyebrow,
.js .hero__sub,
.js .hero__btns,
.js .hero__chips {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 760ms var(--e-out), transform 760ms var(--e-out);
}
.js .hero.is-lit .hero__eyebrow { opacity: 1; transform: none; }
.js .hero.is-lit .hero__sub     { opacity: 1; transform: none; transition-delay: 220ms; }
.js .hero.is-lit .hero__btns    { opacity: 1; transform: none; transition-delay: 330ms; }
.js .hero.is-lit .hero__chips   { opacity: 1; transform: none; transition-delay: 430ms; }

/* ── reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__h1 .ln > span,
  .js .hero__eyebrow, .js .hero__sub, .js .hero__btns, .js .hero__chips {
    opacity: 1; transform: none;
  }
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 0;
                 padding-block: calc(var(--hdr-h) + 40px) 64px; }
  .hero__canvas { display: none; }
  /* the still becomes the whole backdrop, so hold it back off the copy — and
     it has to out-specify the .js rules that hide the poster for the canvas */
  .hero__still,
  .js .hero__still,
  .js .hero__still.is-fallback { position: absolute; opacity: .5; }
  .hero__cap, .hero__cue { display: none; }
  .callbar { transform: none; }
}
