/* ==========================================================================
   WTR Group. Ink & Dot.
   Cream ground, ink authority, one deep green, one bright dot.
   Sora carries the work. Source Serif 4 italic carries the human voice.
   Numerals are heavy and industrial on purpose: they meet the drawn tree.
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #F6F4EF;
  --surface: #FFFEFA;
  --sand: #EFEBDF;
  --line: #DCD7C8;
  --text: #191C19;
  --muted: #5C605B;
  --accent: #1F4F37;      /* WTR green, as sampled from the logo */
  --dot: #3BA65F;         /* signal only. Never paint with it. */
  --action-bg: #1F4F37;
  --action-fg: #F6F4EF;
  --tree-ink: #111311;
  --tree-green: #1F4F37;

  --ground: #191C19;
  --on-ground: #F1EEE4;
  --on-ground-muted: #B4B1A6;
  --ground-line: #343934;
  --ground-accent: #8CCBA5;
  --ground-tree-green: #4FA073;

  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111311;
    --surface: #181B18;
    --sand: #161916;
    --line: #2B302B;
    --text: #F1EEE4;
    --muted: #B0AEA3;
    --accent: #8CCBA5;
    --action-bg: #F1EEE4;
    --action-fg: #111311;
    --tree-ink: #EDE9DD;
    --tree-green: #4FA073;
    --ground: #0A0C0A;
    --ground-line: #262B26;
  }
}

@media (min-width: 1320px) {
  :root { --gutter: max(76px, 5vw); }
}

/* Sections that sit underground re-scope the tokens; components stay the same. */
[data-tone="ink"] {
  background: var(--ground);
  color: var(--on-ground);
  --text: var(--on-ground);
  --muted: var(--on-ground-muted);
  --line: var(--ground-line);
  --accent: var(--ground-accent);
  --action-bg: var(--on-ground);
  --action-fg: var(--ground);
  --tree-ink: var(--on-ground);
  --tree-green: var(--ground-tree-green);
}
[data-tone="sand"] { background: var(--sand); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--bg); }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9375rem;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }

/* ---------- type ---------- */
.kicker {
  font-size: .6875rem; line-height: 1.4; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.numeral {
  font-family: var(--font); font-weight: 800; line-height: .82;
  letter-spacing: -.055em; font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.h2 {
  font-size: clamp(2.1rem, 5vw, 4.75rem); line-height: 1.02;
  letter-spacing: -.04em; font-weight: 800; max-width: 15ch; text-wrap: balance;
}
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
.section-pad { padding-block: clamp(88px, 13vw, 200px); }

/* the dot: the logo's one bright point, used as punctuation and as state */
.dot {
  display: inline-block; width: .17em; height: .17em; border-radius: 50%;
  background: var(--dot); margin-left: .07em; vertical-align: baseline;
}
.dot--sm { width: 10px; height: 10px; margin: 0 14px 0 0; background: var(--text); vertical-align: .08em; transition: background .25s var(--ease), transform .25s var(--ease); }

.textlink {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; line-height: 1.3;
  transition: color .2s, border-color .2s;
}
.textlink:hover { color: var(--accent); }
.textlink svg { width: 14px; height: 14px; }

/* ---------- pills: everything interactive is a full pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .85em;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(0) scale(.99); }
.pill--primary { background: var(--action-bg); color: var(--action-fg); }
.pill--ghost { background: transparent; color: inherit; border-color: currentColor; }
.pill--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.pill__num {
  font-variant-numeric: tabular-nums; font-weight: 600; opacity: .85;
  padding-left: .85em; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
.pill__short { display: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .4s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-101%); }
.site-header__bar {
  width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 46px; }
.brand__name { font-weight: 800; letter-spacing: .14em; font-size: .8125rem; text-transform: uppercase; line-height: 1; }
.brand__name span { font-weight: 400; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a { font-size: .875rem; font-weight: 600; color: var(--muted); padding: 10px 0; position: relative; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--dot); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-on { color: var(--text); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.site-header__end { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; font-weight: 600; font-size: .9375rem; cursor: pointer;
}

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ground); color: var(--on-ground);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px; overflow-y: auto;
}
.menu[hidden] { display: none; }
.site-header.is-menu { color: var(--on-ground); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-menu .pill--primary { background: var(--on-ground); color: var(--ground); }
.site-header.is-menu .menu-btn { border-color: var(--ground-line); }
@media (prefers-color-scheme: light) { .site-header.is-menu .brand__mark { filter: invert(1) hue-rotate(180deg) brightness(1.15); } }
.menu ol { display: grid; }
.menu a {
  display: flex; align-items: baseline; gap: 20px; padding: 18px 0;
  border-bottom: 1px solid var(--ground-line);
  font-size: clamp(1.9rem, 8vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
}
.menu__n { font-size: .8125rem; letter-spacing: .1em; color: var(--on-ground-muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- section rail (wide screens) ---------- */
.rail {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; align-items: flex-end; gap: 18px;
  color: var(--text); transition: color .4s; pointer-events: none;
}
.rail[data-tone="ink"] { color: var(--on-ground); }
.rail__count { display: flex; align-items: baseline; gap: 6px; flex-direction: column; align-items: flex-end; }
.rail__now {
  display: block; overflow: hidden; height: .86em; font-size: clamp(2.25rem, 3.2vw, 5rem);
  font-weight: 800; letter-spacing: -.05em; line-height: .86; font-variant-numeric: tabular-nums;
}
.rail__now span { display: block; transition: transform .5s var(--ease); }
.rail__of { font-size: .6875rem; letter-spacing: .14em; font-weight: 700; opacity: .6; }
.rail__dots { display: grid; gap: 9px; justify-items: end; }
.rail__dots li { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; transition: all .3s var(--ease); }
.rail__dots li.is-on { background: var(--dot); border-color: var(--dot); opacity: 1; transform: scale(1.45); }
.rail__label { font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; writing-mode: vertical-rl; opacity: .6; }
@media (min-width: 1320px) { .rail { display: flex; } }

/* ==========================================================================
   01 Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: calc(var(--header-h) + 24px) 0 clamp(32px, 6vh, 72px); overflow: clip;
}
.hero__tree {
  position: absolute; top: 0; bottom: 0; right: -4vw; width: min(1500px, 70vw); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%);
}
canvas.tree { width: 100%; height: 100%; }

/* the tree grows from the trunk up. Default is fully grown; motion opts in. */
canvas.tree[data-grow] {
  --grow: 1;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--grow) * 150% - 50%), transparent calc(var(--grow) * 150%));
          mask-image: linear-gradient(to top, #000 calc(var(--grow) * 150% - 50%), transparent calc(var(--grow) * 150%));
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  canvas.tree[data-grow] { --grow: 0; }
}

.hero__side {
  position: absolute; left: clamp(14px, 1.6vw, 28px); bottom: calc(clamp(32px, 6vh, 72px) + 4px);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted);
  display: none; z-index: 2;
}
@media (min-width: 1100px) { .hero__side { display: block; } }

.hero__grid { position: relative; z-index: 2; }
.hero__kicker { margin-bottom: clamp(20px, 3vw, 36px); }
.hero__title {
  font-size: clamp(3.5rem, 7.8vw, 8rem); line-height: .9; letter-spacing: -.05em; word-spacing: .1em; font-weight: 800;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .04em .1em 0; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .dot { width: .15em; height: .15em; margin-left: .05em; }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: rise 1.15s var(--ease) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
  .hero__kicker, .hero__lede, .hero__cta, .hero__stat { animation: fade 1.2s var(--ease) both; animation-delay: .5s; }
  .hero__lede { animation-delay: .65s; } .hero__cta { animation-delay: .8s; } .hero__stat { animation-delay: .95s; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__lede { margin-top: clamp(24px, 3vw, 36px); max-width: 26ch; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.32; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(28px, 4vw, 44px); }

.hero__stat {
  position: absolute; right: var(--gutter); bottom: clamp(32px, 6vh, 72px); z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right;
}
.hero__stat .numeral { font-size: clamp(5.5rem, 13vw, 14rem); }
.hero__stat sup { font-size: .5em; vertical-align: top; position: relative; top: .05em; margin-left: .04em; color: var(--accent); }

/* ==========================================================================
   02 One
   ========================================================================== */
.one { padding-block: clamp(96px, 14vw, 200px) clamp(72px, 10vw, 150px); }
.statement {
  margin-top: 28px; max-width: 24ch; font-size: clamp(1.9rem, 4.3vw, 4rem);
  line-height: 1.08; letter-spacing: -.045em; font-weight: 700; text-wrap: balance;
}
.statement em { color: var(--accent); font-size: 1.06em; letter-spacing: -.01em; }
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(64px, 9vw, 140px); counter-reset: none;
}
.trio li { border-top: 2px solid var(--text); padding-top: clamp(20px, 2.5vw, 32px); }
.trio .numeral { display: block; font-size: clamp(7rem, 17vw, 17rem); margin-left: -.04em; }
.trio h3 { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.trio p { margin-top: 14px; color: var(--muted); max-width: 34ch; }

/* ==========================================================================
   03 The record
   ========================================================================== */
.proof { padding-block: clamp(96px, 13vw, 190px); overflow-x: clip; }
.proof__head .h2 { margin-top: 20px; }
.case { position: relative; margin-top: clamp(72px, 10vw, 150px); padding-top: clamp(24px, 3vw, 40px); border-top: 2px solid var(--text); isolation: isolate; }
.case__ghost {
  position: absolute; z-index: -1; top: 0; right: -2%; width: min(820px, 74%); height: 100%;
  opacity: .12; pointer-events: none;
}
.case__head { max-width: 62rem; }
.case__title { margin-top: 18px; font-size: clamp(1.7rem, 3.4vw, 3.1rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; max-width: 24ch; text-wrap: balance; }
.case__note { margin-top: 18px; max-width: 46ch; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.4; color: var(--muted); }

.metrics { display: grid; margin-top: clamp(40px, 6vw, 88px); gap: clamp(8px, 2vw, 24px) clamp(24px, 4vw, 64px); }
.metric { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: clamp(20px, 2.4vw, 32px) 0; border-top: 1px solid var(--line); }
.metric dt { margin-top: 16px; color: var(--muted); font-size: .9375rem; line-height: 1.45; max-width: 26ch; }
.metric dd { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .12em; }
.metric .numeral { font-size: clamp(4.75rem, 10.5vw, 11rem); }
.count { display: inline-grid; }
.count > span, .count::after { grid-area: 1 / 1; }
.count::after { content: attr(data-final); visibility: hidden; height: 0; overflow: hidden; }
.unit { font-weight: 800; letter-spacing: -.03em; color: var(--accent); font-size: clamp(1.25rem, 2.4vw, 2.25rem); line-height: 1; }
.unit--sym { font-size: clamp(3rem, 6.6vw, 7rem); letter-spacing: -.05em; line-height: .8; }
.unit--pre { flex-basis: 100%; margin-bottom: 14px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ==========================================================================
   04 Who we serve
   ========================================================================== */
.serve { padding-block: clamp(96px, 13vw, 190px); }
.serve__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 88px); }
.serve__head .h2 { margin-top: 20px; }
.serve__sub { max-width: 30ch; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.4; color: var(--muted); }

.row { border-top: 2px solid var(--text); --col: clamp(72px, 12vw, 180px); --gap: clamp(16px, 3vw, 48px); }
.row:last-child { border-bottom: 2px solid var(--text); }
.row > summary {
  list-style: none; display: grid; grid-template-columns: var(--col) 1fr 48px; align-items: center; gap: var(--gap);
  padding: clamp(20px, 2.8vw, 36px) 0; cursor: pointer; border-radius: 0;
}
.row > summary::-webkit-details-marker { display: none; }
.row > summary:focus-visible { outline-offset: -2px; }
.row__n { font-size: clamp(2.75rem, 8vw, 7.5rem); transition: color .3s var(--ease), transform .4s var(--ease); }
.row__name { font-size: clamp(1.65rem, 3.8vw, 3.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.row__who { display: block; margin-top: 10px; font-size: .9375rem; line-height: 1.45; color: var(--muted); max-width: 60ch; }
.row__toggle {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--text);
  transition: background .25s, transform .4s var(--ease);
}
.row__toggle::before, .row__toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; margin: -.875px 0 0 -7px;
  background: var(--text); transition: transform .35s var(--ease), background .25s;
}
.row__toggle::after { transform: rotate(90deg); }
.row[open] .row__toggle::after { transform: rotate(0); }
.row > summary:hover .row__n, .row[open] .row__n { color: var(--accent); }
.row > summary:hover .row__n { transform: translateX(6px); }
.row > summary:hover .row__toggle, .row[open] .row__toggle { background: var(--text); }
.row > summary:hover .row__toggle::before, .row > summary:hover .row__toggle::after,
.row[open] .row__toggle::before, .row[open] .row__toggle::after { background: var(--bg); }

.row__panel { padding: 0 0 clamp(36px, 5vw, 72px) calc(var(--col) + var(--gap)); overflow: hidden; }
.row__lead { font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.25; max-width: 30ch; color: var(--accent); }
.row__intro { margin-top: 18px; max-width: 64ch; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 56px); margin-top: clamp(32px, 4vw, 56px); }
.groups--2 { grid-template-columns: repeat(2, 1fr); }
.grp h4 { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.grp h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: none; }
.grp li { font-size: .9375rem; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.grp li strong { display: block; color: var(--text); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; margin-bottom: 2px; }
.row__foot { margin-top: clamp(28px, 3vw, 44px); max-width: 66ch; color: var(--muted); font-size: .9375rem; }
.row__foot .textlink { margin-left: .4em; color: var(--text); }
.serve__more { margin-top: clamp(28px, 4vw, 48px); color: var(--muted); }
.serve__more .textlink { color: var(--text); margin-left: .35em; }

/* ==========================================================================
   05 What we do
   ========================================================================== */
.what { padding-block: clamp(96px, 13vw, 190px); border-top: 1px solid var(--line); }
.what__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.what__head { position: sticky; top: calc(var(--header-h) + 32px); }
.what__head .h2 { margin-top: 20px; }
.what__list li { padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--line); }
.what__list li:last-child { border-bottom: 1px solid var(--line); }
.what__list h3 { display: flex; align-items: center; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.what__list p { margin-top: 10px; padding-left: 24px; color: var(--muted); max-width: 52ch; }
.what__list li:hover .dot--sm { background: var(--dot); transform: scale(1.35); }

/* ==========================================================================
   06 How we work (underground)
   ========================================================================== */
.how { position: relative; padding-bottom: clamp(88px, 12vw, 180px); overflow: clip; }
.how__roots { height: clamp(340px, 66vh, 700px); pointer-events: none; }
.how .wrap { position: relative; }
canvas.tree[data-tree="roots"] {
  --p: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--p) * 135% - 35%), transparent calc(var(--p) * 135%));
          mask-image: linear-gradient(to bottom, #000 calc(var(--p) * 135% - 35%), transparent calc(var(--p) * 135%));
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  canvas.tree[data-tree="roots"] { --p: 0; }
}
.how .h2 { margin-top: 20px; max-width: 17ch; }
.how__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 112px); margin-top: clamp(48px, 7vw, 100px); }
.how__list li { border-top: 1px solid var(--line); padding: clamp(22px, 2.6vw, 36px) 0 clamp(28px, 3vw, 44px); }
.how__list h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.how__list p { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.how__foot { margin-top: clamp(32px, 5vw, 64px); max-width: 30ch; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.3; color: var(--on-ground); }

/* ==========================================================================
   07 Call
   ========================================================================== */
.call { padding-block: clamp(72px, 10vw, 150px) clamp(88px, 12vw, 180px); border-top: 1px solid var(--line); }
.call__name { margin-top: 20px; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.2; }
.call__number {
  display: inline-block; margin-top: clamp(8px, 2vw, 24px);
  font-size: clamp(3rem, 11.6vw, 12.5rem); line-height: .95; letter-spacing: -.06em; font-weight: 800;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "lnum" 1;
  transition: color .3s;
}
.call__number .dot { width: .12em; height: .12em; margin-left: .06em; transition: transform .4s var(--ease); }
.call__number:hover .dot { transform: scale(1.6); }
.call__lines { margin-top: clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); align-items: center; }
.call__lines .textlink { color: var(--text); }

.call__form { margin-top: clamp(64px, 9vw, 128px); max-width: 760px; padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
.note { margin-top: 28px; display: grid; gap: 20px; }
.note__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field span { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: transparent; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 18px; min-height: 52px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note__end { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.note__status { font-size: .9375rem; color: var(--muted); }
.note__status[data-state="ok"] { color: var(--text); }
.note__status[data-state="ok"]::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); margin-right: 10px; }
.note__status a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { padding-block: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.foot__logo canvas { width: 100%; aspect-ratio: 500 / 740; }
.foot__tag { font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 800; max-width: 16ch; text-wrap: balance; }
.foot__sub { margin-top: 18px; color: var(--accent); }
.foot__lines { margin-top: clamp(28px, 4vw, 48px); font-size: 1.0625rem; line-height: 1.8; font-weight: 600; }
.foot__lines a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.foot__lines a:hover { border-color: currentColor; }
.foot__small { margin-top: 28px; font-size: .8125rem; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.foot__small + .foot__small { margin-top: 8px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity .95s var(--ease), transform .95s var(--ease); transition-delay: var(--d, 0s);
    animation: reveal-failsafe .01s 4s forwards;
  }
  [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
}
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .groups, .groups--2 { grid-template-columns: 1fr; }
  .what__grid { grid-template-columns: 1fr; }
  .what__head { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .hero { padding-top: calc(var(--header-h) + 45svh); align-items: start; min-height: 100svh; }
  .hero__tree { top: calc(var(--header-h) + 30px); bottom: auto; right: 0; width: 100%; height: 42svh;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 84%, transparent 100%); }
  .hero__title { font-size: clamp(3.3rem, 16.5vw, 6.5rem); }
  .hero__stat { top: calc(var(--header-h) + 14px); bottom: auto; right: auto; left: var(--gutter); align-items: flex-start; text-align: left; gap: 10px; }
  .hero__stat .numeral { font-size: clamp(3.75rem, 17vw, 6rem); }
  .hero__stat .kicker { max-width: 9ch; }
  .hero { padding-bottom: 40px; }

  .trio { grid-template-columns: 1fr; gap: 0; }
  .trio li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); column-gap: 20px; padding-bottom: 28px; margin-bottom: 8px; }
  .trio .numeral { grid-row: 1 / span 2; font-size: clamp(6rem, 30vw, 9rem); }
  .trio h3 { margin-top: 6px; }
  .trio p { margin-top: 8px; }

  .metrics--4, .metrics--3 { grid-template-columns: 1fr; }
  .case__ghost { width: 100%; right: -14%; opacity: .1; }

  .row { --col: 52px; --gap: 14px; }
  .row > summary { grid-template-columns: var(--col) 1fr 44px; gap: var(--gap); align-items: start; }
  .row__n { font-size: 2.4rem; padding-top: 2px; }
  .row__toggle { margin-top: 2px; }
  .row__panel { padding-left: 0; }
  .how__list { grid-template-columns: 1fr; }
  .note__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__logo { max-width: 240px; }
  .pill__long { display: none; }
  .pill__short { display: inline; }
}

@media (min-width: 861px) and (max-width: 1000px) {
  .metrics--3 { grid-template-columns: 1fr; }
}
@media (min-width: 861px) {
  .metrics--4 { grid-template-columns: repeat(2, 1fr); }
  .metrics--3 { grid-template-columns: repeat(3, 1fr); }
}

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

/* ==========================================================================
   Stub pages (thanks, 404)
   ========================================================================== */
.stub { min-height: 100svh; display: grid; align-items: center; padding-block: 64px; }
.stub__inner { display: grid; justify-items: start; gap: 18px; }
.stub__mark { width: 68px; height: 92px; margin-bottom: 12px; }
.stub__title { font-size: clamp(4.5rem, 16vw, 12rem); line-height: .85; letter-spacing: -.06em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stub__lede { font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; color: var(--accent); }
.stub__body { color: var(--muted); max-width: 44ch; margin-bottom: 12px; }
