/* ==========================================================================
   Liv Fresh — wave-powered seawater desalination
   Deep ocean with one accent: sunrise gold. The page opens on a live sea at
   dawn, dives underwater, and surfaces into clear, fresh light at the moment
   water passes the membrane in "How it works".
   ========================================================================== */

:root {
  /* Palette */
  --abyss: #061A24;
  --trench: #0A2C38;
  --ocean: #0E3A4A;
  --foam: #F2F5F3;
  --gold: #E3A948;
  --gold-bright: #F0BE63;
  --bronze: #8A5A12;   /* gold for text on light backgrounds */
  --brass: #B07A23;    /* gold for lines and marks on light backgrounds */
  --mist: #8FA6AE;
  --slate: #4C6670;
  --danger: #FFB4A8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-body: clamp(1rem, 0.97rem + 0.18vw, 1.125rem);
  --fs-lede: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-h2: clamp(2.25rem, 1.45rem + 3.2vw, 4.5rem);
  --fs-h1: clamp(3rem, min(1.2rem + 6vw, 11vh), 7.5rem);
  --fs-display: clamp(5.5rem, 2rem + 15vw, 16rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1360px;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme tokens. Sections declare data-theme; JS flips "How it works" mid-scene. */
[data-theme="dark"] {
  --bg: var(--abyss);
  --fg: var(--foam);
  --muted: var(--mist);
  --rule: rgb(242 245 243 / 0.12);
  --accent: var(--gold);
  --hl: var(--gold);
  --water: #7FC4C2;
  --fresh: #A8E3DC;
  --btn-bg: var(--gold);
  --btn-fg: var(--abyss);
  --btn-hover: var(--gold-bright);
  --btn-glow: rgb(227 169 72 / 0.5);
  --focus: var(--gold);
}

[data-theme="light"] {
  --bg: var(--foam);
  --fg: var(--abyss);
  --muted: var(--slate);
  --rule: rgb(6 26 36 / 0.12);
  --accent: var(--bronze);
  --hl: var(--brass);
  --water: #2B7A86;
  --fresh: #1F7F7A;
  --btn-bg: var(--abyss);
  --btn-fg: var(--foam);
  --btn-hover: var(--ocean);
  --btn-glow: rgb(6 26 36 / 0.35);
  --focus: var(--ocean);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
  /* Keeps the layout from shifting when the menu locks scrolling. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  background: var(--abyss);
  color: var(--foam);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Film grain over everything: breaks up digital flatness. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 { font-weight: 400; line-height: 1.18; letter-spacing: -0.012em; }
p { text-wrap: pretty; }

.num { font-variant-numeric: lining-nums tabular-nums; }

section[data-theme],
footer[data-theme] {
  background-color: var(--bg);
  color: var(--fg);
  transition: background-color 0.9s var(--ease), color 0.9s var(--ease);
}

/* Sections land on fractional pixels; a 1px overlap stops the body colour
   showing through as a hairline seam between them. */
main > * + *,
main + footer { margin-top: -1px; }

/* Ocean-floor contour lines as texture (generated by tools/bathymetry.mjs). */
.texture {
  background-image:
    url("../img/bathymetry-light.svg"),
    radial-gradient(55% 45% at 88% 20%, rgb(14 58 74 / 0.07), transparent 70%),
    radial-gradient(45% 40% at 0% 80%, rgb(227 169 72 / 0.06), transparent 70%);
  background-size: 1600px auto, auto, auto;
  background-position: 50% 0, 0 0, 0 0;
}
/* Sectors → Team share one texture so the contours don't restart per section. */
.texture-run { background-color: var(--foam); }
.texture-run > section[data-theme] { background-color: transparent; }

.texture--dark {
  background-image:
    url("../img/bathymetry-dark.svg"),
    radial-gradient(60% 50% at 100% 0%, rgb(14 58 74 / 0.55), transparent 70%);
  background-size: 1600px auto, auto;
  background-position: 50% 0, 0 0;
}

:focus-visible {
  outline: 2px solid var(--focus, var(--gold));
  outline-offset: 3px;
  border-radius: 4px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--foam);
  color: var(--abyss);
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
body:has(.nav[data-tone="light"]:not(.is-open)) .skip:focus-visible { outline-color: var(--ocean); }

.section-title {
  font-size: var(--fs-h2);
  max-width: 17ch;
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}

/* Headings wipe upward into view (JS adds .is-in; static without JS). */
.js [data-reveal] {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.35em);
  transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js [data-reveal].is-in {
  clip-path: inset(0 0 -0.2em 0);
  transform: none;
}
@media print {
  .js [data-reveal] { clip-path: none; transform: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 999px;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn:hover { background-color: color-mix(in srgb, currentColor 9%, transparent); border-color: currentColor; }
.btn:active { transform: translateY(1px) scale(0.985); }

.btn--solid {
  border-color: transparent;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 12px 30px -14px var(--btn-glow);
}
.btn--solid:hover {
  border-color: transparent;
  background-color: var(--btn-hover);
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -14px var(--btn-glow);
}

.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.15rem; font-size: 0.9375rem; }
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--foam);
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav { --focus: var(--gold); }
.nav[data-tone="light"] { color: var(--abyss); }
.nav[data-tone="light"]:not(.is-open) { --focus: var(--ocean); }
.nav.is-scrolled {
  background-color: rgb(6 26 36 / 0.55);
  border-bottom-color: rgb(242 245 243 / 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.nav.is-scrolled[data-tone="light"] {
  background-color: rgb(242 245 243 / 0.72);
  border-bottom-color: rgb(6 26 36 / 0.08);
}
.nav.is-open,
.nav.is-open[data-tone="light"] {
  background-color: var(--abyss);
  color: var(--foam);
  /* A backdrop-filter would make the nav the containing block for the fixed
     menu, shrinking it to the nav's height. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
/* The droplet mark: currentColor follows the nav tone; the sun dot stays gold. */
.brand__mark { flex: none; width: auto; height: 0.92em; translate: 0 -0.06em; }

.nav__primary { margin-left: auto; }
.nav__primary ul { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__primary a {
  position: relative;
  font-size: 0.9375rem;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav__primary a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__primary a:hover { opacity: 1; }
.nav__primary a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { --btn-bg: var(--gold); --btn-fg: var(--abyss); --btn-hover: var(--gold-bright); --btn-glow: rgb(227 169 72 / 0.45); }

.nav__toggle {
  display: none;
  margin-left: auto;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  overflow-y: auto;
  padding: 2rem var(--gutter) 3rem;
  background:
    radial-gradient(80% 60% at 100% 100%, rgb(227 169 72 / 0.12), transparent 70%),
    var(--abyss);
  color: var(--foam);
}
.menu ul { display: grid; gap: 0.25rem; }
.menu a {
  display: block;
  padding: 0.45rem 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-decoration: none;
}
html.menu-open { overflow: hidden; }

@media (max-width: 899px) {
  .nav__primary, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; }
}

/* ---------- Pinned scroll scenes ---------- */

.scene { position: relative; }
.scene.is-pinned { height: calc(var(--len, 4) * 100vh); }
.scene--4 { --len: 4; }
.scene--5 { --len: 5; }
.scene--6 { --len: 6; }

.is-pinned > .scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.ribbon,
.water {
  position: absolute;
  pointer-events: none;
}
[data-water-host]:not(.has-webgl) .water { display: none; }

/* Anchor links land with a pinned stage at y=0 (the stage clears the nav itself). */
.how:has(.is-pinned),
.tech:has(.is-horizontal) { scroll-margin-top: calc(-1 * var(--nav-h)); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  /* Shown until (or instead of) the live sea. */
  background:
    radial-gradient(40% 28% at 78% 62%, rgb(227 169 72 / 0.35), transparent 70%),
    linear-gradient(180deg, #061A24 0%, #0D3442 58%, #1A4250 62%, #0B2A35 66%, #061A24 100%);
}

.hero__water { inset: 0; width: 100%; height: 100%; z-index: -2; }

/* Legibility: darken behind the copy, and fade into the next section. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(6 26 36 / 0.62) 0%, rgb(6 26 36 / 0.25) 45%, transparent 70%),
    linear-gradient(180deg, transparent 72%, var(--abyss) 100%);
}

.hero__content {
  padding-top: calc(var(--nav-h) + clamp(2rem, 12vh, 9rem));
  padding-bottom: clamp(6rem, 18vh, 12rem);
}

.hero__title {
  max-width: 12ch;
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__lede {
  max-width: 38ch;
  margin-top: 2rem;
  color: rgb(242 245 243 / 0.78);
  font-size: var(--fs-lede);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero .btn:not(.btn--solid) { background-color: rgb(6 26 36 / 0.55); }
.hero .btn:not(.btn--solid):hover { background-color: rgb(6 26 36 / 0.72); }

@media (prefers-reduced-motion: no-preference) {
  .hero__title,
  .hero__lede,
  .hero__actions { animation: rise 1.4s var(--ease-out) both; }
  .hero__title { animation-delay: 0.15s; }
  .hero__lede { animation-delay: 0.35s; }
  .hero__actions { animation-delay: 0.5s; }
  .hero__water { animation: surface 2.4s var(--ease) both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
}
@keyframes surface {
  from { opacity: 0; }
}

.motion-toggle {
  position: absolute;
  right: var(--gutter);
  /* Stay on the first screen even when the hero is taller than it. */
  bottom: max(1.25rem, calc(100% - 100svh + 1.25rem));
  z-index: 1;
  min-height: 2.25rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgb(242 245 243 / 0.18);
  border-radius: 999px;
  background: rgb(6 26 36 / 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--mist);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.motion-toggle:hover { color: var(--foam); border-color: rgb(242 245 243 / 0.4); }
@media (max-height: 700px) {
  .motion-toggle { bottom: 1.25rem; }
}
html:not(.js) .motion-toggle { display: none; }
.motion-paused .schematic,
.motion-paused .schematic * { animation-play-state: paused !important; }

/* ---------- 3D story (home) ---------- */

/* Top edge of the active caption on phones, set by main.js; registered so the
   shade can follow it smoothly from caption to caption. */
@property --copy-top {
  syntax: '<length>';
  inherits: true;
  initial-value: 480px;
}

.scene--8 { --len: 8; }

.story__stage {
  position: relative;
  isolation: isolate;
  background: var(--abyss);
}
.story__fallback,
.story__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* The still is a capture of the 3D's opening frame (same camera, wide enough
   for any desktop shape), so the 3D takes over without a visible change. */
.story__fallback { object-fit: cover; object-position: 50% 50%; z-index: -3; transition: opacity 1.2s var(--ease); }
.story__canvas { z-index: -2; opacity: 0; transition: opacity 1.4s var(--ease); }
.story.is-3d .story__canvas { opacity: 1; }
.story.is-3d .story__fallback { opacity: 0; }
/* Phones in portrait get a portrait still (index.html <picture>), framed like
   the 3D: the unit in the top third, open water behind the captions. */
@media (max-width: 899px) and (orientation: portrait) {
  .story__fallback { object-position: 50% 0%; }
}

/* Legibility behind the copy column */
.story__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(6 26 36 / 0.72) 0%, rgb(6 26 36 / 0.35) 38%, transparent 62%),
    linear-gradient(180deg, rgb(6 26 36 / 0.35) 0%, transparent 18%, transparent 80%, rgb(6 26 36 / 0.6) 100%);
}
/* Desktop: a deep shade under the copy column, for the 3D and the still alike.
   On squarer windows (4:3, 5:4) the unit reaches behind the captions, so the
   shade, not the framing, is what keeps them above 4.5:1. */
@media (min-width: 900px) {
  .story .story__shade {
    background:
      linear-gradient(180deg, rgb(6 26 36 / 0.8) 0, rgb(6 26 36 / 0.8) var(--nav-h), transparent calc(var(--nav-h) * 2)),
      linear-gradient(90deg, rgb(6 26 36 / 0.88) 0%, rgb(6 26 36 / 0.8) 52%, transparent 74%),
      linear-gradient(180deg, rgb(6 26 36 / 0.35) 0%, transparent 18%, transparent 80%, rgb(6 26 36 / 0.6) 100%);
  }
}

.story__copy {
  position: relative;
  display: grid;
  align-items: center;
  height: 100%;
  padding-top: var(--nav-h);
}
.story__step { grid-area: 1 / 1; max-width: 34rem; }
.story__step h2 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.story__step p:not(.hero__lede) {
  max-width: 34ch;
  margin-top: 1.25rem;
  color: rgb(242 245 243 / 0.8);
  font-size: var(--fs-lede);
  line-height: 1.5;
}
.story__step--hero { max-width: 44rem; }

/* Captions that aren't on screen are only transparent, not hidden: screen
   readers still read all seven in order (the canvas and callouts are
   aria-hidden, so the captions are the story's text). Their links do leave the
   tab order, and pointer-events stop the stacked captions catching clicks. */
.is-pinned .story__step {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.5rem);
}
/* Only once a step is set: when the scene first pins, the stacked captions
   must vanish at once, not fade out over the opening one. */
.is-pinned[data-step] .story__step { transition: opacity 0.7s var(--ease), transform 0.9s var(--ease-out); }
.is-pinned .story__step.is-active,
.is-pinned:not([data-step]) .story__step--hero {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.is-pinned[data-step] .story__step:not(.is-active) .hero__actions { visibility: hidden; transition: visibility 0s linear 0.7s; }

/* Callouts: a gold dot on the part, a leader line, a label. JS positions them. */
.story__labels { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.callout {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  color: var(--foam);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  will-change: transform, opacity;
}
.callout::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: -0.275rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(227 169 72 / 0.25);
}
.callout { text-shadow: 0 0 2px rgb(6 26 36 / 0.95), 0 0 6px rgb(6 26 36 / 0.85), 0 1px 12px rgb(6 26 36 / 0.9); }
.callout.is-flipped { flex-direction: row-reverse; }
.callout.is-flipped::before { margin-left: 0; margin-right: -0.275rem; }

.story__tag {
  position: absolute;
  left: var(--gutter);
  bottom: 1.4rem;
  color: var(--mist);
  font-size: var(--fs-xs);
}
.story__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  height: 1px;
  margin-inline: auto;
  background: var(--rule);
  overflow: hidden;
}
.story__progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.story .motion-toggle { bottom: 2rem; }

/* Without pinning (short screens, zoom): a normal block with every step shown. */
.scene:not(.is-pinned) .story__stage { min-height: 100svh; }
.scene:not(.is-pinned) .story__canvas,
.scene:not(.is-pinned) .story__labels,
.scene:not(.is-pinned) .story__progress { display: none; }
.scene:not(.is-pinned) .story__fallback { opacity: 1; position: absolute; height: 100svh; }
.scene:not(.is-pinned) .story__copy { display: grid; gap: 4rem; height: auto; padding-block: calc(var(--nav-h) + 4rem) 6rem; }
.scene:not(.is-pinned) .story__step { grid-area: auto; }
.scene:not(.is-pinned) .story__step--hero { min-height: calc(100svh - var(--nav-h) - 8rem); }
.scene:not(.is-pinned) .story__tag {
  top: calc(var(--nav-h) + 0.5rem); bottom: auto; left: auto; right: var(--gutter); color: var(--foam);
  text-shadow: 0 0 2px rgb(6 26 36 / 0.95), 0 0 6px rgb(6 26 36 / 0.85), 0 1px 12px rgb(6 26 36 / 0.9);
}
/* Short desktop windows: the hero buttons reach the bottom edge, so the tag
   moves up and the (decorative) progress line steps aside. */
@media (min-width: 900px) and (max-height: 680px) {
  .is-pinned .story__tag {
    top: calc(var(--nav-h) + 0.5rem); bottom: auto; left: auto; right: var(--gutter); color: var(--foam);
    text-shadow: 0 0 2px rgb(6 26 36 / 0.95), 0 0 6px rgb(6 26 36 / 0.85), 0 1px 12px rgb(6 26 36 / 0.9);
  }
  .is-pinned .story__progress { display: none; }
}
.scene:not(.is-pinned) .motion-toggle { top: calc(var(--nav-h) + 2.25rem); bottom: auto; }

@media (max-width: 899px) {
  .story__shade {
    background: linear-gradient(180deg, rgb(6 26 36 / 0.25) 0%, transparent 30%, rgb(6 26 36 / 0.75) 62%, rgb(6 26 36 / 0.92) 100%);
  }
  .is-pinned .story__shade {
    background:
      linear-gradient(180deg, rgb(6 26 36 / 0.55) 0, rgb(6 26 36 / 0.3) var(--nav-h), transparent calc(var(--nav-h) * 2)),
      linear-gradient(180deg, transparent calc(var(--copy-top) - 5rem), rgb(6 26 36 / 0.78) calc(var(--copy-top) - 0.5rem), rgb(6 26 36 / 0.92) 100%);
    transition: --copy-top 0.7s var(--ease);
  }
  .scene:not(.is-pinned) .story__shade {
    background: linear-gradient(180deg, rgb(6 26 36 / 0.6) 0%, rgb(6 26 36 / 0.65) 30%, rgb(6 26 36 / 0.85) 62%, rgb(6 26 36 / 0.92) 100%);
  }
  .is-pinned .story__copy { align-items: end; padding-bottom: 4.5rem; }
  .story__step h2 { font-size: clamp(1.9rem, 1.2rem + 4vw, 2.6rem); }
}

.tech__more,
.service__more,
.team__more { margin-top: 2rem; }
.tech__intro .tech__more { margin-top: 1.75rem; }

/* ---------- Scarcity ---------- */

.scarcity__ribbon { inset: 0; width: 100%; height: 100%; }

.scarcity__inner {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding-block: calc(var(--nav-h) + 2rem) clamp(2rem, 6vh, 3.5rem);
}
.is-pinned .scarcity__inner { height: 100%; }
.scene:not(.is-pinned) .scarcity__inner { padding-block: 6rem; }

.scarcity__title {
  max-width: 24ch;
  color: var(--muted);
  font-size: var(--fs-h3);
  font-weight: 300;
  font-style: italic;
}

.facts { display: grid; align-self: center; }
.scene:not(.is-pinned) .facts { gap: 3rem; }

.fact p {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.2rem + 4.3vw, 5.75rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.fact strong { color: var(--accent); font-weight: 400; font-variant-numeric: lining-nums; }

.is-pinned .fact {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease-out), filter 0.8s var(--ease);
}
.is-pinned .fact.is-active { opacity: 1; transform: none; filter: none; }
.is-pinned .fact.is-past { transform: translateY(-2rem); }

.scarcity__meter {
  height: 1px;
  background: var(--rule);
  overflow: hidden;
}
.scarcity__meter span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.scene:not(.is-pinned) .scarcity__meter { display: none; }

/* ---------- Headlines ---------- */

.news {
  padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.news__title {
  max-width: 16ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--fs-h2);
}

.news__rows { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }

/* Static grid (no JS, reduced motion); JS switches to drifting rows. */
.news__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.news.is-drifting .news__row {
  display: flex;
  width: max-content;
  margin-inline: 0;
  padding-inline: var(--gutter);
  will-change: transform;
}
.news.is-drifting .news__row li { flex: none; width: clamp(16rem, 24vw, 23rem); }

.news__row blockquote {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.85rem;
  height: 100%;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid rgb(242 245 243 / 0.08);
  border-radius: 18px;
  background: linear-gradient(160deg, rgb(14 58 74 / 0.55), rgb(6 26 36 / 0.2));
  box-shadow: inset 0 1px 0 rgb(242 245 243 / 0.05);
}

.news__row p {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.news__row cite {
  color: var(--gold);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Legacy ---------- */

.legacy {
  --bg: var(--trench);
  padding-block: clamp(5rem, 11vw, 9rem) clamp(5rem, 12vw, 10rem);
}

.legacy__title {
  max-width: 20ch;
  font-size: var(--fs-h2);
}

.legacy__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.legacy__list > div {
  padding: 1.6rem 1.5rem 1.75rem;
  border: 1px solid rgb(242 245 243 / 0.08);
  border-radius: 20px;
  background: rgb(6 26 36 / 0.35);
}
.legacy__list dt {
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.legacy__list dd { max-width: 32ch; color: var(--muted); }

.legacy__turn {
  max-width: 22ch;
  margin-top: clamp(4.5rem, 10vw, 8rem);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.legacy__turn em { color: var(--gold); font-style: italic; }

@media (max-width: 760px) {
  .legacy__list { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */

.how[data-theme="dark"] { --bg: #0B3140; }
.how[data-theme="dark"] .how__body > p { color: #B4C5CA; }

.how__stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
}

/* Underwater light; fades out as the page surfaces into fresh water. */
.how__water {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: opacity 1.1s var(--ease);
}
.how[data-theme="light"] .how__water { opacity: 0; }

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: var(--nav-h);
}
.scene:not(.is-pinned) .how__grid { padding-block: 6rem; }

.how__title {
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem);
}

.how__steps { display: grid; gap: clamp(0.75rem, 2.2vh, 1.4rem); }

.how__step h3 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--fs-h3);
}

.how__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid currentColor;
  border-radius: 0.6rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.how__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.how__body > p {
  overflow: hidden;
  max-width: 40ch;
  padding-left: 2.8rem;
  color: var(--muted);
}
.how__body > p::before { content: ""; display: block; height: 0.4rem; }

.is-pinned .how__step { opacity: 0.62; transition: opacity 0.5s var(--ease); }
.is-pinned .how__step.is-active { opacity: 1; }
.is-pinned .how__step .how__body { grid-template-rows: 0fr; }
.is-pinned .how__step.is-active .how__body { grid-template-rows: 1fr; }
.is-pinned .how__step.is-past .how__num {
  background-color: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.is-pinned .how__step.is-active .how__num {
  background-color: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.how__figure { min-width: 0; }

.schematic {
  --stroke: color-mix(in srgb, var(--fg) 46%, transparent);
  width: 100%;
  height: auto;
  max-height: calc(100svh - var(--nav-h) - 5rem);
  fill: none;
  stroke: var(--stroke);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.schematic * { transition: stroke 0.6s, fill 0.6s, opacity 0.6s, stroke-width 0.4s; }

.schematic .sea { fill: color-mix(in srgb, var(--water) 13%, transparent); stroke: none; }
.schematic .seabed { stroke-dasharray: 2 7; }
.schematic .land { fill: color-mix(in srgb, var(--fg) 7%, transparent); stroke: none; }
.schematic .waves path { stroke: var(--water); }
.schematic .waves path:nth-child(2) { opacity: 0.7; }
.schematic .waves path:nth-child(3) { opacity: 0.45; }
.schematic .waves path:nth-child(4) { opacity: 0.25; }

.schematic .housing { fill: color-mix(in srgb, var(--bg) 72%, transparent); }
.schematic .cell-fill {
  fill: var(--hl);
  stroke: none;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.6);
  transition: transform 1.2s var(--ease), fill 0.6s;
}
.schematic .salt circle { fill: var(--muted); stroke: none; }
.schematic .sea-salt circle { fill: var(--stroke); stroke: none; opacity: 0.7; }
.schematic .fresh circle { fill: var(--fresh); stroke: none; opacity: 0; }
.schematic .energy { stroke: var(--hl); stroke-width: 2; stroke-dasharray: 3 7; opacity: 0; }
.schematic .flow { stroke: var(--fresh); stroke-width: 3; stroke-dasharray: 6 12; opacity: 0; }
.schematic .signal-line { stroke: var(--hl); stroke-dasharray: 2 8; opacity: 0; }
.schematic .signal-arc { opacity: 0.35; }

/* Step highlights: the scene sets data-step 0–3 */
[data-step="0"] .part--converter,
[data-step="1"] .part--store,
[data-step="1"] .part--sun,
[data-step="1"] .part--wind,
[data-step="2"] .part--membrane,
[data-step="3"] .part--pipe,
[data-step="3"] .part--signal { stroke: var(--hl); stroke-width: 2; }

[data-step="0"] .energy,
[data-step="1"] .energy { opacity: 1; }
[data-step="0"] .cell-fill { transform: scaleY(0.25); }
[data-step="1"] .cell-fill { transform: scaleY(0.92); }
[data-step="2"] .fresh circle,
[data-step="3"] .fresh circle { opacity: 1; }
[data-step="2"] .flow { opacity: 0.35; }
[data-step="3"] .flow,
[data-step="3"] .signal-line { opacity: 1; }
[data-step="3"] .signal-arc { opacity: 1; }
[data-step="3"] .salt circle { opacity: 0.25; }

@media (prefers-reduced-motion: no-preference) {
  .schematic .waves { animation: waves 7s linear infinite; }
  .schematic .unit { transform-origin: 320px 190px; animation: bob 5s ease-in-out infinite; }
  .schematic .energy { animation: dash 0.9s linear infinite; }
  .schematic .flow { animation: dash-long 1.2s linear infinite; }
  .schematic .signal-line { animation: dash 1.4s linear infinite; }
  [data-step="0"] .unit { animation-duration: 3.2s; }
  [data-step="2"] .salt circle { animation: rise-salt 2.6s var(--ease) infinite; }
  [data-step="2"] .salt circle:nth-child(2n) { animation-delay: 0.6s; }
  [data-step="2"] .salt circle:nth-child(3n) { animation-delay: 1.2s; }
  [data-step="2"] .fresh circle,
  [data-step="3"] .fresh circle { animation: drift 3s ease-in-out infinite; }
  .schematic .fresh circle:nth-child(2n) { animation-delay: 0.8s; }
}

@keyframes waves { to { transform: translateX(-160px); } }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(6px) rotate(0.8deg); }
}
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes dash-long { to { stroke-dashoffset: -36; } }
@keyframes rise-salt {
  0% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(-28px); opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.how__progress {
  height: 1px;
  margin-bottom: clamp(1.25rem, 4vh, 2.5rem);
  background: var(--rule);
  overflow: hidden;
}
.how__progress span {
  display: block;
  height: 100%;
  background: var(--hl);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.scene:not(.is-pinned) .how__progress { display: none; }

@media (max-width: 899px) {
  .how__grid {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1rem;
  }
  .how__figure { order: -1; }
  .schematic { max-height: 38svh; margin-inline: auto; }
  .how__title { margin-bottom: 1rem; font-size: 1.85rem; }
  .how__steps { gap: 0.6rem; }
  .how__step h3 { font-size: 1.25rem; }
  .how__body > p { padding-left: 2.8rem; font-size: 0.975rem; }
}

@media (max-width: 899px) and (max-height: 760px) {
  .schematic { max-height: 22svh; }
  .how__grid { gap: 0.5rem; }
}

/* ---------- Technology ---------- */

.tech__scene { position: relative; }

/* Default: a list (no JS, narrow or short screens). */
.tech__sticky { padding-block: clamp(5rem, 11vw, 9rem); }

.tech__track {
  display: grid;
  gap: 2.5rem;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.tech__intro { margin-bottom: 0.5rem; }
.tech__intro h2 { font-size: var(--fs-h2); }
.tech__intro p {
  max-width: 24ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: var(--fs-lede);
  line-height: 1.45;
}

.tech__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  column-gap: 1.25rem;
  padding: 1.75rem 1.5rem 1.9rem;
  border: 1px solid rgb(6 26 36 / 0.07);
  border-radius: 22px;
  background: linear-gradient(170deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.35));
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 24px 50px -32px rgb(14 58 74 / 0.35);
}
.tech__item h3 { margin-bottom: 0.6rem; font-size: var(--fs-h3); }
.tech__item p { max-width: 30ch; color: var(--muted); }

.glyph {
  grid-row: span 2;
  width: 4.5rem;
  height: 4.5rem;
  fill: none;
  stroke: var(--ocean);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph > circle:first-child { stroke: var(--brass); }

@media (min-width: 900px) {
  .tech__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .tech__intro { grid-column: 1 / -1; margin-bottom: 2rem; }
  .tech__item { display: block; }
  .tech__item .glyph { width: 5.5rem; height: 5.5rem; margin-bottom: 1.5rem; }
}

/* Horizontal: vertical scroll drives the track sideways. */
.is-horizontal .tech__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-block: 0;
  overflow: hidden;
}
.is-horizontal .tech__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1.25rem, 2vw, 2rem);
  width: max-content;
  margin-inline: 0;
  /* Line the first and last items up with the page's content width. */
  padding-inline: max(var(--gutter), (100% - var(--max)) / 2);
  will-change: transform;
}
.is-horizontal .tech__intro {
  flex: 0 0 clamp(18rem, 30vw, 30rem);
  align-self: center;
  margin: 0 clamp(1rem, 3vw, 3rem) 0 0;
}
.is-horizontal .tech__item { display: block; flex: 0 0 clamp(17rem, 23vw, 22rem); padding: 2rem 1.75rem 2.25rem; }
.is-horizontal .tech__item .glyph { width: 6.5rem; height: 6.5rem; margin-bottom: 2.5rem; }

/* ---------- Zero ---------- */

.zero__stage { display: grid; align-items: center; }
.scene:not(.is-pinned) .zero__stage { padding-block: 6rem; }
.is-pinned > .zero__stage { padding-top: var(--nav-h); }

.zero__line {
  display: grid;
  font-family: var(--serif);
  line-height: 0.92;
}

/* "Zero" is a window onto live water: the ink layer is foam with black text,
   blended with lighten, so only the letterforms show the canvas beneath. */
.zero__word {
  position: relative;
  isolation: isolate;
  justify-self: start;
  font-size: var(--fs-display);
  font-weight: 400;
  letter-spacing: -0.06em;
}
.zero__water { inset: 0; width: 100%; height: 100%; }
.zero__ink { position: relative; display: block; padding-right: 0.06em; color: var(--abyss); }
.zero__word.has-webgl .zero__ink {
  background: var(--foam);
  /* Covers the subpixel seam at the box edge, so the water never peeks out. */
  box-shadow: 0 0 0 2px var(--foam);
  color: #000;
  mix-blend-mode: lighten;
}

.zero__swap {
  display: grid;
  margin-top: 0.75rem;
  font-size: var(--fs-h1);
  font-weight: 300;
  letter-spacing: -0.035em;
}
.is-pinned .zero__swap > span { grid-area: 1 / 1; }

.is-pinned .zero__swap > span {
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(8px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out), filter 0.6s var(--ease);
}
.is-pinned .zero__swap > span.is-active { opacity: 1; transform: none; filter: none; }
.is-pinned .zero__swap > span.is-past { transform: translateY(-0.6em); }

.zero__more {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(5rem, 11vw, 9rem);
}

.zero__summary {
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.zero__gains { display: grid; align-content: start; }
.zero__gains li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
  font-weight: 500;
}
.zero__gains li:last-child { border-bottom: 1px solid var(--rule); }
.zero__gains li::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(227 169 72 / 0.18);
}

@media (max-width: 760px) {
  .zero__more { grid-template-columns: 1fr; }
}

/* ---------- Sectors ---------- */

.sectors,
.service,
.roadmap,
.team { padding-block: clamp(5.5rem, 11vw, 9.5rem); }

.sectors__list { counter-reset: none; }
.sectors__list li {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding-block: clamp(1.4rem, 2.6vw, 2rem);
  border-top: 1px solid var(--rule);
  transition: padding 0.4s var(--ease);
}
.sectors__list li:last-child { border-bottom: 1px solid var(--rule); }
.sectors__list h3 {
  font-size: clamp(1.6rem, 1.05rem + 2.1vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}
.sectors__list p { max-width: 36ch; color: var(--muted); }

@media (max-width: 760px) {
  .sectors__list li { grid-template-columns: 1fr; }
}

/* ---------- Water as a service ---------- */

.service__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.service__copy .section-title { margin-bottom: 1.5rem; }

.service__lede {
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--fs-lede);
  line-height: 1.5;
}

.service__facts { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.service__facts > div {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule);
}
.service__facts > div:last-child { border-bottom: 1px solid var(--rule); }
.service__facts dt {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}
.service__facts dd { color: var(--muted); }

.estimator {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid rgb(242 245 243 / 0.1);
  border-radius: 30px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgb(227 169 72 / 0.16), transparent 60%),
    linear-gradient(165deg, var(--ocean), var(--abyss) 85%);
  color: var(--foam);
  box-shadow:
    inset 0 1px 0 rgb(242 245 243 / 0.08),
    0 40px 80px -36px rgb(6 26 36 / 0.65);
}
.estimator h3 { margin-bottom: 0.75rem; font-size: var(--fs-h3); }
.estimator__label { color: var(--muted); font-size: 0.9375rem; }

.estimator__volume {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 1.6rem + 1.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}

.estimator__range {
  --fill: 33%;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.estimator__range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gold) var(--fill), rgb(242 245 243 / 0.22) var(--fill));
}
.estimator__range::-webkit-slider-thumb {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: calc(-0.75rem + 1px);
  border: 0;
  border-radius: 50%;
  background: var(--foam);
  box-shadow: 0 0 0 6px rgb(227 169 72 / 0.25), 0 6px 16px rgb(0 0 0 / 0.35);
  -webkit-appearance: none;
  appearance: none;
}
.estimator__range::-moz-range-track { height: 2px; background: rgb(242 245 243 / 0.22); }
.estimator__range::-moz-range-progress { height: 2px; background: var(--gold); }
.estimator__range::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--foam);
  box-shadow: 0 0 0 6px rgb(227 169 72 / 0.25), 0 6px 16px rgb(0 0 0 / 0.35);
}
.estimator__range:focus-visible { outline: none; }
.estimator__range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--gold); outline-offset: 3px; }
.estimator__range:focus-visible::-moz-range-thumb { outline: 2px solid var(--gold); outline-offset: 3px; }

.estimator__scale {
  display: flex;
  justify-content: space-between;
  margin-top: -0.4rem;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.estimator__result {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.estimator__cost {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.25rem + 1vw, 2.15rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.estimator__detail { margin-top: 0.35rem; color: var(--muted); font-size: 0.9375rem; }
.estimator__note { color: var(--muted); font-size: var(--fs-xs); }
.estimator .btn { justify-self: start; margin-top: 0.75rem; }

@media (max-width: 899px) {
  .service__grid { grid-template-columns: 1fr; }
  .estimator { position: static; }
}

@media (max-width: 560px) {
  .service__facts > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

.service__footnote {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- Roadmap ---------- */

.roadmap__list {
  --fill: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem clamp(1.25rem, 2.5vw, 2.5rem);
}
.roadmap__list::before,
.roadmap__list::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}
.roadmap__list::after {
  height: 2px;
  margin-top: -0.5px;
  background: linear-gradient(90deg, var(--brass), var(--gold));
  transform: scaleX(var(--fill));
  transform-origin: left;
}
html:not(.js) .roadmap__list { --fill: 1; }

.roadmap__stage { position: relative; }
.roadmap__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--fg);
  border-radius: 0.65rem;
  background: var(--foam);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.roadmap__stage.is-reached .roadmap__num,
html:not(.js) .roadmap__num {
  background: var(--abyss);
  border-color: var(--abyss);
  color: var(--gold);
  box-shadow: 0 8px 20px -8px rgb(6 26 36 / 0.5);
}
.roadmap__stage h3 { margin-bottom: 0.5rem; font-size: var(--fs-h3); }
.roadmap__stage p { color: var(--muted); font-size: 0.975rem; }

@media (max-width: 899px) {
  .roadmap__list { grid-template-columns: 1fr; gap: 2rem; }
  .roadmap__list::before,
  .roadmap__list::after {
    top: 0;
    bottom: 0;
    left: 1rem;
    right: auto;
    width: 1px;
    height: auto;
    margin: 0;
  }
  .roadmap__list::after {
    width: 2px;
    margin-left: -0.5px;
    background: linear-gradient(180deg, var(--brass), var(--gold));
    transform: scaleY(var(--fill));
    transform-origin: top;
  }
  .roadmap__stage { padding-left: 3.4rem; }
  .roadmap__num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Team ---------- */

/* 3 + 2: leadership, then engineering */
.team__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
}

.person__mark {
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 1.4rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(80% 80% at 100% 0%, rgb(227 169 72 / 0.22), transparent 60%),
    linear-gradient(160deg, var(--ocean), var(--abyss));
  box-shadow: inset 0 1px 0 rgb(242 245 243 / 0.1), 0 16px 32px -18px rgb(6 26 36 / 0.6);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.person h3 { font-size: var(--fs-h3); }
.person__role {
  margin: 0.25rem 0 0.8rem;
  color: var(--bronze);
  font-size: 0.9375rem;
  font-weight: 500;
}
.person p:last-child { max-width: 38ch; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 899px) {
  .team__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .team__list { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(7rem, 14vw, 11rem) clamp(5rem, 10vw, 8rem);
  background:
    radial-gradient(50% 30% at 22% 78%, rgb(227 169 72 / 0.22), transparent 70%),
    linear-gradient(180deg, #061A24 0%, #0B2F3C 70%, #061A24 100%);
}

.contact__water { inset: 0; width: 100%; height: 100%; z-index: -2; }
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--abyss) 0%, transparent 22%),
    linear-gradient(90deg, rgb(6 26 36 / 0.55), transparent 60%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact__title {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: var(--fs-h2);
}
.contact__copy p {
  max-width: 34ch;
  color: rgb(242 245 243 / 0.78);
  font-size: var(--fs-lede);
  line-height: 1.5;
}
.contact__copy .contact__direct { margin-top: 2rem; font-size: 1rem; }
.contact__direct a { color: var(--gold); }

.contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid rgb(242 245 243 / 0.14);
  border-radius: 30px;
  background: rgb(6 26 36 / 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(242 245 243 / 0.08), 0 40px 90px -40px rgb(0 0 0 / 0.7);
}

.field { display: grid; gap: 0.45rem; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: var(--fs-sm); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(242 245 243 / 0.4);
  border-radius: 14px;
  background: rgb(242 245 243 / 0.05);
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23E3A948' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  -webkit-appearance: none;
  appearance: none;
}
.field select option { background: var(--foam); color: var(--abyss); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgb(242 245 243 / 0.62); background-color: rgb(242 245 243 / 0.07); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}
.field [aria-invalid="true"] { border-color: var(--danger); }

.contact__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}
.contact__hint { color: var(--muted); font-size: var(--fs-sm); }
.contact__error { color: var(--danger); font-size: 0.9375rem; }
html:not(.js) .contact__form { display: none; }

@media (max-width: 899px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact__form { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  .hero::after {
    background:
      linear-gradient(90deg, rgb(6 26 36 / 0.62), rgb(6 26 36 / 0.45)),
      linear-gradient(180deg, transparent 72%, var(--abyss) 100%);
  }
  .contact::after {
    background:
      linear-gradient(180deg, var(--abyss) 0%, transparent 22%),
      linear-gradient(90deg, rgb(6 26 36 / 0.62), rgb(6 26 36 / 0.45));
  }
}

/* ==========================================================================
   Subpages: shared components (see tools/page-template.html)
   ========================================================================== */

.nav__primary a[aria-current="page"] { opacity: 1; }
.nav__primary a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--gold); }

/* Page hero: full-bleed image (or live water) with a scrim for the copy. */
.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: 82vh;
  min-height: 82svh;
  padding: calc(var(--nav-h) + 6rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(50% 40% at 80% 30%, rgb(227 169 72 / 0.18), transparent 70%),
    linear-gradient(180deg, var(--trench), var(--abyss));
}
.page-hero__media {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  width: 100%;
  height: calc(100% - 2px);
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(6 26 36 / 0.8) 0, rgb(6 26 36 / 0) calc(var(--nav-h) * 2)),
    linear-gradient(180deg, rgb(6 26 36 / 0.45) 0%, rgb(6 26 36 / 0.35) 40%, rgb(6 26 36 / 0.9) 86%, var(--abyss) 100%),
    linear-gradient(90deg, rgb(6 26 36 / 0.7) 0%, rgb(6 26 36 / 0.2) 65%);
}
/* Narrow screens: the copy spans the photo's bright right half too. */
@media (max-width: 560px) {
  .page-hero::after {
    background:
      linear-gradient(180deg, rgb(6 26 36 / 0.8) 0, rgb(6 26 36 / 0) calc(var(--nav-h) * 2)),
      linear-gradient(180deg, rgb(6 26 36 / 0.45) 0%, rgb(6 26 36 / 0.35) 40%, rgb(6 26 36 / 0.9) 86%, var(--abyss) 100%),
      linear-gradient(90deg, rgb(6 26 36 / 0.7) 0%, rgb(6 26 36 / 0.45) 100%);
  }
}
.crumbs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; color: var(--foam); font-size: var(--fs-sm); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.75rem, 1.4rem + 5vw, 6.5rem); line-height: 1; letter-spacing: -0.04em; }
.page-hero__lede {
  max-width: 46ch;
  margin-top: 1.75rem;
  color: rgb(242 245 243 / 0.82);
  font-size: var(--fs-lede);
  line-height: 1.55;
}
.page-hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  color: var(--mist);
  font-size: var(--fs-xs);
}

/* Section scaffolding */
.section { padding-block: clamp(5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}
.section-head h2 { font-size: var(--fs-h2); max-width: 16ch; }
.section-head p { max-width: 46ch; color: var(--muted); font-size: var(--fs-lede); line-height: 1.5; }

.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 2.25rem; font-size: var(--fs-h3); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 500; }
.prose ul { display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Text beside an image */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split + .split { margin-top: clamp(4rem, 9vw, 7rem); }
.split--reverse .media { order: -1; }
.split h2, .split h3 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.25rem); margin-bottom: 1.25rem; }

.media {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 4 / 3;
  background: var(--ocean);
  box-shadow: 0 40px 80px -40px rgb(6 26 36 / 0.55);
}
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media figcaption,
.media__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgb(6 26 36 / 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--foam);
  font-size: var(--fs-xs);
}

/* Linked cards with an image */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 899px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 561px) and (max-width: 899px) {
  .card-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.75rem); }
}
@media (max-width: 560px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg) 70%, white 30%);
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
[data-theme="dark"] .card { background: linear-gradient(165deg, rgb(14 58 74 / 0.6), rgb(6 26 36 / 0.3)); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgb(6 26 36 / 0.5); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: grid; gap: 0.6rem; padding: 1.5rem 1.5rem 1.75rem; }
.card__body h3 { font-size: var(--fs-h3); }
.card__body p { color: var(--muted); font-size: 0.975rem; }

/* Certifications, memberships and the standards we design to: official logos
   on white tiles (their own colours, as their brand rules ask), or a typeset
   mark where a logo can't be used (ISO forbids its logo for certification). */
.credentials__group + .credentials__group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.credentials__group h3 { margin-bottom: 1.25rem; font-size: var(--fs-h3); }
.credentials__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.credential {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  min-height: 7.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}
.credential img { width: auto; max-width: 82%; height: auto; max-height: 3rem; object-fit: contain; }
.credential img.is-white-logo { filter: brightness(0); opacity: 0.85; }
.credential img.is-badge { max-height: 4.5rem; } /* round certification marks read small at logo height */
.credential img.is-crest { max-height: 3.25rem; } /* only published at 80 px: kept small, with the name set below */
.credential__name { color: var(--abyss); font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; } /* a white-only logo, shown in its one-colour dark form */
.credential__mark { color: var(--abyss); font-family: var(--serif); font-size: 1.75rem; line-height: 1.05; letter-spacing: -0.02em; }
.credential__mark--name { font-size: 1.3rem; }
.credential__note { color: var(--slate); font-size: var(--fs-xs); line-height: 1.35; }
.credentials__disclaimer { max-width: 62ch; margin-top: 1rem; color: var(--muted); font-size: var(--fs-xs); }

/* Numbered process (only for real sequences) */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps > li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-variant-numeric: lining-nums;
  line-height: 1.1;
}
.steps h3 { font-size: var(--fs-h3); }
.steps p { color: var(--muted); max-width: 60ch; }

/* Definition rows: specs, figures */
.spec > div {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--rule);
}
.spec > div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.015em; }
.spec dd { color: var(--muted); }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--rule); }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.975rem; }
.compare th,
.compare td { padding: 1.1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare thead th { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.compare tbody th { color: var(--fg); font-weight: 500; width: 26%; }
.compare td { color: var(--muted); }
.compare .is-liv { background: color-mix(in srgb, var(--gold) 9%, transparent); color: var(--fg); }
.compare thead .is-liv { box-shadow: inset 0 3px 0 var(--gold); }
.compare tr:last-child > * { border-bottom: 0; }
@media (max-width: 47.9375rem) {
  .compare-wrap .compare { min-width: 0; table-layout: fixed; font-size: 0.875rem; }
  .compare th,
  .compare td { padding: 0.8rem 0.6rem; overflow-wrap: anywhere; hyphens: auto; }
  .compare thead th { font-size: 0.875rem; -webkit-hyphens: auto; hyphens: auto; }
}

/* Questions and answers, side by side (no accordion) */
.faq > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.75rem clamp(2rem, 5vw, 5rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.faq > div:last-child { border-bottom: 1px solid var(--rule); }
.faq dt { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }
.faq dd { color: var(--muted); }
.faq dd p + p { margin-top: 0.8em; }

/* Large statement */
.statement {
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 3.2vw, 4.25rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.statement + p { max-width: 52ch; margin-top: 1.5rem; color: var(--muted); font-size: var(--fs-lede); }

/* Closing call to action */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5.5rem, 11vw, 9rem);
  background:
    radial-gradient(45% 60% at 85% 100%, rgb(227 169 72 / 0.22), transparent 70%),
    linear-gradient(180deg, var(--abyss), var(--trench));
}
.cta-band h2 { max-width: 16ch; font-size: var(--fs-h2); }
.cta-band p { max-width: 44ch; margin-top: 1.25rem; color: var(--muted); font-size: var(--fs-lede); }
.cta-band .hero__actions { margin-top: 2.25rem; }

@media (max-width: 899px) {
  .section-head,
  .split,
  .faq > div { grid-template-columns: 1fr; }
  .split--reverse .media { order: 0; }
  .spec > div { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 4rem 2.5rem;
  border-top: 1px solid var(--rule);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: start;
}

.brand--footer { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 300; }
.brand--footer .brand__mark { height: 0.8em; }
.footer__tag { margin-top: 0.8rem; color: var(--muted); }

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.6rem 2.75rem;
}
.footer__links a { color: var(--muted); font-size: 0.9375rem; text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--gold); }

.footer__legal {
  grid-column: 1 / -1;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--fs-sm);
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-toggle { display: none; }
  .js [data-reveal] { clip-path: none; transform: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
