/* ══════════════════════════════════════════════════════════════
   Adaptive Growth Engine — Cinematic Living Blueprint
   Light brand palette · Cinematic scroll stages · Vanilla JS
══════════════════════════════════════════════════════════════ */

.age {
  --age-cream:    #FAF7F0;
  --age-cream-2:  #F3EEE2;
  --age-ink:      #1A1B2E;
  --age-ink-soft: #4A4B71;
  --age-muted:    #7A7C95;
  --age-line:     rgba(74,75,113,.10);
  --age-line-hi:  rgba(74,75,113,.22);
  --age-yellow:   #FDBB11;
  --age-orange:   #F27D26;
  --age-rust:     #C85A3C;

  position: relative;
  isolation: isolate;
  padding: 6rem clamp(1.5rem,6vw,8rem) 6rem;
  background: var(--age-cream);
  color: var(--age-ink);
  /* overflow: clip (not hidden) — hidden would break position:sticky on descendants. */
  overflow: clip;
}

.age-inner {
  max-width: 82rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Atmosphere bed ─────────────────────────────────────────── */
.age-atmosphere { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.age-moodboard {
  position: absolute;
  inset: -2rem 0 auto 0;
  height: 60%;
  background: url('/assets/images/age-moodboard/01-porcelain-circuit.png') center/cover no-repeat;
  opacity: .22;
  filter: blur(2px) saturate(1.05);
  mask-image: linear-gradient(to bottom,#000 0%,#000 55%,transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,#000 0%,#000 55%,transparent 100%);
}
.age-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(74,75,113,.045) 1px, transparent 1px),
    linear-gradient(to bottom,rgba(74,75,113,.045) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse at center,#000 35%,transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center,#000 35%,transparent 85%);
}
.age-wash { position: absolute; width: 40rem; height: 40rem; border-radius: 50%; filter: blur(80px); opacity: .5; }
.age-wash--tl { top: -10rem; left: -10rem;   background: radial-gradient(circle,rgba(253,187,17,.28),transparent 70%); }
.age-wash--br { bottom: -12rem; right: -12rem; background: radial-gradient(circle,rgba(74,75,113,.22),transparent 70%); }

/* ── Progress map (desktop side nav) ────────────────────────── */
.age-map {
  display: none;
  position: absolute;
  top: 50%; left: 1.5rem;
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: none;
}
.age-map ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.age-map li { display: flex; align-items: center; gap: .625rem; opacity: .4; transition: opacity .4s; }
.age-map li.active { opacity: 1; }
.age-map-dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--age-ink-soft);
  box-shadow: 0 0 0 3px rgba(74,75,113,.1);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.age-map li.active .age-map-dot {
  background: var(--age-yellow);
  box-shadow: 0 0 0 3px rgba(253,187,17,.2), 0 0 12px rgba(253,187,17,.55);
  transform: scale(1.3);
}
.age-map-label {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--age-ink-soft);
}

/* ── Reveal animation ───────────────────────────────────────── */
.age-reveal {
  opacity: 0; transform: translateY(2rem);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.age-visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════
   INTRO + BROKEN LOOP
══════════════════════════════════════════════════════════════ */
.age-intro { text-align: center; max-width: 62rem; margin: 0 auto 5rem; }
.age-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--age-ink-soft);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--age-line);
  border-radius: 9999px; padding: .45rem 1.1rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.age-eyebrow-dot { width: .4rem; height: .4rem; border-radius: 50%; background: var(--age-yellow); box-shadow: 0 0 8px rgba(253,187,17,.7); }

.age-title { margin: 0; }
.age-title-top {
  display: block;
  font-size: clamp(1.25rem,2.5vw,1.75rem);
  font-weight: 300; color: var(--age-muted);
  margin-bottom: .35rem;
}
.age-title-main {
  display: block;
  font-size: clamp(2.75rem,8vw,6rem);
  font-weight: 800; line-height: .92;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg,var(--age-ink) 15%,var(--age-ink-soft) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.age-title-main sup { font-size: .32em; -webkit-text-fill-color: var(--age-yellow); margin-left: .1em; vertical-align: super; }

.age-intro-lede {
  max-width: 38rem; margin: 1.75rem auto 0;
  font-size: 1.0625rem; line-height: 1.65;
  color: var(--age-muted);
}
.age-intro-lede span {
  display: block; margin-top: .75rem;
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--age-ink-soft);
}

/* ── Broken loop ────────────────────────────────────────────── */
.age-broken {
  max-width: 48rem; margin: 4rem auto 0;
  padding: 2.5rem 1.5rem 2rem;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--age-line);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: relative;
}
.age-broken-viz {
  position: relative;
  max-width: 420px; margin: 0 auto;
  aspect-ratio: 420 / 260;
}
.age-broken-viz svg { width: 100%; height: 100%; display: block; overflow: visible; }

.age-broken-arc {
  fill: none; stroke: var(--age-rust); stroke-opacity: .55; stroke-width: 1.5;
  stroke-dasharray: 3 6; stroke-linecap: round;
}
.age-broken-node circle { fill: var(--age-rust); fill-opacity: .7; filter: drop-shadow(0 0 6px rgba(200,90,60,.5)); }
.age-broken-node circle { animation: broken-flicker 2.2s ease-in-out infinite; }
.age-broken-node:nth-child(6)  circle { animation-delay: .2s; }
.age-broken-node:nth-child(7)  circle { animation-delay: .55s; }
.age-broken-node:nth-child(8)  circle { animation-delay: .95s; }
.age-broken-node:nth-child(9)  circle { animation-delay: 1.3s; }
@keyframes broken-flicker { 0%,100%{opacity:.5} 50%{opacity:.85} }

.age-broken-particle {
  fill: var(--age-rust);
  filter: drop-shadow(0 0 6px rgba(200,90,60,.6));
  offset-path: path('M 90 60 Q 210 10 330 60 Q 370 130 330 200 Q 210 250 90 200 Q 50 130 90 60');
  offset-rotate: 0deg;
  animation: broken-particle 5s linear infinite;
}
@keyframes broken-particle {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  45%  { offset-distance: 45%; transform: translate(8px,-4px); }
  55%  { offset-distance: 55%; transform: translate(-6px,6px); }
  92%  { offset-distance: 100%; opacity: .7; }
  100% { offset-distance: 100%; opacity: 0; }
}

.age-broken-label {
  position: absolute;
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .72rem;
  color: var(--age-ink-soft);
  max-width: 10rem;
  line-height: 1.4;
}
.age-broken-label .age-broken-n { display: block; font-weight: 700; color: var(--age-rust); letter-spacing: .1em; }
.age-broken-label strong { display: block; font-family: inherit; font-weight: 700; color: var(--age-ink); margin: .15rem 0; text-transform: none; }
.age-broken-label em { display: block; font-style: normal; color: var(--age-muted); font-size: .7rem; }
.age-broken-label--0 { top: -12%; left: -4%;  text-align: right; }
.age-broken-label--1 { top: -12%; right: -4%; text-align: left;  }
.age-broken-label--2 { bottom: -18%; right: -4%; text-align: left;  }
.age-broken-label--3 { bottom: -18%; left: -4%;  text-align: right; }

.age-broken-caption {
  text-align: center; margin: 4.5rem auto 0; max-width: 32rem;
  font-size: 1rem; color: var(--age-muted); line-height: 1.6;
}
.age-broken-caption strong { color: var(--age-ink); font-weight: 700; }
.age-broken-caption span {
  display: block; margin-top: .5rem;
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--age-yellow);
}

/* ══════════════════════════════════════════════════════════════
   CINEMATIC STAGES (shared)
══════════════════════════════════════════════════════════════ */
.age-stage {
  position: relative;
  min-height: 130vh;
  padding: 6vh 0;
}
.age-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem; margin: 0 auto;
}
.age-stage-pin {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.age-stage-copy {
  padding: 2rem 0;
  max-width: 32rem;
}
.age-stage-num {
  display: inline-block;
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 5.5rem; font-weight: 800;
  background: linear-gradient(135deg,var(--age-yellow),var(--age-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: .85; letter-spacing: -0.05em;
  margin-bottom: .5rem;
  opacity: 0; transform: translateY(1rem);
  transition: opacity .7s ease, transform .7s ease;
}
.age-stage-active .age-stage-num { opacity: 1; transform: translateY(0); }
.age-stage-eyebrow {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--age-ink-soft);
  margin: 0 0 .75rem;
}
.age-stage-title {
  font-size: clamp(1.75rem,3.5vw,2.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--age-ink);
  margin: 0 0 1rem;
}
.age-stage-lede {
  font-size: 1.125rem; font-weight: 600;
  color: var(--age-ink-soft);
  margin: 0 0 1.25rem; line-height: 1.45;
}
.age-stage-desc {
  font-size: 1rem; line-height: 1.7;
  color: var(--age-muted);
  margin: 0 0 1.75rem;
}
.age-stage-proof {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .625rem;
}
.age-stage-proof li {
  display: flex; align-items: center; gap: .625rem;
  font-size: .95rem; color: var(--age-ink);
  padding: .625rem .875rem;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--age-line);
  border-radius: .625rem;
  transition: transform .3s ease, border-color .3s ease;
}
.age-stage-proof li:hover { transform: translateX(4px); border-color: var(--age-line-hi); }
.age-stage-proof svg {
  width: 1rem; height: 1rem; flex-shrink: 0;
  stroke: var(--age-orange);
  padding: .2rem; border-radius: 50%;
  background: rgba(253,187,17,.18);
  box-sizing: content-box;
}

/* Viz container shared */
.age-viz {
  width: 100%; max-width: 480px;
  aspect-ratio: 440 / 500;
  display: block;
}
.age-viz svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ══════════════════════════════════════════════════════════════
   VIZ 01 — ATTRACT (funnel)
══════════════════════════════════════════════════════════════ */
.v-attract-body { transition: stroke-opacity .6s ease; }
.age-stage-active .v-attract-body { stroke-opacity: .6; }

.v-attract-gate { opacity: 0; transform-origin: 220px 300px; transform: scaleX(.3); transition: opacity .6s ease .3s, transform .6s ease .3s; }
.age-stage-active .v-attract-gate { opacity: 1; transform: scaleX(1); }
.v-attract-gate-label {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 9px; fill: var(--age-ink-soft); letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transition: opacity .5s ease .6s;
}
.age-stage-active .v-attract-gate-label { opacity: 1; }

.v-attract-edge {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 10px; fill: var(--age-muted); letter-spacing: .05em;
}

/* Noise particles — random drift into the funnel mouth */
.v-attract-noise {
  fill: var(--age-ink-soft); opacity: 0;
  animation: noise-in 3.2s linear infinite;
  animation-delay: calc(var(--i) * -.22s);
  animation-play-state: paused;
  transform-origin: 220px 300px;
}
.age-stage-active .v-attract-noise { animation-play-state: running; }
.v-attract-noise:nth-child(3n)   { fill: var(--age-muted); }
.v-attract-noise:nth-child(4n+1) { fill: var(--age-rust); fill-opacity: .7; }

/* 14 particles drifting from random edge points to gate */
.v-attract-noise:nth-child(1)  { --sx: 40;  --sy: 100; }
.v-attract-noise:nth-child(2)  { --sx: 400; --sy: 120; }
.v-attract-noise:nth-child(3)  { --sx: 80;  --sy: 160; }
.v-attract-noise:nth-child(4)  { --sx: 380; --sy: 80;  }
.v-attract-noise:nth-child(5)  { --sx: 120; --sy: 70;  }
.v-attract-noise:nth-child(6)  { --sx: 340; --sy: 200; }
.v-attract-noise:nth-child(7)  { --sx: 60;  --sy: 240; }
.v-attract-noise:nth-child(8)  { --sx: 420; --sy: 180; }
.v-attract-noise:nth-child(9)  { --sx: 160; --sy: 60;  }
.v-attract-noise:nth-child(10) { --sx: 280; --sy: 90;  }
.v-attract-noise:nth-child(11) { --sx: 70;  --sy: 140; }
.v-attract-noise:nth-child(12) { --sx: 360; --sy: 160; }
.v-attract-noise:nth-child(13) { --sx: 180; --sy: 50;  }
.v-attract-noise:nth-child(14) { --sx: 300; --sy: 230; }

@keyframes noise-in {
  0%   { cx: var(--sx, 60);  cy: var(--sy, 100); opacity: 0; r: 3.2; }
  15%  { opacity: .7; }
  60%  { cx: 220; cy: 294; opacity: .9; r: 3.6; }
  /* Some are rejected by the gate → slide off; pass-through handled by .v-attract-gold */
  80%  { cx: 220; cy: 290; opacity: .3; r: 2.6; }
  100% { cx: 220; cy: 270; opacity: 0; r: 2; }
}

/* Gold stream exiting bottom */
.v-attract-gold {
  fill: var(--age-yellow);
  filter: drop-shadow(0 0 6px rgba(253,187,17,.7));
  opacity: 0;
  animation: gold-stream 2.2s ease-in infinite;
  animation-delay: calc(var(--i) * -.35s);
  animation-play-state: paused;
}
.age-stage-active .v-attract-gold { animation-play-state: running; }
@keyframes gold-stream {
  0%   { cx: 220; cy: 305; opacity: 0;  r: 3; }
  10%  { opacity: 1; r: 4; }
  90%  { cx: 220; cy: 455; opacity: 1; }
  100% { cx: 220; cy: 475; opacity: 0; }
}
.v-attract-exitglow {
  opacity: 0;
  transition: opacity 1s ease .8s;
  animation: exitglow-pulse 3s ease-in-out infinite;
  animation-play-state: paused;
}
.age-stage-active .v-attract-exitglow { opacity: 1; animation-play-state: running; }
@keyframes exitglow-pulse { 0%,100% { r: 55; opacity: .7; } 50% { r: 70; opacity: 1; } }

/* ══════════════════════════════════════════════════════════════
   VIZ 02 — FILTER (grid of AI checks)
══════════════════════════════════════════════════════════════ */
.v-filter-cell { opacity: 0; transition: opacity .5s ease; }
.age-stage-active .v-filter-cell { opacity: 1; transition-delay: calc(var(--i) * .04s); }
.v-filter-cell-code {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 8px; fill: var(--age-muted); letter-spacing: .05em;
}
.v-filter-verdict { opacity: 0; transition: opacity .5s ease; }
.age-stage-active .v-filter-cell .v-filter-verdict { opacity: 1; transition-delay: calc(var(--i) * .04s + .3s); }

.v-filter-drop {
  fill: var(--age-ink-soft); opacity: 0;
  animation: drop-fall 2.8s linear infinite;
  animation-delay: calc(var(--i) * -.35s);
  animation-play-state: paused;
}
.age-stage-active .v-filter-drop { animation-play-state: running; }
.v-filter-drop:nth-child(3n) { fill: var(--age-muted); }
.v-filter-drop:nth-child(5n) { fill: var(--age-yellow); }

.v-filter-drop:nth-child(1) { --ex: 100; }
.v-filter-drop:nth-child(2) { --ex: 190; }
.v-filter-drop:nth-child(3) { --ex: 260; }
.v-filter-drop:nth-child(4) { --ex: 340; }
.v-filter-drop:nth-child(5) { --ex: 150; }
.v-filter-drop:nth-child(6) { --ex: 230; }
.v-filter-drop:nth-child(7) { --ex: 310; }
.v-filter-drop:nth-child(8) { --ex: 120; }

@keyframes drop-fall {
  0%   { cx: var(--ex,180); cy: 40;  opacity: 0; }
  10%  { opacity: .9; }
  70%  { cx: var(--ex,180); cy: 440; opacity: 1; }
  85%  { cx: var(--ex,180); cy: 460; opacity: 1; r: 3; }
  100% { cx: var(--ex,180); cy: 465; opacity: 0; r: 1; }
}

.v-filter-pile {
  opacity: 0;
  transition: opacity 1s ease .6s;
}
.age-stage-active .v-filter-pile { opacity: 1; }

.v-filter-stat-label {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 9px; fill: var(--age-muted); letter-spacing: .08em; text-transform: uppercase;
}
.v-filter-stat-num {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 16px; font-weight: 700; fill: var(--age-ink);
}
.v-filter-stat-num--pass { fill: var(--age-orange); }

/* ══════════════════════════════════════════════════════════════
   VIZ 03 — CONVERT (landing page simplifies)
══════════════════════════════════════════════════════════════ */
.v-convert-frame { transition: stroke-opacity .6s ease; }
.age-stage-active .v-convert-frame { stroke-opacity: .45; }

/* Clutter blocks fade out one by one as --p increases */
.v-convert-clutter { transition: opacity .6s ease; }
.v-convert-clutter--1 { opacity: 1; }
.v-convert-clutter--2 { opacity: 1; }
.v-convert-clutter--3 { opacity: 1; }
.v-convert-clutter--4 { opacity: 1; }
.v-convert-clutter--5 { opacity: 1; }
.age-stage-active .v-convert-clutter--1 { opacity: calc(1 - clamp(0, (var(--p, 0) - 0.15) * 6, 1)); }
.age-stage-active .v-convert-clutter--2 { opacity: calc(1 - clamp(0, (var(--p, 0) - 0.22) * 6, 1)); }
.age-stage-active .v-convert-clutter--3 { opacity: calc(1 - clamp(0, (var(--p, 0) - 0.30) * 6, 1)); }
.age-stage-active .v-convert-clutter--4 { opacity: calc(1 - clamp(0, (var(--p, 0) - 0.38) * 6, 1)); }
.age-stage-active .v-convert-clutter--5 { opacity: calc(1 - clamp(0, (var(--p, 0) - 0.46) * 6, 1)); }

.v-convert-hero rect { opacity: .85; transition: opacity .5s ease; }
.age-stage-active .v-convert-hero rect { opacity: 1; }

.v-convert-cta rect { filter: drop-shadow(0 4px 14px rgba(253,187,17,.4)); }
.v-convert-cta text {
  font-family: ui-sans-serif,system-ui,sans-serif;
  font-size: 10px; font-weight: 700; fill: var(--age-ink);
  letter-spacing: .02em;
}
.v-convert-cta { transform-origin: 170px 182px; transition: transform .6s ease; }
.age-stage-active .v-convert-cta { transform: scale(calc(1 + var(--p, 0) * 0.12)); }

.v-convert-ripple {
  opacity: 0;
  transform-origin: 170px 182px;
  animation: cta-ripple 2.2s ease-out infinite;
  animation-delay: 1.2s;
  animation-play-state: paused;
}
.v-convert-ripple--2 { animation-delay: 2s; }
.age-stage-active .v-convert-ripple { animation-play-state: running; }
@keyframes cta-ripple {
  0%   { opacity: .8; transform: scale(.8); }
  100% { opacity: 0;  transform: scale(2.4); }
}

.v-convert-visitor {
  fill: var(--age-yellow);
  filter: drop-shadow(0 0 6px rgba(253,187,17,.7));
  opacity: 0;
  animation: visitor-path 4s ease-in-out infinite;
  animation-play-state: paused;
}
.age-stage-active .v-convert-visitor { animation-play-state: running; }
@keyframes visitor-path {
  0%   { cx: 60;  cy: 80;  opacity: 0; }
  8%   { opacity: 1; }
  40%  { cx: 170; cy: 130; opacity: 1; }
  65%  { cx: 170; cy: 182; opacity: 1; r: 6; }
  75%  { cx: 170; cy: 182; r: 10; opacity: .6; }
  85%  { opacity: 0; }
  100% { cx: 60;  cy: 80;  opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   VIZ 04 — LEARN (feedback loop)
══════════════════════════════════════════════════════════════ */
.v-learn-node-label {
  font-family: ui-sans-serif,system-ui,sans-serif;
  font-size: 13px; font-weight: 700; fill: var(--age-ink);
}
.v-learn-node-sub {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 9px; fill: var(--age-muted); letter-spacing: .06em;
}
.v-learn-node rect { transition: fill-opacity .5s ease, stroke .5s ease; }
.age-stage-active .v-learn-node rect { stroke: var(--age-orange); stroke-opacity: .5; }

.v-learn-loop {
  stroke-dasharray: 4 5;
  animation: loop-flow 3s linear infinite;
  animation-play-state: paused;
}
.age-stage-active .v-learn-loop { animation-play-state: running; }
@keyframes loop-flow { to { stroke-dashoffset: -36; } }

.v-learn-label {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  fill: var(--age-ink-soft);
}

.v-learn-pulse {
  filter: drop-shadow(0 0 8px rgba(253,187,17,.8));
  offset-path: path('M 60 208 L 150 208 L 175 208 L 265 208 L 290 208 L 380 208 C 380 108, 105 108, 105 208 L 60 208');
  offset-rotate: 0deg;
  opacity: 0;
  animation: learn-pulse 3.6s linear infinite;
  animation-play-state: paused;
}
.age-stage-active .v-learn-pulse { animation-play-state: running; }
@keyframes learn-pulse {
  0%   { offset-distance: 0%;  opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.v-learn-stats text { font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace); }
.v-learn-stat-label { font-size: 9px; fill: var(--age-muted); letter-spacing: .08em; text-transform: uppercase; }
.v-learn-stat-val   { font-size: 20px; font-weight: 800; fill: var(--age-ink); }
.v-learn-stat-delta { font-size: 10px; font-weight: 700; fill: var(--age-orange); letter-spacing: .05em; }

.v-learn-spark {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  filter: drop-shadow(0 0 6px rgba(242,125,38,.45));
  transition: stroke-dashoffset 1.6s ease-out .4s;
}
.age-stage-active .v-learn-spark { stroke-dashoffset: 0; }

.v-learn-spark-head {
  opacity: 0;
  animation: spark-head 3s ease-in-out infinite;
  animation-delay: 2s;
  animation-play-state: paused;
}
.age-stage-active .v-learn-spark-head { animation-play-state: running; }
@keyframes spark-head { 0%,100% { opacity: .4; } 50% { opacity: 1; r: 7; } }

/* ══════════════════════════════════════════════════════════════
   VIZ OUTPUT — Assembled engine
══════════════════════════════════════════════════════════════ */
.v-output-ring {
  transform-origin: 220px 240px;
  animation: ring-spin 40s linear infinite;
  animation-play-state: paused;
}
.age-stage-active .v-output-ring { animation-play-state: running; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.v-output-core-halo {
  transform-origin: 220px 240px;
  animation: halo-pulse 3.6s ease-in-out infinite;
  animation-play-state: paused;
}
.age-stage-active .v-output-core-halo { animation-play-state: running; }
@keyframes halo-pulse {
  0%,100% { opacity: .7; transform: scale(1);    }
  50%     { opacity: 1;  transform: scale(1.08); }
}

.v-output-core-label {
  font-family: ui-sans-serif,system-ui,sans-serif;
  font-size: 15px; font-weight: 800; fill: var(--age-yellow); letter-spacing: .08em;
}
.v-output-core-sub {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 8px; letter-spacing: .14em; text-transform: uppercase; fill: rgba(255,255,255,.55);
}

.v-output-sat circle { filter: drop-shadow(0 0 10px rgba(253,187,17,.55)); }
.v-output-sat text {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  fill: var(--age-ink); font-weight: 700;
}

.v-output-pulse {
  filter: drop-shadow(0 0 6px rgba(253,187,17,.9));
  opacity: 0;
  animation: output-pulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.6s);
  animation-play-state: paused;
}
.age-stage-active .v-output-pulse { animation-play-state: running; }
.v-output-pulse:nth-child(1) { offset-path: path('M 220 240 L 220 110'); }
.v-output-pulse:nth-child(2) { offset-path: path('M 220 240 L 350 240'); }
.v-output-pulse:nth-child(3) { offset-path: path('M 220 240 L 220 370'); }
.v-output-pulse:nth-child(4) { offset-path: path('M 220 240 L 90  240'); }
@keyframes output-pulse {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.v-output-emit {
  fill: var(--age-orange);
  opacity: 0;
  animation: output-emit 3.2s linear infinite;
  animation-delay: calc(var(--i) * -.5s);
  animation-play-state: paused;
}
.age-stage-active .v-output-emit { animation-play-state: running; }
.v-output-emit:nth-child(1) { --ey: 140; }
.v-output-emit:nth-child(2) { --ey: 200; }
.v-output-emit:nth-child(3) { --ey: 260; }
.v-output-emit:nth-child(4) { --ey: 320; }
.v-output-emit:nth-child(5) { --ey: 180; }
.v-output-emit:nth-child(6) { --ey: 300; }
@keyframes output-emit {
  0%   { cx: 220; cy: 240; opacity: 0; r: 3; }
  10%  { opacity: .9; }
  100% { cx: 440; cy: var(--ey, 240); opacity: 0; r: 1.5; }
}

/* ══════════════════════════════════════════════════════════════
   OUTPUT STAGE (deliverables + comparison)
══════════════════════════════════════════════════════════════ */
.age-stage--output { min-height: auto; padding-top: 4vh; padding-bottom: 2vh; }
.age-output-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 78rem; margin: 0 auto;
}
.age-output-pin {
  display: flex; align-items: center; justify-content: center;
  min-height: 50vh;
}
.age-output-copy { display: flex; flex-direction: column; gap: 2.5rem; }

.age-compare {
  display: grid; grid-template-columns: 1fr;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--age-line);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.age-compare-col { padding: 1.75rem; }
.age-compare-old { background: rgba(74,75,113,.04); border-bottom: 1px solid var(--age-line); }
.age-compare-new {
  background: linear-gradient(135deg,var(--age-ink-soft),#3A3B5A);
  color: #fff; position: relative; overflow: hidden;
}
.age-compare-new::after {
  content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background: radial-gradient(circle at top right,rgba(253,187,17,.15),transparent 70%);
  pointer-events: none;
}
.age-compare-label {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.age-compare-old .age-compare-label { color: var(--age-muted); }
.age-compare-new .age-compare-label { color: rgba(255,255,255,.6); }
.age-compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; position: relative; z-index: 1; }
.age-compare-old li {
  font-size: .9rem; color: var(--age-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(200,90,60,.5);
}
.age-compare-new li {
  font-size: .9rem; color: #F8F3E8; font-weight: 500;
  display: flex; align-items: baseline; gap: .5rem;
}
.age-compare-new li::before { content: '→'; color: var(--age-yellow); font-weight: 700; }

.age-delivers-label {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--age-ink-soft); margin: 0 0 1rem;
}
.age-delivers ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: .625rem; }
.age-delivers li {
  display: flex; align-items: flex-start; gap: .875rem;
  padding: .875rem 1rem;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--age-line);
  border-radius: .625rem;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .5s ease, transform .5s ease, border-color .3s, background .3s;
  transition-delay: calc(var(--i) * .05s);
}
.age-stage-active .age-delivers li { opacity: 1; transform: translateX(0); }
.age-delivers li:hover { border-color: var(--age-line-hi); background: rgba(255,255,255,.85); }
.age-delivers-n {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .7rem; letter-spacing: .06em; color: var(--age-orange); font-weight: 700;
  flex-shrink: 0; padding-top: .15rem;
}
.age-delivers li strong { display: block; font-size: .95rem; font-weight: 700; color: var(--age-ink); margin-bottom: .15rem; }
.age-delivers li em { display: block; font-style: normal; font-size: .8rem; color: var(--age-muted); }

/* ══════════════════════════════════════════════════════════════
   CTA
══════════════════════════════════════════════════════════════ */
.age-cta {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 2rem;
  padding: 5rem 2rem 3rem;
  border-top: 1px solid var(--age-line);
  margin-top: 3rem;
}
.age-cta-tag {
  font-family: var(--font-mono,ui-monospace,'SF Mono',Menlo,monospace);
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--age-muted); display: block; margin-bottom: .5rem;
}
.age-cta-headline {
  display: block;
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg,var(--age-ink),var(--age-ink-soft) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.age-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .age-broken-label--0 { top: -8%; left: 2%;  }
  .age-broken-label--1 { top: -8%; right: 2%; }
  .age-broken-label--2 { bottom: -14%; right: 2%; }
  .age-broken-label--3 { bottom: -14%; left: 2%;  }
}

@media (min-width: 900px) {
  .age { padding: 8rem clamp(2rem,6vw,8rem) 8rem; }
  .age-map { display: block; }

  .age-stage { min-height: 140vh; }
  .age-stage-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 5rem;
    align-items: start;
  }
  .age-stage-pin {
    /* ScrollTrigger handles pinning via JS (main has a transform → sticky is out) */
    min-height: 72vh;
  }
  /* Flip every other stage for visual rhythm */
  .age-stage:nth-child(even) .age-stage-grid > .age-stage-pin  { order: 2; }
  .age-stage:nth-child(even) .age-stage-grid > .age-stage-copy { order: 1; }
  .age-stage-copy { padding: 6vh 0; }

  .age-output-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
  .age-output-pin { min-height: 64vh; }
  .age-compare { grid-template-columns: 1fr 1fr; }
  .age-compare-old { border-bottom: none; border-right: 1px solid var(--age-line); }
  .age-delivers ul { grid-template-columns: 1fr 1fr; }

  .age-cta { flex-direction: row; justify-content: space-between; text-align: left; padding: 5rem 0; }
  .age-cta-actions { justify-content: flex-end; }
}

@media (min-width: 1200px) {
  .age-stage-grid { gap: 7rem; }
}

/* Reduced motion — strip all animations, show final state */
@media (prefers-reduced-motion: reduce) {
  .age-reveal,
  .age-stage-num,
  .age-delivers li { transition: none !important; opacity: 1 !important; transform: none !important; }

  [class^="v-"],
  [class*=" v-"] { animation: none !important; transition: none !important; }

  .age-stage-pin { position: relative; top: auto; }
}
