/* ============================================================
   GREEENER.ai — main stylesheet
   Dark, evidence-forward theme; brand greens flow through
   gradients, glows, and accents.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Tokens ----------
   Light is the default theme; the original dark theme lives untouched
   under :root[data-theme="dark"]. Shared (non-color) vars stay in :root. */
:root {
  color-scheme: light;

  --bg: #f5faf6;
  --bg-alt: #ecf4ee;
  --panel: rgba(19, 87, 54, 0.04);
  --panel-strong: rgba(19, 87, 54, 0.07);
  --line: rgba(19, 87, 54, 0.15);
  --line-strong: rgba(19, 87, 54, 0.28);
  --text: #0f2318;
  --muted: #3f5c4b;
  --dim: #61796b;

  --spring: #0d8a4f;
  --green: #0b7a45;
  --green-deep: #0a6b3d;
  --forest: #135736;
  --mint: #14663e;

  --amber: #8f6a0e;
  --sky: #0f6d86;
  --violet: #5c49b8;

  --logo-ai: #20262c; /* ".ai" is charcoal on light, as in the client reference */

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* easing drawn from the live references:
     reveal ease matches greeener-coming-soon (0.22,1,0.36,1);
     snap ease matches baseten's 236ms micro-interaction bezier */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.5, 0.2, 0.4, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --nav-h: 76px;
  --nav-h-sm: 58px;
  --radius: 16px;
  --container: 1180px;
}

/* Original dark theme — values preserved exactly */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #060c09;
  --bg-alt: #08110c;
  --panel: rgba(190, 235, 205, 0.028);
  --panel-strong: rgba(190, 235, 205, 0.05);
  --line: rgba(163, 216, 182, 0.11);
  --line-strong: rgba(163, 216, 182, 0.2);
  --text: #e9f4ec;
  --muted: #9fb5a8;
  --dim: #64796d;

  --spring: #5be49b;
  --green: #2fbe70;
  --green-deep: #1e9e58;
  --forest: #135736;
  --mint: #b8f5cf;

  --amber: #e5c069;
  --sky: #74c7dd;
  --violet: #b3a5ef;

  --logo-ai: #dfe9e2; /* ".ai" inverts to light on dark surfaces */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h-sm) + 24px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: rgba(47, 190, 112, 0.35); color: #f2fff7; }

body {
  background-image:
    radial-gradient(1100px 500px at 12% -80px, rgba(30, 158, 88, 0.07), transparent 60%),
    radial-gradient(900px 480px at 88% 12%, rgba(91, 228, 155, 0.045), transparent 60%);
  background-repeat: no-repeat;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.01em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--spring); color: #04120a; font-weight: 600;
  padding: 10px 18px; border-radius: 10px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

/* focus */
:focus-visible { outline: 2px solid var(--spring); outline-offset: 3px; border-radius: 4px; }

/* ---------- Logo ---------- */
.logo-svg { height: 100%; width: auto; overflow: visible; }
.logo-svg .lg-l { transform-box: fill-box; }

/* entrance: letters rise + fade, staggered */
.logo-animate .lg-l {
  opacity: 0;
  transform: translateY(14%);
  animation: logoRise 0.7s var(--ease-out) forwards;
}
.logo-animate .lg-g   { animation-delay: 0.05s; }
.logo-animate .lg-r   { animation-delay: 0.11s; }
.logo-animate .lg-e1  { animation-delay: 0.17s; }
.logo-animate .lg-e2  { animation-delay: 0.24s; }
.logo-animate .lg-e3  { animation-delay: 0.31s; }
.logo-animate .lg-n   { animation-delay: 0.40s; }
.logo-animate .lg-e4  { animation-delay: 0.46s; }
.logo-animate .lg-r2  { animation-delay: 0.52s; }
.logo-animate .lg-t0  { animation-delay: 0.62s; }
.logo-animate .lg-t1  { animation-delay: 0.68s; }
.logo-animate .lg-t2  { animation-delay: 0.74s; }
@keyframes logoRise { to { opacity: 1; transform: translateY(0); } }

/* hover: celebrate the three E's — each hops in sequence */
.logo-hover .lg-e1, .logo-hover .lg-e2, .logo-hover .lg-e3 {
  transform-origin: 50% 100%;
  transition: transform 0.3s var(--ease-spring);
}
.logo-hover:hover .lg-e1 { transform: translateY(-3.2%); transition-delay: 0s; }
.logo-hover:hover .lg-e2 { transform: translateY(-4.6%); transition-delay: 0.07s; }
.logo-hover:hover .lg-e3 { transform: translateY(-6%);   transition-delay: 0.14s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; line-height: 1;
  white-space: nowrap;
  padding: 15px 26px; border-radius: 12px;
  transition: transform 0.236s var(--ease-snap), box-shadow 0.236s var(--ease-snap),
              background-color 0.236s var(--ease-snap), border-color 0.236s var(--ease-snap), color 0.236s var(--ease-snap);
  will-change: transform;
}
.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-primary {
  color: #04120a;
  background: linear-gradient(120deg, var(--spring), var(--green-deep) 85%);
  box-shadow: 0 0 0 1px rgba(91, 228, 155, 0.25), 0 8px 24px -10px rgba(47, 190, 112, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(91, 228, 155, 0.5), 0 14px 34px -10px rgba(47, 190, 112, 0.7);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary .btn-arrow { transition: transform 0.25s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(190, 235, 205, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(91, 228, 155, 0.55);
  background: rgba(91, 228, 155, 0.07);
  transform: translateY(-2px);
}

/* sheen sweep on primary */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 68%);
  background-size: 250% 100%; background-position: 120% 0;
  transition: background-position 0.7s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { background-position: -30% 0; }

/* ---------- Text links w/ animated underline ---------- */
.tlink {
  color: var(--mint);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: color 0.2s, background-size 0.3s var(--ease-out);
}
.tlink:hover { color: var(--spring); background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- Chips (evidence-status taxonomy) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid; white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip-disclosure { color: var(--spring); border-color: rgba(91, 228, 155, 0.35); background: rgba(91, 228, 155, 0.07); }
.chip-modeled    { color: var(--sky);    border-color: rgba(116, 199, 221, 0.35); background: rgba(116, 199, 221, 0.07); }
.chip-projection { color: var(--amber);  border-color: rgba(229, 192, 105, 0.38); background: rgba(229, 192, 105, 0.08); }
.chip-derived    { color: var(--violet); border-color: rgba(179, 165, 239, 0.35); background: rgba(179, 165, 239, 0.07); }
.chip-future     { color: var(--muted);  border-color: rgba(159, 181, 168, 0.4);  background: transparent; border-style: dashed; }
.chip-caveat     { color: #e58f69; border-color: rgba(229, 143, 105, 0.4); background: rgba(229, 143, 105, 0.08); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  transition: height 0.35s var(--ease-out);
}
.nav[data-condensed="true"] {
  background: rgba(6, 13, 9, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav[data-condensed="true"] .nav-inner { height: var(--nav-h-sm); }
.nav-logo { height: 26px; display: block; transition: height 0.35s var(--ease-out); }
.nav[data-condensed="true"] .nav-logo { height: 21px; }
.nav-logo .logo-svg { height: 100%; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 8px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--spring), var(--green-deep));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-cta { display: flex; }

.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px;
  pointer-events: none;
}
.nav-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--spring), var(--green-deep));
  transform: scaleX(0); transform-origin: left;
  opacity: 0; transition: opacity 0.3s;
}
.nav[data-condensed="true"] .nav-progress span { opacity: 1; }

.nav-burger { position: relative; display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.nav-burger span {
  width: 22px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(5, 10, 7, 0.96);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  padding: 10px 24px; color: var(--text);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s;
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--spring); }
.mobile-menu nav .btn { font-size: 17px; margin-top: 18px; opacity: 0; transform: translateY(14px); }
.mobile-menu.open nav .btn { opacity: 1; transform: none; color: #04120a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 90px;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-a {
  width: 720px; height: 720px; left: -230px; top: -180px;
  background: radial-gradient(circle, rgba(30, 158, 88, 0.2), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
.glow-b {
  width: 640px; height: 640px; right: -200px; bottom: -260px;
  background: radial-gradient(circle, rgba(91, 228, 155, 0.1), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.08); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(163, 216, 182, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 216, 182, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-brand { height: clamp(30px, 4vw, 42px); margin-bottom: 30px; width: fit-content; }
.hero-brand .logo-svg { height: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--mint);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 14px; margin-bottom: 26px;
  background: rgba(91, 228, 155, 0.04);
}
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--spring); flex: none; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--spring); opacity: 0.7;
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(0.5); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hw { display: inline-block; }
.hw-accent {
  background: linear-gradient(100deg, var(--spring) 10%, var(--green-deep) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* marker-highlight sweep (both references use this move) */
.hw-mark > span {
  background-image: linear-gradient(rgba(47, 190, 112, 0.38), rgba(47, 190, 112, 0.38));
  background-repeat: no-repeat;
  background-size: 0% 38%;
  background-position: 0 82%;
  animation: markSweep 0.82s var(--ease-out) 1.15s forwards;
  padding: 0 0.06em; margin: 0 -0.06em;
  border-radius: 4px;
}
@keyframes markSweep { to { background-size: 100% 38%; } }
.hero-sub { max-width: 56ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }

/* staggered entrance */
.hero-el, .hw {
  opacity: 0; transform: translateY(26px);
  animation: heroIn 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* hero data panel */
.hero-panel { position: relative; }
.hero-card {
  position: relative;
  background: linear-gradient(160deg, rgba(190, 235, 205, 0.05), rgba(190, 235, 205, 0.015) 55%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px;
  background: linear-gradient(140deg, rgba(91, 228, 155, 0.4), transparent 35%, transparent 70%, rgba(30, 158, 88, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-card-year { color: var(--dim); font-size: 13px; }
.hero-stat { display: flex; align-items: baseline; gap: 10px; }
.hero-stat-num {
  font-size: clamp(56px, 6vw, 76px); font-weight: 700; line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--mint), var(--spring) 60%, var(--green-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat-unit { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--muted); }
.hero-stat-label { color: var(--muted); font-size: 14px; margin: 10px 0 20px; max-width: 40ch; }
.hero-stat-label strong { color: var(--text); }

.hero-chart { position: relative; margin-bottom: 16px; }
.hero-chart svg { width: 100%; height: clamp(130px, 14vw, 190px); }
.hero-chart-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); margin-top: 6px; }
.hero-card-foot { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.hero-card-foot > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-proj { font-size: 14px; color: var(--text); font-weight: 600; }
.hero-proj em { color: var(--dim); font-weight: 400; font-size: 12px; }
.fine { font-size: 12.5px; color: var(--dim); }
.live-tick {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; margin-top: 4px;
  background: rgba(6, 12, 9, 0.5);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--spring); animation: blink 1.6s ease-in-out infinite; flex: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.live-num { color: var(--spring); font-weight: 700; font-variant-numeric: tabular-nums; }
.live-tick em { color: var(--dim); font-size: 10.5px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  opacity: 0; animation: heroIn 1s var(--ease-out) 1.6s forwards;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--spring);
  animation: cue 1.9s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee-band { padding: 34px 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-caption { text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.marquee { overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: marquee 42s linear infinite;
  padding-right: 34px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item { font-family: var(--font-display); font-size: 15.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.25s; }
.mq-item:hover { color: var(--mint); }
.mq-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--forest); flex: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(84px, 10vw, 140px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(100deg, var(--spring), var(--green-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); max-width: 62ch; }
.section-head-center .section-sub { margin: 0 auto; }

/* scroll reveals */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Cards (shared) ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s, background-color 0.35s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(91, 228, 155, 0.06),
              0 0 44px -18px rgba(47, 190, 112, 0.3);
}
/* cursor-aware glow: JS sets --mx / --my */
.card-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 228, 155, 0.09), transparent 65%);
}
.card:hover .card-glow { opacity: 1; }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat-card { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.stat-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stat-when { font-size: 12px; color: var(--dim); }
.stat-big { display: flex; align-items: baseline; gap: 8px; }
.stat-big span {
  font-size: clamp(46px, 4.6vw, 62px); font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  color: var(--text);
}
.stat-big em { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--muted); }
.stat-card-proj .stat-big span { color: var(--amber); }
.stat-desc { color: var(--muted); font-size: 14.5px; }
.stat-desc strong { color: var(--text); }
.stat-share { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.share-bar {
  position: relative; height: 6px; border-radius: 4px; flex: 1;
  background: rgba(163, 216, 182, 0.09); overflow: hidden;
}
.share-bar::after {
  content: ""; position: absolute; inset: 0; width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--spring));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease-out) 0.25s;
}
.share-bar-proj::after { background: repeating-linear-gradient(115deg, var(--amber) 0 6px, rgba(229, 192, 105, 0.35) 6px 12px); }
.in .share-bar[data-armed]::after, .share-bar.armed::after { transform: scaleX(var(--w, 0)); }
.share-label { font-size: 11px; color: var(--dim); white-space: nowrap; }
.stat-src { font-size: 12.5px; color: var(--dim); }

/* ---------- Scale section ---------- */
.scale-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 22px; align-items: stretch; }
.scale-chart-card { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.scale-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 30px; }
.scale-head h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.fine-tag { font-size: 12px; color: var(--dim); }
.scale-bars { display: grid; gap: 26px; }
.scale-row { display: grid; gap: 10px; }
.scale-row-label { display: flex; align-items: center; gap: 12px; }
.scale-row-label .year { font-size: 15px; font-weight: 700; color: var(--text); }
.scale-track { position: relative; height: 54px; border-radius: 12px; background: rgba(163, 216, 182, 0.06); overflow: hidden; }
.scale-fill {
  position: absolute; inset: 0; width: calc(var(--w, 0) * 1%);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(30, 158, 88, 0.85), var(--spring));
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 16px; min-width: 118px;
  transition: width 1.6s var(--ease-out) 0.2s;
  box-shadow: 0 0 30px -6px rgba(47, 190, 112, 0.4);
}
.scale-fill-proj {
  background:
    linear-gradient(rgba(8, 17, 12, 0.35), rgba(8, 17, 12, 0.35)),
    repeating-linear-gradient(115deg, rgba(229, 192, 105, 0.9) 0 10px, rgba(229, 192, 105, 0.4) 10px 20px);
  box-shadow: 0 0 30px -6px rgba(229, 192, 105, 0.3);
}
.scale-val { font-size: 15px; font-weight: 700; color: #06130b; }
.scale-fill-proj .scale-val { color: #100c02; }
.scale-delta { display: flex; align-items: center; gap: 18px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.delta-num {
  font-size: clamp(34px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--mint), var(--green-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.scale-delta p { color: var(--muted); font-size: 14px; max-width: 46ch; }

.scale-side { display: grid; gap: 22px; align-content: stretch; }
.mini-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.mini-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.mini-title em { color: var(--spring); font-style: italic; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: rgba(6, 12, 9, 0.4); }
.kv dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 3px; }
.kv dd { font-size: 17px; font-weight: 700; color: var(--text); }

.range-viz { margin: 4px 0 8px; }
.range-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); margin-bottom: 26px; }
.range-track { position: relative; height: 12px; border-radius: 8px; background: rgba(163, 216, 182, 0.07); }
.range-band {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--lo, 0) * 1%); right: calc((100 - var(--hi, 0)) * 1%);
  border-radius: 8px;
  background: repeating-linear-gradient(115deg, rgba(229, 192, 105, 0.75) 0 7px, rgba(229, 192, 105, 0.3) 7px 14px);
  opacity: 0; transform: scaleX(0.5); transform-origin: center;
  transition: opacity 0.9s var(--ease-out) 0.3s, transform 1.2s var(--ease-out) 0.3s;
}
.in .range-band, .range-band.armed { opacity: 1; transform: scaleX(1); }
.range-lo, .range-hi { position: absolute; top: -20px; font-size: 10.5px; color: var(--amber); }
.range-lo { left: 0; } .range-hi { right: 0; }

/* ---------- Disclosures ---------- */
.disc-card { padding: clamp(10px, 2vw, 22px) clamp(16px, 2.6vw, 30px) clamp(20px, 2.6vw, 28px); }
.disc-card:hover { transform: none; }
.disc-rows { display: grid; }
.disc-row { border-bottom: 1px solid var(--line); }
.disc-row:last-of-type { border-bottom: 0; }
.disc-main {
  display: grid; grid-template-columns: 150px 1fr 110px 20px;
  align-items: center; gap: 18px;
  width: 100%; text-align: left; padding: 22px 4px;
  transition: background-color 0.25s;
  border-radius: 10px;
}
.disc-main:hover { background: rgba(190, 235, 205, 0.025); }
.disc-co { font-family: var(--font-display); font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.caveat-flag { font-size: 10px; color: #e58f69; border: 1px dashed rgba(229, 143, 105, 0.5); padding: 2px 7px; border-radius: 6px; }
.disc-track { position: relative; height: 12px; border-radius: 8px; background: rgba(163, 216, 182, 0.07); overflow: hidden; }
.disc-fill {
  position: absolute; inset: 0; width: calc(var(--w, 0) * 1%);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--forest), var(--spring));
  transition: width 1.5s var(--ease-out) 0.15s;
  box-shadow: 0 0 18px -4px rgba(47, 190, 112, 0.5);
}
.disc-fill-caveat {
  background:
    linear-gradient(rgba(8, 17, 12, 0.25), rgba(8, 17, 12, 0.25)),
    repeating-linear-gradient(115deg, rgba(229, 143, 105, 0.8) 0 9px, rgba(229, 143, 105, 0.32) 9px 18px);
  box-shadow: none;
}
.disc-num { font-size: 17px; font-weight: 700; text-align: right; }
.disc-caret { color: var(--dim); transition: transform 0.3s var(--ease-out); justify-self: center; }
.disc-row[data-open="true"] .disc-caret { transform: rotate(180deg); }
.disc-detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.disc-row[data-open="true"] .disc-detail { grid-template-rows: 1fr; }
.disc-detail-inner { overflow: hidden; min-height: 0; }
.disc-detail-inner > * { margin-bottom: 10px; }
.disc-detail-inner .chip { margin-right: 8px; }
.disc-detail-inner p { color: var(--muted); font-size: 14.5px; max-width: 78ch; }
.disc-detail-inner p strong { color: #eab595; }
.disc-detail-inner { padding: 0 4px; }
.disc-row[data-open="true"] .disc-detail-inner { padding-bottom: 20px; }

.note-box {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 8px; padding: 18px 20px;
  border: 1px dashed rgba(229, 192, 105, 0.4); border-radius: 12px;
  background: rgba(229, 192, 105, 0.045);
}
.note-icon { color: var(--amber); flex: none; margin-top: 2px; }
.note-box h4 { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--amber); margin-bottom: 4px; }
.note-box p { font-size: 13.5px; color: var(--muted); max-width: 70ch; }

/* ---------- Verification ---------- */
.verify-status {
  display: flex; align-items: center; gap: 18px;
  border: 1px dashed var(--line-strong); border-radius: 14px;
  padding: 20px 24px; margin-bottom: 34px;
  background: rgba(190, 235, 205, 0.02);
}
.verify-pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); flex: none; }
.verify-pulse::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--amber); animation: pulse 2.4s var(--ease-out) infinite;
}
.verify-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.verify-line { font-size: 16.5px; font-weight: 500; }
.verify-line em { color: var(--muted); font-style: italic; }

.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tri-card { padding: 26px; }
.tri-num {
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 9px;
  color: var(--spring); font-size: 13px; margin-bottom: 16px;
}
.tri-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.tri-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Workflow ---------- */
.flow { position: relative; margin-bottom: clamp(64px, 8vw, 100px); }
.flow-line {
  position: absolute; left: 26px; right: 26px; top: 26px; height: 2px;
  background: rgba(163, 216, 182, 0.1); border-radius: 2px;
}
.flow-line span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--spring), var(--green-deep));
  border-radius: inherit;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease-out);
  box-shadow: 0 0 14px rgba(91, 228, 155, 0.5);
}
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-step { position: relative; }
.flow-dot {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--muted);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, background-color 0.3s, transform 0.3s var(--ease-spring);
  margin-bottom: 18px;
}
.flow-dot:hover { transform: translateY(-3px); }
.flow-step.active .flow-dot {
  border-color: var(--spring); color: #06130b;
  background: linear-gradient(130deg, var(--spring), var(--green-deep));
  box-shadow: 0 0 26px -4px rgba(91, 228, 155, 0.55);
}
.flow-step.done .flow-dot { border-color: rgba(91, 228, 155, 0.5); color: var(--spring); }
.flow-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 4px; transition: color 0.3s; }
.flow-step.active .flow-body h3 { color: var(--spring); }
.flow-tag { font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 6px; opacity: 0.85; }
.flow-desc { font-size: 13.5px; color: var(--muted); max-width: 30ch; }

/* ---------- Taxonomy ---------- */
.tax-head { max-width: 720px; margin-bottom: 34px; }
.tax-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.tax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tax-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tax-card p { color: var(--muted); font-size: 14px; }
.tax-card .chip { align-self: flex-start; }
.tax-card-future { border-style: dashed; }

/* ---------- Coverage gaps ---------- */
.coverage-index { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.cov-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
  border: 1px dashed var(--line-strong); border-radius: 999px; padding: 7px 14px;
  transition: border-color 0.25s, color 0.25s;
}
.cov-chip:hover { border-color: var(--muted); color: var(--muted); }
.cov-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.cov-live { border-style: solid; color: var(--spring); border-color: rgba(91, 228, 155, 0.45); }
.cov-live .cov-dot { background: var(--spring); box-shadow: 0 0 8px rgba(91, 228, 155, 0.8); }
.cov-next { border-style: solid; color: var(--sky); border-color: rgba(116, 199, 221, 0.4); }
.cov-next .cov-dot { background: var(--sky); }

.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gap-card { padding: 28px; border-style: dashed; display: flex; flex-direction: column; gap: 14px; }
.gap-card:hover { border-style: solid; }
.gap-head { display: flex; align-items: center; gap: 12px; }
.gap-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--spring); border: 1px solid var(--line-strong);
  background: rgba(91, 228, 155, 0.05);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s;
}
.gap-card:hover .gap-icon { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 8px 20px -8px rgba(47, 190, 112, 0.5); }
.gap-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.gap-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.gap-card > p { color: var(--muted); font-size: 14.5px; }
.gap-needs { border-left: 2px solid rgba(91, 228, 155, 0.4); padding: 4px 0 4px 16px; }
.needs-label { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 5px; }
.gap-needs p:last-child { font-size: 13.5px; color: var(--muted); }
.gap-finding { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.gap-bar {
  position: relative; flex: none; width: 64px; height: 8px; border-radius: 6px;
  border: 1px dashed var(--line-strong); overflow: hidden;
}
.gap-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(91, 228, 155, 0.35), transparent);
  transform: translateX(-100%);
  animation: gapScan 2.8s var(--ease-out) infinite;
}
@keyframes gapScan { 60%, 100% { transform: translateX(100%); } }
.gap-finding p { font-size: 11px; color: var(--dim); }

/* ---------- Sources ---------- */
.src-list { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.src-item {
  display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 16px;
  padding: 18px 10px; border-bottom: 1px solid var(--line);
  transition: background-color 0.25s, padding-left 0.3s var(--ease-out);
}
.src-item:hover { background: rgba(190, 235, 205, 0.03); padding-left: 20px; }
.src-idx { font-size: 12px; color: var(--green); }
.src-name {
  font-size: 15.5px; font-weight: 500; color: var(--muted);
  transition: color 0.25s;
}
.src-item:hover .src-name { color: var(--text); }
.src-arrow { color: var(--dim); transition: transform 0.3s var(--ease-out), color 0.25s; }
.src-item:hover .src-arrow { transform: translate(3px, -3px); color: var(--spring); }

/* ---------- CTA / Contact ---------- */
.section-cta { overflow: clip; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.glow-cta {
  width: 900px; height: 500px; left: 50%; top: 55%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(30, 158, 88, 0.14), transparent 65%);
}
.cta-inner { position: relative; max-width: 780px; margin: 0 auto; }
.cta-form { padding: clamp(24px, 3.4vw, 40px); }
.cta-form:hover { transform: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; }
.field .opt { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text);
  background: rgba(6, 12, 9, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 13px 16px;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  width: 100%;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 86px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(163, 216, 182, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--spring);
  box-shadow: 0 0 0 3px rgba(91, 228, 155, 0.16);
  background: rgba(6, 12, 9, 0.8);
}
.field.invalid input, .field.invalid select {
  border-color: #e0685f; box-shadow: 0 0 0 3px rgba(224, 104, 95, 0.14);
  animation: shake 0.4s var(--ease-out);
}
@keyframes shake { 25% { transform: translateX(-5px); } 55% { transform: translateX(4px); } 85% { transform: translateX(-2px); } }
.field-err { font-size: 12.5px; color: #ef8b83; display: flex; align-items: center; gap: 6px; }
.field-err::before { content: "!"; display: inline-flex; width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; font-size: 10px; align-items: center; justify-content: center; flex: none; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 40px; color: var(--text); cursor: pointer; }
.select-wrap select:invalid { color: var(--dim); }
.select-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.form-foot .fine { max-width: 40ch; }

.form-success { text-align: center; padding: 20px 10px 8px; }
.success-ring { width: 64px; height: 64px; margin: 0 auto 18px; }
.success-ring .ring {
  stroke: var(--spring); stroke-dasharray: 176; stroke-dashoffset: 176;
  animation: draw 0.8s var(--ease-out) forwards;
}
.success-ring .tick {
  stroke: var(--spring); stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: draw 0.5s var(--ease-out) 0.55s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 14.5px; max-width: 46ch; margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 76px) 0 34px; background: var(--bg-alt); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand a { display: block; height: 26px; width: fit-content; margin-bottom: 16px; }
.footer-brand .logo-svg { height: 100%; }
.footer-tag { color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer-cols { display: flex; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.footer-cols > div { display: grid; gap: 10px; align-content: start; }
.footer-h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.footer-cols a { font-size: 14px; color: var(--muted); transition: color 0.2s; width: fit-content; }
.footer-cols a:hover { color: var(--spring); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--dim); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card-proj { grid-column: 1 / -1; }
  .scale-grid { grid-template-columns: 1fr; }
  .tri-grid { grid-template-columns: 1fr; }
  .tax-grid { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .flow-line { display: none; }
}
/* the full desktop nav needs ~1020px to breathe; below that, collapse to the menu */
@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: 0; }
  .nav-theme { margin-left: auto; }
}

/* comfortable touch targets for the small icon buttons */
@media (pointer: coarse) {
  .theme-toggle::before, .nav-burger::before {
    content: "";
    position: absolute; top: 50%; left: 50%;
    width: max(100%, 48px); height: max(100%, 48px);
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 720px) {
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .hero-brand { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .gap-grid { grid-template-columns: 1fr; }
  .tax-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .disc-main { grid-template-columns: 1fr 90px 18px; grid-template-rows: auto auto; gap: 10px 14px; }
  .disc-co { grid-column: 1 / -1; }
  .disc-track { grid-row: 2; }
  .scroll-cue { display: none; }
  .scale-fill { min-width: 96px; padding-right: 10px; }
  .scale-val { font-size: 12.5px; }
  .flow-steps { grid-template-columns: 1fr; row-gap: 34px; }
  .footer-top { flex-direction: column; }

  /* body copy reads at 16px on small screens; desktop keeps its tighter sizes */
  .section-sub { font-size: 16px; }
  .stat-desc, .tri-card p, .gap-card > p, .tax-card p,
  .disc-detail-inner p, .scale-delta p, .form-success p { font-size: 16px; }
  .flow-desc { font-size: 15px; max-width: none; }
  .field label { font-size: 15px; }
  .hero-stat-label { font-size: 15px; }
}

/* ---------- Theme toggle (component: assets/js/theme.js) ---------- */
[data-theme-mount] { display: contents; }
.theme-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.236s var(--ease-snap), border-color 0.236s var(--ease-snap),
              background-color 0.236s var(--ease-snap), transform 0.236s var(--ease-snap);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--spring);
  background: var(--panel-strong);
  transform: translateY(-1px);
}
.theme-toggle:active { transform: translateY(0); }
.theme-toggle svg {
  position: absolute; width: 17px; height: 17px;
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-spring);
}
.theme-toggle .tt-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .tt-moon { opacity: 0; transform: rotate(-90deg) scale(0.55); }
:root[data-theme="dark"] .theme-toggle .tt-sun  { opacity: 0; transform: rotate(90deg) scale(0.55); }
:root[data-theme="dark"] .theme-toggle .tt-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* brief crossfade when the visitor flips the theme (added by JS, then removed) */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), fill 0.35s var(--ease-out),
              stroke 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out) !important;
}

/* ---------- Hero chart colors (CSS-driven so both themes work; dark values unchanged) ---------- */
.hc-stop-area-a { stop-color: rgba(91, 228, 155, 0.28); }
.hc-stop-area-b { stop-color: rgba(91, 228, 155, 0); }
.hc-stop-line-a { stop-color: #5BE49B; }
.hc-stop-line-b { stop-color: #E5C069; }
.hc-dot0 { fill: #5BE49B; }
.hc-dot1 { fill: #E5C069; }
.hc-label0 { fill: #9fb5a8; }
.hc-label1 { fill: #E5C069; }
.hc-gridlines line { stroke: rgba(163, 216, 182, 0.08); }
.hc-reveal { stroke: var(--bg); }

/* ============================================================
   Light theme (default) overrides.
   The base rules above carry the original dark aesthetic untouched;
   everything here applies only when dark mode is not active.
   ============================================================ */
:root:not([data-theme="dark"]) ::selection { background: rgba(13, 138, 79, 0.22); color: #0b1f14; }
:root:not([data-theme="dark"]) body {
  background-image:
    radial-gradient(1100px 500px at 12% -80px, rgba(13, 138, 79, 0.07), transparent 60%),
    radial-gradient(900px 480px at 88% 12%, rgba(91, 228, 155, 0.1), transparent 60%);
}
:root:not([data-theme="dark"]) body::after { opacity: 0.03; }
:root:not([data-theme="dark"]) .skip-link { background: var(--green-deep); color: #fff; }

:root:not([data-theme="dark"]) .btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #12a35e, var(--green-deep) 85%);
  box-shadow: 0 0 0 1px rgba(10, 107, 61, 0.35), 0 8px 24px -10px rgba(10, 107, 61, 0.45);
}
:root:not([data-theme="dark"]) .btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(10, 107, 61, 0.55), 0 14px 34px -10px rgba(10, 107, 61, 0.55);
}
:root:not([data-theme="dark"]) .btn-ghost { background: rgba(19, 87, 54, 0.03); }
:root:not([data-theme="dark"]) .btn-ghost:hover {
  border-color: rgba(13, 138, 79, 0.55);
  background: rgba(13, 138, 79, 0.07);
}

:root:not([data-theme="dark"]) .chip-disclosure { border-color: rgba(13, 138, 79, 0.4);  background: rgba(13, 138, 79, 0.07); }
:root:not([data-theme="dark"]) .chip-modeled    { border-color: rgba(15, 109, 134, 0.4); background: rgba(15, 109, 134, 0.07); }
:root:not([data-theme="dark"]) .chip-projection { border-color: rgba(143, 106, 14, 0.45); background: rgba(143, 106, 14, 0.08); }
:root:not([data-theme="dark"]) .chip-derived    { border-color: rgba(92, 73, 184, 0.4);  background: rgba(92, 73, 184, 0.07); }
:root:not([data-theme="dark"]) .chip-caveat     { color: #a04d1f; border-color: rgba(160, 77, 31, 0.45); background: rgba(160, 77, 31, 0.07); }

:root:not([data-theme="dark"]) .nav[data-condensed="true"] { background: rgba(245, 250, 246, 0.82); }
:root:not([data-theme="dark"]) .mobile-menu { background: rgba(245, 250, 246, 0.96); }
:root:not([data-theme="dark"]) .mobile-menu.open nav .btn { color: #fff; }

:root:not([data-theme="dark"]) .hero-grid {
  background-image:
    linear-gradient(rgba(19, 87, 54, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 87, 54, 0.06) 1px, transparent 1px);
}
:root:not([data-theme="dark"]) .glow-a { background: radial-gradient(circle, rgba(13, 138, 79, 0.14), transparent 65%); }
:root:not([data-theme="dark"]) .glow-b { background: radial-gradient(circle, rgba(91, 228, 155, 0.16), transparent 65%); }
:root:not([data-theme="dark"]) .eyebrow { background: rgba(13, 138, 79, 0.05); }
:root:not([data-theme="dark"]) .hw-mark > span {
  background-image: linear-gradient(rgba(91, 228, 155, 0.55), rgba(91, 228, 155, 0.55));
}
:root:not([data-theme="dark"]) .hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55) 55%);
  box-shadow: 0 30px 80px -30px rgba(16, 42, 28, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
:root:not([data-theme="dark"]) .hero-card::before {
  background: linear-gradient(140deg, rgba(13, 138, 79, 0.4), transparent 35%, transparent 70%, rgba(10, 107, 61, 0.3));
}
:root:not([data-theme="dark"]) .live-tick { background: rgba(255, 255, 255, 0.7); }

:root:not([data-theme="dark"]) .card:hover {
  box-shadow: 0 24px 60px -24px rgba(16, 42, 28, 0.22), 0 0 0 1px rgba(13, 138, 79, 0.08),
              0 0 44px -18px rgba(13, 138, 79, 0.18);
}
:root:not([data-theme="dark"]) .card-glow {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(13, 138, 79, 0.08), transparent 65%);
}

:root:not([data-theme="dark"]) .share-bar { background: rgba(19, 87, 54, 0.12); }
:root:not([data-theme="dark"]) .share-bar-proj::after {
  background: repeating-linear-gradient(115deg, rgba(196, 148, 26, 0.95) 0 6px, rgba(196, 148, 26, 0.45) 6px 12px);
}
:root:not([data-theme="dark"]) .scale-track { background: rgba(19, 87, 54, 0.08); }
:root:not([data-theme="dark"]) .scale-fill {
  background: linear-gradient(90deg, #0f8a50, #16b06b);
  box-shadow: 0 0 30px -6px rgba(13, 138, 79, 0.35);
}
:root:not([data-theme="dark"]) .scale-val { color: #fff; }
:root:not([data-theme="dark"]) .scale-fill-proj {
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(115deg, rgba(196, 148, 26, 0.95) 0 10px, rgba(196, 148, 26, 0.5) 10px 20px);
  box-shadow: 0 0 30px -6px rgba(143, 106, 14, 0.25);
}
:root:not([data-theme="dark"]) .scale-fill-proj .scale-val { color: #241a02; }
:root:not([data-theme="dark"]) .kv div { background: rgba(255, 255, 255, 0.75); }
:root:not([data-theme="dark"]) .range-track { background: rgba(19, 87, 54, 0.08); }
:root:not([data-theme="dark"]) .range-band {
  background: repeating-linear-gradient(115deg, rgba(196, 148, 26, 0.85) 0 7px, rgba(196, 148, 26, 0.4) 7px 14px);
}

:root:not([data-theme="dark"]) .disc-main:hover { background: rgba(19, 87, 54, 0.04); }
:root:not([data-theme="dark"]) .disc-track { background: rgba(19, 87, 54, 0.08); }
:root:not([data-theme="dark"]) .disc-fill { box-shadow: 0 0 18px -4px rgba(13, 138, 79, 0.4); }
:root:not([data-theme="dark"]) .disc-fill-caveat {
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(115deg, rgba(178, 90, 40, 0.85) 0 9px, rgba(178, 90, 40, 0.4) 9px 18px);
  box-shadow: none;
}
:root:not([data-theme="dark"]) .caveat-flag { color: #a04d1f; border-color: rgba(160, 77, 31, 0.5); }
:root:not([data-theme="dark"]) .disc-detail-inner p strong { color: #8a4a1c; }
:root:not([data-theme="dark"]) .note-box { border-color: rgba(143, 106, 14, 0.45); background: rgba(143, 106, 14, 0.06); }

:root:not([data-theme="dark"]) .verify-status { background: rgba(19, 87, 54, 0.03); }

:root:not([data-theme="dark"]) .flow-line { background: rgba(19, 87, 54, 0.12); }
:root:not([data-theme="dark"]) .flow-step.active .flow-dot {
  color: #fff;
  background: linear-gradient(130deg, #12a35e, var(--green-deep));
  box-shadow: 0 0 26px -4px rgba(13, 138, 79, 0.5);
}

:root:not([data-theme="dark"]) .cov-live { border-color: rgba(13, 138, 79, 0.5); }
:root:not([data-theme="dark"]) .cov-live .cov-dot { box-shadow: 0 0 8px rgba(13, 138, 79, 0.7); }
:root:not([data-theme="dark"]) .cov-next { border-color: rgba(15, 109, 134, 0.45); }
:root:not([data-theme="dark"]) .gap-icon { background: rgba(13, 138, 79, 0.06); }
:root:not([data-theme="dark"]) .gap-card:hover .gap-icon { box-shadow: 0 8px 20px -8px rgba(13, 138, 79, 0.35); }
:root:not([data-theme="dark"]) .gap-bar::after {
  background: linear-gradient(90deg, transparent, rgba(13, 138, 79, 0.3), transparent);
}

:root:not([data-theme="dark"]) .src-item:hover { background: rgba(19, 87, 54, 0.04); }

:root:not([data-theme="dark"]) .glow-cta { background: radial-gradient(ellipse, rgba(13, 138, 79, 0.11), transparent 65%); }
:root:not([data-theme="dark"]) .field input,
:root:not([data-theme="dark"]) .field select,
:root:not([data-theme="dark"]) .field textarea { background: #fff; }
:root:not([data-theme="dark"]) .field input:hover,
:root:not([data-theme="dark"]) .field select:hover,
:root:not([data-theme="dark"]) .field textarea:hover { border-color: rgba(19, 87, 54, 0.4); }
:root:not([data-theme="dark"]) .field input:focus,
:root:not([data-theme="dark"]) .field select:focus,
:root:not([data-theme="dark"]) .field textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 138, 79, 0.15);
}
:root:not([data-theme="dark"]) .field.invalid input,
:root:not([data-theme="dark"]) .field.invalid select {
  border-color: #c2382d;
  box-shadow: 0 0 0 3px rgba(194, 56, 45, 0.14);
}
:root:not([data-theme="dark"]) .field-err { color: #b3372c; }

:root:not([data-theme="dark"]) .hc-stop-area-a { stop-color: rgba(13, 138, 79, 0.2); }
:root:not([data-theme="dark"]) .hc-stop-area-b { stop-color: rgba(13, 138, 79, 0); }
:root:not([data-theme="dark"]) .hc-stop-line-a { stop-color: #0d8a4f; }
:root:not([data-theme="dark"]) .hc-stop-line-b { stop-color: #b8901a; }
:root:not([data-theme="dark"]) .hc-dot0 { fill: #0d8a4f; }
:root:not([data-theme="dark"]) .hc-dot1 { fill: #b8901a; }
:root:not([data-theme="dark"]) .hc-label0 { fill: #3f5c4b; }
:root:not([data-theme="dark"]) .hc-label1 { fill: #8f6a0e; }
:root:not([data-theme="dark"]) .hc-gridlines line { stroke: rgba(19, 87, 54, 0.1); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .hero-el, .hw, .reveal, .logo-animate .lg-l, .scroll-cue { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; transform: none !important; }
  .share-bar::after, .scale-fill, .disc-fill, .range-band { transition: none !important; }
}
