/* ============================================================
   Cartos — NexGen Geospatial · marketing site
   Brand tokens: bg #0A1A2F · accent #00A3E0 · Geist Sans/Mono
   ============================================================ */

:root {
  --bg:        #0A1A2F;
  --bg-1:      #0d2138;
  --bg-2:      #102a47;
  --panel:     rgba(255, 255, 255, 0.025);
  --border:    rgba(120, 175, 220, 0.16);
  --border-2:  rgba(120, 175, 220, 0.28);
  --accent:    #00A3E0;
  --accent-2:  #38d0ff;
  --text:      #e8f1f8;
  --text-dim:  #9fb6cc;
  --text-mute: #6c849b;
  --maxw:      1140px;
  --radius:    14px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--text); }
strong { font-weight: 600; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.mono { font-family: "Geist Mono", ui-monospace, monospace; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #00131f; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

.grad {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, #6fe0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #00131f; font-weight: 600;
  box-shadow: 0 8px 28px -10px rgba(0, 163, 224, 0.7);
}
.btn--accent:hover { box-shadow: 0 14px 36px -10px rgba(0, 163, 224, 0.85); }
.btn--ghost { border-color: var(--border-2); color: var(--text); background: var(--panel); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 26, 47, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(8, 21, 38, 0.9); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__mark { color: var(--accent); flex: none; }
.brand__word { font-weight: 600; letter-spacing: 0.16em; font-size: 16px; }

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 14.5px; color: var(--text-dim); position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 9px 16px; font-size: 14px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 14vh, 150px) 0 clamp(70px, 10vh, 120px); }
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.hero__grid {
  position: absolute; inset: -2px; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000 0%, transparent 72%);
  opacity: 0.5;
}
.hero__glow {
  position: absolute; z-index: 1; top: -28%; right: -12%;
  width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.26), transparent 62%);
  filter: blur(20px); pointer-events: none;
}

.kicker {
  font-family: "Geist Mono", monospace; font-size: 12.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 22px;
}
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 600; }
.hero__lede { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--text-dim); margin: 26px 0 36px; max-width: 660px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foot { margin: 40px 0 0; color: var(--text-mute); letter-spacing: 0.14em; }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: clamp(72px, 11vh, 128px) 0; position: relative; }
.section--alt { background:
  linear-gradient(180deg, transparent, rgba(16, 42, 71, 0.5) 12%, rgba(16, 42, 71, 0.5) 88%, transparent);
}
.section--alt::before, .section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--border);
}
.section--alt::before { top: 0; } .section--alt::after { bottom: 0; }

.eyebrow {
  font-family: "Geist Mono", monospace; font-size: 12.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 720px; }
.section__lede { font-size: 1.12rem; color: var(--text-dim); max-width: 640px; margin: 20px 0 0; }

/* ── Steps ─────────────────────────────────────────────── */
.steps { display: flex; align-items: stretch; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.step {
  flex: 1 1 240px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.step:hover { border-color: var(--border-2); transform: translateY(-3px); }
.step__num { font-family: "Geist Mono", monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.step p { color: var(--text-dim); font-size: 0.98rem; }
.step__arrow { display: flex; align-items: center; color: var(--text-mute); font-size: 22px; }

/* ── Cards (modules) ───────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(0,163,224,0.45), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: rgba(255,255,255,0.045); }
.card:hover::before { opacity: 1; }
.card__tag {
  font-family: "Geist Mono", monospace; font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }
.card--cta {
  background: linear-gradient(155deg, rgba(0,163,224,0.14), rgba(16,42,71,0.4));
  border-color: var(--border-2); display: flex; flex-direction: column;
}
.card--cta p { color: var(--text); }
.link-arrow { margin-top: auto; padding-top: 16px; color: var(--accent); font-weight: 500; font-size: 0.96rem; }
.link-arrow:hover { color: var(--accent-2); }

/* ── Loop ──────────────────────────────────────────────── */
.loop { display: flex; align-items: stretch; gap: 0; margin-top: 56px; flex-wrap: wrap; }
.loop__node {
  flex: 1 1 180px; text-align: center; padding: 30px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
}
.loop__k {
  display: block; font-family: "Geist Mono", monospace; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.loop__node p { color: var(--text-dim); font-size: 0.95rem; }
.loop__edge {
  align-self: center; flex: 0 0 28px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); position: relative;
}
.loop__edge::after {
  content: "▶"; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 9px;
}

.pull {
  margin: 60px auto 0; max-width: 820px; text-align: center; border: 0; padding: 0;
  font-size: clamp(1.4rem, 3.2vw, 2.05rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3;
  color: #fff;
}
.pull::before { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin: 0 auto 28px; border-radius: 3px; }

/* ── Why grid ──────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.why { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); transition: border-color .3s var(--ease); }
.why:hover { border-color: var(--border-2); }
.why h3 { font-size: 1.14rem; margin-bottom: 10px; }
.why h3::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.why p { color: var(--text-dim); font-size: 0.96rem; }

.position-line {
  margin: 50px auto 0; text-align: center; max-width: 680px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--text-dim);
}

/* ── Pillars ───────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 52px; }
.pillar { padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.pillar__k { display: block; font-weight: 600; font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.pillar__k::after { content: ""; display: block; width: 24px; height: 2px; background: var(--accent); margin-top: 10px; }
.pillar p { color: var(--text-dim); font-size: 0.9rem; }

/* ── CTA ───────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; padding: clamp(80px, 13vh, 140px) 0; border-top: 1px solid var(--border); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(0,163,224,0.18), transparent 70%);
}
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; }
.cta__title { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 14px; }
.cta__lede { color: var(--text-dim); font-size: 1.12rem; margin: 22px auto 34px; max-width: 620px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 44px 0; background: #081526; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.footer__word { font-weight: 600; letter-spacing: 0.16em; font-size: 17px; display: block; }
.footer__line { color: var(--text-mute); font-size: 0.9rem; margin-top: 6px; display: block; }
.footer__meta { display: flex; flex-direction: column; gap: 6px; text-align: right; color: var(--text-mute); font-size: 0.82rem; }
.footer__meta .mono { color: var(--text-dim); letter-spacing: 0.1em; font-size: 0.78rem; }

/* ── Phase map ─────────────────────────────────────────── */
.section--tight { padding: clamp(56px, 8vh, 92px) 0; }
.phasemap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.phase {
  position: relative; padding: 30px 30px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.phase:hover { transform: translateY(-3px); }
.phase--now { border-color: rgba(46, 204, 150, 0.32); }
.phase--next { border-color: var(--border-2); background: linear-gradient(160deg, rgba(0,163,224,0.1), var(--panel)); }
.phase h3 { font-size: 1.4rem; margin: 16px 0 10px; }
.phase p { color: var(--text-dim); }

.phase__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px;
}
.phase__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.phase--now .phase__badge { color: #6ff0c0; border-color: rgba(46, 204, 150, 0.4); }
.phase--now .phase__badge i { background: #2ecc96; box-shadow: 0 0 10px #2ecc96; }
.phase--next .phase__badge { color: var(--accent-2); border-color: var(--border-2); }
.phase--next .phase__badge i { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.phase__badge--lg { font-size: 13px; padding: 8px 16px; }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; color: var(--text-dim); font-size: 0.96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.phase--now .ticks li::before { border-color: #2ecc96; }

/* ── Module card rows + availability pills ─────────────── */
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card__row .card__tag { margin-bottom: 0; }
.pill {
  font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; flex: none;
  border: 1px solid var(--border);
}
.pill--now { color: #6ff0c0; border-color: rgba(46, 204, 150, 0.4); background: rgba(46, 204, 150, 0.08); }
.pill--next { color: var(--accent-2); border-color: var(--border-2); background: rgba(0, 163, 224, 0.08); }

/* ── Phase II band ─────────────────────────────────────── */
.band-phase2 {
  position: relative; overflow: hidden;
  padding: clamp(80px, 12vh, 140px) 0;
  background:
    linear-gradient(180deg, #081627, #0a1d33 50%, #081627);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.band-phase2__glow {
  position: absolute; z-index: 0; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,163,224,0.16), transparent 65%); filter: blur(10px);
}
.band-phase2 .container { position: relative; z-index: 1; }
.band-head { max-width: 760px; }
.band-head__title { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 22px 0 0; }
.band-head__lede { color: var(--text-dim); font-size: 1.12rem; margin: 20px 0 0; max-width: 660px; }
.band-sub {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 64px 0 0; text-align: center; color: #fff;
}
.band-sub + .cards, .band-sub + .loop { margin-top: 36px; }

.shift { display: flex; align-items: stretch; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.shift .step { flex: 1 1 240px; }
.tag-now {
  display: inline-block; font-family: "Geist Mono", monospace; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: #6ff0c0;
  border: 1px solid rgba(46,204,150,0.4); border-radius: 999px; padding: 1px 8px; margin-left: 6px;
}
.loop-wrap { margin-top: 8px; }

/* ── Reveal animation ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 940px) {
  .cards, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(8, 21, 38, 0.98); border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav.is-open .nav__links a { padding: 14px 24px; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .step__arrow { display: none; }
  .loop__edge { display: none; }
  .cards, .why-grid, .pillars { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}

/* ============================================================
   MULTIPAGE COMPONENTS — tables, charts, figures, stats, etc.
   ============================================================ */

/* ── Active nav state ──────────────────────────────────── */
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { width: 100%; }

/* ── Subhero (interior page header) ────────────────────── */
.subhero { position: relative; overflow: hidden; padding: clamp(64px, 11vh, 116px) 0 clamp(40px, 6vh, 64px); border-bottom: 1px solid var(--border); }
.subhero .hero__grid { mask-image: radial-gradient(ellipse 90% 80% at 20% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 90% 80% at 20% 0%, #000, transparent 70%); }
.subhero__inner { position: relative; z-index: 2; max-width: 820px; }
.subhero__title { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 18px 0 0; }
.subhero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); margin: 22px 0 0; max-width: 680px; }
.crumb { font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.crumb a { color: var(--text-mute); } .crumb a:hover { color: var(--accent); }
.crumb b { color: var(--accent); font-weight: 500; }

/* ── Data tables ───────────────────────────────────────── */
.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.dtable caption { text-align: left; padding: 16px 20px 0; color: var(--text-mute); font-size: 0.84rem; font-family: "Geist Mono", monospace; letter-spacing: 0.08em; }
.dtable th, .dtable td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.dtable thead th { background: rgba(0,163,224,0.08); color: #fff; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover { background: rgba(255,255,255,0.025); }
.dtable td { color: var(--text-dim); }
.dtable td strong, .dtable td b { color: var(--text); }
.dtable .num { font-family: "Geist Mono", monospace; color: var(--text); white-space: nowrap; }
.dtable .key { color: var(--accent); font-family: "Geist Mono", monospace; font-size: 0.84rem; letter-spacing: 0.04em; white-space: nowrap; }

/* ── Matrix (yes/no comparison) ────────────────────────── */
.matrix td.mark, .matrix th.mark { text-align: center; }
.matrix .yes, .matrix .no, .matrix .part, .matrix .core { font-weight: 700; }
.matrix .yes { color: #2ecc96; }
.matrix .no { color: #e2607a; }
.matrix .part { color: var(--text-mute); font-weight: 500; font-size: 0.82rem; }
.matrix .core { color: var(--accent-2); }
.matrix .cartos-col { background: rgba(0,163,224,0.07); }
.matrix thead th.cartos-col { background: rgba(0,163,224,0.16); color: var(--accent-2); }

/* ── Stat cards ────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.stat { padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.stat__n { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.stat__n .u { font-size: 0.55em; color: var(--accent-2); margin-left: 2px; }
.stat__l { color: var(--text-dim); font-size: 0.92rem; margin-top: 12px; }
.stat--accent { border-color: var(--border-2); background: linear-gradient(160deg, rgba(0,163,224,0.12), var(--panel)); }
.stat--accent .stat__n { color: var(--accent-2); }

/* ── Figures & diagrams ────────────────────────────────── */
.figure { margin: 48px 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(13,33,56,0.6), rgba(10,26,47,0.3)); padding: 32px 28px 22px; }
.figure svg { display: block; width: 100%; height: auto; }
.figure__cap { margin-top: 18px; color: var(--text-mute); font-size: 0.86rem; font-family: "Geist Mono", monospace; letter-spacing: 0.04em; }
.figure__cap b { color: var(--text-dim); font-weight: 500; }

/* SVG chart/diagram element styling (presentation classes) */
.c-axis { stroke: var(--border-2); stroke-width: 1; }
.c-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.c-bar { fill: url(#barGrad); }
.c-bar--alt { fill: rgba(120,175,220,0.32); }
.c-label { fill: var(--text-dim); font-family: "Geist Mono", monospace; font-size: 12px; }
.c-val { fill: #fff; font-family: "Geist", sans-serif; font-size: 13px; font-weight: 600; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.c-area { fill: url(#areaGrad); }
.c-dot { fill: var(--accent-2); stroke: #0a1d33; stroke-width: 2; }
.d-box { fill: var(--panel); stroke: var(--border-2); stroke-width: 1.2; rx: 10; }
.d-box--accent { fill: rgba(0,163,224,0.12); stroke: var(--accent); }
.d-text { fill: var(--text); font-family: "Geist", sans-serif; font-size: 13px; font-weight: 500; }
.d-sub { fill: var(--text-mute); font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; }
.d-flow { stroke: var(--accent); stroke-width: 1.6; fill: none; marker-end: url(#arrow); }

/* ── TAM/SAM/SOM funnel ────────────────────────────────── */
.funnel { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.funnel__row { width: 100%; border: 1px solid var(--border-2); border-radius: 12px; padding: 22px 26px; background: linear-gradient(180deg, rgba(0,163,224,0.1), rgba(16,42,71,0.35)); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.funnel__row:nth-child(1) { width: 100%; }
.funnel__row:nth-child(2) { width: 74%; }
.funnel__row:nth-child(3) { width: 50%; }
.funnel__k { font-family: "Geist Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; color: var(--accent-2); }
.funnel__n { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; color: #fff; }
.funnel__d { color: var(--text-dim); font-size: 0.84rem; flex-basis: 100%; margin-top: 8px; }
.funnel__row { flex-wrap: wrap; }

/* ── Release scope (versioned columns) ─────────────────── */
.scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.scope__col { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 26px 24px; }
.scope__col--v1 { border-color: rgba(46,204,150,0.32); }
.scope__ver { font-family: "Geist Mono", monospace; font-size: 13px; letter-spacing: 0.1em; color: var(--accent); }
.scope__col--v1 .scope__ver { color: #6ff0c0; }
.scope__name { font-size: 1.2rem; margin: 8px 0 16px; }
.scope ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.scope li { position: relative; padding-left: 24px; color: var(--text-dim); font-size: 0.94rem; }
.scope li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.scope__col--v1 li::before { background: #2ecc96; }
.scope li b { color: var(--text); }

/* ── Phase timeline (home) ─────────────────────────────── */
.timeline { margin-top: 52px; position: relative; }
.timeline__track { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, #2ecc96, var(--accent) 55%, rgba(0,163,224,0.3)); }
.timeline__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.tl { padding-top: 64px; position: relative; }
.tl::before { content: ""; position: absolute; top: 20px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl--now::before { border-color: #2ecc96; box-shadow: 0 0 12px rgba(46,204,150,0.6); }
.tl--next::before { border-color: var(--accent); box-shadow: 0 0 12px rgba(0,163,224,0.5); }
.tl--future::before { border-color: var(--text-mute); background: var(--bg); }
.tl__k { font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tl--now .tl__k { color: #6ff0c0; }
.tl h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.tl p { color: var(--text-dim); font-size: 0.96rem; }
.tl__status { display: inline-block; margin-top: 14px; font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-mute); }
.tl--now .tl__status { color: #6ff0c0; border-color: rgba(46,204,150,0.4); }

/* ── Big page CTA reuse / prose ────────────────────────── */
.prose { max-width: 720px; }
.prose p + p { margin-top: 18px; }
.lead-quote { margin: 44px 0 0; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 12px 12px 0; color: var(--text); font-size: 1.08rem; }

/* ── Outcome chips + partner row (Vision page) ─────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { font-size: 0.85rem; color: var(--text); border: 1px solid var(--border-2); background: var(--panel); border-radius: 999px; padding: 7px 15px; }
.chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: middle; }

.partners { margin-top: 28px; padding: 20px 22px; border: 1px dashed var(--border-2); border-radius: var(--radius); background: rgba(0,163,224,0.05); }
.partners__k { font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.partners__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; align-items: center; }
.partners__name { font-size: 1.05rem; font-weight: 600; color: #fff; padding: 6px 16px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg-1); }
.partners__note { color: var(--text-mute); font-size: 0.82rem; margin-top: 14px; }

/* Two-up initiative blocks reuse .phase; add a wider variant */
.initiative { margin-top: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 34px 32px; }
.initiative--africa { border-color: rgba(46,204,150,0.3); }
.initiative__k { font-family: "Geist Mono", monospace; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.initiative--africa .initiative__k { color: #6ff0c0; }
.initiative h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 12px 0 14px; }
.initiative p { color: var(--text-dim); max-width: 760px; }
.initiative p + p { margin-top: 14px; }

/* ── Multipage responsive ──────────────────────────────── */
@media (max-width: 940px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .scope { grid-template-columns: 1fr; }
  .timeline__track { display: none; }
  .timeline__row { grid-template-columns: 1fr; gap: 14px; }
  .tl { padding-top: 0; padding-left: 30px; }
  .tl::before { top: 4px; left: 0; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
}

