/* =========================================================
   Pump Tech Engineering — redesign
   Concept: aerate, then clarify. The page starts as a dark
   aeration tank and settles into clear water as you scroll.
   ========================================================= */

:root {
  /* Water, from tank to tap */
  --basin-deep: #061B21;
  --basin: #0A2A33;
  --basin-up: #124351;
  --clear: #EAF0EE;
  --plinth: #FFFFFF;
  --white: #F7FAF9;

  /* Ink and accents */
  --ink: #0B232A;
  --ink-2: #405C65;
  --aqua: #5ED6CA;      /* on dark */
  --teal: #0B6F68;      /* on light */
  --on-dark: #EAF0EE;
  --on-dark-2: #A9C1C3;
  --danger-dark: #FFB4A6;

  --line: rgba(11, 35, 42, 0.14);
  --line-strong: rgba(11, 35, 42, 0.32);
  --line-dark: rgba(234, 240, 238, 0.16);

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.3125rem;
  --fs-xl: clamp(1.75rem, 1.1rem + 2.2vw, 3.125rem);
  --fs-2xl: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);
  --fs-3xl: clamp(2.875rem, 1rem + 6.2vw, 6rem);

  /* Space */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 12vw, 176px);
  --radius: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--basin); }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
body {
  overflow-x: clip;
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--clear);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  caret-color: var(--teal);
}
img, svg, canvas { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
a, button, input, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[id] { scroll-margin-top: 80px; }
address { font-style: normal; }

::selection { background: var(--aqua); color: var(--basin-deep); }
html { scrollbar-color: var(--ink-2) var(--clear); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--clear); }
::-webkit-scrollbar-thumb { background: #8FA5AA; border-radius: 10px; border: 2px solid var(--clear); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[data-theme="dark"] :focus-visible, .hero :focus-visible, .contact :focus-visible, .footer :focus-visible, .menu :focus-visible { outline-color: var(--aqua); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--aqua); color: var(--basin-deep); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

.h2 {
  font-size: var(--fs-2xl);
  font-stretch: 118%;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.lede { font-size: var(--fs-l); line-height: 1.45; color: var(--ink-2); max-width: 38ch; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: var(--fs-s); font-weight: 600; font-stretch: 106%; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { padding-right: 8px; background: var(--aqua); color: var(--basin-deep); }
.btn--primary { --liquid: #B6F4ED; }
.btn__icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(6, 27, 33, 0.12);
  transition: transform 0.35s var(--ease-out);
}
.btn__icon svg { width: 18px; height: 18px; }
.btn--primary:hover .btn__icon { transform: translate(2px, 0) scale(1.06); }
.hero .btn--primary:hover .btn__icon { transform: translate(0, 2px) scale(1.06); }
.btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(234, 240, 238, 0.32); }
.btn--ghost:hover { background: rgba(234, 240, 238, 0.08); box-shadow: inset 0 0 0 1px rgba(234, 240, 238, 0.6); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color 0.2s;
}
.link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.link:hover svg { transform: translateX(3px); }
.link--light { color: var(--aqua); }
.link--light:hover svg { transform: translate(2px, -2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--on-dark);
  transition: transform 0.5s var(--ease-out), color 0.3s;
}
.nav.is-hidden { transform: translateY(-120%); }
.nav__bar {
  display: flex; align-items: center; gap: 28px;
  width: min(100% - 24px, 1400px); margin: 12px auto 0;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.nav.is-scrolled .nav__bar {
  background: rgba(10, 42, 51, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}
.nav[data-theme="light"] { color: var(--ink); }
.nav[data-theme="light"].is-scrolled .nav__bar {
  background: rgba(247, 250, 249, 0.78);
  box-shadow: 0 10px 30px -18px rgba(11, 35, 42, 0.35), inset 0 0 0 1px rgba(11, 35, 42, 0.06);
}
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 42px; width: auto; transition: filter 0.3s; }
.nav[data-theme="dark"] .nav__logo img { filter: brightness(0) invert(1); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px;
  font-size: var(--fs-s); font-weight: 500; text-decoration: none;
  transition: background-color 0.2s;
}
.nav__links a:hover { background: rgba(127, 160, 166, 0.16); }
.nav__cta { background: var(--aqua); color: var(--basin-deep); }
.nav__cta { --liquid: #B6F4ED; }
.nav[data-theme="light"] .nav__cta { background: var(--ink); color: var(--clear); }
.nav[data-theme="light"] .nav__cta { --liquid: #12746C; }
.nav__toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(127, 160, 166, 0.18); cursor: pointer; place-items: center;
}
.nav__toggle-lines { position: relative; display: block; width: 18px; height: 10px; }
.nav__toggle-lines span {
  position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav__toggle-lines span:first-child { top: 0; }
.nav__toggle-lines span:last-child { top: 8.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines span:first-child { top: 4.25px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines span:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  background: rgba(6, 27, 33, 0.94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--on-dark);
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  font-size: clamp(2.25rem, 9vw, 3.5rem); font-stretch: 120%; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: none;
}
.menu__foot { display: grid; gap: 8px; color: var(--on-dark-2); }
.menu__foot a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: end;
  background: radial-gradient(120% 80% at 70% 0%, #165262 0%, var(--basin) 45%, #082128 100%);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { position: relative; padding: 128px 0 112px; display: grid; gap: clamp(28px, 4vw, 56px); }
.hero__title {
  font-size: min(var(--fs-3xl), 13.5vh);
  font-stretch: 125%;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 11.5em;
  text-wrap: wrap;
}
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px; }
.hero__lede { max-width: 46ch; font-size: var(--fs-l); line-height: 1.45; color: var(--on-dark-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: var(--fs-xs); color: var(--on-dark-2);
  padding-top: 18px; border-top: 1px solid var(--line-dark);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { position: relative; display: block; width: 1px; height: 18px; background: var(--line-dark); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--aqua);
  animation: drip 1.8s var(--ease-in-out) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Clarify ---------- */
.clarify { position: relative; background: var(--clear); }
.clarify__sticky { position: relative; display: grid; align-items: center; padding: var(--section) 0; }
.clarify__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.clarify__text {
  position: relative;
  font-size: clamp(1.75rem, 0.9rem + 3vw, 3.75rem);
  font-stretch: 108%;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.022em;
  max-width: 30ch;
}
.js .clarify { height: 230vh; }
.js .clarify__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0;
  background: var(--clarify-bg, var(--clear));
  color: var(--clarify-fg, var(--ink));
}

/* ---------- Process line ---------- */
.process { background: var(--clear); }
.process__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px 64px;
  padding: var(--section) 0 clamp(48px, 6vw, 80px);
}
.process__head .h2 { max-width: 13em; }

.pipe { padding: 26px 0 18px; }
.pipe__inner { position: relative; }
.pipe__track { position: absolute; left: 0; right: 0; top: 3.5px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.pipe__fill {
  position: absolute; inset: 0; transform: scaleX(0); transform-origin: left center;
  background: repeating-linear-gradient(90deg, var(--teal) 0 16px, #3AA79C 16px 22px);
  animation: pipe-flow 0.7s linear infinite; /* water visibly moving down the line */
}
@keyframes pipe-flow { to { background-position: 22px 0; } }
.pipe__stations { display: grid; grid-template-columns: repeat(5, 1fr); }
.pipe__stations li { position: relative; }
.pipe__stations li:last-child { text-align: right; }
.pipe__stations li:nth-child(2), .pipe__stations li:nth-child(3), .pipe__stations li:nth-child(4) { text-align: center; }
.pipe__stations button {
  position: relative; padding: 22px 0 0; border: 0; background: none; cursor: pointer;
  font-size: var(--fs-s); font-weight: 500; color: var(--ink-2);
  transition: color 0.3s;
}
.pipe__stations button::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--clear); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out);
}
.pipe__stations li:first-child button::before { left: 6px; }
.pipe__stations li:last-child button::before { left: auto; right: 0; margin: 0; }
.pipe__stations button.is-active { color: var(--ink); font-weight: 600; }
.pipe__stations button.is-passed::before, .pipe__stations button.is-active::before { background: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.pipe__stations button.is-active::before { transform: scale(1.35); box-shadow: 0 0 0 5px rgba(11, 111, 104, 0.16); }
.pipe { display: none; }

.process__track { display: block; }
.job {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px clamp(40px, 6vw, 96px);
  width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto;
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.job__text { display: grid; gap: 20px; align-content: center; }
.job__text > p:not(.job__sub) { color: var(--ink-2); max-width: 44ch; }
.job__title {
  font-size: clamp(2.25rem, 1rem + 5.6vw, 5.5rem);
  font-stretch: 125%; font-weight: 650; line-height: 0.9; letter-spacing: -0.035em;
}
.job__sub { font-size: var(--fs-l); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.brands { display: grid; margin-top: 4px; }
.brands > div {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.brands > div:last-child { border-bottom: 1px solid var(--line); }
.brands dt { font-weight: 600; font-stretch: 110%; }
.brands dd { font-size: var(--fs-s); color: var(--ink-2); }
.brands .brands__origin { font-size: var(--fs-xs); color: var(--ink-2); text-align: right; }
.job .link { justify-self: start; margin-top: 4px; }

/* Product stage: products stand on a floor line, with drawing callouts */
.job__stage { position: relative; height: clamp(360px, 62vh, 600px); }
.job__stage::before {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}
.product { position: absolute; bottom: 14%; z-index: 1; }
.product img { width: 100%; height: auto; position: relative; z-index: 1; }
.product::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -12px; height: 24px; z-index: 0;
  background: radial-gradient(closest-side, rgba(11, 35, 42, 0.26), rgba(11, 35, 42, 0));
}
/* White-background photos sit on a white catalogue plate instead of
   relying on blend modes (unreliable inside the pinned, transformed track). */
.product--white {
  padding: 4% 5%; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(11, 35, 42, 0.06), 0 26px 44px -26px rgba(11, 35, 42, 0.4);
}
.product--white img { border-radius: 8px; }
.product--white::after { display: none; }
.process__pin, .process__track { background: var(--clear); }

/* Aeration */
.p-a1 { left: 0; width: 25%; }
.p-a2 { left: 27%; width: 40%; z-index: 2; }
.p-a3 { right: 0; width: 26%; }
/* Dosing */
.p-d1 { left: 0; width: 24%; }
.p-d2 { left: 25%; width: 22%; z-index: 2; }
.p-d3 { left: 49%; width: 23%; }
.p-d4 { right: 0; width: 24%; }
/* Transfer */
.p-t1 { left: 12%; width: 62%; }
/* Dewatering */
.p-w1 { left: 0; width: 80%; z-index: 2; }
.p-w2 { right: 0; bottom: 60%; width: 44%; }
.p-w2::after { display: none; }
/* Measurement */
.p-m1 { left: 10%; width: 30%; }
.p-m2 { left: 50%; width: 36%; }

.callout { position: absolute; left: 58%; top: 10%; z-index: 3; width: 0; height: 0; font-size: var(--fs-xs); color: var(--ink); }
.callout::before {
  content: ""; position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(11, 111, 104, 0.16);
}
.callout span {
  position: absolute; left: 0; bottom: var(--lead, 34px); white-space: nowrap;
  padding: 0 18px 6px 0; border-bottom: 1px solid var(--line-strong);
  font-weight: 500;
}
.callout span::before {
  content: ""; position: absolute; left: 0; bottom: calc(var(--lead, 34px) * -1); width: 1px; height: var(--lead, 34px); background: var(--line-strong);
  transform-origin: bottom;
}
.callout--left span { left: auto; right: 0; padding: 0 0 6px 18px; text-align: right; }
.callout--left span::before { left: auto; right: 0; }
.p-a1 .callout { left: 50%; top: 4%; }
.p-a2 .callout { left: 62%; top: 22%; }
.p-a3 .callout { left: 40%; top: 6%; }
.p-d1 .callout { left: 40%; top: 30%; --lead: 56px; }
.p-d2 .callout { left: 50%; top: 18%; --lead: 92px; }
.p-d3 .callout { left: 44%; top: 20%; --lead: 30px; }
.p-d4 .callout { left: 30%; top: 8%; --lead: 40px; }
.p-t1 .callout { left: 72%; top: 22%; --lead: 48px; }
.p-w1 .callout { left: 26%; top: 20%; --lead: 60px; }
.p-w2 .callout { left: 30%; top: 30%; }
.p-m1 .callout { left: 50%; top: 18%; }
.p-m2 .callout { left: 48%; top: 30%; }

/* Callouts draw in when their job is in view (JS adds .is-active) */
.js .job .callout::before { transform: scale(0); transition: transform 0.4s var(--ease-out); }
.js .job .callout span { opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.js .job .callout span::before { transform: scaleY(0); transition: transform 0.5s var(--ease-out); }
.js .job.is-active .callout::before { transform: scale(1); }
.js .job.is-active .callout span { opacity: 1; transform: none; transition-delay: 0.25s; }
.js .job.is-active .callout span::before { transform: scaleY(1); transition-delay: 0.1s; }
.js .job.is-active .product:nth-child(2) .callout span { transition-delay: 0.38s; }
.js .job.is-active .product:nth-child(3) .callout span { transition-delay: 0.5s; }
.js .job.is-active .product:nth-child(4) .callout span { transition-delay: 0.62s; }

/* Pinned horizontal mode (desktop, set by JS) */
.is-pinned .process__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: 72px; }
.is-pinned .pipe { display: block; flex: none; }
.is-pinned .process__track { display: flex; flex: 1; width: max-content; will-change: transform; }
.is-pinned .job {
  flex: none; width: 100vw; height: 100%; margin: 0; border: 0;
  padding: 0 max(var(--gutter), calc((100vw - 1360px) / 2));
}

/* ---------- Full range ---------- */
.range { padding: var(--section) 0; background: var(--clear); }
.range__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px 64px; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-s); font-weight: 500;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--clear); box-shadow: none; }
.chip__n { font-size: var(--fs-xs); opacity: 0.7; }
.chip:active { transform: scale(0.97); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 44px 24px; }
.tile { position: relative; }
.tile[hidden] { display: none; }
.tile__img {
  position: relative; aspect-ratio: 1 / 0.9; display: grid; place-items: center; padding: 13%;
  border-radius: var(--radius); background: var(--plinth); overflow: hidden;
  transition: box-shadow 0.5s var(--ease-out);
}
.tile__img img {
  position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}
.tile__img { box-shadow: 0 1px 2px rgba(11, 35, 42, 0.05), 0 18px 36px -28px rgba(11, 35, 42, 0.35); }
.tile__name { margin-top: 16px; font-size: var(--fs-m); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.tile__brand { margin-top: 2px; font-size: var(--fs-s); color: var(--ink-2); }
.tile__ask {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--clear); font-size: 0.8125rem; font-weight: 600;
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out), background-color 0.2s;
}
.tile__ask { --liquid: #12746C; }
@media (hover: hover) {
  .tile:hover .tile__img { box-shadow: 0 1px 2px rgba(11, 35, 42, 0.05), 0 26px 44px -26px rgba(11, 35, 42, 0.45); }
  .tile:hover .tile__img img { transform: translateY(-6px) scale(1.04); }
  .tile__ask { opacity: 0; transform: translateY(-4px); }
  .tile:hover .tile__ask, .tile__ask:focus-visible { opacity: 1; transform: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(40px, 6vw, 72px) 0; border-block: 1px solid var(--line); background: var(--clear); }
.marquee__inner { display: flex; width: max-content; }
.marquee__inner li {
  display: flex; align-items: center;
  font-size: clamp(2.5rem, 1.2rem + 5vw, 6rem); font-stretch: 125%; font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  white-space: nowrap; color: var(--ink);
}
.marquee__inner li::after {
  content: ""; flex: none; width: 0.28em; height: 0.28em; margin: 0 0.5em; border-radius: 50%;
  box-shadow: inset 0 0 0 0.05em var(--teal);
}

/* ---------- Partners ---------- */
.partners { padding: var(--section) 0; background: var(--clear); }
.partners__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px 64px; }
.partners__head .h2 { max-width: 14em; }
.flow {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 0.75fr) minmax(0, 1fr);
  align-items: center; gap: 0 clamp(56px, 9vw, 160px); margin-top: clamp(56px, 7vw, 96px);
}
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow__lines .base { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.flow__lines .pulse { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 14; animation: flow 1.4s linear infinite; opacity: 0; transition: opacity 0.6s; }
.flow.is-flowing .flow__lines .pulse { opacity: 0.9; }
@keyframes flow { to { stroke-dashoffset: -15; } }
.flow__col { position: relative; z-index: 1; display: grid; gap: 14px; }
.node {
  padding: 16px 20px; border-radius: var(--radius); background: var(--white);
  box-shadow: 0 1px 2px rgba(11, 35, 42, 0.06), 0 14px 30px -20px rgba(11, 35, 42, 0.35);
}
.node__country { display: block; font-weight: 600; font-stretch: 108%; }
.node__brands { display: block; margin-top: 2px; font-size: var(--fs-s); color: var(--ink-2); }
.hub {
  display: grid; justify-items: center; gap: 14px; padding: 36px 28px; border-radius: 22px;
  background: var(--basin); color: var(--on-dark-2); text-align: center; font-size: var(--fs-s);
  box-shadow: 0 30px 60px -30px rgba(6, 27, 33, 0.7);
}
.hub img { width: 100%; max-width: 190px; height: auto; filter: brightness(0) invert(1); }

/* ---------- About ---------- */
.about { padding: var(--section) 0; background: var(--clear); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(56px, 7vw, 104px) 24px; }
.about__intro { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px 64px; }
.about__intro p { color: var(--ink-2); max-width: 46ch; }
.quote { grid-column: 1 / 9; }
.quote + .quote { grid-column: 5 / 13; }
.quote__text {
  font-size: var(--fs-xl); font-weight: 450; font-stretch: 104%; line-height: 1.2; letter-spacing: -0.02em;
  text-wrap: wrap; /* SplitText measures lines; balance or pretty would re-wrap after the split */
}
.quote figcaption { margin-top: 20px; font-size: var(--fs-s); font-weight: 600; color: var(--teal); }
.promise { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.promise > div { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.promise dt { font-weight: 600; font-stretch: 108%; }
.promise dd { margin-top: 6px; font-size: var(--fs-s); color: var(--ink-2); max-width: 32ch; }

/* ---------- Contact ---------- */
.contact {
  padding: var(--section) 0 clamp(80px, 9vw, 128px);
  position: relative;
  background:
    radial-gradient(80% 60% at 12% 35%, rgba(22, 82, 98, 0.85) 0%, rgba(22, 82, 98, 0) 70%),
    linear-gradient(180deg, var(--basin) 0%, var(--basin-deep) 100%);
  color: var(--on-dark);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px clamp(48px, 7vw, 112px); align-items: start; }
.contact__title { font-size: var(--fs-3xl); font-stretch: 125%; font-weight: 600; line-height: 0.95; letter-spacing: -0.035em; }
.contact .lede { color: var(--on-dark-2); margin-top: 28px; }
.details { display: grid; gap: 22px; margin-top: 48px; }
.details li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; }
.details svg { width: 22px; height: 22px; margin-top: 2px; color: var(--aqua); }
.details__k { display: block; font-size: var(--fs-xs); color: var(--on-dark-2); }
.details a:not(.link) { text-decoration: underline; text-decoration-color: rgba(234, 240, 238, 0.35); text-underline-offset: 4px; }
.details a:not(.link):hover { text-decoration-color: var(--aqua); }
.details address { margin-bottom: 8px; }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px;
  padding: clamp(24px, 3vw, 40px); border-radius: 24px;
  background: rgba(234, 240, 238, 0.045); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-s); font-weight: 500; color: var(--on-dark); }
.field .opt { font-weight: 400; color: var(--on-dark-2); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 12px;
  background: rgba(234, 240, 238, 0.06); box-shadow: inset 0 0 0 1px rgba(234, 240, 238, 0.2);
  color: var(--on-dark); caret-color: var(--aqua);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #87A3A7; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(234, 240, 238, 0.36); }
.field input:focus, .field textarea:focus { outline: none; background: rgba(234, 240, 238, 0.09); box-shadow: inset 0 0 0 1.5px var(--aqua), 0 0 0 4px rgba(94, 214, 202, 0.16); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger-dark); }
.field__error { min-height: 0; font-size: var(--fs-xs); color: var(--danger-dark); }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form__note { font-size: var(--fs-s); color: var(--on-dark-2); max-width: 40ch; }
.form__note.is-ok { color: var(--aqua); }

/* ---------- Footer ---------- */
.footer { background: var(--basin-deep); color: var(--on-dark-2); padding: 40px 0; font-size: var(--fs-s); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px 40px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.footer__logo { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); }
.footer__top svg { width: 16px; height: 16px; transform: rotate(-45deg); }

/* ---------- Initial states for JS-driven reveals ---------- */
.js .hero__title, .js .hero__foot, .js .hero__meta { visibility: hidden; }
.js.reveal-ready .hero__title, .js.reveal-ready .hero__foot, .js.reveal-ready .hero__meta { visibility: visible; }
/* SplitText line masks: give descenders room so they are not clipped */
.hero__title [class*="mask"], .quote__text [class*="mask"] { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brands > div { grid-template-columns: 7rem minmax(0, 1fr) auto; }
  .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav__bar { padding: 8px 8px 8px 14px; gap: 12px; }
  .nav__logo img { height: 36px; }

  .hero__inner { padding: 18vh 0 120px; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__meta span:nth-child(2) { display: none; }

  .process__head, .range__head, .partners__head, .about__intro { grid-template-columns: 1fr; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .job__stage { height: clamp(230px, 60vw, 440px); margin-top: 8px; }

  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__lines { display: none; }
  .flow__hub { padding: 48px 0; justify-items: center; }
  .flow__hub::before, .flow__hub::after {
    content: ""; position: absolute; left: 50%; width: 2px; height: 48px; margin-left: -1px;
    background: repeating-linear-gradient(to bottom, var(--teal) 0 2px, transparent 2px 10px);
  }
  .flow__hub::before { top: 0; }
  .flow__hub::after { bottom: 0; }
  .hub { width: min(100%, 320px); }

  .quote, .quote + .quote { grid-column: 1 / -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 560px) {
  .brands > div { grid-template-columns: minmax(0, 1fr) auto; }
  .brands dd:not(.brands__origin) { grid-column: 1 / -1; grid-row: 2; }
  .brands .brands__origin { grid-column: 2; grid-row: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .tile__ask { top: 8px; right: 8px; min-height: 32px; padding: 0 12px; }
  .tile__name { font-size: var(--fs-s); }
  .tile__brand { font-size: var(--fs-xs); }
  .promise { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .callout { display: none; } /* labels crowd small stages; names live in the brand list and the range grid */
}

.reduced .clarify { height: auto; }
.reduced .clarify__sticky { position: relative; height: auto; padding: var(--section) 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee__inner { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .marquee__inner li[aria-hidden="true"] { display: none; }
}

/* =========================================================
   Intro loader: priming the line
   ========================================================= */
.intro { display: none; }
.intro-on body { overflow: hidden; }
.intro-on .intro, .intro.is-flooding {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 40%, #0C2F38 0%, var(--basin-deep) 70%);
  color: var(--on-dark);
}
.intro__inner { width: min(100% - 2 * var(--gutter), 680px); display: grid; justify-items: center; gap: 28px; }
.intro__logo { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.intro__plant { width: 100%; height: auto; overflow: visible; }
.intro__line { fill: none; stroke: rgba(234, 240, 238, 0.3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.intro__casing { stroke: rgba(234, 240, 238, 0.45); }
.intro__flow { fill: none; stroke: var(--aqua); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 12; animation: intro-flow 0.9s linear infinite; opacity: calc(0.25 + var(--p, 0) * 0.75); }
@keyframes intro-flow { to { stroke-dashoffset: -14; } }
.intro__lobe { fill: none; stroke: var(--aqua); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; }
.intro__lobe--a { animation: lobe-cw 1.1s linear infinite; }
.intro__lobe--b { animation: lobe-ccw 1.1s linear infinite; transform: rotate(90deg); }
@keyframes lobe-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lobe-ccw { from { transform: rotate(90deg); } to { transform: rotate(-270deg); } }
.intro__hub { fill: var(--aqua); }
.intro__gauge { fill: rgba(6, 27, 33, 0.9); stroke: rgba(234, 240, 238, 0.45); stroke-width: 1.5; }
.intro__ticks { fill: none; stroke: rgba(234, 240, 238, 0.45); stroke-width: 1.2; stroke-linecap: round; }
.intro__needle {
  stroke: var(--aqua); stroke-width: 1.8; stroke-linecap: round;
  transform: rotate(calc(-120deg + var(--p, 0) * 240deg)); transform-origin: 0 0;
}
.intro__wave { animation: intro-wave 1.6s linear infinite; }
.intro__wave--tank { animation-duration: 2.2s; }
@keyframes intro-wave { to { transform: translateX(-60px); } }
.intro__intake-level { transform: translateY(calc(100px + var(--p, 0) * 78px)); }
.intro__tank-level { transform: translateY(calc(214px - var(--p, 0) * 124px)); }
.intro__bubbles { opacity: clamp(0, calc(var(--p, 0) * 3 - 0.4), 1); }
.intro__bubbles circle { fill: rgba(234, 255, 250, 0.85); transform-box: fill-box; animation: intro-bubble 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.intro__bubbles circle:nth-child(2n) { animation-duration: 1.25s; animation-delay: -0.4s; }
.intro__bubbles circle:nth-child(3n) { animation-duration: 1.9s; animation-delay: -0.9s; }
@keyframes intro-bubble { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(4px, -118px); opacity: 0; } }
.intro__diffuser { stroke: rgba(234, 240, 238, 0.55); stroke-width: 3; }

.intro__status { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--fs-s); color: var(--on-dark-2); }
.intro__label { transition: opacity 0.25s; }
.intro__pct { font-stretch: 112%; font-weight: 600; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.intro__bar { width: 100%; height: 2px; margin-top: -16px; background: rgba(234, 240, 238, 0.14); border-radius: 2px; overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: var(--aqua); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* The flood: water rises over everything and becomes the hero tank */
.intro__flood {
  position: absolute; left: 0; right: 0; bottom: 0; height: 115%;
  background: linear-gradient(180deg, #165262 0%, #0E3843 45%, #0A2A33 100%);
  transform: translateY(calc(100% + 60px)); pointer-events: none;
}
/* wavy crest riding on top of the flood */
.intro__flood-edge {
  position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 44px; background: #165262;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 44'%3E%3Cpath d='M0 22 Q60 0 120 22 T240 22 V44 H0 Z'/%3E%3C/svg%3E") 0 0 / 240px 44px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 44'%3E%3Cpath d='M0 22 Q60 0 120 22 T240 22 V44 H0 Z'/%3E%3C/svg%3E") 0 0 / 240px 44px repeat-x;
  animation: flood-edge 1.1s linear infinite;
}
@keyframes flood-edge { to { -webkit-mask-position: 240px 0; mask-position: 240px 0; } }
.intro.is-flooding .intro__flood { transform: translateY(0); transition: transform 1.05s cubic-bezier(0.7, 0, 0.25, 1); }
.intro.is-flooding .intro__inner { opacity: 0; transform: translateY(-24px); transition: opacity 0.5s 0.15s, transform 0.8s cubic-bezier(0.7, 0, 0.25, 1); }
.intro.is-done { opacity: 0; transition: opacity 0.6s ease-out; pointer-events: none; }

@media (max-width: 560px) {
  .intro__inner { gap: 22px; }
  .intro__logo { height: 32px; }
}


/* =========================================================
   Water interactions
   ========================================================= */
/* Click ripples sit above content, under the nav */
.ripples { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 48; pointer-events: none; }

/* Liquid fill: buttons fill with a waterline on hover */
.btn--primary, .nav__cta { position: relative; }
.btn--primary, .nav__cta, .tile__ask { isolation: isolate; overflow: hidden; }
.btn--primary::before, .nav__cta::before, .tile__ask::before {
  content: ""; position: absolute; z-index: -1; left: -10%; width: 120%; top: 100%; height: 150%;
  background: var(--liquid);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 Q20 0 40 6 T80 6 V12 H0 Z'/%3E%3C/svg%3E") 0 0 / 80px 12px repeat-x, linear-gradient(#000 0 0) 0 11px / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 Q20 0 40 6 T80 6 V12 H0 Z'/%3E%3C/svg%3E") 0 0 / 80px 12px repeat-x, linear-gradient(#000 0 0) 0 11px / 100% 100% no-repeat;
  transition: transform 0.7s var(--ease-out);
  animation: liquid-x 1.3s linear infinite;
  animation-play-state: paused;
}
@media (hover: hover) {
  .btn--primary:hover::before, .nav__cta:hover::before, .tile__ask:hover::before { transform: translateY(-58%); animation-play-state: running; }
}
.btn--primary:focus-visible::before, .nav__cta:focus-visible::before, .tile__ask:focus-visible::before { transform: translateY(-58%); animation-play-state: running; }
@keyframes liquid-x {
  to { -webkit-mask-position: 80px 0, 0 11px; mask-position: 80px 0, 0 11px; }
}

/* Scroll level gauge */
.gauge {
  --g-line: rgba(234, 240, 238, 0.45); --g-water: var(--aqua); --g-glass: rgba(234, 240, 238, 0.06);
  position: fixed; right: 22px; bottom: 26px; z-index: 46;
  display: grid; place-items: center; width: 30px; height: 136px; border-radius: 999px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.gauge[data-theme="light"] { --g-line: var(--line-strong); --g-water: var(--teal); --g-glass: rgba(11, 35, 42, 0.04); }
.gauge.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.gauge__tube {
  position: relative; display: block; width: 10px; height: 118px; border-radius: 999px; overflow: hidden;
  background: var(--g-glass); box-shadow: inset 0 0 0 1px var(--g-line);
  transition: transform 0.3s var(--ease-out);
}
.gauge:hover .gauge__tube { transform: scaleX(1.25); }
.gauge__water {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--level, 0) * 100%);
  background: var(--g-water); transition: height 0.18s linear, background-color 0.3s;
}
.gauge__water::before {
  content: ""; position: absolute; left: -12px; width: 40px; height: 5px; top: -4px; background: var(--g-water);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 5'%3E%3Cpath d='M0 2.5 Q3 0 6 2.5 T12 2.5 V5 H0 Z'/%3E%3C/svg%3E") 0 0 / 12px 5px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 5'%3E%3Cpath d='M0 2.5 Q3 0 6 2.5 T12 2.5 V5 H0 Z'/%3E%3C/svg%3E") 0 0 / 12px 5px repeat-x;
  animation: gauge-wave 0.9s linear infinite;
}
.gauge__water::after {
  content: ""; position: absolute; left: 3px; bottom: 2px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.75); animation: gauge-bubble 2.2s ease-in infinite;
}
@keyframes gauge-wave { to { transform: translateX(12px); } }
@keyframes gauge-bubble { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }
@media (max-width: 900px) { .gauge { display: none; } }

/* Sloshing waterline on top of the contact section */
.slosh { position: absolute; left: 0; top: -119px; width: 100%; height: 120px; display: block; pointer-events: none; overflow: visible; }
.slosh path { fill: var(--basin); }

/* =========================================================
   Video: scroll-scrubbed tank, film band, contact loop
   ========================================================= */
/* Clarify: the tank clears as you scroll; a dim layer lifts and a side
   shade keeps the statement readable at every stage */
.clarify__media { position: absolute; inset: 0; overflow: hidden; }
.clarify__video { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.clarify__dim { position: absolute; inset: 0; background: var(--clarify-bg, var(--clear)); opacity: var(--clarify-dim, 0); }
.clarify__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--clarify-bg, var(--clear)) 0%,
    color-mix(in srgb, var(--clarify-bg, var(--clear)) 86%, transparent) 34%,
    color-mix(in srgb, var(--clarify-bg, var(--clear)) 0%, transparent) 70%);
}
.clarify .wrap { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .clarify__shade { background: color-mix(in srgb, var(--clarify-bg, var(--clear)) 80%, transparent); }
}

/* Film band: a window onto the aeration tank that opens as you scroll */
.film { position: relative; background: var(--basin-deep); color: var(--on-dark); }
.film__sticky { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; }
.js .film { height: 230vh; }
.js .film__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.reduced .film { height: auto; }
.reduced .film__sticky { position: relative; }
.film__window { position: absolute; inset: 0; overflow: hidden; background: var(--basin); }
.film__video { width: 100%; height: 100%; object-fit: cover; }
.film__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 27, 33, 0.9) 0%, rgba(6, 27, 33, 0.35) 45%, rgba(6, 27, 33, 0) 70%),
    linear-gradient(90deg, rgba(6, 27, 33, 0.55) 0%, rgba(6, 27, 33, 0) 55%);
}
.film__copy {
  position: relative; z-index: 1; align-self: end; display: grid; gap: 24px;
  padding-bottom: clamp(56px, 11vh, 128px);
}
.film__title {
  font-size: clamp(2.75rem, 1rem + 6.4vw, 6rem); font-stretch: 125%; font-weight: 650;
  line-height: 0.95; letter-spacing: -0.035em;
}
.film__line { display: block; will-change: transform; }
.film__sub { max-width: 48ch; font-size: var(--fs-l); line-height: 1.45; color: var(--on-dark); }

/* Contact: a faint aeration loop under the form */
.contact__media {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}
.contact__video { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.contact__grid { position: relative; z-index: 1; }

/* Plant walk: the camera dollies through a pump room as you scroll */
.plant { position: relative; background: var(--basin-deep); color: var(--on-dark); }
.plant__sticky { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; }
.js .plant { height: 260vh; }
.js .plant__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.reduced .plant { height: auto; }
.reduced .plant__sticky { position: relative; }
.plant__window { position: absolute; inset: 0; overflow: hidden; }
.plant__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plant__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 27, 33, 0.9) 0%, rgba(6, 27, 33, 0.3) 50%, rgba(6, 27, 33, 0.12) 100%),
    linear-gradient(90deg, rgba(6, 27, 33, 0.6) 0%, rgba(6, 27, 33, 0) 60%);
}
.plant__copy { position: relative; z-index: 1; align-self: end; display: grid; gap: 22px; padding-bottom: clamp(56px, 11vh, 128px); }
.plant__title { font-size: clamp(2.5rem, 1rem + 4.6vw, 5rem); font-stretch: 120%; font-weight: 600; line-height: 1; letter-spacing: -0.03em; max-width: 13em; }
.plant__sub { max-width: 46ch; font-size: var(--fs-l); line-height: 1.45; color: var(--on-dark); }

/* About: slow sunlit ripples under mission and vision */
.about { position: relative; isolation: isolate; overflow: clip; } /* clip, not hidden, so the phone layout can use sticky */
.about__media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.about__video { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.about__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--clear) 0%, rgba(234, 240, 238, 0.78) 16%, rgba(234, 240, 238, 0.78) 84%, var(--clear) 100%);
}

/* =========================================================
   Video on phones: framed cards with the words beneath,
   fed by portrait crops encoded at full 720px height
   ========================================================= */
@media (max-width: 768px) {
  /* Clarify: the whole tank in a 4:3 card above the statement */
  .clarify__sticky { align-content: center; gap: 28px; }
  .js .clarify__sticky { padding: 76px 0 28px; }
  .clarify__media {
    position: relative; inset: auto; width: calc(100% - 32px); margin-inline: auto;
    aspect-ratio: 4 / 3; border-radius: 20px;
    box-shadow: 0 28px 56px -30px rgba(0, 0, 0, 0.65);
  }
  .clarify__video { object-position: 51% 50%; }
  .clarify__shade { display: none; }
  .clarify__text { font-size: clamp(1.375rem, 0.95rem + 2.4vw, 1.75rem); line-height: 1.22; }

  /* Film band and plant walk: tall card on top, copy beneath */
  .film__sticky, .plant__sticky {
    grid-template-rows: minmax(0, 1fr) auto; gap: 22px;
    padding: 76px 16px 32px;
  }
  .film__window, .plant__window {
    position: relative; inset: auto; border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.7);
  }
  .film__video { object-position: 44% 50%; }
  .film__shade, .plant__shade { background: linear-gradient(0deg, rgba(6, 27, 33, 0.45) 0%, rgba(6, 27, 33, 0) 40%); }
  .film__copy.wrap, .plant__copy.wrap { width: 100%; padding: 0; align-self: start; gap: 12px; }
  .film__title { font-size: clamp(2.25rem, 1.2rem + 5vw, 3rem); }
  .plant__title { font-size: clamp(1.75rem, 1rem + 4vw, 2.4rem); line-height: 1.05; }
  .film__sub, .plant__sub { font-size: var(--fs-m); color: var(--on-dark-2); }

  /* Long sections: the video stays viewport-sized and sticks while you read,
     instead of being stretched down the whole section */
  .about__media, .contact__media {
    position: sticky; inset: 0 auto auto; /* top: 0, the rest auto */
    height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  }
}
