/* Green Crescent: homepage
   Concept: a living engineering drawing. The site is drawn the way the company works,
   in plan views, sections and callouts, and the water in those drawings moves.
   Two voices in the type: Lora (calligraphic serif) for what the company believes, Archivo for the facts.
   One scale: 12-column grid, 8px rhythm, a single type ramp. Light throughout; deep teal only for the waste floor (Fig. 4) and the footer. */

:root {
  /* colour: water, land, plant */
  --deep: #0B2A31;
  --deep-3: #082128;
  --ink: #0F2F38;
  --green: #26784A;
  --green-2: #1E6640;
  --leaf: #8DBB7F;
  --water: #3F8F8A;
  --signal: #F08A12;
  --signal-2: #D97404;
  --mineral: #E3F1F1;
  --mist: #EFF5F8;
  --paper: #FFFFFF;
  --text: #2C434A;
  --muted: #5A6C71;
  --line: #D3E1E6;
  --track: #D0DFE5;
  --grid: rgba(15, 47, 56, .055);
  --on-deep: #E7EFEC;
  --on-deep-muted: #A6BDB7;
  --deep-line: rgba(231, 239, 236, .14);
  --error: #B3261E;

  /* type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --font-ar: "IBM Plex Sans Arabic", "Archivo", sans-serif;
  --fs-display: clamp(2.75rem, 1.5rem + 3.4vw, 4.625rem);   /* 44 → 74, serif */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.25vw, 2.5rem);        /* 30 → 40 */
  --fs-h3: clamp(1.1875rem, 1.05rem + .4vw, 1.375rem);       /* 19 → 22 */
  --fs-lead: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);      /* 17 → 19 */
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  /* layout */
  --header-h: 76px;
  --gutter: clamp(20px, 3vw, 32px);
  --col-gap: 24px;
  --section-y: clamp(56px, 6vw, 88px);
  --head-gap: clamp(32px, 3.6vw, 48px);
  --radius: 8px;
  --radius-lg: 16px;

  /* motion */
  --ease-out: cubic-bezier(.2, .75, .15, 1);
  --ease-draw: cubic-bezier(.6, .05, .2, 1);
  --ease-io: cubic-bezier(.45, 0, .2, 1);      /* eases in and out: stage changes in the figures */
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--green); }
em { font-style: italic; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.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-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.12; letter-spacing: -0.022em; margin-bottom: 16px; }

.fig-no {
  display: inline-block; margin-right: 8px;
  color: var(--ink); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Motion primitives ---------- */

/* words rise out of a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .1em 0; margin: 0 -.08em -.1em 0; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--base, 0ms)); }
.js [data-split].is-in .wi, .js.is-loaded [data-split="load"] .wi { transform: none; }
.js [data-split="load"] { --base: 120ms; }

/* fade and rise */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-io), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .load { opacity: 0; transform: translateY(16px); }
.js.is-loaded .load { opacity: 1; transform: none; transition: opacity .9s ease, transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + 150ms); }

.reveal-all .reveal, .reveal-all .load { opacity: 1 !important; transform: none !important; }
.reveal-all [data-split] .wi { transform: none !important; }

/* ---------- Buttons: a waterline rises on hover ---------- */

.btn {
  --fill: var(--signal-2);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 var(--fs-small)/1.2 var(--font);
  text-decoration: none; cursor: pointer;
  transition: color .35s ease, border-color .35s ease, transform .5s var(--ease-out);
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; z-index: 0;
  left: -4px; right: -4px; top: 100%; height: calc(100% + 14px);
  background: var(--fill);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6Q12 0 24 6T48 6V12H0Z'/%3E%3C/svg%3E") 0 0 / 48px 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' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6Q12 0 24 6T48 6V12H0Z'/%3E%3C/svg%3E") 0 0 / 48px 12px repeat-x, linear-gradient(#000 0 0) 0 11px / 100% 100% no-repeat;
  transition: transform .6s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .btn::before { animation: wave-run 1.4s linear infinite; animation-play-state: paused; }
  .btn:hover::before { animation-play-state: running; }
  @keyframes wave-run { to { -webkit-mask-position: 48px 0, 0 11px; mask-position: 48px 0, 0 11px; } }
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(-100%); }

.btn-signal { background: var(--signal); color: var(--ink); }
.btn-ghost { --fill: var(--ink); border-color: rgba(15, 47, 56, .28); color: var(--ink); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: #fff; border-color: var(--ink); }
.btn-ink { --fill: var(--green); background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

.btn-arrow {
  position: relative; z-index: 1; width: 16px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .4s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
a[href="#process"] .btn-arrow { transform: rotate(90deg); }
a[href="#process"]:hover .btn-arrow { transform: rotate(90deg) translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--mineral);
  transition: background-color .3s ease, box-shadow .3s ease;
}
/* once the page scrolls, the header turns to frosted glass in the hero tint; over the dark bands it turns to dark glass */
.site-header { transition: background-color .35s ease, box-shadow .35s ease; }
.site-header.is-scrolled {
  background: rgba(227, 241, 241, .58);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .55), 0 1px 0 rgba(15, 47, 56, .07), 0 10px 30px -22px rgba(15, 47, 56, .45);
}
.site-header.is-scrolled.is-over-dark {
  background: rgba(11, 42, 49, .5);
  box-shadow: inset 0 -1px 0 rgba(231, 239, 236, .12), 0 10px 30px -22px rgba(0, 0, 0, .6);
}
.brand-name, .brand-sub, .nav-toggle { transition: color .35s ease, border-color .35s ease; }
.site-header.is-over-dark .brand-name { color: #fff; }
.site-header.is-over-dark .brand-sub { color: var(--on-deep-muted); }
.site-header.is-over-dark .site-nav:not(.is-open) ul a { color: var(--on-deep); }
.site-header.is-over-dark .site-nav:not(.is-open) ul a:hover, .site-header.is-over-dark .site-nav:not(.is-open) ul a.is-current { color: var(--leaf); }
.site-header.is-over-dark .nav-toggle { border-color: rgba(231, 239, 236, .35); }
.site-header.is-over-dark .nav-toggle-bars, .site-header.is-over-dark .nav-toggle-bars::before, .site-header.is-over-dark .nav-toggle-bars::after { background: var(--on-deep); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(227, 241, 241, .97); }
  .site-header.is-scrolled.is-over-dark { background: rgba(11, 42, 49, .97); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.header-water { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.header-water span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--leaf), var(--water) 60%, var(--green));
  transform: scaleX(0); transform-origin: 0 50%;
}

.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; text-decoration: none; color: inherit; white-space: nowrap; }
.brand-mark { width: auto; height: 42px; transition: transform .6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.0625rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.brand-sub { font-size: .75rem; font-weight: 500; color: var(--muted); }

.site-nav { display: flex; flex-shrink: 0; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a { position: relative; color: var(--ink); font-weight: 500; font-size: var(--fs-small); text-decoration: none; padding: 6px 0; white-space: nowrap; transition: color .2s ease; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out);
}
.site-nav ul a:hover, .site-nav ul a.is-current { color: var(--green); }
.site-nav ul a:hover::after, .site-nav ul a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }
.header-cta { min-height: 42px; padding: 10px 18px; white-space: nowrap; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  border: 1px solid rgba(15, 47, 56, .2); border-radius: var(--radius);
  background: transparent; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), background-color .2s ease;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero: the clarifier drawing ---------- */

.hero {
  position: relative;
  background: var(--mineral);
  padding-block: clamp(24px, 3vw, 40px) clamp(56px, 6vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(60% 75% at 74% 46%, #000 25%, transparent 75%);
          mask-image: radial-gradient(60% 75% at 74% 46%, #000 25%, transparent 75%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
}
.hero-copy { grid-column: 1 / span 6; position: relative; z-index: 2; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow-mark { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 4px -1px 0 0 var(--green); transform: rotate(-20deg); }

.hero-title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: wrap;
  margin-bottom: 28px;
}
.hero-title em { color: var(--green); font-weight: 500; }
.hero-lede { font-size: var(--fs-lead); line-height: 1.6; max-width: 31rem; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  margin: 56px 0 0; padding: 0; list-style: none;
  font-size: .875rem; line-height: 1.45; color: var(--muted);
}
.hero-facts li { padding-top: 14px; border-top: 1px solid rgba(15, 47, 56, .18); }
.hero-facts strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; margin-bottom: 2px; }

.clar-fig { grid-column: 7 / -1; margin: 0; position: relative; }
.clar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  touch-action: pan-y;
}
@media (min-width: 1360px) { .clar { width: calc(100% + 40px); margin-right: -40px; } }
.clar > svg, .clar > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.clar-over { overflow: visible; }
.clar-photo {
  position: absolute; left: 7.863%; top: 7.863%; width: 84.274%; height: 84.274%;
  border-radius: 50%; object-fit: cover;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.1s var(--ease-out);
}
.clar.is-photo .clar-photo { clip-path: circle(50% at 50% 50%); }
.clar-canvas { transition: opacity .6s ease; }
.clar.is-photo .clar-canvas { opacity: 0; }

.clar-crescent { fill: var(--green); }
.clar-water { transition: opacity .6s ease; }

.cl line { stroke: var(--ink); stroke-opacity: .24; stroke-width: .35; stroke-dasharray: 10 2 1.6 2; }
.pipe-in line { stroke: var(--ink); stroke-opacity: .5; stroke-width: .45; stroke-dasharray: 2 1.4; }
.pipe-out line { stroke: var(--ink); stroke-opacity: .75; stroke-width: .55; }
.hatch-line { stroke: var(--ink); stroke-opacity: .3; stroke-width: .35; }
.ln { fill: none; stroke: var(--ink); stroke-width: .6; stroke-opacity: .85; }
.ln.thin { stroke-width: .35; stroke-opacity: .55; }
.weir { fill: none; stroke: var(--water); stroke-width: 1.3; stroke-dasharray: .9 .7; }
.baffle { fill: none; stroke: var(--ink); stroke-opacity: .45; stroke-width: .35; stroke-dasharray: 1.6 1.2; }
.hopper { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: .35; stroke-dasharray: 1 1; }
.bridge .rail { stroke: var(--ink); stroke-width: .6; }
.bridge .truss { fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: .3; }
.scrapers line { stroke: var(--ink); stroke-opacity: .3; stroke-width: .4; stroke-dasharray: 1 .8; }
.carriage { fill: var(--paper); stroke: var(--ink); stroke-width: .6; }
.pier { fill: var(--ink); }
.pier-dot { fill: var(--mineral); }
.clar-ar { font-family: var(--font-ar); font-weight: 500; font-size: 6.6px; fill: var(--green); }

.leader { fill: none; stroke: var(--ink); stroke-width: .45; }
.leader-dot { fill: var(--ink); }
.balloon-ring { fill: var(--paper); stroke: var(--ink); stroke-width: .6; transition: fill .3s ease, stroke .3s ease; }
.balloon-n { font: 600 6.4px var(--font); fill: var(--ink); text-anchor: middle; transition: fill .3s ease; }
.balloon-pulse { fill: none; stroke: var(--green); stroke-width: .5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.balloon { cursor: default; }
.balloon.is-hot .balloon-ring { fill: var(--green); stroke: var(--green); }
.balloon.is-hot .balloon-n { fill: #fff; }
.balloon.is-hot .leader { stroke: var(--green); stroke-width: .7; }
.balloon.is-hot .leader-dot { fill: var(--green); }

/* plan view → photo */
.clar .bridge, .clar .wall-hatch, .clar .weir, .clar .baffle, .clar .hopper, .clar .pier, .clar .pier-dot, .clar .ln.thin, .clar .pipe-in { transition: opacity .6s ease; }
.clar.is-photo.is-photo .bridge, .clar.is-photo.is-photo .wall-hatch, .clar.is-photo.is-photo .weir, .clar.is-photo.is-photo .baffle,
.clar.is-photo.is-photo .hopper, .clar.is-photo.is-photo .pier, .clar.is-photo.is-photo .pier-dot, .clar.is-photo.is-photo .ln.thin,
.clar.is-photo.is-photo .pipe-in, .clar.is-photo.is-photo .clar-canvas { opacity: 0; transition-delay: 0s; }

/* the drawing draws itself on load */
@media (prefers-reduced-motion: no-preference) {
  .js .clar .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .clar .leader { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .clar .cl, .js .clar .wall-hatch, .js .clar .weir, .js .clar .baffle, .js .clar .hopper,
  .js .clar .pipe-in, .js .clar .pipe-out, .js .clar .bridge, .js .clar .clar-ar, .js .clar .leader-dot,
  .js .clar .balloon-ring, .js .clar .balloon-n, .js .clar-canvas, .js .clar-water { opacity: 0; }
  .js .clar-crescent { transform: translate(6px, 4.5px); }

  .is-loaded .clar .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-draw); }
  .is-loaded .clar .draw:nth-of-type(2) { transition-delay: .12s; }
  .is-loaded .clar .draw:nth-of-type(3) { transition-delay: .24s; }
  .is-loaded .clar .draw:nth-of-type(4) { transition-delay: .5s; }
  .is-loaded .clar-water { opacity: 1; transition: opacity 1.2s ease .1s; }
  .is-loaded .clar-crescent { transform: none; transition: transform 2.2s var(--ease-out) .2s; }
  .is-loaded .clar .cl, .is-loaded .clar .pipe-out, .is-loaded .clar .pipe-in { opacity: 1; transition: opacity 1s ease .6s; }
  .is-loaded .clar .wall-hatch, .is-loaded .clar .weir { opacity: 1; transition: opacity 1s ease 1.1s; }
  .is-loaded .clar .baffle, .is-loaded .clar .hopper, .is-loaded .clar .bridge { opacity: 1; transition: opacity 1s ease 1.3s; }
  .is-loaded .clar-canvas { opacity: 1; transition: opacity 1.6s ease 1.2s; }
  .is-loaded .clar .clar-ar { opacity: 1; transition: opacity 1.2s ease 1.6s; }
  .is-loaded .clar .leader { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-draw) calc(1.6s + var(--b, 0) * .18s); }
  .is-loaded .clar .leader-dot, .is-loaded .clar .balloon-ring, .is-loaded .clar .balloon-n { opacity: 1; transition: opacity .6s ease calc(2.1s + var(--b, 0) * .18s), fill .3s ease, stroke .3s ease; }

  .is-loaded .balloon-pulse { animation: pulse 3.6s ease-out calc(3s + var(--b, 0) * 1.2s) infinite; }
  @keyframes pulse { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.4); } }
}
.balloon[data-balloon="2"] { --b: 1; }
.balloon[data-balloon="3"] { --b: 2; }

.clar-cap { margin-top: 4px; }
.cap-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 14px; border-bottom: 1px solid rgba(15, 47, 56, .16); }
.fig-title { margin: 0; color: var(--muted); font-size: .875rem; }

.view-toggle { position: relative; display: inline-flex; padding: 3px; border: 1px solid rgba(15, 47, 56, .2); border-radius: 999px; background: rgba(255, 255, 255, .5); }
.view-toggle::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease-out);
}
.view-toggle.is-photo::before { transform: translateX(100%); }
.view-toggle button {
  position: relative; z-index: 1; min-width: 76px; padding: 6px 14px; border: 0; border-radius: 999px; background: none;
  color: var(--ink); font: 600 .8125rem/1.2 var(--font); cursor: pointer; transition: color .3s ease;
}
.view-toggle button[aria-pressed="true"] { color: #fff; }

.clar-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--text); font-size: .8125rem; line-height: 1.4; }
.clar-legend li { white-space: nowrap; display: flex; align-items: center; gap: 8px; cursor: default; transition: color .3s ease; }
.clar-legend .b {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 1px solid var(--ink); color: var(--ink); font-size: .6875rem; font-weight: 700;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.clar-legend li.is-hot { color: var(--ink); }
.clar-legend li.is-hot .b { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-tint { background: var(--mineral); }
.section-mist { background: var(--mist); }

.section-head { max-width: 720px; margin-bottom: var(--head-gap); }
.section-head p { font-size: var(--fs-lead); color: var(--muted); max-width: 56ch; margin: 0; }

.section-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 16px;
  align-items: end;
}
.section-head-split h2 { grid-column: 1 / span 6; margin: 0; }
.section-head-split > p, .head-aside { grid-column: 8 / span 5; }
.head-aside p { margin-bottom: 24px; }
.head-aside p:last-child { margin-bottom: 0; }
.section-head p.voice, .head-aside .voice {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ---------- Story: why water matters here ---------- */

.story {
  --sea: #0D363C; --sea-2: #0A2A30; --foam: #8FD3C5;
  position: relative; overflow: hidden; color: #B7CCC7;
  background:
    radial-gradient(42% 62% at 76% 52%, rgba(63, 143, 138, .34), transparent 72%),
    radial-gradient(60% 90% at 10% 100%, rgba(38, 120, 74, .16), transparent 70%),
    linear-gradient(180deg, var(--sea) 0%, var(--sea-2) 100%);
  padding-top: calc(var(--section-y) + clamp(20px, 2.4vw, 36px));
  padding-bottom: calc(var(--section-y) + clamp(24px, 3vw, 44px));
}
.shoreline { position: absolute; top: -1px; left: 0; width: 200%; height: clamp(44px, 6vw, 90px); }
@media (prefers-reduced-motion: no-preference) {
  .shoreline { animation: drift-x 70s linear infinite; }
  @keyframes drift-x { to { transform: translateX(-50%); } }
}
.shore-water { fill: var(--mineral); }
.shore-wet { fill: none; stroke: rgba(143, 211, 197, .38); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.shoreline-bottom { top: auto; bottom: -1px; transform: scaleY(-1); }
.shoreline-bottom .shore-water { fill: var(--mist); }
@media (prefers-reduced-motion: no-preference) { .shoreline-bottom { animation: drift-x-flip 90s linear infinite; } @keyframes drift-x-flip { from { transform: scaleY(-1); } to { transform: scaleY(-1) translateX(-50%); } } }
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.story-copy { grid-column: 1 / span 7; }
.story-statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin-bottom: 32px;
  max-width: 17em;
}
.story-statement { color: #F1F6F4; }
.js .story-statement .sw { color: #3F6B6B; transition: color .5s ease; }
.js .story-statement .sw.is-lit { color: #F1F6F4; }
.story-copy p { font-size: var(--fs-lead); color: #B7CCC7; max-width: 52ch; }
.story-copy p:last-child { margin-bottom: 0; }
.story-word { grid-column: 9 / span 4; margin: 0; text-align: center; position: relative; cursor: crosshair; }
.ripples {
  position: absolute; left: 50%; top: 46%;
  width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.ripples circle { fill: none; stroke: var(--foam); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ripples-static circle:nth-child(1) { stroke-opacity: .28; }
.ripples-static circle:nth-child(2) { stroke-opacity: .18; }
.ripples-static circle:nth-child(3) { stroke-opacity: .11; }
.ripples-static circle:nth-child(4) { stroke-opacity: .06; }
.story-word-ar {
  position: relative;
  display: block;
  font-family: var(--font-ar);
  font-weight: 600;
  font-size: clamp(7rem, 3.5rem + 10vw, 13.5rem);
  line-height: 1.1;
  color: var(--foam);
  text-shadow: 0 0 48px rgba(143, 211, 197, .28);
}
.story-word figcaption { position: relative; margin-top: 4px; color: #8FB1AA; font-size: var(--fs-label); }

/* ---------- The process: one litre ---------- */

.litre { position: relative; background: var(--mist); }
.litre-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 16px; align-items: end;
  padding-top: var(--section-y); padding-bottom: clamp(24px, 3vw, 40px);
}
.litre-head h2 {
  grid-column: 1 / span 6; margin: 0;
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em;
}
.litre-head p { grid-column: 8 / span 5; margin: 0; font-size: var(--fs-lead); color: var(--muted); max-width: 46ch; }
.scroll-hint { display: flex; align-items: center; gap: 12px; color: var(--green) !important; font-size: .75rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hint-line { position: relative; width: 56px; height: 1px; background: rgba(38, 120, 74, .3); overflow: hidden; }
.hint-line::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: translateX(-100%); }
@media (prefers-reduced-motion: no-preference) {
  .hint-line::after { animation: hint 2.4s var(--ease-out) infinite; }
  @keyframes hint { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
}

.litre-track { position: relative; height: 360vh; }
.litre-stage {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  display: flex; align-items: center; overflow: hidden;
}
.litre-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(50% 70% at 70% 50%, #000 20%, transparent 80%);
          mask-image: radial-gradient(50% 70% at 70% 50%, #000 20%, transparent 80%);
}
.litre-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.litre-copy { grid-column: 1 / span 5; }
.litre-count { margin: 0 0 20px; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.litre-count [data-litre-num] { color: var(--ink); font-weight: 700; }
.litre-texts { display: grid; min-height: 11.5rem; }
.litre-text { grid-area: 1 / 1; align-self: start; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-io), transform .9s var(--ease-out); pointer-events: none; }
.litre-text.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .18s; }
.litre-text h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.4rem + 1.9vw, 3.125rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; }
.litre-text p { font-size: var(--fs-lead); color: var(--text); max-width: 32ch; margin: 0; }

.litre-steps { margin: 32px 0 0; padding: 0; list-style: none; max-width: 400px; }
.litre-steps button {
  --fill: 0;
  position: relative; display: flex; align-items: baseline; gap: 14px; width: 100%;
  padding: 11px 0; border: 0; border-top: 1px solid var(--line); background: none;
  color: var(--muted); font: 500 .9375rem/1.3 var(--font); text-align: left; cursor: pointer;
  transition: color .3s ease;
}
.litre-steps li:last-child button { border-bottom: 1px solid var(--line); }
.litre-steps button::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--green); transform: scaleX(var(--fill)); transform-origin: 0 50%;
}
.litre-steps .n { color: inherit; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.litre-steps button:hover { color: var(--ink); }
.litre-steps button.is-active { color: var(--ink); font-weight: 600; }
.litre-steps button.is-active .n { color: var(--green); }

.litre-fig { grid-column: 7 / span 6; margin: 0; display: flex; align-items: center; gap: clamp(32px, 4vw, 64px); }
.cyl { position: relative; flex: none; height: min(66vh, 600px); height: min(66svh, 600px); aspect-ratio: 240 / 560; }
.cyl-over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cyl-canvas { position: absolute; left: 25%; top: 15%; width: 50%; height: 73.5714%; }
.cyl-over .glass, .cyl-over .glass-rim { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cyl-over .glass-rim { stroke-width: 1.4; }
.cyl-over .glass-foot { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.cyl-over .glass-base { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.cyl-over .ticks line { stroke: var(--ink); stroke-opacity: .7; stroke-width: 1; }
.cyl-over .tick-labels text { fill: var(--ink); fill-opacity: .72; font: 600 9px var(--font); font-variant-numeric: tabular-nums; }
.cyl-over .engrave { fill: var(--ink); fill-opacity: .55; font: 600 9px var(--font); text-anchor: middle; letter-spacing: .04em; }
.cyl-over .engrave-sm { font-size: 7.5px; font-weight: 500; }
.cyl-over .glint { opacity: .55; }
.cyl-over .glint-thin { opacity: .35; }

.gauges { display: flex; flex-direction: column; gap: 28px; min-width: 0; max-width: 260px; }
.gauge { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(15, 47, 56, .18); }
.gauge-label { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gauge-value { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-size: clamp(2.25rem, 1.8rem + 1.2vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gauge-unit { color: var(--green); font-size: .875rem; font-weight: 700; letter-spacing: .04em; }
.gauge-bar { position: relative; display: block; width: 100%; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--track); overflow: hidden; }
.gauge-bar span { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, var(--water), #A88552); transform-origin: 0 50%; }
.gauge-ends { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: .75rem; font-weight: 500; }
.gauge-text { color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1.25; min-height: 2.5em; transition: opacity .3s ease; }
.gauge-text.is-swapping { opacity: 0; }
.litre-cap { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }

/* ---------- Treatment solutions: a visual index and photo plates ----------
   The list is an index of the seven, each with a thumb of its lead photo. The open one shows a plate:
   three photos from site, the large one marked with numbered callouts like the figures, the small ones
   swapping in when picked. A plate develops from a teal print into colour as it opens. */

.sx-tab {
  position: relative; display: grid; grid-template-columns: 76px 26px minmax(0, 1fr) 14px; align-items: center; gap: 0 14px;
  width: 100%; margin: 0; padding: 10px 16px 10px 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--muted); font: inherit; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; text-align: left;
  cursor: pointer; transition: background-color .3s ease, color .25s ease;
}
.sx-item:last-child .sx-tab { border-bottom: 1px solid var(--line); }
.sx-tab::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--green); transform: scaleY(0); transition: transform .45s var(--ease-out); }
.sx-thumb { position: relative; display: block; width: 76px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--mineral); }
.sx-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); opacity: .82; transition: filter .45s ease, opacity .45s ease, transform .7s var(--ease-out); }
.sx-n { color: #647B76; font-size: .75rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; transition: color .25s ease; }
.sx-name { min-width: 0; }
.sx-chev { justify-self: end; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .25s ease, transform .35s var(--ease-out); }
.sx-tab:hover { color: var(--ink); background: var(--mist); }
.sx-tab:hover .sx-thumb img { filter: none; opacity: 1; transform: scale(1.06); }
.sx-tab[aria-expanded="true"] { color: var(--ink); font-weight: 600; background: var(--mist); }
.sx-tab[aria-expanded="true"]::before { transform: none; }
.sx-tab[aria-expanded="true"] .sx-thumb img { filter: none; opacity: 1; }
.sx-tab[aria-expanded="true"] .sx-n { color: var(--green); }
.sx-tab[aria-expanded="true"] .sx-chev { opacity: 1; }

.sx-panel { margin: 18px 0 36px; }

/* the plate: one large photo and two small, the small column exactly as tall as the large photo */
.sx-plate {
  --g: 10px; position: relative; display: grid; gap: var(--g);
  grid-template-columns: minmax(0, 1fr) calc((100% - var(--g) * 7 / 3) / 3); grid-template-rows: auto auto; align-items: start;
}
.sx-ph { position: relative; margin: 0; min-width: 0; }
.sx-ph.slot-0 { grid-column: 1; grid-row: 1 / span 2; }
.sx-ph.slot-1 { grid-column: 2; grid-row: 1; }
.sx-ph.slot-2 { grid-column: 2; grid-row: 2; }
.sx-frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--mineral); }
.sx-ph.slot-0 .sx-frame { border-radius: 14px; }
.sx-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.sx-ph:not(.slot-0):hover .sx-frame img { transform: scale(1.06); }
.sx-hit { position: absolute; inset: 0; z-index: 4; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: zoom-in; }
.sx-ph.slot-0 .sx-hit, .no-js .sx-hit { display: none; }

/* captions: a label on the small photos; the large photo's caption and legend sit in the bar under the plate */
.sx-fc {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 26px 10px 8px; border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(8, 33, 40, 0), rgba(8, 33, 40, .84)); color: #fff;
  font-size: .75rem; font-weight: 600; line-height: 1.3; pointer-events: none;
}
.sx-fc .sx-tag, .sx-fc .sx-legend { display: none; }
.js .sx-ph.slot-0 .sx-fc { opacity: 0; }
.no-js .sx-ph.slot-0 .sx-fc { border-radius: 0 0 14px 14px; font-size: .875rem; }
.no-js .sx-ph.slot-0 .sx-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; padding: 0; list-style: none; font-weight: 500; }
.no-js .sx-ph.slot-0 .sx-bn { display: inline-grid; width: 18px; height: 18px; margin-right: 6px; background: #fff; color: var(--ink); }
.no-js .sx-plate { max-width: 760px; }
/* bioremediation: one pond before and after, a divider to drag, and three cases to pick */
.sx-ba { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sx-ba-fig { position: relative; margin: 0; }
.sx-ba-frame { --p: 50%; border-radius: 14px; touch-action: pan-y; }
.sx-ba-frame.sx-frame img { transition: opacity .22s ease; }
.sx-ba-im { position: absolute; inset: 0; }
.sx-ba-before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.sx-ba-frame.is-swapping .sx-ba-im { opacity: 0; }
.sx-ba-line { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(8, 33, 40, .18); pointer-events: none; }
.sx-ba-knob {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 22px rgba(8, 33, 40, .3); transition: transform .3s var(--ease-out);
}
.sx-ba-knob::before, .sx-ba-knob::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border: solid var(--ink); border-width: 0 0 2px 2px; }
.sx-ba-knob::before { left: 11px; transform: rotate(45deg); }
.sx-ba-knob::after { right: 11px; transform: rotate(-135deg); }
.sx-ba-frame:hover .sx-ba-knob { transform: scale(1.08); }
.sx-ba-k { position: absolute; z-index: 2; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(8, 33, 40, .74); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.sx-ba-k.is-b { left: 12px; }
.sx-ba-k.is-a { right: 12px; background: var(--green); }
.sx-ba-range { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.sx-ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.sx-ba-range::-moz-range-thumb { width: 48px; height: 100vh; border: 0; }
.sx-ba-frame:has(.sx-ba-range:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.js .sx-ba-fig .sx-fc { display: none; }
.sx-ba-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 599.98px) {
  /* on phones the three cases are a row of photos only; the caption under the slider names the case */
  .sx-ba-cases { gap: 8px; }
  .sx-ba-case { justify-content: center; padding: 4px; }
  .sx-ba-case .sx-ba-th { width: 100%; }
  .sx-ba-ct { display: none; }
}
.no-js .sx-ba-cases { display: none; }
.sx-ba-case {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.sx-ba-case:hover { border-color: #A6C0B8; color: var(--ink); }
.sx-ba-case[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); color: var(--ink); }
.sx-ba-th { flex: none; width: 58px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--mineral); }
.sx-ba-th img { width: 100%; height: 100%; object-fit: cover; }
.sx-ba-ct { min-width: 0; font-size: .75rem; line-height: 1.3; }
.sx-ba-ct strong { display: block; color: var(--ink); font-size: .8125rem; font-weight: 600; }
.sx-capbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 30px; margin-top: 14px; color: var(--ink); font-size: .9375rem; line-height: 1.4; }
.no-js .sx-capbar { display: none; }
.sx-capbar .sx-tag { padding: 3px 8px; border-radius: 4px; background: var(--ink); color: #fff; font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sx-capbar.is-stock .sx-tag { background: var(--muted); }
.sx-capbar .sx-cap { font-weight: 600; }
.sx-capbar .sx-credit { color: var(--muted); font-size: .75rem; }
.sx-fc .sx-credit { display: block; margin-top: 2px; font-size: .625rem; font-weight: 500; opacity: .82; }
.sx-capbar .sx-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; margin: 2px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
.sx-legend li { display: inline-flex; align-items: center; gap: 8px; cursor: default; transition: color .2s ease; }
.sx-bn { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 700; transition: background-color .2s ease, color .2s ease; }
.sx-legend li.is-hot { color: var(--ink); }
.sx-legend li.is-hot .sx-bn { background: var(--signal); color: var(--ink); }

/* numbered callouts on the large photo */
.sx-b {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; display: grid; place-items: center;
  width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; color: var(--ink);
  font-size: .75rem; font-weight: 700; line-height: 1; cursor: default;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .28), 0 4px 12px rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.3); pointer-events: none;
  transition: opacity .3s ease, transform .45s var(--ease-out), background-color .2s ease;
}
.sx-b::after {
  content: attr(data-label); position: absolute; left: calc(100% + 8px); top: 50%; padding: 4px 9px; border-radius: 5px;
  background: rgba(8, 33, 40, .9); color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(-4px, -50%); transition: opacity .2s ease, transform .25s var(--ease-out); pointer-events: none;
}
.sx-b.is-left::after { left: auto; right: calc(100% + 8px); transform: translate(4px, -50%); }
.sx-ph.slot-0 .sx-b { opacity: 1; transform: none; pointer-events: auto; transition-delay: calc(var(--n, 0) * 90ms + .5s); }
.sx-b.is-hot { background: var(--signal); transform: scale(1.12) !important; transition-delay: 0s !important; }
.sx-b.is-hot::after { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: no-preference) {
  .sx-ph.slot-0 .sx-b::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff; animation: sx-ping 2.4s ease-out infinite; animation-delay: calc(var(--n, 0) * .4s + 1s); opacity: 0; }
  @keyframes sx-ping { 0% { opacity: .9; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.8); } }
}

/* opening a plate: it develops from a teal print into colour behind a scan line */
.sx-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(11, 42, 49, .42); -webkit-backdrop-filter: grayscale(1) contrast(1.08); backdrop-filter: grayscale(1) contrast(1.08);
  clip-path: inset(0 0 0 100%);
}
.sx-frame::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 2px; pointer-events: none;
  background: rgba(255, 255, 255, .95); box-shadow: 0 0 16px 4px rgba(141, 187, 127, .75); opacity: 0;
}
.sx-ph.slot-1 .sx-frame { --d: 1; }
.sx-ph.slot-2 .sx-frame { --d: 2; }
@media (prefers-reduced-motion: no-preference) {
  .sx-plate.is-developing .sx-frame::after { animation: sx-dev 1.05s var(--ease-draw) both; animation-delay: calc(var(--d, 0) * .14s); }
  .sx-plate.is-developing .sx-frame::before { animation: sx-scan 1.05s var(--ease-draw) both; animation-delay: calc(var(--d, 0) * .14s); }
  .sx-panel.is-entering .sx-body > * { animation: rise .7s var(--ease-out) both; }
  .sx-panel.is-entering .sx-body > :nth-child(2) { animation-delay: .06s; }
  .sx-panel.is-entering .sx-body > :nth-child(n+3) { animation-delay: .12s; }
  .sx-panel.is-entering .chips li { animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms + .2s); }
  .sx-panel.is-entering .sx-capbar { animation: fade-in .6s ease .35s both; }
}
.sx-plate.is-print .sx-frame::after { clip-path: inset(0 0 0 0); }
@keyframes sx-dev { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes sx-scan { 0% { left: 0; opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.sx-body { padding-top: 26px; }
.sx-body h3 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.sx-body p { max-width: 56ch; margin-bottom: 22px; color: var(--text); font-size: 1.0625rem; }
.sx-body .chips-label { margin: 0 0 10px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 5px 12px; border: 1px solid rgba(38, 120, 74, .35); border-radius: 999px; color: var(--ink); background: var(--mist); font-size: .875rem; line-height: 1.35; transition: background-color .25s ease, border-color .25s ease; }
.chips li:hover { background: var(--mineral); border-color: var(--green); }

/* with the script, on wide screens: the index on the left, the open plate on the right */
.sx.is-ready { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(7, auto) 1fr; column-gap: var(--col-gap); align-items: start; }
.sx.is-ready .sx-item { display: contents; }
.sx.is-ready .sx-tab { grid-column: 1 / span 5; }
.sx.is-ready .sx-panel { grid-column: 6 / span 7; grid-row: 1 / span 8; margin: 0; padding-left: 28px; }
.sx.is-ready .sx-panel[hidden] { display: none; }

/* ---------- Shared: links out of a panel, and the mist section with its drawing grid ---------- */

.panel-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding-bottom: 3px;
  color: var(--green); font-size: var(--fs-small); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(38, 120, 74, .35); transition: color .25s ease, border-color .25s ease;
}
.panel-link .btn-arrow { transform: rotate(90deg); }
.panel-link:hover { color: var(--green-2); border-color: var(--green); }
.panel-link:hover .btn-arrow { transform: rotate(90deg) translateX(3px); }

.line-sec { position: relative; overflow: hidden; background: var(--mist); }
.line-sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(75% 40% at 50% 60%, #000 30%, transparent 78%);
          mask-image: radial-gradient(75% 40% at 50% 60%, #000 30%, transparent 78%);
}
.line-sec .wrap { position: relative; }

/* ---------- Fig. 3: tough wastewater, one sample followed down its treatment line ---------- */

/* plain numbered prompts: what to do next */
.tl-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.tl-ask .b { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 700; }
.tl-ask-2 { margin-top: clamp(44px, 5vw, 64px); margin-bottom: clamp(20px, 2.4vw, 28px); }
.no-js .fl > .tl-ask, .no-js .shelf { display: none; }

/* 1. the sample shelf */
.shelf {
  --bh: 96px;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding-top: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 calc(14px + var(--bh)) / 100% 2px no-repeat,
    repeating-linear-gradient(-45deg, rgba(15, 47, 56, .16) 0 1px, transparent 1px 6px) 0 calc(16px + var(--bh)) / 100% 8px no-repeat;
}
.bottle { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 0 4px 4px; border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; text-align: center; }
.bottle-svg { width: 64px; height: var(--bh); overflow: visible; transform-origin: 50% 100%; transition: transform .55s var(--ease-out); }
.bottle:hover .bottle-svg { transform: translateY(-5px); }
.bottle[aria-pressed="true"] .bottle-svg { transform: translateY(-12px); }
.bt-body { fill: rgba(255, 255, 255, .35); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; transition: stroke .3s ease; }
.bt-cap { fill: var(--ink); }
.bt-label { fill: #fff; stroke: var(--ink); stroke-opacity: .45; stroke-width: .8; }
.bt-num { fill: var(--ink); font: 700 11px var(--font); text-anchor: middle; }
.bt-glint { fill: #fff; opacity: .55; }
.bottle[aria-pressed="true"] .bt-body { stroke: var(--green); stroke-width: 2.2; }
.bottle-name { position: relative; margin-top: 16px; padding-bottom: 6px; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.25; }
.bottle-name::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.bottle:hover .bottle-name, .bottle[aria-pressed="true"] .bottle-name { color: var(--green); }
.bottle[aria-pressed="true"] .bottle-name::after { transform: scaleX(1); }
.bottle-sub { margin-top: 4px; font-size: .8125rem; line-height: 1.35; }
@media (prefers-reduced-motion: no-preference) {
  .bottle.is-pouring .bottle-svg { animation: pour 1s var(--ease-out); }
  @keyframes pour { 0% { transform: translateY(-12px); } 35%, 60% { transform: translate(10px, -22px) rotate(28deg); } 100% { transform: translateY(-12px); } }
}

/* 2. the line: a dirty glass, three machines and a clean glass, joined by one pipe */
.fl-ask-tall { display: none; }
.fl-replay {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 16px 8px 12px;
  border: 1.5px solid rgba(15, 47, 56, .24); border-radius: 999px; background: var(--paper);
  color: var(--ink); font: 600 .875rem/1.2 var(--font); cursor: pointer;
  transition: border-color .25s ease, color .25s ease, opacity .3s ease;
}
.fl-replay:hover { border-color: var(--green); color: var(--green); }
.fl-replay-ic {
  width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 8A5.5 5.5 0 1 1 11.9 4.1' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M9.6 1.6l3.2 1.9-1.9 3.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 8A5.5 5.5 0 1 1 11.9 4.1' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M9.6 1.6l3.2 1.9-1.9 3.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.no-js .fl-replay, .fl-replay[hidden] { display: none; }

.fl-run[hidden] { display: none; }
.fl-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(30px, 3.4vw, 44px); }
.fl-intro .st-k { grid-column: 1 / -1; }
.fl-intro h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.375rem); line-height: 1.08; letter-spacing: -0.02em; }
.fl-intro-p { margin: 0; color: var(--text); font-size: 1.0625rem; line-height: 1.6; max-width: 54ch; }
.st-k { margin: 0 0 10px; color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.st-k-bad { color: #9A5B2A; }

/* the strip: five columns on wide screens, a touch wider than the text */
.fl-strip {
  --fg: clamp(32px, 3vw, 48px);
  position: relative;
  display: grid; grid-template-columns: .62fr 1fr 1fr 1fr .8fr; column-gap: var(--fg); align-items: start;
  margin-inline: 0;   /* the line stays inside the page's content column, aligned with everything else */
}
.fl-pipes { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.fl-slot { position: relative; z-index: 1; min-width: 0; margin: 0; }
.fl-box { position: relative; }
.fl-photo { aspect-ratio: 3 / 2; border-radius: 12px; background: var(--mineral); }
.fl-photo::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--ink); border-radius: inherit; pointer-events: none; }
.fl-pic { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.fl-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter 1s ease, opacity 1s ease, transform 2.4s var(--ease-out); }
.fl-in .fl-glass { aspect-ratio: .93; }
.fl-out .fl-glass { aspect-ratio: 1.2; }
.fl-glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* numbered balloons, like the callouts on Fig. 1 */
.st-n {
  position: absolute; left: -14px; top: -14px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-size: .9375rem; font-weight: 700;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.st-n::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; opacity: 0; transition: opacity .3s ease;
  background: conic-gradient(var(--green) calc(var(--p, 0) * 1turn), rgba(38, 120, 74, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
.fl-st.is-lit .st-n { border-color: var(--green); background: var(--green); color: #fff; }
.fl-st.is-work .st-n::after { opacity: 1; }
.st-n-end { display: none; font-size: .6875rem; letter-spacing: .02em; }
.st-n-bad { border-color: #9A5B2A; background: #9A5B2A; color: #fff; }
.fl-out.is-lit .st-n-ok { border-color: var(--green); background: var(--green); color: #fff; }

/* the reading on each machine: the water as it leaves */
.fl-rd {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); box-shadow: 0 6px 18px -8px rgba(15, 47, 56, .5);
  color: var(--muted); font-size: .8125rem; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.fl-rd strong { color: var(--ink); font-weight: 700; }
.fl-rd-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.3px rgba(15, 47, 56, .7); }

/* captions */
.fl-cap { padding: 20px 2px 0; transition: opacity .8s ease, transform .9s var(--ease-out); }
.fl-cap h4 { margin: 0 0 8px; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.3125rem; line-height: 1.18; letter-spacing: -0.01em; }
.fl-cap p { margin: 0; color: var(--text); font-size: .9375rem; line-height: 1.55; }
.fl-cap .fl-photo-cap { margin-top: 12px; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.fl-photo-cap .fig-no { color: var(--green); }
.fl-cap .fl-read { color: var(--muted); font-variant-numeric: tabular-nums; }
.fl-end .st-k { white-space: nowrap; }
.fl-read strong { color: var(--ink); font-weight: 700; }

/* before the water arrives, a machine waits in grey */
.is-armed .fl-st:not(.is-lit) img { filter: grayscale(1) contrast(.85); opacity: .5; transform: scale(1.07); }
.is-armed .fl-st:not(.is-lit) .fl-cap, .is-armed .fl-out:not(.is-lit) .fl-cap { opacity: .38; transform: translateY(8px); }
.is-armed .fl-st:not(.is-done) .fl-rd { opacity: 0; transform: translateY(6px) scale(.94); }

/* the pipe, drawn by the script */
.fp-case { fill: none; stroke: var(--ink); stroke-linejoin: round; }
.fp-bore { fill: none; stroke: var(--paper); stroke-linejoin: round; }
.fp-water { fill: none; stroke-linejoin: round; }
.fp-flow { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 11; }
.fp-front { stroke: #fff; stroke-width: 1.4; }
.fp-flange, .fp-port-ring, .fp-valve { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.fp-port-glass { stroke: rgba(15, 47, 56, .5); stroke-width: 1; transition: fill .6s ease; }
.fp-bolt { fill: var(--ink); }
.fp-glint { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.6; stroke-linecap: round; }
.fp-stem { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .fp-flow { animation: pipe-flow .9s linear infinite; }
  @keyframes pipe-flow { to { stroke-dashoffset: -14; } }
}

/* the result, once the clean glass is full */
.fl-result {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px clamp(28px, 4vw, 56px); align-items: end;
  margin-top: clamp(28px, 3vw, 40px); padding-top: 24px; border-top: 1px solid rgba(15, 47, 56, .16);
  transition: opacity .8s ease, transform .9s var(--ease-out);
}
.fl-result-main h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.1; letter-spacing: -0.02em; }
.fl-result-main p:last-child { margin: 0; color: var(--text); font-size: 1.0625rem; line-height: 1.55; max-width: 52ch; }
.fl-result .st-vals { margin: 0; }
/* before the train finishes the result waits, dimmed like the steps still to run, instead of leaving an empty band */
.is-armed:not(.is-done) .fl-result { opacity: .3; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.st-vals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-vals-k { flex-basis: 100%; margin-bottom: 4px; color: var(--muted); font-size: .875rem; font-weight: 600; letter-spacing: 0; }
.st-vals .jp-raw { color: #9A5B2A; }
.st-vals .jp-out { color: var(--green); }
.st-vals .jp-to {
  align-self: center; width: 26px; height: 12px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='12' viewBox='0 0 26 12'%3E%3Cpath d='M0 6h24M19 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='12' viewBox='0 0 26 12'%3E%3Cpath d='M0 6h24M19 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.st-vals .jp-unit { color: var(--muted); font-size: .875rem; font-weight: 700; letter-spacing: .04em; }
/* without the script: every sample, one after another, all lit */
.no-js .fl-run[hidden] { display: block; }
.no-js .fl-run + .fl-run { margin-top: 88px; }
.no-js .fl-glass, .no-js .fl-pipes { display: none; }

/* ---------- Fig. 4: the integrated hazardous wastewater treatment plant ---------- */

.ip-sec { position: relative; overflow: clip; background: var(--paper); }

/* the inlet design basis: nine parameters, each a button that lights the units removing it */
.ip-in { margin-bottom: 26px; }
.ip-in-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 14px; }
.ip-in-k { margin: 0; color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ip-in-flow { margin: 0; color: var(--text); font-size: .9375rem; }
.ip-in-flow strong { color: var(--ink); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.ip-in-hint { margin: 0 0 0 auto; color: var(--muted); font-size: .8125rem; }
.ip-in-hint i { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 10px; border-radius: 50%; vertical-align: -1px; font-style: normal; }
.ip-in-hint .k-act { background: var(--signal); }
.ip-in-hint .k-ok { background: var(--green); }
.ip-params { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-p {
  position: relative; display: grid; gap: 3px; width: 100%; height: 100%; padding: 11px 12px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease, transform .4s var(--ease-out);
}
.ip-p:hover { border-color: #A6C0B8; transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(15, 47, 56, .45); }
.ip-p:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ip-p[aria-pressed="true"] { border-color: var(--signal); background: var(--paper); box-shadow: inset 0 0 0 1px var(--signal); transform: none; }
.ip-p-n { padding-right: 18px; color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.2; }
.ip-p-v { color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ip-p-v small { color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: 0; }
.ip-p-s { position: absolute; right: 10px; top: 11px; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #C5D4CF; transition: background-color .55s var(--ease-io), border-color .55s var(--ease-io), transform .55s var(--ease-out); }
.ip-p-s::after {
  content: ""; position: absolute; left: 3.3px; top: 1.2px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) scale(0); transition: transform .35s var(--ease-out) .1s;
}
.ip-p.is-act .ip-p-s { border-color: var(--signal); background: var(--signal); transform: scale(1.15); }
.ip-p.is-ok .ip-p-s { border-color: var(--green); background: var(--green); }
.ip-p.is-ok .ip-p-s::after { transform: rotate(45deg) scale(1); }
.ip-notes { display: grid; }
.ip-note {
  grid-area: 1 / 1; margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--signal); border-radius: 0 8px 8px 0;
  background: #fff; color: var(--text); font-size: .9375rem; line-height: 1.55; max-width: 92ch;
}
.ip-note strong { color: var(--ink); }
.ip-note-st { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ip-note:not([hidden]) { animation: rise .45s var(--ease-out) both; }
  .ip.is-near .ip-p.is-act .ip-p-s { animation: ip-beat 1.3s ease-in-out infinite; }
  @keyframes ip-beat { 50% { box-shadow: 0 0 0 5px rgba(240, 138, 18, .18); } }
}

/* the drawing */
.ip-fig { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: 0 30px 60px -44px rgba(15, 47, 56, .45); }
.ip-fig::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 47, 56, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 47, 56, .045) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.ip-scroll { position: relative; }
.ip-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ip-svg text { font-family: var(--font); }
.ip-swipe { display: none; }
.ip-sh { fill: #fff; stroke: var(--ink); stroke-width: 1.3; transition: stroke .6s var(--ease-io), stroke-width .6s var(--ease-io), fill .6s var(--ease-io); }
.ip-concrete { fill: #EEF3F1; }
.ip-ink { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.ip-thin { fill: none; stroke: #8FA6A0; stroke-width: 1.6; }
.ip-gl { stroke: var(--ink); stroke-width: 1.2; }
.ip-gh { stroke: #BFCEC9; stroke-width: 1; }
.ip-w { transform-box: fill-box; transform-origin: 50% 100%; }
.ip-wf { fill: var(--c); }
.ip-ws { fill: url(#ip-sheen); }
.ip-cw { fill: url(#ip-hatch); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.ip-steel { fill: url(#ip-steel); }
.ip-eq { fill: #DCE6E3; stroke: var(--ink); stroke-width: 1; }
.ip-screen { stroke: #4E6268; stroke-width: 1.7; }
.ip-oil { fill: #2B261C; opacity: .88; }
.ip-belt { fill: #2F6FA8; stroke: var(--ink); stroke-width: 1; }
.ip-drum { fill: #F4F7F6; stroke: var(--ink); stroke-width: 1.1; }
.ip-dlab { fill: var(--muted); font-size: 10.5px; text-anchor: end; }
.ip-dlab-c { text-anchor: middle; }
.ip-dose { fill: none; stroke: var(--signal); stroke-width: 1.3; stroke-dasharray: 3 3; }
.ip-float { fill: #EEE7D3; }
.ip-bub { fill: rgba(255, 255, 255, .9); }
.ip-chain { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.ip-air { fill: none; stroke: #7FA9C9; stroke-width: 1.7; }
.ip-imp { stroke: #E0AE33; stroke-width: 3; stroke-linecap: round; }
.ip-diff { fill: #4E6268; }
.ip-fan { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.ip-plate { stroke: #4E6268; stroke-width: 1.4; }
.ip-blanket { fill: #8E7752; opacity: .55; }
.ip-base { fill: #2F6FA8; }
.ip-bead { fill: #fff; opacity: .65; }
.ip-tube { fill: #E9F1F4; stroke: var(--ink); stroke-width: 1; }
.ip-cap { fill: #2F6FA8; }
.ip-fp { fill: #DCE6E3; stroke: #4E6268; stroke-width: .9; }
.ip-sand { fill: #E6D8B6; }
.ip-lab { fill: var(--ink); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-anchor: middle; transition: fill .55s var(--ease-io); }
.ip-vol { fill: var(--muted); font-size: 10.5px; text-anchor: middle; }
.ip-lab, .ip-vol, .ip-dlab { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.ip-lbl.is-now .ip-lab { fill: var(--green); }
.ip.has-focus .ip-lbl.is-hit .ip-lab { fill: var(--signal-2); }
.ip-badge circle { fill: #fff; stroke: var(--ink); stroke-width: 1.2; transition: fill .55s var(--ease-io), stroke .55s var(--ease-io); }
.ip-badge text { fill: var(--ink); font-size: 10.5px; font-weight: 700; text-anchor: middle; transition: fill .55s var(--ease-io); }
.ip-hit { fill: transparent; stroke: transparent; stroke-width: 1.2; stroke-dasharray: 4 3; cursor: pointer; transition: fill .35s ease, stroke .35s ease; }
/* the unit at work gets a selection box, as on a marked-up drawing */
.ip-u.is-now .ip-hit { fill: rgba(38, 120, 74, .05); stroke: rgba(38, 120, 74, .55); }
.ip-u:hover .ip-hit { stroke: rgba(15, 47, 56, .3); }
.ip.has-focus .ip-u.is-now:not(.is-hit) .ip-hit { fill: transparent; stroke: transparent; }
.ip.has-focus .ip-u.is-hit .ip-hit { fill: rgba(240, 138, 18, .06); stroke: rgba(240, 138, 18, .6); }
.ip-io rect { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.ip-io-k { fill: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; }
.ip-io-v { fill: var(--ink); font-size: 17px; font-weight: 700; }
.ip-io-big { font-size: 24px; letter-spacing: -0.02em; }
.ip-io-s { fill: var(--text); font-size: 11.5px; }
.ip-io-out rect { fill: #F0F9FA; stroke: var(--water); stroke-width: 1.6; }
.ip-pc { fill: none; stroke: #D7E2DE; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; marker-end: url(#ip-arr); }
.ip-pf { fill: none; stroke: var(--c); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ip-pd { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 2 11; opacity: 0; }
.ip-sludge .ip-pc { stroke: #E7E0D6; stroke-width: 5; }
.ip-sludge .ip-pf { stroke-width: 2.4; }
.ip-sludge .ip-pd { stroke: rgba(255, 255, 255, .7); stroke-dasharray: 3 7; }
.ip-prod .ip-pf { stroke-width: 4; }

/* with the script: the plant fills stage by stage */
.ip.is-live .ip-u, .ip.is-live .ip-io { opacity: .3; transition: opacity .4s ease var(--stg, 0s); }
.ip.is-live .ip-u.is-r, .ip.is-live .ip-io.is-r { opacity: 1; }
.ip.is-live .ip-w { transform: scaleY(0); transition: transform .7s var(--ease-out) calc(var(--lag, 0s) * .45 + var(--stg, 0s) + .22s); }
.ip.is-live .is-r .ip-w { transform: none; }
.ip.is-live .ip-pf { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease-draw) calc(var(--lag, 0s) * .45 + var(--stg, 0s)); }
.ip.is-live .ip-pipe.is-r .ip-pf { stroke-dashoffset: 0; }
.ip.is-live .ip-pipe.is-r .ip-pd { opacity: 1; transition: opacity .3s ease calc(var(--lag, 0s) * .45 + var(--stg, 0s) + .45s); }
.ip-u.is-now .ip-sh { stroke: var(--green); stroke-width: 2.3; }
.ip-u.is-now .ip-badge circle { fill: var(--green); stroke: var(--green); }
.ip-u.is-now .ip-badge text { fill: #fff; }
.ip.is-live .ip-u.is-r:not(.is-now) .ip-badge circle { fill: #E3F1E8; }
/* a parameter picked: the units that remove it light up in signal orange, the rest step back */
.ip.has-focus .ip-u, .ip.has-focus .ip-io { opacity: .16 !important; }
.ip.has-focus .ip-pipe { opacity: .4; }
.ip.has-focus .ip-u.is-hit { opacity: 1 !important; }
.ip.has-focus .ip-u.is-hit .ip-sh { stroke: var(--signal); stroke-width: 2.3; }
.ip.has-focus .ip-u.is-hit .ip-badge circle { fill: var(--signal); stroke: var(--signal); }
.ip.has-focus .ip-u.is-hit .ip-badge text { fill: #fff; }
.ip.has-focus .ip-u.is-hit .ip-w { transform: none; }
.ip-pipe { transition: opacity .5s ease; }
@media (prefers-reduced-motion: no-preference) {
  .ip.is-near .ip-pipe.is-r .ip-pd { animation: ip-flow .8s linear infinite; }
  .ip.is-near .ip-sludge.is-r .ip-pd { animation-duration: 2.4s; }
  @keyframes ip-flow { to { stroke-dashoffset: -13; } }
  .ip.is-near .is-r .ip-bub { animation: ip-bub 2.4s ease-in infinite; animation-delay: calc(var(--k) * -.34s); }
  @keyframes ip-bub { 0% { transform: translateY(8px); opacity: 0; } 25% { opacity: .95; } 100% { transform: translateY(-30px); opacity: 0; } }
  .ip.is-near .is-r .ip-fan { animation: ip-hum 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes ip-hum { 50% { transform: scale(.82); } }
  .ip.is-near .ip-u.is-now .ip-badge circle { animation: ip-ring 1.8s ease-out infinite; }
  @keyframes ip-ring { 0% { stroke-width: 1.2; stroke-opacity: 1; } 60% { stroke-width: 9; stroke-opacity: 0; } 100% { stroke-width: 9; stroke-opacity: 0; } }
}
.ip-u:hover .ip-sh { stroke-width: 2; }

/* the nine stages: steps that fill like a progress bar, and the stage in words */
.ip-ctrl { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.ip-steps { flex: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-step { display: grid; gap: 7px; width: 100%; padding: 0 0 4px; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: color .3s ease; }
.ip-step:hover { color: var(--ink); }
.ip-step:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.ip-step-bar { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--track); }
.ip-step-bar i { display: block; height: 100%; background: var(--green); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; transition: transform .5s var(--ease-out); }
.ip-step.is-timing .ip-step-bar i { transition: transform 2.2s linear; }
.no-js .ip-ctrl, .no-js .ip-in-hint, .no-js .ip-swipe { display: none; }
.ip-step-n { color: var(--green); font-family: var(--serif); font-size: 1rem; font-style: italic; line-height: 1; opacity: .6; }
.ip-step-t { font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.ip-step[aria-current="step"] { color: var(--ink); }
.ip-step[aria-current="step"] .ip-step-n { opacity: 1; }
.ip-step.is-hit .ip-step-t::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--signal); vertical-align: 1px; }
.ip-play {
  flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 .8125rem var(--font); cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease;
}
.ip-play:hover { border-color: #A6C0B8; box-shadow: 0 6px 16px -10px rgba(15, 47, 56, .5); }
.ip-play-i { position: relative; display: block; width: 14px; height: 14px; }
.ip-play-i::before, .ip-play-i::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 4px; border-radius: 1px; background: var(--ink); }
.ip-play-i::before { left: 2px; }
.ip-play-i::after { right: 2px; }
.ip-play.is-paused .ip-play-i::before { left: 3px; top: 0; bottom: 0; width: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ink); }
.ip-play.is-paused .ip-play-i::after { display: none; }
.ip-play.is-ended .ip-play-i::before { inset: 1px; width: auto; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; background: none; }
.ip-play.is-ended .ip-play-i::after { display: block; top: 0; bottom: auto; right: 0; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 4px 0 4px 5px; border-color: transparent transparent transparent var(--ink); transform: rotate(-40deg); }

.ip-panes { display: grid; gap: 28px; margin-top: 26px; }
.ip-pane { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: clamp(28px, 4vw, 64px); align-content: start; align-self: start; }
.ip-pk { grid-column: 1; margin: 0 0 8px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ip-pk span { color: var(--green); }
.ip-pane h3 { grid-column: 1; margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.ip-units { grid-column: 1; margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.ip-txt { grid-column: 2; grid-row: 1 / span 3; margin: 0 0 16px; color: var(--text); font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.ip-acts { grid-column: 2; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; align-self: end; }
.ip-pane:has(.ip-acts) .ip-txt { grid-row: 1 / span 2; }
.ip-acts-k { margin-right: 4px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ip-acts ul { display: contents; }
.ip-acts li { padding: 4px 11px; border-radius: 999px; background: var(--mineral); color: var(--ink); font-size: .8125rem; font-weight: 600; list-style: none; }
.ip-acts li.is-hit { background: var(--signal); color: #fff; }
.ip.has-js .ip-panes { gap: 0; }
.ip.has-js .ip-pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s var(--ease-io), transform .45s var(--ease-io), visibility 0s linear .45s; }
.ip.has-js .ip-pane.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease-io) .2s, transform .8s var(--ease-out) .2s, visibility 0s linear 0s; }
.ip .tl-note { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }

.tl-note { margin: 22px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }

/* ---------- Waste management: Fig. 5, what comes in, the machine that works on it, what goes out ----------
   The one deep section above the footer: the plant floor. Photos read richer on deep teal,
   and the change of ground marks the turn from water to solid waste. */
.section-deep { position: relative; background: var(--deep); color: var(--on-deep); }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep .section-head p { color: var(--on-deep-muted); }
.section-deep .fig-no { color: var(--leaf); }
.section-deep .tl-note { color: var(--on-deep-muted); }
.section-deep::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(231, 239, 236, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 239, 236, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.section-deep > .wrap { position: relative; }
/* the waste floor: soft sage (sl-sheet), edged top and bottom by the story's drifting shoreline */
.waste {
  position: relative; overflow: clip;
  padding-top: calc(var(--section-y) + clamp(24px, 3vw, 44px));
  padding-bottom: calc(var(--section-y) + clamp(28px, 3.4vw, 48px));
  background: var(--mist);
}
.waste .shoreline { z-index: 1; }
.waste > .wrap { position: relative; z-index: 2; }
/* the next section overlaps the last fraction of a pixel, so no hairline shows under the wave */
.waste + .section { position: relative; z-index: 1; box-shadow: 0 -2px 0 var(--paper); }
.waste .shoreline .shore-water { fill: var(--paper); }
.waste .shoreline-bottom .shore-water { fill: var(--paper); }
.waste .shore-wet { stroke: rgba(63, 143, 138, .38); }
@media (prefers-reduced-motion: no-preference) {
  .waste .shoreline { animation-duration: 84s; }
  .waste .shoreline-bottom { animation-duration: 100s; }
}

.wz { position: relative; }

/* the service chain: one line, five stops */
.wz-chain-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; margin: 0 0 clamp(28px, 3.4vw, 40px); }
.wz-ck { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wz-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0; padding: 0; list-style: none; counter-reset: ch; }
.wz-chain li {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; counter-increment: ch;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .875rem; font-weight: 500; line-height: 1.3;
}
.wz-chain li::before {
  content: counter(ch); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(38, 120, 74, .1); color: var(--green); font-size: .6875rem; font-weight: 700;
}
.wz-chain li + li { margin-left: 30px; }
.wz-chain li + li::after {
  content: ""; position: absolute; right: calc(100% + 6px); top: 50%; width: 18px; height: 1px;
  background: linear-gradient(90deg, rgba(15, 47, 56, .08), rgba(15, 47, 56, .3));
}

/* Fig. 5: a slider of six cards on white, like the other figures. Each card: the machine we build on top, the stream's
   name, before and after as two round photos, and the process. The row runs out to the right edge of the screen so the
   next card always peeks in; it moves only when the reader moves it. */
.waste.sl-sheet { background: var(--mist); }   /* the same pale mist as the other alternate sections; the white cards still stand out */
.waste.sl-sheet .shore-water { fill: var(--paper); }   /* the white sections above and below meet it in a soft wave */
.waste.sl-sheet .shore-wet { stroke: rgba(63, 143, 138, .35); }

.sl-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.sl-hint { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sl-hint-m { display: none; }
.no-js .sl-hint-d, .sd-none .sl-hint-d { display: none; }
.sl-nav { display: flex; gap: 8px; }
.no-js .sl-nav { display: none; }
.sl-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color .35s var(--ease-io), color .35s var(--ease-io), opacity .35s var(--ease-io);
}
.sl-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.sl-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sl-btn:disabled { opacity: .28; cursor: default; }
.sl-btn span { width: 15px; height: 10px; background: currentColor; transform: scaleX(-1); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1.2 14 5l-4 3.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1.2 14 5l-4 3.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.sl-next span { transform: none; }

/* the row: cards snap to the content column's left edge; on both sides it runs to the edge of the screen */
.sl-row {
  --gap: 20px; --pad: 8px;
  /* the row stays inside the content column: three cards and a short peek of the next; a soft fade on the right marks that more cards wait, and lifts at the last card */
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--pad) - 2 * var(--gap)) / 3.2); gap: var(--gap);
  margin: 0 calc(-1 * var(--pad)); padding: 16px var(--pad) 28px;
  list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  --fl: 0px; --fr: 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.sl-row.is-end { --fr: 0px; }
.sl-row.is-end.is-moved { --fl: 64px; }   /* at the last card, the previous one peeks on the left instead */
.sl-row::-webkit-scrollbar { display: none; }
.sl-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: 18px; }
.sl-row.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.sl-row.is-dragging img { pointer-events: none; }
.sl-card {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(15, 47, 56, .08), 0 18px 36px -28px rgba(15, 47, 56, .45);
  transition: transform .55s var(--ease-io), box-shadow .55s var(--ease-io);
}
/* the whole card opens the large view; the two round photos open straight to their own photo */
.sl-open { position: absolute; inset: 0; z-index: 3; width: 100%; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.sl-open:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.sl-zoom { position: relative; z-index: 4; display: block; padding: 0; border: 0; border-radius: 50%; background: none; cursor: zoom-in; transition: transform .45s var(--ease-io); }
.sl-zoom:hover { transform: scale(1.1); }
.sl-zoom:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sl-x {
  position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 10px rgba(6, 26, 32, .25); transition: transform .45s var(--ease-io), background-color .35s var(--ease-io), color .35s var(--ease-io);
}
.sl-x svg { width: 15px; height: 15px; }
.sl-card:hover .sl-x, .sl-open:focus-visible ~ .sl-m .sl-x { transform: scale(1.12); background: var(--green); color: #fff; }
.no-js .sl-open, .no-js .sl-x, .sd-none .sl-open, .sd-none .sl-x { display: none; }
.no-js .sl-zoom, .sd-none .sl-zoom { cursor: default; pointer-events: none; }
/* the machine, with its caption on a shade at the bottom of the photo */
.sl-m { position: relative; margin: 0; }
.sl-m img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mineral); }
.sl-m::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(rgba(6, 26, 32, 0), rgba(6, 26, 32, .72)); pointer-events: none; }
.sl-m figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; font-size: .8125rem; font-weight: 500; line-height: 1.3; }
.sl-k { display: block; margin-bottom: 2px; color: var(--muted); font-size: .5625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sl-m .sl-k { color: #CFE6C8; }
.sl-b { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.sl-n { margin: 0 0 6px; color: var(--green); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; }
.sl-card h3 { margin: 0 0 16px; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.01em; }
.sl-card h3 em { display: block; color: var(--green); }
/* before and after: two round photos with their captions beside them */
.sl-io { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; margin-bottom: 16px; }
.sl-io figure { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 10px; align-items: center; margin: 0; }
.sl-io img { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--mineral); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); }
.sl-io figcaption { color: var(--ink); font-size: .75rem; font-weight: 500; line-height: 1.3; }
.sl-ar { justify-self: center; width: 14px; height: 10px; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1.2 14 5l-4 3.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1.2 14 5l-4 3.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.sl-steps { display: flex; flex-wrap: wrap; gap: 2px 0; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.sl-steps li + li::before { content: "\2192"; margin: 0 6px; color: var(--green); }
/* where you are in the row */
.sl-track { position: relative; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.no-js .sl-track { display: none; }
.sl-track i { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; border-radius: inherit; background: var(--green); transform: translateX(var(--tx, 0)); }
.sl-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-top: clamp(22px, 2.6vw, 32px); }
.sl-foot .tl-note { margin: 0; max-width: 72ch; }
.sl-cta { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sl-cta:hover { color: var(--green-2); }
.sl-cta:hover .btn-arrow { transform: translateX(3px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sl-m img { transition: transform .9s var(--ease-io); }
  /* under the mouse a card lifts and grows a little, so it reads as something to open */
  .js .sl-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 1px rgba(38, 120, 74, .25), 0 30px 50px -30px rgba(15, 47, 56, .55); }
  .sl-card:hover .sl-m img { transform: scale(1.05); }
}
@media (hover: hover) and (pointer: fine) { .sl-row { cursor: grab; } }

/* Fig. 5, the large view: one waste stream in a dialog, its three photos big; any photo opens full size */
html.sd-lock { overflow: hidden; }
.sd {
  width: min(1180px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: hidden;
  border: 0; border-radius: 20px; background: var(--paper); color: var(--text); box-shadow: 0 40px 100px -30px rgba(6, 26, 32, .6);
  opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .4s var(--ease-io), transform .55s var(--ease-io);
}
.sd.is-in { opacity: 1; transform: none; }
.sd::backdrop { background: rgba(6, 26, 32, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s var(--ease-io); }
.sd.is-in::backdrop { opacity: 1; }
.sd-box { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; padding: 20px clamp(20px, 2.6vw, 34px) 30px; }
.sd-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.sd-n { margin: 0; color: var(--muted); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sd-n span { color: var(--green); }
.sd-nav { display: flex; gap: 8px; }
.sd-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color .35s var(--ease-io), color .35s var(--ease-io);
}
.sd-btn:hover { background: var(--ink); color: #fff; }
.sd-btn:focus-visible, .sd-pb:focus-visible, .sd-zback:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sd-chev { display: block; width: 15px; height: 10px; background: currentColor; transform: scaleX(-1); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1.2 14 5l-4 3.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1.2 14 5l-4 3.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.sd-next .sd-chev { transform: none; }
.sd-close { margin-left: 6px; }
.sd-xx { position: relative; display: block; width: 14px; height: 14px; }
.sd-xx::before, .sd-xx::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.8px; margin: -.9px 0 0 -8px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.sd-xx::after { transform: rotate(-45deg); }
/* the six streams sit on top of each other and cross-fade */
.sd-panels { display: grid; }
.sd-p { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .35s var(--ease-io), transform .45s var(--ease-io), visibility 0s .45s; }
.sd-p.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease-io) .1s, transform .7s var(--ease-out) .1s, visibility 0s; }
.sd-p h3 { margin: 0 0 22px; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem); line-height: 1.12; letter-spacing: -0.015em; }
.sd-p h3 em { color: var(--green); }
/* the three photos centred on one line, captions under them */
.sd-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.38fr) 44px minmax(0, 1fr); grid-template-rows: auto auto; }
.sd-ph { display: grid; grid-row: 1 / span 2; grid-template-rows: subgrid; min-width: 0; margin: 0; }
.sd-pb { position: relative; align-self: center; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; background: var(--mineral); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(15, 47, 56, .08), 0 22px 44px -30px rgba(15, 47, 56, .55); }
.sd-pb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease-io); }
.sd-machine .sd-pb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--green), 0 22px 44px -30px rgba(15, 47, 56, .55); }
.sd-machine .sd-pb img { aspect-ratio: 3 / 2; }
.sd-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
  opacity: .85; transition: opacity .35s var(--ease-io), transform .45s var(--ease-io); }
.sd-x svg { width: 15px; height: 15px; }
.sd-pb:hover .sd-x, .sd-pb:focus-visible .sd-x { opacity: 1; transform: scale(1.1); }
.sd-pb:hover img { transform: scale(1.04); }
.sd-ph figcaption { margin-top: 12px; color: var(--ink); font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.sd-k { display: block; margin: 0 0 3px; color: var(--muted); font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sd-machine .sd-k { color: var(--green); }
.sd-ar { grid-row: 1; align-self: center; justify-self: center; width: 18px; height: 12px; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1.2 14 5l-4 3.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5h13M10 1.2 14 5l-4 3.8' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* under the photos: what happens, the process, what we build */
.sd-info { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px 36px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.sd-d { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.6; }
.sd-steps { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: .875rem; line-height: 1.35; }
.sd-steps li { display: flex; align-items: center; gap: 10px; }
.sd-steps span { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(38, 120, 74, .1); color: var(--green); font-size: .6875rem; font-weight: 700; }
.sd-build p:not(.sd-k) { margin: 4px 0 14px; color: var(--ink); font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.sd-cta { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.sd-cta:hover { color: var(--green-2); }
.sd-cta:hover .btn-arrow { transform: translateX(3px); }
/* one photo, full size, over the dialog */
.sd-zoom { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 22px clamp(20px, 2.6vw, 34px) 18px; background: var(--deep);
  opacity: 0; transition: opacity .35s var(--ease-io); }
.sd-zoom.is-in { opacity: 1; }
.sd-zoom[hidden] { display: none; }
.sd-zf { display: flex; flex-direction: column; justify-content: center; min-height: 0; margin: 0; }
.sd-zf img { display: block; flex: 0 1 auto; width: 100%; height: auto; min-height: 0; max-height: 100%; object-fit: contain; cursor: zoom-out; transform: scale(.96); transition: transform .5s var(--ease-io); }
.sd-zoom.is-in .sd-zf img { transform: none; }
.sd-zf figcaption { margin-top: 12px; color: #fff; font-size: 1rem; font-weight: 500; text-align: center; }
.sd-zf .sd-k { color: var(--leaf); }
.sd-zbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.sd-zback { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; background: none; color: #fff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background-color .3s var(--ease-io); }
.sd-zback:hover { background: rgba(255, 255, 255, .12); }
.sd-zsteps { display: flex; gap: 8px; }
.sd-zoom .sd-btn { border-color: rgba(255, 255, 255, .6); background: none; color: #fff; }
.sd-zoom .sd-btn:hover { background: #fff; color: var(--ink); }

/* ---------- References ---------- */

.ticker { position: relative; padding-left: 20px; color: var(--muted); font-size: var(--fs-small); line-height: 1.55; max-width: 44ch; }
.ticker strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.ticker-dot { position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-dot { animation: beacon 2s ease-in-out infinite; }
  @keyframes beacon { 0%, 100% { box-shadow: 0 0 0 0 rgba(38, 120, 74, .45); } 50% { box-shadow: 0 0 0 6px rgba(38, 120, 74, 0); } }
}

.ref-fig { margin: 0; }
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th {
  padding: 0 24px 14px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--muted); font-size: var(--fs-label); font-weight: 600; text-align: left;
}
.ref-table td { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background-color .3s ease; }
.ref-table th:last-child, .ref-table td:last-child { padding-right: 0; }
.ref-table tbody tr:hover td { background: linear-gradient(90deg, transparent, rgba(227, 241, 241, .8) 20%, rgba(227, 241, 241, .8) 80%, transparent); }
.ref-marker { width: 168px; white-space: nowrap; line-height: 0; }
.ref-cap { width: 220px; color: var(--ink); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit { color: var(--green); font-size: .875rem; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.ref-name { color: var(--ink); font-weight: 500; }
.ref-type { width: 200px; color: var(--muted); font-size: var(--fs-small); }
.ref-note { margin: 16px 0 0; color: var(--muted); font-size: .875rem; }
.ref-litres { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; }

.tank { --d: calc(120px * var(--s, 1)); display: inline-block; vertical-align: middle; width: var(--d); height: var(--d); margin-right: 6px; overflow: visible; }
.tank:last-child { margin-right: 0; }
.t-wall { fill: #DCECE7; stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.t-weir { fill: none; stroke: var(--water); stroke-width: 1.2; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.t-well { fill: none; stroke: var(--ink); stroke-opacity: .6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.t-bbox { fill: none; stroke: none; }
.t-bridge line { stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.t-pier { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .t-bridge { animation: spin var(--spin, 40s) linear infinite; }
}
.js .ref-table tbody tr { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s var(--ease-out); }
.js .ref-table tbody tr.is-in { opacity: 1; transform: none; }
.js .ref-table tbody tr:nth-child(2) { transition-delay: .08s; }
.js .ref-table tbody tr:nth-child(3) { transition-delay: .16s; }
.js .ref-table tbody tr:nth-child(4) { transition-delay: .24s; }
.js .ref-table tbody tr:nth-child(5) { transition-delay: .32s; }
.reveal-all .ref-table tbody tr { opacity: 1; transform: none; }


/* from our project archive: three of the company's own photographs, big, with their captions underneath */
.ar { margin-top: clamp(44px, 4.6vw, 64px); }
.ar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; padding-top: 26px; margin-bottom: 24px; border-top: 1px solid var(--line); }
.ar-title { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + .7vw, 1.75rem); letter-spacing: -0.01em; }
.ar-note { margin: 0; color: var(--muted); font-size: .9375rem; }
.ar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); margin: 0; padding: 0; list-style: none; }
.ar-ph { margin: 0; }
.ar-frame { display: block; overflow: hidden; border-radius: 14px; background: var(--mineral); box-shadow: 0 1px 2px rgba(15, 47, 56, .08), 0 22px 44px -30px rgba(15, 47, 56, .5); }
.ar-frame img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ar-ph figcaption { margin-top: 12px; color: var(--ink); font-size: .875rem; font-weight: 500; line-height: 1.4; }
.ar-k { display: block; margin-bottom: 3px; color: var(--green); font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 699.98px) {
  .ar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .ar-grid li:first-child { grid-column: 1 / -1; }
  .ar-ph figcaption { margin-top: 9px; font-size: .8125rem; }
}

/* clients and project experience (under the references): a short count row, then five groups that open on a click */
.cx { margin-top: clamp(44px, 4.6vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); }
.cx-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: baseline; margin-bottom: 28px; }
.cx-title { grid-column: 1 / span 5; margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + .7vw, 1.75rem); letter-spacing: -0.01em; }
.cx-note { grid-column: 7 / span 6; margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.cx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 30px; padding: 0; list-style: none; }
.cx-stats li { padding: 4px 20px 4px 0; }
.cx-stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.cx-stats strong { display: block; color: var(--green); font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cx-stats span { display: block; margin-top: 8px; color: var(--text); font-size: .875rem; line-height: 1.4; }
.cx-list { border-top: 1px solid var(--line); }
.cx-g { border-bottom: 1px solid var(--line); }
.cx-g summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 32px; align-items: center; column-gap: 14px; padding: 18px 0; cursor: pointer; list-style: none; transition: color .3s var(--ease-io, ease); }
.cx-g summary::-webkit-details-marker { display: none; }
.cx-g summary:hover .cx-gt { color: var(--green); }
.cx-g summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 6px; }
.cx-gn { color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
.cx-gt { color: var(--ink); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); font-weight: 600; line-height: 1.3; transition: color .3s ease; }
.cx-gc { min-width: 30px; padding: 3px 10px; border-radius: 999px; background: var(--mineral); color: var(--ink); font-size: .75rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.cx-gx { position: relative; justify-self: end; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%; transition: transform .45s var(--ease-io, ease), background-color .3s ease; }
.cx-gx::before, .cx-gx::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--ink); }
.cx-gx::after { transform: rotate(90deg); transition: transform .45s var(--ease-io, ease); }
.cx-g[open] .cx-gx::after { transform: rotate(0deg); }
.cx-g summary:hover .cx-gx { background: var(--mineral); }
.cx-gb { padding: 0 0 26px 58px; }
.cx-g[open] .cx-gb { animation: cx-in .5s var(--ease-out) both; }
@keyframes cx-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cx-ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; margin: 0; padding: 0; list-style: none; }
.cx-ul li { position: relative; padding-left: 18px; color: var(--text); font-size: .9375rem; line-height: 1.5; }
.cx-ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--green); }
.cx-t { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.cx-t th { padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.cx-t td { padding: 11px 16px 11px 0; border-bottom: 1px solid rgba(214, 225, 220, .6); color: var(--text); line-height: 1.4; vertical-align: top; }
.cx-t td:first-child { color: var(--ink); font-weight: 500; }
.cx-t tr:last-child td { border-bottom: 0; }
.cx-t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx-t th:last-child, .cx-t td:last-child { padding-right: 0; }
.cx-sec { display: grid; gap: 0; margin: 0; }
.cx-sec div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 24px; padding: 12px 0; border-bottom: 1px solid rgba(214, 225, 220, .6); }
.cx-sec div:last-child { border-bottom: 0; }
.cx-sec dt { color: var(--ink); font-size: .9375rem; font-weight: 600; }
.cx-sec dd { margin: 0; color: var(--text); font-size: .9375rem; line-height: 1.6; }
/* partnerships: the names set in the serif, in one line that wraps */

@media (max-width: 999.98px) {
  .cx-title, .cx-note { grid-column: 1 / -1; }
  .cx-note { margin-top: 10px; }
  .cx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .cx-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 699.98px) {
  .cx-g summary { grid-template-columns: 30px minmax(0, 1fr) auto 28px; column-gap: 10px; }
  .cx-gb { padding-left: 0; }
  .cx-ul { grid-template-columns: minmax(0, 1fr); }
  .cx-sec div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .cx-t { font-size: .8125rem; }
  .cx-t th { font-size: .625rem; padding-right: 10px; }
  .cx-t td { padding-right: 10px; }
}

/* ---------- Partners: two strips of logo tiles drifting in opposite directions; they pause under the pointer ---------- */
.pm { display: grid; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pm-row { display: flex; width: max-content; animation: pm-slide 58s linear infinite; }
.pm-rev { animation-direction: reverse; animation-duration: 64s; }
.pm:hover .pm-row { animation-play-state: paused; }
.pm-track { display: flex; gap: 16px; margin: 0; padding: 0 16px 0 0; list-style: none; }
.pm-t { display: grid; place-items: center; flex: none; width: 200px; height: 104px; padding: 16px 22px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.pm-t img { display: block; max-width: 150px; max-height: 60px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .35s var(--ease-io), opacity .35s var(--ease-io); }
.pm-t:hover img { filter: none; opacity: 1; }
.pm-note { margin: 18px 0 0; color: var(--muted); font-size: .75rem; }
@keyframes pm-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 699.98px) {
  .pm { gap: 12px; }
  .pm-track { gap: 12px; padding-right: 12px; }
  .pm-t { width: 150px; height: 82px; padding: 12px 16px; }
  .pm-t img { max-width: 112px; max-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); }
  .pm-row { animation: none; }
  .pm-track[aria-hidden="true"] { display: none; }
}

/* ---------- Documents: two document cards, then the certifications as a plain checklist ---------- */
.dk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
.dk { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: start; padding: 22px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s var(--ease-io); }
.dk:hover { box-shadow: 0 0 0 1px var(--green), 0 20px 40px -30px rgba(15, 47, 56, .45); }
.dk-thumb { display: grid; place-items: center; height: 148px; padding: 12px; border-radius: 10px; background: var(--mineral); }
.dk-thumb img { display: block; max-width: 124px; max-height: 124px; width: auto; height: auto; border-radius: 2px; box-shadow: 0 8px 18px -10px rgba(15, 47, 56, .5); }
.dk-k { margin: 2px 0 6px; color: var(--green); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dk-t { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.dk-d { margin: 8px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.dk-a { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; }
.dk-a a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; transition: color .3s, text-decoration-color .3s; }
.dk-a a:first-child { color: var(--green-2); }
.dk-a a:hover { color: var(--green); text-decoration-color: currentColor; }
.dk-a svg { width: 16px; height: 16px; }
.dc { margin-top: clamp(40px, 4.2vw, 56px); }
.dc-t { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); font-weight: 500; }
.dc-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.dc-l li { position: relative; display: grid; gap: 2px; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); }
.dc-l li::before { content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--mineral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%2326784A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.dc-s { color: var(--ink); font-size: .9375rem; line-height: 1.45; }
.dc-by { color: var(--muted); font-size: .8125rem; }
@media (max-width: 999.98px) {
  .dk-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699.98px) {
  .dk { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .dk-thumb { height: 110px; padding: 8px; }
  .dk-thumb img { max-width: 80px; max-height: 94px; }
  .dk-t { font-size: 1.0625rem; }
  .dk-d { font-size: .875rem; }
  .dc-l { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Industries ---------- */

.sector-rows { border-top: 1px solid var(--ink); }
.sector-row {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 10px;
  align-items: baseline; padding-block: 28px; border-bottom: 1px solid var(--line);
}
.sector-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease-out); }
.sector-row:hover::after { transform: scaleX(1); }
.sector-row h3 { grid-column: 1 / span 3; font-size: var(--fs-small); font-weight: 600; color: var(--green); }
.sector-list {
  grid-column: 4 / span 9;
  display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none;
  color: var(--ink); font-size: 1.375rem; font-weight: 500; line-height: 1.55; letter-spacing: -0.012em;
}
.sector-list li { transition: color .25s ease; }
.sector-list li:hover { color: var(--green); }
.sector-list li:not(:last-child)::after { content: "/"; margin: 0 .5em; color: #A9C2B8; font-weight: 400; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.about-text { grid-column: 1 / span 6; }
.about-text > p { max-width: 56ch; }
.quote-card { grid-column: 8 / span 5; }

.seals-title { font-size: var(--fs-small); font-weight: 600; color: var(--green); margin: 36px 0 16px; }
.seals { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.seal {
  position: relative;
  width: 124px; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 10px; line-height: 1.2;
}
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal-draw { fill: none; stroke: var(--green); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.seal-dash { fill: none; stroke: rgba(38, 120, 74, .5); stroke-width: 1; stroke-dasharray: 1.2 2.2; vector-effect: non-scaling-stroke; transform-origin: 50px 50px; }
@media (prefers-reduced-motion: no-preference) {
  .seal-dash { animation: spin 80s linear infinite; }
  .seal:nth-child(2) .seal-dash { animation-direction: reverse; }
  .js .seal-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-draw); }
  .js .seals.is-in .seal-draw { stroke-dashoffset: 0; }
  .js .seals.is-in .seal:nth-child(2) .seal-draw { transition-delay: .15s; }
  .js .seals.is-in .seal:nth-child(3) .seal-draw { transition-delay: .3s; }
  .reveal-all .seal-draw { stroke-dashoffset: 0; }
}
.seal-std { position: relative; color: var(--ink); font-weight: 650; font-size: .9375rem; white-space: nowrap; }
.seal-year { position: relative; color: var(--muted); font-size: .75rem; }
.seal-scope { position: relative; color: var(--green); font-size: .7rem; font-weight: 600; margin-top: 6px; max-width: 80%; }

.quote-card {
  position: relative; overflow: hidden; margin: 0;
  padding: clamp(32px, 3.6vw, 48px);
  background:
    radial-gradient(70% 80% at 85% 0%, rgba(63, 143, 138, .32), transparent 70%),
    linear-gradient(160deg, #0F3A40 0%, #0A2A30 100%);
  border-radius: var(--radius-lg); color: #F1F6F4;
}
.quote-crescent {
  position: absolute; width: 150px; height: 150px; right: -36px; top: -78px;
  border-radius: 50%; box-shadow: inset 26px -8px 0 0 var(--leaf);
}
@media (prefers-reduced-motion: no-preference) {
  .js .quote-card .quote-crescent { transform: rotate(-30deg) translateY(-20px); opacity: 0; transition: transform 1.4s var(--ease-out) .3s, opacity 1s ease .3s; }
  .js .quote-card.is-in .quote-crescent { transform: none; opacity: 1; }
}
.quote-mark { position: absolute; left: clamp(26px, 3vw, 42px); top: clamp(10px, 1.4vw, 22px); color: #8FD3C5; font: italic 500 5rem/1 var(--serif); }
.quote-card blockquote { position: relative; margin: 0; padding-top: 44px; }
.quote-card blockquote p {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.3125rem, 1.15rem + .5vw, 1.5625rem);
  line-height: 1.45; color: #F1F6F4;
}
.quote-card figcaption { position: relative; display: flex; flex-direction: column; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(231, 239, 236, .18); line-height: 1.45; }
.quote-name { color: #F1F6F4; font-weight: 600; font-size: var(--fs-small); }
.quote-role { color: #A9C4BE; font-size: .875rem; }

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

.contact { padding-bottom: calc(var(--section-y) + 8px); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.contact-info { grid-column: 1 / span 5; }
.quote-form { grid-column: 7 / span 6; }
.contact-info h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 20px; }
.contact-info h2 em { color: var(--green); }
.contact-info > p { color: var(--muted); max-width: 42ch; }

.contact-lines { margin: 36px 0 32px; padding: 0; list-style: none; }
.contact-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 16px; padding: 18px 0; border-top: 1px solid rgba(15, 47, 56, .14); }
.contact-lines li:last-child { border-bottom: 1px solid rgba(15, 47, 56, .14); }
.line-label { grid-row: 1 / span 3; color: var(--green); font-size: var(--fs-label); font-weight: 600; padding-top: 4px; }
.line-value { grid-column: 2; justify-self: start; color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-variant-numeric: tabular-nums; background: linear-gradient(var(--green), var(--green)) 0 100% / 0 1.5px no-repeat; transition: color .2s ease, background-size .45s var(--ease-out); }
.line-value:hover { color: var(--green); background-size: 100% 1.5px; }
.line-text { grid-column: 2; color: var(--text); font-size: 1rem; }

.quote-form {
  background: var(--paper); color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 30px 60px -40px rgba(15, 47, 56, .35);
}
.form-title { color: var(--ink); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 20px; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; transition: color .2s ease; }
.field:focus-within label { color: var(--green); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #BCCDC6; border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .3s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F2F38' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #93AFA5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px rgba(38, 120, 74, .14); }
.field .is-invalid { border-color: var(--error); }

.form-status { margin: 14px 0 0; font-size: var(--fs-small); min-height: 1.5em; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="success"] { color: var(--green); font-weight: 600; }
.form-status[data-state="preview"] { color: var(--ink); background: var(--mineral); padding: 10px 12px; border-radius: var(--radius); }

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

.site-footer { position: relative; background: var(--deep-3); color: var(--on-deep-muted); font-size: var(--fs-small); }
.site-footer > .wrap { padding-bottom: 40px; }
.footer-wave-wrap { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 28px; overflow: hidden; pointer-events: none; }
.footer-wave { position: absolute; left: 0; top: 0; width: 200%; height: 100%; fill: var(--deep-3); }
@media (prefers-reduced-motion: no-preference) {
  .footer-wave { animation: drift-x 36s linear infinite; }
}
.nameplate {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px;
  padding-block: 64px 40px; border-bottom: 1px solid var(--deep-line);
}
.nameplate p { margin: 0; }
.nameplate-en { color: #fff; font-family: var(--serif); font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.nameplate-ar { color: var(--leaf); font-family: var(--font-ar); font-weight: 600; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.3; }

.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; padding-block: 48px; }
.footer-brand { grid-column: 1 / span 4; }
.footer-grid > nav.footer-col:first-of-type { grid-column: 6 / span 3; }
.footer-grid > nav.footer-col + nav.footer-col { grid-column: 9 / span 2; }
.footer-grid > div.footer-col { grid-column: 11 / span 2; }
.footer-seal { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); margin-bottom: 16px; }
.footer-seal img { width: auto; height: 30px; }
.footer-brand p { color: var(--on-deep); }
.footer-ar { font-family: var(--font-ar); font-weight: 500; }
.footer-brand .footer-tagline { color: var(--on-deep-muted); max-width: 30ch; }
.footer-col h2 { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; line-height: 1.4; color: #fff; margin-bottom: 14px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--on-deep); text-decoration: none; background: linear-gradient(var(--leaf), var(--leaf)) 0 100% / 0 1px no-repeat; transition: color .2s ease, background-size .45s var(--ease-out); }
.footer-col a:hover { color: var(--leaf); background-size: 100% 1px; }

/* the drawing's title block */
.credits { margin-top: 18px; color: rgba(231, 239, 236, .62); font-size: .8125rem; line-height: 1.55; }
.credits summary { display: inline-flex; align-items: center; gap: 8px; color: rgba(231, 239, 236, .8); cursor: pointer; list-style: none; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease-out); }
.credits[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.credits summary:hover { color: #fff; }
.credits p { max-width: 80ch; margin: 10px 0 0; }
.credits ul { margin: 8px 0 0; padding-left: 18px; }
.credits li { margin: 2px 0; }
.credits a { color: inherit; text-decoration: underline; text-decoration-color: rgba(231, 239, 236, .35); text-underline-offset: 2px; }
.credits a:hover { color: #fff; }
.title-block {
  display: grid; grid-template-columns: 2fr 1.2fr .6fr 1.1fr 1fr;
  margin: 0; border: 1px solid var(--deep-line); border-radius: 4px;
}
.tb-cell { padding: 12px 16px; border-left: 1px solid var(--deep-line); }
.tb-cell:first-child { border-left: 0; }
.title-block dt { color: rgba(166, 189, 183, .75); font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.title-block dd { margin: 0; color: var(--on-deep); font-size: .8125rem; }
.title-block a { color: var(--on-deep); text-decoration: underline; text-decoration-color: rgba(231, 239, 236, .35); text-underline-offset: 3px; }
.title-block a:hover { color: var(--leaf); }

/* ---------- Responsive ---------- */

/* the menu folds into a button once the seven links no longer fit on one line */
@media (min-width: 1240px) and (max-width: 1359.98px) {
  .site-nav ul { gap: 24px; }
}
@media (max-width: 1239.98px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px var(--gutter) 24px; background: rgba(239, 245, 248, .97); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 12px 24px rgba(15, 47, 56, .1); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav ul a::after { display: none; }
  .header-cta { min-height: 48px; }
}

/* the same, whenever the full menu does not fit (wider type, zoomed text) */
.nav-compact .nav-toggle { display: inline-block; }
.nav-compact .site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 16px;
  padding: 8px var(--gutter) 24px; background: rgba(239, 245, 248, .97); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 12px 24px rgba(15, 47, 56, .1); border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
}
.nav-compact .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s; }
.nav-compact .site-nav ul { flex-direction: column; gap: 0; }
.nav-compact .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.nav-compact .site-nav ul a::after { display: none; }
.nav-compact .header-cta { min-height: 48px; }

@media (max-width: 1100px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > nav.footer-col:first-of-type { grid-column: 1 / span 5; }
  .footer-grid > nav.footer-col + nav.footer-col { grid-column: 6 / span 3; }
  .footer-grid > div.footer-col { grid-column: 9 / span 4; }
  .litre-fig { gap: 32px; }
}


@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .litre-copy { grid-column: 1 / span 6; }
  .litre-fig { grid-column: 7 / span 6; flex-direction: column; align-items: flex-start; }
  .cyl { height: min(48svh, 420px); }
  .gauges { max-width: none; width: 100%; }
}

@media (max-width: 900px) {
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero-eyebrow { order: 1; }
  .hero-title { order: 2; }
  .hero-lede { order: 3; }
  .hero-actions { order: 4; }
  .clar-fig { order: 5; margin-top: 40px; width: 100%; max-width: 560px; align-self: center; }
  .clar { width: 100%; margin-right: 0; }
  .hero-facts { order: 6; margin-top: 48px; }
  .hero::before {
    -webkit-mask-image: radial-gradient(80% 40% at 50% 62%, #000 25%, transparent 75%);
            mask-image: radial-gradient(80% 40% at 50% 62%, #000 25%, transparent 75%);
  }

  .story-copy { grid-column: 1 / -1; }
  .story-word { grid-column: 1 / -1; margin-top: 56px; text-align: center; }
  .story-word figcaption { text-align: center; }

  .section-head-split h2, .section-head-split > p, .head-aside { grid-column: 1 / -1; }
  .litre-head h2, .litre-head p { grid-column: 1 / -1; }

  .litre-track { height: 330vh; }
  .litre-stage { align-items: stretch; }
  .litre-grid { display: flex; flex-direction: column; justify-content: center; gap: 20px; height: 100%; padding-block: 16px; }
  .litre-fig { order: 1; flex-direction: row; align-items: center; gap: 24px; }
  .litre-copy { order: 2; }
  .cyl { height: min(44svh, 380px); }
  .litre-texts { min-height: 9.5rem; }
  .litre-text h3 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem); margin-bottom: 10px; }
  .litre-text p { font-size: 1rem; max-width: 40ch; }
  .litre-count { margin-bottom: 10px; }
  .litre-steps { display: flex; gap: 6px; margin-top: 16px; max-width: none; }
  .litre-steps li { flex: 1; }
  .litre-steps button { display: block; height: 20px; padding: 0; border: 0; font-size: 0; color: transparent; }
  .litre-steps li:last-child button { border: 0; }
  .litre-steps button::after { top: 9px; height: 3px; border-radius: 2px; }
  .litre-steps button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; border-radius: 2px; background: var(--track); }
  .litre-steps .n { display: none; }
  .gauges { gap: 18px; }
  .gauge-text { font-size: 1.125rem; }


  .ref-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ref-table, .ref-table tbody { display: block; }
  .ref-table tbody { border-top: 1px solid var(--ink); }
  .ref-table tr {
    display: grid; grid-template-columns: 100px minmax(0, 1fr); column-gap: 20px; row-gap: 4px;
    align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line);
  }
  .ref-table td { display: block; width: auto; padding: 0; border: 0; }
  .ref-table tbody tr:hover td { background: none; }
  .ref-marker { grid-row: 1 / span 3; text-align: center; }
  .ref-cap { font-size: 1.5rem; }
  .tank { --d: calc(84px * var(--s, 1)); }

  .sector-row h3, .sector-list { grid-column: 1 / -1; }
  .sector-list { font-size: 1.1875rem; }

  .about-text, .quote-card { grid-column: 1 / -1; }
  .quote-card { margin-top: 48px; }
  .contact-info, .quote-form { grid-column: 1 / -1; }
  .quote-form { margin-top: 40px; }

  .footer-grid > nav.footer-col:first-of-type,
  .footer-grid > nav.footer-col + nav.footer-col { grid-column: span 6; }
  .footer-grid > div.footer-col { grid-column: 1 / -1; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .tb-wide { grid-column: 1 / -1; border-bottom: 1px solid var(--deep-line); }
  .tb-cell:nth-child(2), .tb-cell:nth-child(4) { border-left: 0; }
  .tb-cell:nth-child(4), .tb-cell:nth-child(5) { border-top: 1px solid var(--deep-line); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-mark { height: 38px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .7rem; }
  .hero-eyebrow { margin-bottom: 20px; font-size: .6875rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { grid-template-columns: 1fr; gap: 0; }
  .hero-facts li { padding-block: 14px; }
  .clar-legend { flex-direction: column; gap: 8px; }
  .view-toggle button { min-width: 64px; padding: 6px 10px; }
  .litre-fig { gap: 18px; }
  .gauge-value { font-size: 2rem; }
  .seals { gap: 10px; }
  .seal { width: calc((100% - 20px) / 3); max-width: 112px; padding: 6px; }
  .seal-std { font-size: .8125rem; }
  .seal-year { font-size: .7rem; }
  .seal-scope { font-size: .65rem; margin-top: 3px; max-width: 74%; line-height: 1.2; }
  .field-row { grid-template-columns: 1fr; }
  .nameplate { flex-direction: column; align-items: flex-start; padding-top: 52px; }
  .nameplate-ar { align-self: flex-end; }
  .footer-grid > nav.footer-col:first-of-type,
  .footer-grid > nav.footer-col + nav.footer-col { grid-column: 1 / -1; }
}

/* tough wastewater: tablets and phones, where the line runs down the page */
@media (max-width: 1099.98px) {
  .fl-ask-wide, .fl-replay { display: none; }
  .fl-ask-tall { display: inline; }
  .fl-strip { --rx: 22px; display: block; margin-inline: 0; padding-left: 56px; }
  .fl-slot { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 0 32px; align-items: center; }
  .fl-slot + .fl-slot { margin-top: 72px; }
  .fl-in .fl-glass, .fl-out .fl-glass { aspect-ratio: 3 / 2; }
  .fl-cap { padding: 0; }
  .st-n { left: -54px; top: 0; }
  .st-n-end { display: grid; }
  .fl-in .st-n-end { top: calc(68% - 20px); }
  .fl-result { grid-template-columns: minmax(0, 1fr) auto; }
  .fl-cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 899.98px) {
  .fl-intro { grid-template-columns: minmax(0, 1fr); }
  .fl-intro h3 { margin-bottom: 12px; }
}
@media (max-width: 760px) {
  .shelf { --bh: 78px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 0; background: none; }
  .bottle { position: relative; }
  .bottle::before { content: ""; position: absolute; left: 0; right: 0; top: var(--bh); height: 2px; background: var(--ink); }
  .bottle-svg { width: 52px; }
  .bottle-name { margin-top: 12px; font-size: .9375rem; }
  .bottle-sub { font-size: .75rem; }
}
@media (max-width: 699.98px) {
  .fl-strip { --rx: 17px; padding-left: 46px; }
  .fl-slot + .fl-slot { margin-top: 52px; }
  .fl-st, .fl-out { grid-template-columns: minmax(0, 1fr); }
  .fl-st .fl-cap, .fl-out .fl-cap { padding-top: 16px; }
  .fl-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
  .fl-in .fl-glass { aspect-ratio: 1 / 1.1; }
  .fl-out .fl-glass { aspect-ratio: 2 / 1; }
  .st-n { left: -46px; width: 34px; height: 34px; font-size: .8125rem; }
  .fl-in .st-n-end { top: calc(68% - 17px); }
  .st-n-end { font-size: .625rem; }
  .fl-cap h4 { font-size: 1.25rem; }
  .fl-rd { right: 8px; bottom: 8px; }
  .fl-result { grid-template-columns: minmax(0, 1fr); }
}

/* the integrated plant: below desktop width the drawing keeps its size and pans, following the stage */
@media (max-width: 1099.98px) {
  .ip-params { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ip-in-hint { flex-basis: 100%; margin-left: 0; }
  .ip-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ip-scroll::-webkit-scrollbar { display: none; }
  .ip-svg { width: 1060px; max-width: none; }
  .ip-swipe {
    display: flex; align-items: center; gap: 8px; position: absolute; right: 12px; top: 12px; margin: 0; padding: 5px 11px 5px 9px; border-radius: 999px;
    background: rgba(15, 47, 56, .78); color: #fff; font-size: .75rem; font-weight: 600; pointer-events: none; transition: opacity .5s ease;
  }
  .ip-swipe::before { content: "\2194"; font-size: .9rem; line-height: 1; }
  .ip-fig.is-swiped .ip-swipe { opacity: 0; }
  .ip-ctrl { flex-direction: column; align-items: stretch; gap: 14px; }
  .ip-steps { display: flex; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ip-steps::-webkit-scrollbar { display: none; }
  .ip-steps li { flex: 0 0 92px; scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
  .ip-play { align-self: flex-start; }
}
@media (max-width: 760px) {
  .ip-params { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ip-p { padding: 9px 10px 10px; }
  .ip-p-v { font-size: 1rem; }
  .ip-pane { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .ip-pk, .ip-pane h3, .ip-units, .ip-txt, .ip-acts { grid-column: 1; grid-row: auto !important; }
  .ip-txt { margin-top: 14px; font-size: 1rem; }
  .ip-svg { width: 1060px; }
}

/* treatment solutions: tablets and phones, an accordion with the plate inside */
@media (max-width: 999.98px) {
  .sx.is-ready { display: block; }
  .sx.is-ready .sx-item { display: block; }
  .sx.is-ready .sx-panel { margin: 0; padding: 16px 0 30px; }
  .sx-plate, .sx-capbar { max-width: 640px; }
  .sx-plate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sx-plate.sx-ba { grid-template-columns: minmax(0, 1fr); }   /* the before/after plate: the slider full width, the cases under it */
  .sx-ph.slot-0 { grid-column: 1 / -1; grid-row: 1; }
  .sx-ph.slot-1 { grid-column: 1; grid-row: 2; }
  .sx-ph.slot-2 { grid-column: 2; grid-row: 2; }
  .js .sx-body h3 { display: none; }
  .sx-body { padding-top: 20px; }
  .sx-chev { opacity: .55; transform: rotate(135deg); }
  .sx-tab[aria-expanded="true"] .sx-chev { transform: rotate(-45deg); }
}
@media (max-width: 699.98px) {
  .sx-tab { grid-template-columns: 60px 22px minmax(0, 1fr) 12px; gap: 0 12px; padding: 9px 10px 9px 8px; font-size: 1rem; }
  .sx-thumb { width: 60px; }
  .sx-b { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .sx-b::after { display: none; }
  .sx-fc { padding: 22px 8px 7px; font-size: .6875rem; }
  .sx-capbar { font-size: .875rem; }
}

/* waste management: the service chain on phones */
@media (max-width: 760px) {
  .wz-chain-row { margin-bottom: 22px; }
  .wz-chain { gap: 8px; }
  .wz-chain li { padding: 4px 12px 4px 5px; font-size: .8125rem; }
  .wz-chain li + li { margin-left: 0; }
  .wz-chain li + li::after { display: none; }
}
/* the large view on tablets and phones: on a phone it fills the screen, the machine first, before and after under it */
@media (max-width: 899.98px) {
  .sd-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sd-d { grid-column: 1 / -1; }
  .sd-row { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.3fr) 30px minmax(0, 1fr); }
}
@media (max-width: 599.98px) {
  .sd { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .sd-box { height: 100%; max-height: 100dvh; padding: 0 18px 28px; }
  .sd-top { position: sticky; top: 0; z-index: 2; margin: 0 -18px 6px; padding: 12px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .sd-btn { width: 38px; height: 38px; }
  .sd-p h3 { font-size: 1.5rem; margin: 12px 0 18px; }
  .sd-p h3 em { display: block; }
  .sd-row { grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .sd-machine { grid-column: 1 / -1; grid-row: 1 / span 2; margin-bottom: 18px; }
  .sd-before { grid-column: 1; grid-row: 3 / span 2; }
  .sd-after { grid-column: 3; grid-row: 3 / span 2; }
  .sd-row > .sd-ar:nth-of-type(1) { grid-column: 2; grid-row: 3; }
  .sd-row > .sd-ar:nth-of-type(2) { display: none; }
  .sd-ph figcaption { margin-top: 9px; font-size: .8125rem; }
  .sd-info { grid-template-columns: minmax(0, 1fr); margin-top: 20px; padding-top: 18px; }
  .sd-d { font-size: .9375rem; }
  .sd-zoom { padding: 14px 14px 16px; }
  .sd-zback > span:last-child { display: none; }
  .sd-zback { padding: 9px 12px; }
}

/* the waste slider on tablets and phones: two cards and a bit on a tablet, one and a bit on a phone */
@media (max-width: 999.98px) {
  .sl-row { grid-auto-columns: calc((100% - 2 * var(--pad) - var(--gap)) / 2.2); }
}
@media (max-width: 599.98px) {
  .sl-row.is-end.is-moved { --fl: 36px; }
  .sl-row { --gap: 14px; --fr: 36px; grid-auto-columns: calc(100% - 2 * var(--pad) - 44px); }
  .sl-nav { display: none; }
  .sl-hint-m { display: inline; }
  .sl-hint-d { display: none; }
  .sl-b { padding: 16px 16px 18px; }
  .sl-card h3 { font-size: 1.25rem; }
  .sl-io figure { grid-template-columns: 50px minmax(0, 1fr); column-gap: 9px; }
  .sl-io img { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .load { opacity: 1; transform: none; }
  .js [data-split] .wi { transform: none; }
  .js .ref-table tbody tr { opacity: 1; transform: none; }
}
