:root {
  --bg: #061311;
  --bg-2: #0a1c18;
  --surface: #0e2520;
  --surface-2: #123029;
  --border: rgba(120, 230, 190, 0.12);
  --text: #eaf6f1;
  --muted: #9fc4b6;
  --muted-2: #6f9488;
  --green: #19e896;
  --green-2: #12c47e;
  --teal: #29d4c4;
  --lime: #b8f23a;
  --red: #ff5a4d;
  --grad: linear-gradient(110deg, #19e896 0%, #29d4c4 55%, #b8f23a 100%);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .hstat__num, .metric__num, .invest__num, .stat-card__num {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

.grad {
  background: linear-gradient(100deg, var(--green) 35%, var(--lime) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* FILM GRAIN — subtle texture across the whole site */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  opacity: 0.055;
  mix-blend-mode: overlay;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-weight: 600; font-size: 0.82rem;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn--lg { padding: 8px 15px; font-size: 0.82rem; }
.btn--primary { background: linear-gradient(100deg, var(--green) 35%, var(--lime) 130%); color: #052017; box-shadow: 0 8px 22px -12px rgba(25, 232, 150, 0.35); }
.btn--primary:hover { transform: translateY(-2px); background: linear-gradient(100deg, var(--green-2) 35%, var(--lime) 130%); box-shadow: 0 12px 28px -14px rgba(25, 232, 150, 0.45); }
.btn--ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--green); transform: translateY(-2px); }

/* NAV */
.progress-bar {
  position: fixed; top: 72px; left: 0; z-index: 99;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--green) 55%, var(--lime));
  box-shadow: 0 0 8px rgba(25, 232, 150, 0.35);
  transition: width 0.1s linear;
  pointer-events: none;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 19, 17, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 0 32px; }
.nav__inner .brand { justify-self: start; }
.nav__links { justify-self: center; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.brand {
  --logo-height: 42px;
  display: inline-flex;
  align-items: center;
  flex: none;
  position: relative;
}
.brand::before,
.brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: calc(var(--logo-height) * 0.17);
  height: calc(var(--logo-height) * 0.17);
  border-radius: 2px;
  pointer-events: none;
}
.brand::before {
  left: 0;
  top: 0;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(184, 242, 58, 0.42);
}
.brand::after {
  left: calc(var(--logo-height) * 0.17);
  top: calc(var(--logo-height) * 0.19);
  background: var(--teal);
  box-shadow: 0 0 14px rgba(41, 212, 196, 0.42);
}
.brand__logo {
  display: block;
  width: auto;
  height: 42px;
}
.footer__brand .brand { --logo-height: 52px; }
.footer__brand .brand::before { box-shadow: 0 0 20px rgba(184, 242, 58, 0.55); }
.footer__brand .brand::after { box-shadow: 0 0 20px rgba(41, 212, 196, 0.55); }
.brand__logo--footer {
  width: auto;
  height: 52px;
}
.nav__links { display: flex; gap: 20px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.92rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { white-space: nowrap; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.02); }
.lang__btn {
  border: 0; cursor: pointer; background: none; color: var(--muted);
  font-family: inherit; font-size: 0.8rem; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { background: var(--green); color: #052017; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; border-radius: 2px; }

/* HERO */
.hero { position: relative; padding: 170px 0 110px; overflow: visible; box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,19,17,0.76) 0%, rgba(6,19,17,0.66) 45%, rgba(6,19,17,0.88) 100%),
    linear-gradient(120deg, rgba(18,196,126,0.10), rgba(41,212,196,0.06) 60%, transparent),
    url("assets/hero-landscape.png") center 50% / cover no-repeat;
  opacity: 0.72;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 70%, transparent 100%);
}
/* Drifting clouds — soft mist confined to the sky band */
.hero__clouds {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  opacity: 0.15;
  filter: blur(5px);
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 18%, #000 36%, rgba(0,0,0,0.5) 50%, transparent 62%),
    radial-gradient(ellipse 44% 54% at 50% 50%, transparent 36%, #000 66%);
          mask-image:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 18%, #000 36%, rgba(0,0,0,0.5) 50%, transparent 62%),
    radial-gradient(ellipse 44% 54% at 50% 50%, transparent 36%, #000 66%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hero__clouds-layer {
  position: absolute; left: 0; top: -170px; height: calc(100% + 340px);
  background-repeat: repeat;
  will-change: transform, opacity;
}
.hero__clouds-layer--near {
  width: calc(100% + 1400px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='c' filterUnits='userSpaceOnUse' x='0' y='0' width='400' height='400'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.01 0.01' numOctaves='5' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.1 1.1 1.1 0 -1.18'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 1400px auto;
  animation: hero-clouds-near 88s linear infinite, clouds-breathe-near 37s ease-in-out infinite;
}
.hero__clouds-layer--far {
  width: calc(100% + 2200px);
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cfilter id='c' filterUnits='userSpaceOnUse' x='0' y='0' width='560' height='560'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0071428571 0.0071428571' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.1 1.1 1.1 0 -1.42'/%3E%3C/filter%3E%3Crect width='560' height='560' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 2200px auto;
  animation: hero-clouds-far 132s linear infinite, clouds-breathe-far 53s ease-in-out infinite;
}
@keyframes hero-clouds-near {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-350px, -26px, 0); }
  50%  { transform: translate3d(-700px, 16px, 0); }
  75%  { transform: translate3d(-1050px, -12px, 0); }
  100% { transform: translate3d(-1400px, 0, 0); }
}
@keyframes hero-clouds-far {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-550px, 20px, 0); }
  50%  { transform: translate3d(-1100px, -16px, 0); }
  75%  { transform: translate3d(-1650px, 24px, 0); }
  100% { transform: translate3d(-2200px, 0, 0); }
}
@keyframes clouds-breathe-near { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }
@keyframes clouds-breathe-far  { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.66; } }
@media (prefers-reduced-motion: reduce) {
  .hero__clouds-layer--near, .hero__clouds-layer--far { animation: none; }
}
.hero__glow { position: absolute; border-radius: 50%; }
.hero__glow--1 {
  width: 760px; height: 760px; top: -200px; right: -170px;
  filter: blur(46px);
  background:
    radial-gradient(circle at 50% 50%, rgba(150,255,210,0.0315), rgba(25,232,150,0) 40%),
    radial-gradient(circle at 50% 50%, rgba(25,232,150,0.042) 0%, rgba(25,232,150,0.0245) 28%, rgba(25,232,150,0.0105) 52%, rgba(25,232,150,0.0035) 70%, rgba(25,232,150,0) 82%);
}
.hero__glow--2 {
  width: 880px; height: 880px; bottom: -380px; left: -200px;
  filter: blur(52px);
  background:
    radial-gradient(circle at 50% 50%, rgba(160,248,238,0.0315), rgba(41,212,196,0) 40%),
    radial-gradient(circle at 50% 50%, rgba(41,212,196,0.042) 0%, rgba(41,212,196,0.0245) 28%, rgba(41,212,196,0.0105) 52%, rgba(41,212,196,0.0035) 70%, rgba(41,212,196,0) 84%);
}
.hero__glow--3 {
  width: 320px; height: 320px; top: 38%; left: 30%; opacity: 0.7;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(255,90,77,0.16), transparent 70%);
}
.hero__contours {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.1;
  mask-image: radial-gradient(ellipse 62% 96% at 50% 54%, transparent 40%, #000 78%);
  -webkit-mask-image: radial-gradient(ellipse 62% 96% at 50% 54%, transparent 40%, #000 78%);
}
.hero__contours-lines {
  animation: hero-contours 55s linear infinite;
  will-change: transform;
}
@keyframes hero-contours {
  from { transform: translateX(0); }
  to   { transform: translateX(-480px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__contours-lines, .cta__contours-lines { animation: none; }
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { color: var(--green); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 700; margin-bottom: 24px; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 660px; margin: 0 auto 34px; }
.hero__lead strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; justify-content: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 48px; padding-top: 10px; justify-content: center; }
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat__num { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--green); }
.hero__stats .hstat:last-child .hstat__num {
  background: linear-gradient(100deg, var(--red) 24%, #ffb84a 62%, var(--lime) 135%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hstat__label { color: var(--muted-2); font-size: 0.88rem; max-width: 200px; }
.hero__badge { margin-top: 30px; display: inline-block; font-size: 0.84rem; color: var(--muted); padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(25,232,150,0.05); }

/* SECTION CONTOURS (shared) */
.sc {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.sc svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.1;
  mask-image: radial-gradient(ellipse 62% 96% at 50% 54%, transparent 40%, #000 78%);
  -webkit-mask-image: radial-gradient(ellipse 62% 96% at 50% 54%, transparent 40%, #000 78%);
}
.sc__lines {
  animation: hero-contours 55s linear infinite;
  will-change: transform;
}
.section > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .sc__lines { animation: none; }
}

/* SECTION */
.section { padding: 100px 0; position: relative; }
.section + .section::before,
.problem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(72%, 920px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(120, 230, 190, 0.36), transparent);
  opacity: 1;
}
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 18px; }
.section__sub { color: var(--muted); font-size: 1.08rem; }
.kicker { color: var(--green); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.source { color: var(--muted-2); font-size: 0.85rem; text-align: center; margin-top: 26px; }

/* CARDS */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--projects { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(25,232,150,0.22); box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card p strong { color: var(--text); }

.stat-card__num { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 12px; color: var(--green); }

/* LENIS smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* PARALLAX — give photo backdrops vertical headroom so edges never show */
.hero__photo,
.problem__bg, .diff__bg, .model__bg, .network__bg, .quote__bg, .investment__bg {
  top: -64px;
  height: calc(100% + 128px);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero__photo,
  .problem__bg, .diff__bg, .model__bg, .network__bg, .quote__bg, .investment__bg {
    top: 0; height: 100%; transform: none !important;
  }
}

/* PROBLEM — photo backdrop */
.problem { overflow: hidden; box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.problem .container { position: relative; z-index: 1; }
.problem__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,19,17,0.76) 0%, rgba(6,19,17,0.66) 45%, rgba(6,19,17,0.88) 100%),
    linear-gradient(120deg, rgba(255,90,77,0.12), rgba(255,90,77,0.05) 60%, transparent),
    url("assets/landfill.png") center / cover no-repeat;
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

/* Red accents — scoped to the crisis / problem framing */
.problem .kicker { color: var(--red); }
.problem .stat-card__num { color: var(--red); }
.problem .stat-card { position: relative; overflow: hidden; }
.problem .stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0.7;
}
.problem .stat-card:hover { border-color: rgba(255, 90, 77, 0.32); }

/* SOLUTION — full-screen like hero/problem */
.solution { overflow: hidden; box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }

/* WHY DIFFERENT — photo backdrop */
.diff { overflow: hidden; }
.diff .container { position: relative; z-index: 1; }
.diff__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,19,17,0.60) 0%, rgba(6,19,17,0.48) 45%, rgba(6,19,17,0.74) 100%),
    linear-gradient(120deg, rgba(18,196,126,0.10), rgba(41,212,196,0.05) 60%, transparent),
    url("assets/desert-night.png") center / cover no-repeat;
  opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

/* MODEL — photo backdrop */
.model { overflow: hidden; }
.model .container { position: relative; z-index: 1; }
.model__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,19,17,0.78) 0%, rgba(6,19,17,0.68) 45%, rgba(6,19,17,0.90) 100%),
    linear-gradient(120deg, rgba(18,196,126,0.12), rgba(41,212,196,0.07) 60%, transparent),
    url("assets/plant-aerial.png") center 40% / cover no-repeat;
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

/* SPLIT */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text .kicker { display: block; margin-bottom: 12px; }
.split__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 18px; }

.feature-list { list-style: none; margin: 24px 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--muted); }
.feature-list li strong { color: var(--text); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px; border-radius: 4px; background: var(--grad);
}
.feature-list--check li::before {
  content: "✓"; background: none; color: var(--green); font-weight: 700;
  top: 0; font-size: 1rem; width: auto; height: auto;
}
.note { color: var(--muted); font-size: 0.95rem; padding: 16px 18px; border-left: 3px solid var(--green); background: rgba(25,232,150,0.05); border-radius: 0 10px 10px 0; }

/* PROCESS FLOW — interactive process map */
.flow {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px;
}
.flow__track { position: relative; display: flex; justify-content: space-between; gap: 6px; margin-bottom: 24px; }
.flow__line {
  position: absolute; top: 26px; left: 12%; right: 12%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(41,212,196,0.28), rgba(25,232,150,0.28), rgba(184,242,58,0.28));
  overflow: hidden;
}
.flow__pulse {
  position: absolute; top: 50%; left: -16%; width: 44px; height: 7px;
  transform: translateY(-50%); border-radius: 7px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  filter: blur(0.5px);
  animation: flow-pulse 3.4s var(--ease) infinite;
}
@keyframes flow-pulse {
  0% { left: -16%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}
.flow__node {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted-2); transition: color 0.3s var(--ease);
}
.flow__dot {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted);
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.flow__dot svg { width: 24px; height: 24px; }
.flow__cap { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.82rem; font-weight: 600; text-align: center; }
.flow__num { font-size: 0.66rem; letter-spacing: 0.08em; color: var(--muted-2); transition: color 0.3s; }
.flow__node:hover .flow__dot { border-color: rgba(25,232,150,0.4); color: var(--green); transform: translateY(-2px); }
.flow__node.is-active { color: var(--text); }
.flow__node.is-active .flow__num { color: var(--green); }
.flow__node.is-active .flow__dot {
  background: linear-gradient(135deg, var(--green), var(--teal));
  border-color: transparent; color: #04130f; transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(25,232,150,0.12), 0 10px 26px -8px rgba(25,232,150,0.45);
}
.flow__detail { position: relative; min-height: 168px; border-top: 1px solid var(--border); padding-top: 22px; }
.flow__panel { display: none; }
.flow__panel.is-active { display: block; animation: flow-fade 0.45s var(--ease); }
@keyframes flow-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flow__panel h4 { font-size: 1.2rem; margin-bottom: 8px; }
.flow__panel p { color: var(--muted); font-size: 0.95rem; }
.flow__temp {
  display: inline-block; margin-top: 14px; font-family: "Space Grotesk"; font-weight: 700; font-size: 0.92rem;
  padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--red) 12%, #ffb84a 56%, var(--lime) 125%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flow__outputs-label {
  display: block; margin-top: 18px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
}
.flow__outputs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flow__out {
  font-size: 0.8rem; font-weight: 600; color: var(--green);
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgba(25,232,150,0.25); background: rgba(25,232,150,0.06);
  opacity: 0; transform: translateY(6px);
  animation: flow-out-in 0.45s var(--ease) forwards;
}
.flow__panel.is-active .flow__out:nth-child(1) { animation-delay: 0.06s; }
.flow__panel.is-active .flow__out:nth-child(2) { animation-delay: 0.12s; }
.flow__panel.is-active .flow__out:nth-child(3) { animation-delay: 0.18s; }
.flow__panel.is-active .flow__out:nth-child(4) { animation-delay: 0.24s; }
.flow__panel.is-active .flow__out:nth-child(5) { animation-delay: 0.30s; }
.flow__panel.is-active .flow__out:nth-child(6) { animation-delay: 0.36s; }
@keyframes flow-out-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .flow__pulse { animation: none; opacity: 0; }
  .flow__panel.is-active { animation: none; }
  .flow__out { animation: none; opacity: 1; transform: none; }
}

/* METRICS */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.metrics--3 { grid-template-columns: repeat(3, 1fr); }
.metric {
  text-align: center; padding: 30px 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.metric__num { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--green); }
.metric__num--word { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: 0.05em; }
.metric__label { color: var(--muted); font-size: 0.9rem; margin-top: 6px; display: block; }

/* GEO */
.geo__card { text-align: left; }
.geo__flag { display: block; margin-bottom: 12px; line-height: 0; }
.geo__flag svg {
  width: 42px; height: auto; display: block;
  border-radius: 5px;
  border: 1px solid rgba(234, 246, 241, 0.18);
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.8);
}

/* PARTNERS */
.partners { padding: 66px 0; }
.partners__label {
  text-align: center; color: var(--muted-2);
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 30px;
}
.partners__strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px 24px;
}
.partner {
  display: inline-flex; align-items: center; justify-content: center;
  height: 64px; padding: 0 26px;
  background: #f3f4f4;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  opacity: 0.88;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.partner img {
  height: 26px; width: auto; display: block;
}
.partner img[alt="NAES"] { height: 36px; }
.partner img[alt="LanzaTech"] { height: 20px; }
.partner img[alt="LanzaJet"] { height: 19px; }
.partner img[alt="Satec Steel"] { height: 24px; }
.partner img[alt="Genamex"] { height: 50px; }
.partner:hover {
  opacity: 1; transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}

/* ROLES */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.3s; }
.role:hover { border-color: rgba(25,232,150,0.35); }
.role h4 { color: var(--green); font-size: 1rem; margin-bottom: 5px; }
.role p { color: var(--muted); font-size: 0.85rem; }

/* INVESTMENT — photo backdrop */
.investment { overflow: hidden; }
.investment .container { position: relative; z-index: 1; }
.investment__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,19,17,0.80) 0%, rgba(6,19,17,0.70) 45%, rgba(6,19,17,0.90) 100%),
    linear-gradient(120deg, rgba(18,196,126,0.10), rgba(41,212,196,0.06) 60%, transparent),
    url("assets/investment-city.png") center 30% / cover no-repeat;
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

/* NETWORK — photo backdrop */
.network { overflow: hidden; }
.network .container { position: relative; z-index: 1; }
.network__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,19,17,0.88) 0%, rgba(6,19,17,0.82) 45%, rgba(6,19,17,0.94) 100%),
    linear-gradient(120deg, rgba(18,196,126,0.12), rgba(41,212,196,0.07) 60%, transparent),
    url("assets/earth-space.png") center / cover no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

/* PROJECTS */
.project { display: flex; flex-direction: column; }
.project__loc { font-family: "Space Grotesk"; font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; }
.project p { font-size: 0.88rem; flex: 1; }
.project__partner { margin-top: 14px; font-size: 0.78rem; color: var(--green); font-weight: 600; padding-top: 12px; border-top: 1px solid var(--border); }

/* NETWORK MAP */
.netmap { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: center; }
.netmap__stage {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}
.netmap__map { position: relative; width: 100%; }
.netmap__img {
  display: block; width: 100%; height: auto;
  opacity: 0.82;
}
.netmap__pins { position: absolute; inset: 0; }
.netmap__pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 16px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer;
  z-index: 2;
}
.netmap__pin::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px rgba(6,19,17,0.6), 0 0 10px rgba(25,232,150,0.8);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
}
.netmap__pin::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--green); opacity: 0;
}
.netmap__pin:hover::before { width: 13px; height: 13px; }
.netmap__pin.is-active { z-index: 3; }
.netmap__pin.is-active::before { width: 14px; height: 14px; background: var(--lime); box-shadow: 0 0 0 2px rgba(6,19,17,0.7), 0 0 16px rgba(184,242,58,0.9); }
.netmap__pin.is-active::after { animation: pin-ping 1.8s var(--ease) infinite; }
@keyframes pin-ping {
  0% { width: 12px; height: 12px; opacity: 0.7; }
  100% { width: 42px; height: 42px; opacity: 0; }
}
.netmap__tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.74rem; font-weight: 600; color: var(--text);
  background: rgba(6,19,17,0.92); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 9px; pointer-events: none; opacity: 0; transition: opacity 0.2s var(--ease);
  z-index: 4;
}
.netmap__pin:hover .netmap__tip, .netmap__pin:focus-visible .netmap__tip { opacity: 1; }

.netmap__detail { position: relative; min-height: 188px; }
.netsite { display: none; }
.netsite.is-active { display: block; animation: flow-fade 0.4s var(--ease); }
.netsite__loc { font-family: "Space Grotesk"; font-weight: 600; font-size: 1.25rem; margin-bottom: 12px; }
.netsite p { color: var(--muted); font-size: 0.95rem; }
.netsite__partner { display: inline-block; margin-top: 16px; font-size: 0.8rem; color: var(--green); font-weight: 600; padding-top: 12px; border-top: 1px solid var(--border); }
.netmap__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.netmap__legend button {
  font: inherit; cursor: pointer; font-size: 0.78rem; font-weight: 600; color: var(--muted);
  background: rgba(25,232,150,0.04); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.netmap__legend button:hover { color: var(--text); border-color: rgba(25,232,150,0.4); }
.netmap__legend button.is-active { color: #04130f; background: var(--green); border-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .netmap__pin.is-active::after { animation: none; }
  .netsite.is-active { animation: none; }
}
@media (max-width: 860px) {
  .netmap { grid-template-columns: 1fr; gap: 22px; }
}

/* INVESTMENT */
.invest-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 40px; }
.invest {
  text-align: center; padding: 28px 14px;
  background: linear-gradient(165deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.invest__num { display: block; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--text); }
.invest__num span { font-size: 0.95rem; color: var(--green); font-weight: 600; }
.invest__label { color: var(--muted); font-size: 0.85rem; margin-top: 6px; display: block; }
.revenue { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.revenue h3 { font-size: 1.3rem; margin-bottom: 20px; }
.revenue__list { display: grid; gap: 0; }
.rev { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rev:last-child { border-bottom: 0; }
.rev span { font-weight: 600; }
.rev em { color: var(--muted); font-style: normal; }

/* QUOTE */
.quote { background: linear-gradient(135deg, var(--bg-2), var(--surface)); overflow: hidden; }
.quote__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,19,17,0.78) 0%, rgba(6,19,17,0.68) 45%, rgba(6,19,17,0.90) 100%),
    linear-gradient(120deg, rgba(18,196,126,0.10), rgba(41,212,196,0.06) 60%, transparent),
    url("assets/rainforest.png") center / cover no-repeat;
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
}
.quote__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: "Space Grotesk"; font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 500; line-height: 1.35; }
.quote cite { display: block; margin-top: 24px; color: var(--green); font-style: normal; font-weight: 600; }

/* CTA */
.cta { overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta .container { position: relative; z-index: 1; }
.cta__glow { position: absolute; border-radius: 50%; }
.cta__glow--1 {
  width: 700px; height: 700px; top: -220px; left: -160px;
  filter: blur(50px);
  background:
    radial-gradient(circle at 50% 50%, rgba(150,255,210,0.0315), rgba(25,232,150,0) 40%),
    radial-gradient(circle at 50% 50%, rgba(25,232,150,0.042) 0%, rgba(25,232,150,0.0245) 28%, rgba(25,232,150,0.0105) 52%, rgba(25,232,150,0.0035) 70%, rgba(25,232,150,0) 82%);
}
.cta__glow--2 {
  width: 760px; height: 760px; bottom: -260px; right: -180px;
  filter: blur(54px);
  background:
    radial-gradient(circle at 50% 50%, rgba(160,248,238,0.0245), rgba(41,212,196,0) 38%),
    radial-gradient(circle at 50% 50%, rgba(41,212,196,0.035) 0%, rgba(41,212,196,0.021) 30%, rgba(41,212,196,0.00875) 55%, rgba(41,212,196,0.002625) 72%, rgba(41,212,196,0) 84%);
}
.cta__contours {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.1;
  mask-image: radial-gradient(ellipse 50% 96% at 50% 50%, transparent 40%, #000 78%);
  -webkit-mask-image: radial-gradient(ellipse 50% 96% at 50% 50%, transparent 40%, #000 78%);
}
.cta__contours-lines {
  animation: hero-contours 55s linear infinite;
  will-change: transform;
}
.cta__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.cta__inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }
.cta__inner p { color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* CONTACT FORM */
.contact-form {
  margin-top: 36px; text-align: left;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input,
.field select,
.field textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 232, 150, 0.1);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2319e896' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field select option { background: var(--surface); color: var(--text); }
.contact-form__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; background: var(--bg-2); }
.footer__top {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px;
  padding-bottom: 40px; margin-bottom: 32px; border-bottom: 1px solid var(--border);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 360px; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; }
.footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--muted); border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__social:hover { color: var(--green); border-color: rgba(25,232,150,0.35); transform: translateY(-2px); }
.footer__col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer__col ul { list-style: none; display: grid; gap: 13px; }
.footer__col a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.footer__col a:hover { color: var(--green); transform: translateX(3px); }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer__ico { display: inline-flex; color: var(--green); flex: none; }
.footer__ico svg { width: 17px; height: 17px; }
.footer__book {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 20px; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: #052017; background: var(--green);
  border: 0; border-radius: 999px; padding: 11px 18px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__book:hover { background: var(--green-2); transform: translateY(-2px); }
.footer__book-ico { display: inline-flex; flex: none; }
.footer__book-ico svg { width: 17px; height: 17px; }
[dir="rtl"] .footer__book { flex-direction: row-reverse; }
.footer__disclaimer { color: var(--muted-2); font-size: 0.8rem; max-width: 900px; line-height: 1.7; margin-bottom: 16px; }
.footer__copy { color: var(--muted-2); font-size: 0.85rem; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0ms; }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .cards--4, .cards--projects, .metrics { grid-template-columns: repeat(2, 1fr); }
  .invest-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    justify-self: stretch; width: auto;
    background: rgba(6,19,17,0.97); backdrop-filter: blur(14px); padding: 20px 24px;
    border-bottom: 1px solid var(--border); gap: 16px;
  }
}
@media (max-width: 640px) {
  .cards--3, .cards--4, .cards--projects, .metrics, .metrics--3, .invest-grid, .roles, .form-row, .footer__top { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 80px; }
  .hero__stats { gap: 22px; }
  .brand { --logo-height: 34px; }
  .brand__logo { height: 34px; }
}

/* ARABIC TYPEFACE */
[lang="ar"] body,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4,
[lang="ar"] .brand__suffix, [lang="ar"] .hstat__num, [lang="ar"] .metric__num,
[lang="ar"] .invest__num, [lang="ar"] .stat-card__num, [lang="ar"] .process__n {
  font-family: "Cairo", "Inter", system-ui, sans-serif;
}
html[lang="ar"] body { font-family: "Cairo", "Inter", system-ui, sans-serif; }

/* RTL ADJUSTMENTS */
[dir="rtl"] .feature-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .feature-list li::before { left: auto; right: 0; }
[dir="rtl"] .note { border-left: 0; border-right: 3px solid var(--green); border-radius: 10px 0 0 10px; }
[dir="rtl"] .problem .stat-card::before { background: linear-gradient(270deg, var(--red), transparent); }
[dir="rtl"] .process__n { margin-left: 0; }
[dir="rtl"] .footer__contact a { flex-direction: row-reverse; }
[dir="rtl"] .footer__col a:hover { transform: translateX(-3px); }
[dir="rtl"] .source { text-align: center; }
