/* =========================================================================
   Green 2 Green Solutions — Shared Stylesheet
   Brand: deep forest green / mint / teal · Fraunces + Spline Sans
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --deep:   #1A2E1C;   /* deep forest green — base background */
  --mid:    #2C5F2D;   /* forest mid */
  --mint:   #5DCAA5;   /* accent */
  --teal:   #1D9E75;   /* secondary accent */
  --cream:  #F2F5F0;   /* light text / surfaces */
  --ink:    #1A1A18;   /* near-black */

  /* Derived surfaces */
  --bg-0:   #15251A;                 /* page base (a touch deeper for card contrast) */
  --bg-1:   #1A2E1C;                 /* section alt */
  --surface:        rgba(242, 245, 240, 0.035);
  --surface-strong: rgba(242, 245, 240, 0.06);
  --hairline:       rgba(93, 202, 165, 0.16);
  --hairline-soft:  rgba(242, 245, 240, 0.10);

  /* Text */
  --text:       #F2F5F0;
  --text-muted: rgba(242, 245, 240, 0.70);
  --text-dim:   rgba(242, 245, 240, 0.52);

  /* Accent gradients */
  --grad-accent: linear-gradient(120deg, var(--mint), var(--teal));

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Spline Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing (8pt) */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem;
  --sp-20: 5rem;  --sp-24: 6rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 240ms;

  /* Elevation */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px -12px rgba(0,0,0,0.55);
  --shadow-2: 0 20px 60px -24px rgba(0,0,0,0.7);

  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* anchored sections land below the sticky nav instead of underneath it */
[id] { scroll-margin-top: calc(var(--nav-h, 72px) + 1rem); }
/* screen-reader-only text (headings for unlabelled sections, etc.) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(29, 158, 117, 0.18), transparent 60%),
    radial-gradient(48rem 38rem at -10% 10%, rgba(93, 202, 165, 0.10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  color: var(--text);
}
.h-display { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 420; }
h1, .h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2, .h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }
p { color: var(--text-muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text); }
strong { color: var(--text); font-weight: 600; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, var(--surface) 40%, transparent); }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 200;
  background: var(--mint); color: var(--ink); padding: 0.6rem 1rem;
  border-radius: var(--radius); font-weight: 600; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mint); margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.is-center::after { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.7; }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: var(--sp-4); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  min-height: 48px; transition: transform var(--dur) var(--ease),
    background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--mint); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(93,202,165,0.6); }
.btn--primary:hover { background: #74d8b6; transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(93,202,165,0.7); }
.btn--ghost { border: 1px solid var(--hairline); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; color: var(--mint);
  font-weight: 600; font-size: 0.96rem;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(20, 36, 26, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--hairline-soft);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); width: 100%; }

/* Brand / logo */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; border-radius: 12px; }
.brand-logo {
  height: 48px; width: auto; display: block;
  /* dark-variant artwork (logo-dark.svg) is transparent; a soft drop-shadow
     lifts it off busy hero canvases without reintroducing a plate */
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.brand:hover .brand-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(93, 202, 165, 0.35));
}
.footer-brand .brand-logo { height: 54px; }

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.15rem); }
.nav-links a {
  font-size: 0.93rem; font-weight: 500; color: var(--text-muted);
  padding: 0.4rem 0.2rem; position: relative; transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--mint); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease); border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; align-items: center; }
.nav-cta .btn { padding: 0.6rem 1.25rem; min-height: 42px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--hairline); align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--mint); }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: background 0.1s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--cream);
  border-radius: 2px; transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: rgba(18, 32, 22, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline-soft);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-4) clamp(1.1rem, 4vw, 2.5rem) var(--sp-8);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a {
    display: block; width: 100%;
    padding: 0.95rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--hairline-soft);
  }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--mint); }
  .nav-cta { margin-top: var(--sp-6); }
  .nav-cta .btn { width: 100%; min-height: 50px; }
}
@media (min-width: 1025px) {
  .nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
/* Hero content sits in the same .container bounds as every other section
   (edges align site-wide); inner elements cap their own line length. */
.hero-inner { position: relative; z-index: 2; }
.hero .h-display { margin-top: var(--sp-4); max-width: 20ch; }
.hero .lead { margin-top: var(--sp-6); color: var(--text-muted); max-width: 40rem; }
.hero .btn-row { margin-top: var(--sp-8); }
.hero-meta { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.hero-meta div { max-width: 14rem; }
.hero-meta dt { font-family: var(--font-display); font-size: 1.7rem; color: var(--mint); }
.hero-meta dd { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Decorative infinity glow behind hero (legacy — unused on globe hero) */
.hero-orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5; }

/* Animated globe hero background (homepage) */
.hero--globe {
  background: radial-gradient(ellipse 130% 100% at 64% 42%, #1A2E1C 0%, #17291A 45%, #0D170F 78%, #0A1610 100%);
  min-height: clamp(600px, 88vh, 880px);
  display: flex; align-items: center;
}
.hero-globe-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-globe-grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay; }
.hero-globe-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,16,9,0.86) 0%, rgba(8,16,9,0.5) 26%, rgba(8,16,9,0) 47%),
    linear-gradient(180deg, transparent 62%, var(--bg-0) 100%);
}
.hero--globe .hero-inner { position: relative; z-index: 3; }
@media (max-width: 760px) {
  .hero--globe { min-height: clamp(560px, 82vh, 760px); }
  /* Text spans full width on mobile — carry a fuller scrim for legibility */
  .hero-globe-scrim {
    background:
      linear-gradient(180deg, rgba(8,16,9,0.55) 0%, rgba(8,16,9,0.35) 40%, rgba(8,16,9,0.72) 82%, var(--bg-0) 100%);
  }
}

/* Page hero (interior pages) */
.page-hero { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-hero .h1 { margin-top: var(--sp-3); max-width: 18ch; }
.page-hero .lead { margin-top: var(--sp-5); max-width: 50ch; }

/* Full-scene animated hero variant (About page) — canvas scene + CSS layers
   live inside .g2gAbout (scoped styles in about.html) */
.page-hero--scene {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(520px, 72vh, 760px);
  padding-top: clamp(5rem, 10vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}
.page-hero--scene .container { position: relative; z-index: 5; }
@media (max-width: 760px) {
  .page-hero--scene { min-height: clamp(460px, 64vh, 620px); }
}

/* Video-background hero variant */
.page-hero--video {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(460px, 66vh, 660px);
  padding-top: clamp(5rem, 10vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}
.page-hero--video .container { position: relative; z-index: 2; }
.page-hero--video .lead { color: var(--text); } /* full-strength text over video */
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; background: var(--bg-1); }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Tuned to keep cream text legible across ALL frames — including the bright
     daytime final frame the video holds on (no loop). */
  background:
    linear-gradient(180deg, rgba(21,37,26,0.90) 0%, rgba(21,37,26,0.52) 28%, rgba(21,37,26,0.56) 66%, var(--bg-0) 100%),
    linear-gradient(90deg, rgba(21,37,26,0.94) 0%, rgba(21,37,26,0.62) 50%, rgba(21,37,26,0.30) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; } /* paused/hidden; scrim + brand bg remain */
}

/* Animated particle-map hero background (Challenge page only) */
.page-hero--particles {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 62vh, 640px);
}
.page-hero--particles .container { position: relative; z-index: 2; }
.hero-particles-wrap { position: absolute; inset: 0; z-index: 0; background: var(--bg-1); }
.hero-particles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-particles-grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: overlay; }
.hero-particles-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Left ~40% stays visually calm for the headline; fades out toward the
     archipelago motion on the right, plus a bottom fade into the page. */
  background:
    linear-gradient(90deg, rgba(21,37,26,0.92) 0%, rgba(21,37,26,0.72) 32%, rgba(21,37,26,0.30) 55%, rgba(21,37,26,0.05) 78%, transparent 100%),
    linear-gradient(180deg, rgba(21,37,26,0.35) 0%, transparent 22%, transparent 74%, var(--bg-0) 100%);
}
@media (max-width: 760px) {
  .page-hero--particles { min-height: clamp(420px, 58vh, 560px); }
  .hero-particles-scrim {
    background:
      linear-gradient(180deg, rgba(21,37,26,0.55) 0%, rgba(21,37,26,0.30) 40%, rgba(21,37,26,0.75) 82%, var(--bg-0) 100%);
  }
}

/* Floating stat cards — Challenge hero only. Absolutely positioned over the
   right side of the particle map on desktop (text column caps at 18ch/50ch,
   so the right ~45% is clear); below 960px there isn't enough clearance
   next to the text, so they drop into normal flow as a wrapping row. */
.hero-stats-float {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.hero-stat-card {
  position: absolute; pointer-events: auto; cursor: default;
  width: clamp(148px, 15vw, 190px);
  padding: 0.9rem 1.05rem 1rem;
  border-radius: 14px;
  background: rgba(26, 46, 28, 0.46);
  border: 1px solid rgba(93, 202, 165, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px -14px rgba(0,0,0,0.5);
  transition: transform 0.35s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: heroStatBob 7s ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
}
.hero-stat-card:nth-child(1) { top: 8%;  right: 6%; }
.hero-stat-card:nth-child(2) { top: 42%; right: 20%; }
.hero-stat-card:nth-child(3) { top: 74%; right: 3%; }

.hero-stat-num {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600; color: var(--mint); line-height: 1; margin-bottom: 0.4rem;
}
.hero-stat-label { font-size: 0.78rem; line-height: 1.4; color: var(--cream); opacity: 0.82; }
.hero-stat-label em { font-style: normal; opacity: 0.7; }
.hero-stat-source {
  font-size: 0.68rem; line-height: 1.4; color: var(--mint); opacity: 0;
  max-height: 0; margin-top: 0; overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.3s ease, margin-top 0.25s ease;
}
.hero-stat-card:hover,
.hero-stat-card:focus-visible {
  transform: translateY(-4px) scale(1.03);
  background: rgba(26, 46, 28, 0.68);
  border-color: rgba(93, 202, 165, 0.5);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,0.6);
  animation-play-state: paused;
}
.hero-stat-card:hover .hero-stat-source,
.hero-stat-card:focus-visible .hero-stat-source {
  opacity: 1; max-height: 3rem; margin-top: 0.45rem;
}
.hero-stat-card:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

@keyframes heroStatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stat-card { animation: none; }
}

@media (max-width: 960px) {
  .hero-stats-float {
    position: static; inset: auto; pointer-events: auto;
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    margin-top: clamp(1.6rem, 4vw, 2.2rem);
  }
  .hero-stat-card {
    position: static; width: clamp(140px, 42vw, 200px);
    animation: none;
  }
  .hero-stat-card:hover, .hero-stat-card:focus-visible { transform: translateY(-2px); }
}

/* Before/after image comparison slider (Challenge page) */
.compare-frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); aspect-ratio: 16 / 9;
  box-shadow: 0 20px 60px -24px rgba(0,0,0,0.55);
  --pos: 50%;
}
.compare-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
  -webkit-user-drag: none; user-select: none;
}
.compare-after { z-index: 0; }
.compare-before-wrap {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
  /* the input covers the whole frame; without this, touch browsers can't
     tell a horizontal slider drag from a vertical page-scroll gesture and
     fall back to treating touches as taps. pan-y explicitly hands vertical
     scroll back to the page while keeping horizontal drag for the slider. */
  touch-action: pan-y;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.compare-range::-moz-range-thumb { width: 44px; height: 100%; border: none; background: transparent; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 3px; background: var(--cream); transform: translateX(-50%);
  pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s ease;
}
.compare-range:focus-visible ~ .compare-handle {
  box-shadow: 0 0 0 3px var(--mint);
}
.compare-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.5);
}
.compare-grip svg { width: 20px; height: 20px; }
.compare-tag {
  position: absolute; top: 1rem; z-index: 2;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  background: rgba(21,37,26,0.55); color: var(--cream);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.compare-tag--before { left: 1rem; }
.compare-tag--after { right: 1rem; }
@media (max-width: 560px) {
  .compare-frame { aspect-ratio: 4 / 3; }
  .compare-tag { font-size: 0.65rem; padding: 0.35rem 0.7rem; }
}

/* Isometric waste-pile canvas — bottom-left of the Challenge hero, above the
   scrim (which is left-dark for text) but below the content layer. */
.hero-pile-canvas {
  position: absolute; left: 0; bottom: 0;
  width: min(44%, 520px); height: 60%;
  pointer-events: none;
}
@media (max-width: 960px) {
  .hero-pile-canvas { display: none; }
}

/* "Three converging pressures" cards — animated SVG vignettes (Challenge) */
.pressure-card {
  position: relative; overflow: hidden; height: 100%;
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.6vw, 2rem);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pressure-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--mint), transparent 72%);
  opacity: 0.45; transition: opacity var(--dur) var(--ease);
}
.pressure-card:hover {
  transform: translateY(-5px); border-color: var(--hairline);
  background: var(--surface-strong);
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.6);
}
.pressure-card:hover::before { opacity: 1; }
.pressure-card h3 { margin-bottom: var(--sp-3); }
.pressure-card p { font-size: 0.98rem; }
.pc-index {
  position: absolute; top: 1rem; right: 1.2rem; z-index: 1;
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 600;
  line-height: 1; color: rgba(93, 202, 165, 0.18); pointer-events: none;
}
.pc-vis {
  height: 96px; margin-bottom: 1.15rem; overflow: hidden;
  border-radius: 10px; background: rgba(16, 32, 15, 0.5);
  border: 1px solid rgba(93, 202, 165, 0.12);
}
.pc-vis svg { width: 100%; height: 100%; display: block; }

/* 01 — capacity bars fill toward a dashed limit line */
.pc-cap {
  stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 5 6;
  animation: pcCapPulse 2.8s ease-in-out infinite;
}
.pc-bar {
  fill: rgba(143, 184, 144, 0.34);
  transform-box: fill-box; transform-origin: bottom;
  transform: scaleY(0.3);
  animation: pcFill 4.4s ease-in-out infinite alternate;
  animation-delay: var(--pcd, 0s);
}
@keyframes pcFill { to { transform: scaleY(1); } }
@keyframes pcCapPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.85; } }

/* 02 — debris drifts off the shoreline into open water */
.pc-shore { fill: none; stroke: rgba(143, 184, 144, 0.55); stroke-width: 2; stroke-linecap: round; }
.pc-wave {
  fill: none; stroke: rgba(93, 202, 165, 0.5); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 4 7; animation: pcWave 3.2s linear infinite;
}
.pc-wave--2 { stroke: rgba(93, 202, 165, 0.28); animation-duration: 4.1s; }
@keyframes pcWave { to { stroke-dashoffset: -22; } }
.pc-drip {
  fill: rgba(242, 245, 240, 0.7);
  animation: pcLeak 3.8s linear infinite;
  animation-delay: var(--pcd, 0s);
}
@keyframes pcLeak {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translate(146px, 10px); opacity: 0; }
}

/* 03 — jittery intermittent supply vs a steady baseload line */
.pc-sine {
  fill: none; stroke: rgba(242, 245, 240, 0.28); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 4 6; animation: pcSineFlow 2.6s linear infinite;
}
@keyframes pcSineFlow { to { stroke-dashoffset: -20; } }
.pc-base { fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; opacity: 0.85; }
.pc-pulse {
  fill: var(--mint);
  filter: drop-shadow(0 0 5px rgba(93, 202, 165, 0.9));
  animation: pcPulseRun 3.4s linear infinite;
}
@keyframes pcPulseRun {
  0% { transform: translateX(10px); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(210px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-bar { animation: none; transform: scaleY(0.72); }
  .pc-cap, .pc-wave, .pc-drip, .pc-sine, .pc-pulse { animation: none; }
  .pc-drip { opacity: 0.6; }
  .pc-pulse { transform: translateX(110px); opacity: 1; }
}

/* Ambient looping video behind a full section (content stays on top) */
.section--videobg { position: relative; isolation: isolate; overflow: hidden; }
.section--videobg > .container { position: relative; z-index: 2; }
.section-videobg-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-videobg-wrap video { width: 100%; height: 100%; object-fit: cover; }
.section-videobg-scrim {
  position: absolute; inset: 0;
  /* heavy wash so cards and copy stay fully legible; fades into the page at both ends */
  background:
    linear-gradient(180deg, var(--bg-0) 0%, rgba(21,37,26,0.86) 18%, rgba(21,37,26,0.84) 82%, var(--bg-0) 100%);
}
/* light variant — for intrinsically dark footage (e.g. the wireframe/lines
   render) where a heavy wash would erase the visual entirely */
.section-videobg-scrim--light {
  background:
    linear-gradient(180deg, var(--bg-0) 0%, rgba(21,37,26,0.30) 22%, rgba(21,37,26,0.30) 78%, var(--bg-0) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .section-videobg-wrap video { display: none; }
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  /* media-first splits read text-first when stacked */
  .split > .split-media { order: 2; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.6vw, 2rem);
  position: relative; transition: transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: var(--hairline); background: var(--surface-strong); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { font-size: 0.98rem; }
.card .link-arrow { margin-top: var(--sp-5); }
.card--feature { background: linear-gradient(160deg, rgba(29,158,117,0.14), var(--surface)); border-color: var(--hairline); }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(93,202,165,0.12); border: 1px solid var(--hairline);
  color: var(--mint); margin-bottom: var(--sp-5);
}
.card-icon svg { width: 26px; height: 26px; }
.card-index { font-family: var(--font-display); font-size: 0.95rem; color: var(--mint); letter-spacing: 0.05em; }

/* Numbered / bordered list cards */
.feature-list { display: grid; gap: var(--sp-4); }
.feature-list li {
  display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--hairline-soft);
}
.feature-list li:first-child { border-top: none; }
.feature-list .fi-mark { color: var(--mint); flex-shrink: 0; margin-top: 0.15rem; }
.feature-list .fi-mark svg { width: 22px; height: 22px; }
.feature-list h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin-bottom: 0.25rem; }
.feature-list p { font-size: 0.95rem; }
/* card variant — each failure point gets its own surface + icon tile */
.feature-list--cards { gap: var(--sp-3); }
.feature-list--cards li {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius); padding: 1.05rem 1.2rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.feature-list--cards li:first-child { border-top: 1px solid var(--hairline-soft); }
.feature-list--cards li:hover {
  border-color: var(--hairline); background: var(--surface-strong); transform: translateX(6px);
}
.feature-list--cards .fi-mark {
  width: 42px; height: 42px; margin-top: 0.1rem; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(93, 202, 165, 0.1); border: 1px solid var(--hairline);
}
.feature-list--cards .fi-mark svg { width: 20px; height: 20px; }

/* ---------- Stat counters ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.stats--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .stats, .stats--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats--three { grid-template-columns: 1fr; } }
.stat { padding: var(--sp-2) 0; border-left: 2px solid var(--hairline); padding-left: clamp(1.5rem, 2.2vw, 2.25rem); }
.stat-num {
  font-family: var(--font-display); font-weight: 420; line-height: 1;
  font-size: clamp(2.3rem, 4.5vw, 3.2rem); color: var(--cream);
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 0.1rem;
}
.stat-num .unit { font-size: 0.5em; color: var(--mint); }
.stat-label { margin-top: var(--sp-3); font-size: 0.92rem; color: var(--text-muted); }
.stat-source { margin-top: var(--sp-2); font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.02em; }

/* ---------- Credibility band ---------- */
.cred {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); background: var(--surface);
}
@media (max-width: 760px) { .cred { grid-template-columns: 1fr; gap: var(--sp-6); } }
/* stacked variant — for a split column beside a visual */
.cred--stack { grid-template-columns: 1fr; gap: var(--sp-6); margin-top: clamp(1.4rem, 3vw, 2rem); }
.cred-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.cred-item .ci-icon { color: var(--mint); flex-shrink: 0; }
.cred-item .ci-icon svg { width: 26px; height: 26px; }
.cred-item h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.cred-item p { font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- Process / how-it-works ---------- */
.process { counter-reset: step; display: grid; gap: var(--sp-4); }
.process-step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5);
  padding: clamp(1.2rem, 2.4vw, 1.6rem); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius); background: var(--surface); align-items: start;
  transition: border-color var(--dur) var(--ease);
}
.process-step:hover { border-color: var(--hairline); }
.process-step .step-num {
  counter-increment: step; font-family: var(--font-display); font-size: 1.4rem;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(93,202,165,0.12); border: 1px solid var(--hairline); color: var(--mint);
}
.process-step .step-num::before { content: counter(step, decimal-leading-zero); }
.process-step h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; margin-bottom: 0.3rem; }
.process-step p { font-size: 0.95rem; }

/* Columns variant — five steps side by side, aligned under the flow strip's
   five stations (desktop only; stacks on smaller screens for readability). */
@media (min-width: 1024px) {
  .process--columns { grid-template-columns: repeat(5, 1fr); gap: clamp(0.7rem, 1.2vw, 1.1rem); align-items: stretch; }
  .process--columns .process-step {
    grid-template-columns: 1fr; gap: 0.8rem; align-content: start;
    text-align: center; padding: 1.2rem 1rem 1.35rem;
  }
  .process--columns .process-step .step-num { justify-self: center; width: 42px; height: 42px; font-size: 1.2rem; }
  .process--columns .process-step h3 { font-size: 1rem; }
  .process--columns .process-step p { font-size: 0.87rem; }
  /* the columns carry the 01–05 numbering, so drop the strip's duplicate chips */
  .process-vis--cols .pv-chip, .process-vis--cols .pv-chipnum { display: none; }
}

/* ---------- Animated process flow strip (companion to .process) ---------- */
.process-vis {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(29,158,117,0.08), var(--surface));
  overflow: hidden; padding: clamp(0.5rem, 1.5vw, 1rem);
}
.process-vis svg { display: block; width: 100%; height: auto; }
.pv-label { fill: var(--text-muted); font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.pv-chipnum { fill: var(--mint); font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; }
.pv-station { transition: opacity var(--dur) var(--ease); }
.pv-station.is-hot .pv-label { fill: var(--cream); }
.pv-station.is-hot .pv-chip { stroke: var(--mint); }
.pv-station .pv-hotring { opacity: 0; transition: opacity var(--dur) var(--ease); }
.pv-station.is-hot .pv-hotring { opacity: 1; }
@media (max-width: 640px) { .pv-label { font-size: 17px; } .pv-chipnum { font-size: 13px; } }

/* pipe pulses */
@keyframes pvDash { to { stroke-dashoffset: -114; } }
.pv-pulse { stroke-dasharray: 16 98; animation: pvDash 2.4s linear infinite; }
.pv-pulse.pv-d2 { animation-delay: 0.5s; }
.pv-pulse.pv-d3 { animation-delay: 1.0s; }
.pv-pulse.pv-d4 { animation-delay: 1.5s; }
/* waste falling into intake */
@keyframes pvFall { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 0.9; } 80% { opacity: 0.9; } 100% { transform: translateY(38px); opacity: 0; } }
.pv-fall { animation: pvFall 2.1s linear infinite; }
.pv-fall.f2 { animation-delay: 0.7s; }
.pv-fall.f3 { animation-delay: 1.4s; }
/* reactor core breathing */
@keyframes pvGlow { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
.pv-glow { animation: pvGlow 4s ease-in-out infinite; }
/* cleaning bars, sequential */
@keyframes pvBar { 0%, 100% { opacity: 0.22; } 18% { opacity: 1; } 40% { opacity: 0.22; } }
.pv-bar { animation: pvBar 2.25s linear infinite; }
.pv-bar.b2 { animation-delay: 0.45s; }
.pv-bar.b3 { animation-delay: 0.9s; }
.pv-bar.b4 { animation-delay: 1.35s; }
.pv-bar.b5 { animation-delay: 1.8s; }
/* engine rotor */
@keyframes pvSpin { to { transform: rotate(360deg); } }
.pv-rotor { transform-box: fill-box; transform-origin: center; animation: pvSpin 7s linear infinite; }
/* grid node flare */
@keyframes pvFlare { 0% { r: 8; opacity: 0.7; } 100% { r: 22; opacity: 0; } }
.pv-flare { animation: pvFlare 2.4s ease-out infinite; }
.pv-flare.f2 { animation-delay: 1.2s; }
/* residue drip from reactor */
@keyframes pvResidue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 0.7; } 100% { transform: translateY(30px); opacity: 0; } }
.pv-residue { animation: pvResidue 3.2s linear infinite; }
.pv-residue.r2 { animation-delay: 1.6s; }

@media (prefers-reduced-motion: reduce) {
  .pv-pulse { animation: none; stroke-dasharray: none; opacity: 0.35; }
  .pv-fall, .pv-residue { animation: none; opacity: 0; }
  .pv-glow { animation: none; opacity: 0.6; }
  .pv-bar { animation: none; opacity: 0.7; }
  .pv-rotor { animation: none; }
  .pv-flare { animation: none; opacity: 0; }
}

/* ---------- Caveat / disclosure box ---------- */
.caveat {
  display: flex; gap: var(--sp-4); padding: clamp(1.2rem, 2.5vw, 1.6rem) clamp(1.2rem, 2.5vw, 1.8rem);
  border: 1px solid rgba(93,202,165,0.32); border-left: 3px solid var(--mint);
  border-radius: var(--radius); background: rgba(93,202,165,0.07);
}
.caveat .cv-icon { color: var(--mint); flex-shrink: 0; margin-top: 0.1rem; }
.caveat .cv-icon svg { width: 24px; height: 24px; }
.caveat p { font-size: 0.95rem; color: var(--text); }
.caveat strong { color: var(--mint); }

/* ---------- Media / image slots (swap with real assets) ---------- */
.media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline-soft); background: var(--surface-strong);
  aspect-ratio: 4 / 3;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 9; }
/* Placeholder appearance until real photography is dropped in */
.media[data-placeholder] {
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(93,202,165,0.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, rgba(29,158,117,0.16), rgba(26,46,28,0.5));
}
.media[data-placeholder] .ph-note {
  font-size: 0.8rem; letter-spacing: 0.05em; color: var(--text-dim); padding: 1rem;
  max-width: 22ch;
}
.media[data-placeholder] .ph-note svg { width: 30px; height: 30px; margin: 0 auto 0.6rem; color: var(--mint); opacity: 0.7; }
/* Animated canvas scene inside a media frame (About page) */
.media--anim {
  background:
    radial-gradient(120% 100% at 70% 0%, rgba(29, 158, 117, 0.12), transparent 55%),
    linear-gradient(180deg, #10200F 0%, #16281A 60%, #12241a 100%);
}
.media--anim canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* SDG tiles — official goal colors as badges on the site's dark surface */
.sdg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 2vw, 1.2rem); }
@media (max-width: 960px) { .sdg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sdg-grid { grid-template-columns: 1fr; } }
.sdg-item {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 0.95rem;
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius); padding: 1.05rem 1.15rem;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.sdg-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--sdg); opacity: 0.8;
}
.sdg-item:hover {
  transform: translateY(-3px); border-color: var(--hairline); background: var(--surface-strong);
}
.sdg-item:hover .sdg-num { box-shadow: 0 8px 20px -6px var(--sdg); }
.sdg-num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--sdg); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  transition: box-shadow var(--dur) var(--ease);
}
.sdg-label { font-size: 0.92rem; line-height: 1.35; color: var(--text-muted); }
.sdg-label strong {
  display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 0.2rem; font-weight: 600;
}

.media-badge {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(20,36,26,0.8); backdrop-filter: blur(6px);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem; font-size: 0.8rem; color: var(--cream);
}

/* ---------- Playable video (with audio/voiceover — native controls) ---------- */
.media-video {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline-soft); background: #000; box-shadow: var(--shadow-2);
}
.media-video video { width: 100%; height: auto; display: block; }
.media-video-cap { margin-top: var(--sp-3); font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
.media-video-cap svg { width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-right: 0.35em; color: var(--mint); }

/* ---------- Background video filling a column, replayable with sound ---------- */
.videobg {
  position: relative; height: 100%; min-height: 340px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline-soft); background: #000; box-shadow: var(--shadow-2);
}
.videobg__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.videobg__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1.15rem 0.55rem 0.6rem; border-radius: var(--radius-pill);
  background: rgba(20,36,26,0.68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); color: var(--cream); font: inherit; font-size: 0.92rem; font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.videobg__play:hover { transform: translate(-50%, -50%) scale(1.04); border-color: var(--mint); background: rgba(20,36,26,0.85); }
.videobg__play:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.videobg__play .vb-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; flex: 0 0 auto; }
.videobg__play .vb-ic svg { width: 18px; height: 18px; margin-left: 2px; }
.videobg.is-playing .videobg__play { display: none; }
@media (prefers-reduced-motion: reduce) { .videobg__play { transition: none; } }

/* ---------- Technical / HUD motion treatment for ambient footage ---------- */
.media-tech {
  position: relative; aspect-ratio: 16 / 9; isolation: isolate;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline-soft); background: #000; box-shadow: var(--shadow-2);
}
.media-tech__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* faint blueprint grid over the footage */
.media-tech__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay;
  background-image:
    linear-gradient(rgba(93,202,165,0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,202,165,0.9) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* edge vignette so the HUD elements stay legible over any frame */
.media-tech__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,16,9,0.45) 0%, transparent 22%, transparent 78%, rgba(8,16,9,0.55) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(8,16,9,0.35) 100%);
}
/* scanning sweep */
.media-tech__scan {
  position: absolute; left: 0; right: 0; top: -4%; height: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(93,202,165,0.95), transparent);
  box-shadow: 0 0 16px 3px rgba(93,202,165,0.55);
  animation: mtScan 5.5s linear infinite;
}
@keyframes mtScan {
  0%   { top: -4%; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: 104%; opacity: 0; }
}
/* viewfinder corner brackets */
.mt-corner { position: absolute; z-index: 2; width: 22px; height: 22px; border-color: rgba(93,202,165,0.85); border-style: solid; border-width: 0; pointer-events: none; }
.mt-corner.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.mt-corner.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.mt-corner.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.mt-corner.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }
/* bottom readout bar */
.media-tech__readout {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.6rem 0.9rem; background: rgba(8,16,9,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(93,202,165,0.22);
}
.mt-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.mt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: mtPulseDot 1.6s ease-in-out infinite; }
@keyframes mtPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.mt-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-dim); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .media-tech__scan { animation: none; opacity: 0; }
  .mt-dot { animation: none; opacity: 1; }
}
@media (max-width: 480px) {
  .mt-status span:last-child, .mt-tag { font-size: 0.68rem; }
}

/* ---------- Embedded process schematic (iframe) ---------- */
.schematic {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline); background: #e8eaee; box-shadow: var(--shadow-2);
}
.schematic iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.schematic-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: var(--sp-4); margin-top: var(--sp-5);
}
.schematic-note { font-size: 0.85rem; color: var(--text-dim); max-width: 62ch; }
@media (max-width: 640px) { .schematic iframe { aspect-ratio: 3 / 4; } }

/* ---------- Quote / pull ---------- */
.pull {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.3; color: var(--cream); max-width: 24ch;
}
.pull-block { border-left: 2px solid var(--mint); padding-left: clamp(1.2rem, 3vw, 2rem); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--hairline);
  background:
    radial-gradient(40rem 24rem at 80% 0%, rgba(29,158,117,0.28), transparent 60%),
    linear-gradient(135deg, rgba(44,95,45,0.5), rgba(20,36,26,0.4));
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 50ch; margin: var(--sp-5) auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-8); }

/* ---------- Chips / tags ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; font-weight: 500;
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-soft); color: var(--text-muted); background: var(--surface);
}
.chip svg { width: 1em; height: 1em; color: var(--mint); }

/* ---------- Audience strip ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }
.audience-item { padding: var(--sp-6); border-radius: var(--radius); border: 1px solid var(--hairline-soft); background: var(--surface); }
.audience-item .ai-icon { color: var(--mint); margin-bottom: var(--sp-4); }
.audience-item .ai-icon svg { width: 28px; height: 28px; }
.audience-item h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.audience-item p { font-size: 0.94rem; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--hairline-soft); background: var(--surface-strong); margin-bottom: var(--sp-4);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--text); margin-bottom: 0.2rem; }
.team-role {
  display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mint); margin-bottom: var(--sp-3);
}
.team-bio { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }

/* ---------- FAQ accordion (native details/summary) ---------- */
.faq { display: grid; gap: var(--sp-3); }
.faq-item {
  border: 1px solid var(--hairline-soft); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq-item[open] { border-color: var(--hairline); background: var(--surface-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 1.05rem 1.25rem; font-weight: 600; font-size: 1.02rem; color: var(--text);
  transition: color var(--dur) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--mint); }
.faq-item summary:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; border-radius: var(--radius); }
.faq-chev { flex: 0 0 auto; width: 20px; height: 20px; color: var(--mint); transition: transform var(--dur) var(--ease); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item > p { padding: 0 1.25rem 1.15rem; font-size: 0.97rem; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .faq-chev, .faq-item, .faq-item summary { transition: none; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field .req { color: var(--mint); }
.field .hint { font-size: 0.82rem; color: var(--text-dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(20,36,26,0.6); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius); padding: 0.85rem 1rem; min-height: 50px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235DCAA5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.8rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(93,202,165,0.18); background: rgba(20,36,26,0.85);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #E8836B; box-shadow: 0 0 0 3px rgba(232,131,107,0.18); }
.field .error-msg { font-size: 0.82rem; color: #F0A48F; min-height: 1.1rem; }
.field .error-msg:empty { min-height: 0; }

.form-card {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-success {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1rem; gap: var(--sp-4);
}
.form-success.is-shown { display: flex; }
.form-success .fs-check {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(93,202,165,0.15); border: 1px solid var(--mint); color: var(--mint);
}
.form-success .fs-check svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 1.5rem; }
.is-hidden { display: none !important; }

/* ---------- Contact info ---------- */
.contact-info { display: grid; gap: var(--sp-6); }
.contact-line { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-line .cl-icon { color: var(--mint); flex-shrink: 0; margin-top: 0.15rem; }
.contact-line .cl-icon svg { width: 22px; height: 22px; }
.contact-line .cl-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); }
.contact-line .cl-value { font-size: 1.02rem; color: var(--text); margin-top: 0.1rem; }

/* ---------- Engagement journey (About) ---------- */
.journey {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2rem); position: relative;
}
/* connector line through the node centres */
.journey::before {
  content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint) 60%, rgba(93, 202, 165, 0.25));
  opacity: 0.4;
}
.journey-step { position: relative; }
.journey-node {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-0); border: 1px solid var(--hairline);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--mint); margin-bottom: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.journey-step:hover .journey-node {
  border-color: var(--mint); transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(93, 202, 165, 0.12), 0 10px 26px -12px rgba(93, 202, 165, 0.5);
}
.journey-step h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.35rem; }
.journey-step p { font-size: 0.95rem; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 1.6rem; }
  .journey::before {
    top: 26px; bottom: 26px; left: 25px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--teal), var(--mint) 60%, rgba(93, 202, 165, 0.25));
  }
  .journey-step { padding-left: 74px; }
  .journey-node { position: absolute; left: 0; top: 0; margin-bottom: 0; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline-soft); margin-top: var(--sp-12); padding-block: clamp(3rem, 6vw, 4.5rem) var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: var(--sp-4); }
.footer-brand p { font-size: 0.94rem; max-width: 32ch; }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--mint); margin-top: var(--sp-4); font-size: 1.05rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim); font-weight: 600; margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: var(--sp-3); }
.footer-col a { font-size: 0.95rem; color: var(--text-muted); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); align-items: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: var(--sp-6); border-top: 1px solid var(--hairline-soft); }
.footer-bottom p { font-size: 0.85rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.footer-legal a { font-size: 0.85rem; color: var(--text-dim); }
.footer-legal a:hover { color: var(--mint); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav-links a::after, .link-arrow svg { transition: none !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Utility ---------- */
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); } .mt-12 { margin-top: var(--sp-12); }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: var(--sp-4); }
.divider { height: 1px; background: var(--hairline-soft); border: none; margin-block: clamp(2rem,5vw,3.5rem); }
.text-mint { color: var(--mint); }
.maxw-sm { max-width: 44ch; }
