/* ====================================================================
   CAREER THESIS — MANIFESTO
   Hero CTA + full-screen 12-scene immersive presentation overlay.
   Built on top of landing.css tokens (--ct-noir, --ct-gold, --serif…).
   Vanilla CSS. No build step. No external libraries.
   ==================================================================== */


/* ════════════════════════════════════════════════════════════════════
   §1. HERO MANIFESTO CTA  (sits between eyebrow + headline)
   ════════════════════════════════════════════════════════════════════ */

.ct-manifesto-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 4px 0 28px;
  opacity: 0;
  transform: translateY(10px);
  animation: ct-rise 1.1s var(--ease, cubic-bezier(.22,.61,.36,1)) 0.18s forwards;
}

.ct-manifesto-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px 14px 22px;
  border-radius: 999px;
  background:
    radial-gradient(120% 200% at 50% 0%, rgba(201,169,97,0.06) 0%, transparent 55%),
    linear-gradient(180deg, #0d1320 0%, #080b13 100%);
  border: 1px solid rgba(201, 169, 97, 0.32);
  color: var(--ct-gold, #c9a961);
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition:
    border-color 360ms cubic-bezier(.22,.61,.36,1),
    transform 360ms cubic-bezier(.22,.61,.36,1),
    box-shadow 360ms cubic-bezier(.22,.61,.36,1),
    color 360ms cubic-bezier(.22,.61,.36,1);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px rgba(201,169,97,0.0),
    0 10px 30px -16px rgba(0,0,0,0.7);
}

/* Inner subtle gold "edge" — gives the pill a fine inner ring on hover */
.ct-manifesto-btn__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(230,207,148,0.18) 0%, transparent 30%,
                            transparent 70%, rgba(201,169,97,0.12) 100%);
  opacity: 0;
  transition: opacity 460ms cubic-bezier(.22,.61,.36,1);
  z-index: 1;
}

/* Sweeping sheen — fires once per hover */
.ct-manifesto-btn__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(230, 207, 148, 0.14) 48%,
    rgba(230, 207, 148, 0.22) 50%,
    rgba(230, 207, 148, 0.14) 52%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 900ms cubic-bezier(.22,.61,.36,1);
  mix-blend-mode: screen;
  z-index: 2;
}

.ct-manifesto-btn__inner {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ct-manifesto-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  color: var(--ct-gold-2, #e6cf94);
  opacity: 0.92;
  transition: transform 460ms cubic-bezier(.22,.61,.36,1), opacity 360ms ease;
}

.ct-manifesto-btn__text {
  display: inline-block;
  background: linear-gradient(180deg, #f4e2b4 0%, #c9a961 90%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  /* fallback */
  color: var(--ct-gold, #c9a961);
}

.ct-manifesto-btn__arrow {
  font-family: var(--serif, Georgia, serif);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ct-gold-2, #e6cf94);
  transform: translateX(0);
  transition: transform 420ms cubic-bezier(.22,.61,.36,1);
}

/* Hover state — refined, restrained */
.ct-manifesto-btn:hover {
  border-color: rgba(201, 169, 97, 0.72);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(201,169,97,0.18),
    0 22px 48px -22px rgba(201,169,97,0.35),
    0 14px 36px -20px rgba(0,0,0,0.8);
}
.ct-manifesto-btn:hover .ct-manifesto-btn__edge   { opacity: 1; }
.ct-manifesto-btn:hover .ct-manifesto-btn__sheen  { transform: translateX(120%); }
.ct-manifesto-btn:hover .ct-manifesto-btn__icon   { transform: scale(1.08); }
.ct-manifesto-btn:hover .ct-manifesto-btn__arrow  { transform: translateX(4px); }

.ct-manifesto-btn:active { transform: translateY(0); }

.ct-manifesto-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px var(--ct-noir, #06080d),
    0 0 0 3px rgba(201, 169, 97, 0.55),
    0 14px 36px -20px rgba(0,0,0,0.8);
}

/* Supporting micro-copy */
.ct-manifesto-cta__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-left: 4px;
  font-family: var(--mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-text-mute, #525d75);
}
.ct-manifesto-cta__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ct-gold, #c9a961);
  box-shadow: 0 0 8px rgba(201,169,97,0.6);
  animation: cm-pulse-dot 2.4s ease-in-out infinite;
}
.ct-manifesto-cta__sep { opacity: 0.5; }

@keyframes cm-pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.78); }
}

@media (max-width: 720px) {
  .ct-manifesto-btn { padding: 12px 20px; font-size: 11px; letter-spacing: 0.14em; }
  .ct-manifesto-btn__text { white-space: nowrap; }
  .ct-manifesto-cta__note { font-size: 9.5px; letter-spacing: 0.13em; }
}


/* ════════════════════════════════════════════════════════════════════
   §2. MANIFESTO OVERLAY — root container
   ════════════════════════════════════════════════════════════════════ */

.cm-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #04060b;
  color: #e8ecf3;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
  isolation: isolate;
}
.cm-root.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cm-root[hidden] { display: none; }

/* Lock body scroll while overlay is open */
body.cm-locked { overflow: hidden; }

/* Ambient void backdrop — exists behind all scenes */
.cm-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(15, 22, 38, 0.85) 0%, transparent 70%),
    radial-gradient(60% 60% at 80% 90%, rgba(201,169,97,0.045) 0%, transparent 60%),
    radial-gradient(50% 50% at 12% 90%, rgba(91, 140, 255, 0.05) 0%, transparent 60%),
    #04060b;
}
.cm-backdrop::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: -1px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ────────── Control bar (top center, glass pill) ────────── */

.cm-controls {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 18px 50px -22px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 600ms ease 200ms, transform 600ms cubic-bezier(.22,.61,.36,1) 200ms;
}
.cm-root.is-open .cm-controls {
  opacity: 1;
  transform: translateY(0);
}

.cm-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-right: 14px;
  font-family: var(--mono, monospace);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--ct-gold, #c9a961);
}
.cm-counter__current { font-weight: 600; min-width: 18px; text-align: right; }
.cm-counter__sep     { opacity: 0.4; }
.cm-counter__total   { color: var(--ct-text-mute, #525d75); }

.cm-progress-ring {
  width: 22px; height: 22px;
  margin-right: 6px;
  position: relative;
}
.cm-progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cm-progress-ring circle { fill: none; stroke-width: 1.5; }
.cm-progress-ring .cm-ring-track { stroke: rgba(255,255,255,0.1); }
.cm-progress-ring .cm-ring-bar   {
  stroke: var(--ct-gold, #c9a961);
  stroke-dasharray: 56.5;        /* 2π × r (r=9) */
  stroke-dashoffset: 56.5;
  transition: stroke-dashoffset 240ms linear;
}

.cm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ct-text, #e8ecf3);
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms ease;
}
.cm-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255,255,255,0.1);
}
.cm-btn:active { transform: scale(0.97); }
.cm-btn:focus-visible {
  outline: none;
  border-color: rgba(201,169,97,0.55);
  box-shadow: 0 0 0 2px rgba(201,169,97,0.25);
}

.cm-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  color: currentColor;
}

.cm-btn--enter {
  background: linear-gradient(180deg, var(--ct-gold-2, #e6cf94) 0%, var(--ct-gold, #c9a961) 100%);
  color: #0a0e16;
  border-color: transparent;
  font-weight: 600;
}
.cm-btn--enter:hover {
  background: linear-gradient(180deg, #f1dca5 0%, #d4b46a 100%);
  border-color: transparent;
  transform: translateY(-1px);
}

.cm-controls__sep {
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.1);
  margin: 0 2px;
}

/* ────────── Side arrows (prev / next) ────────── */

.cm-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 22, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  color: var(--ct-text, #e8ecf3);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 600ms ease,
    background 280ms ease,
    border-color 280ms ease,
    transform 280ms cubic-bezier(.22,.61,.36,1);
}
.cm-root.is-open .cm-nav-arrow { opacity: 0.55; }
.cm-nav-arrow:hover {
  opacity: 1;
  background: rgba(20, 26, 40, 0.7);
  border-color: rgba(201,169,97,0.4);
  color: var(--ct-gold, #c9a961);
}
.cm-nav-arrow--prev { left: 28px; }
.cm-nav-arrow--next { right: 28px; }
.cm-nav-arrow--prev:hover { transform: translate(-3px, -50%); }
.cm-nav-arrow--next:hover { transform: translate(3px, -50%); }
.cm-nav-arrow[disabled] { opacity: 0.15 !important; cursor: default; }

/* ────────── Bottom dotted scrubber ────────── */

.cm-scrubber {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  transition: opacity 600ms ease 300ms;
}
.cm-root.is-open .cm-scrubber { opacity: 1; }

.cm-dot {
  width: 6px; height: 6px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none;
  cursor: pointer;
  transition: background 220ms ease, transform 220ms ease, width 280ms ease;
}
.cm-dot:hover { background: rgba(255,255,255,0.4); }
.cm-dot.is-done { background: rgba(201,169,97,0.5); }
.cm-dot.is-active {
  background: var(--ct-gold, #c9a961);
  width: 22px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(201,169,97,0.6);
}


/* ════════════════════════════════════════════════════════════════════
   §3. SCENE SHELL — content-safe area system
   ════════════════════════════════════════════════════════════════════ */

.cm-stage {
  position: absolute;
  inset: 0;
  /* the stage itself is just a positioning context; scenes do their own centering */
}

/* Each scene fills the viewport AND vertically centers its inner safe-area.
   No padding here — the safe-area on .cm-scene__inner handles all clearance.
   The grid center means scenes shorter than 100vh sit dead-center, while
   the JS fit-check scales any scene that would otherwise exceed available height. */
.cm-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 800ms cubic-bezier(.22,.61,.36,1), visibility 0s linear 800ms;
}
.cm-scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 900ms cubic-bezier(.22,.61,.36,1), visibility 0s;
}

/* ── THE SAFE AREA ──
   Every piece of scene content lives inside this container.
   It is centered in the viewport and provides guaranteed clearance from:
     · top:    120px (well clear of the top-right control bar, ~80px high zone)
     · bottom: 120px (well clear of the bottom scrubber, ~50px zone)
     · sides:   64px (no text ever touches the viewport edge)
   max-width caps line length so typography reads cinematically on wide displays.

   This element is ALSO the transform target used by the viewport-fit check —
   if its scrollHeight exceeds the scene height, JS applies a uniform scale so
   nothing is ever clipped, in line with the priority:
     1) content always visible, 2) typography may scale, 3) no scrolling, 4) no clipping. */
.cm-scene__inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 64px;
  text-align: center;
  /* Scale-to-fit machinery */
  transform-origin: center center;
  transition: transform 480ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* Animated children only run when scene is active. Pause when overlay paused. */
.cm-scene:not(.is-active) *,
.cm-root.is-paused .cm-scene * {
  animation-play-state: paused !important;
}

/* Typography primitives — height-aware sizing.
   On a normal 1920×1080 viewport: min(7vw, 9vh) → 7vw = 134px → capped 100px max.
   On a short 1920×720 viewport:   min(7vw, 9vh) → 9vh = 64.8px (auto-shrinks).
   Result: typography respects BOTH width and height of the viewport. */
.cm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ct-gold, #c9a961);
  margin-bottom: clamp(18px, 2.6vh, 28px);
}
.cm-eyebrow::before,
.cm-eyebrow::after {
  content: "";
  width: 38px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ct-gold, #c9a961), transparent);
}

.cm-title {
  font-family: var(--serif, Georgia, serif);
  font-weight: 300;
  /* WIDTH-and-HEIGHT-aware: shrinks whichever dimension is constrained */
  font-size: clamp(40px, min(6.4vw, 9vh), 100px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: #f0f3f8;
  margin: 0;
}
.cm-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #f4e2b4 0%, #c9a961 70%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cm-sub {
  margin-top: clamp(18px, 2.8vh, 28px);
  font-family: var(--serif, Georgia, serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, min(1.7vw, 2.4vh), 22px);
  letter-spacing: -0.01em;
  color: var(--ct-text-dim, #8a93a8);
}

.cm-line {
  display: block;
  overflow: hidden;
  /* Symmetric clip-zone: covers both descenders / italic-period tails AND
     italic ascenders / swash tops on Fraunces at the manifesto's huge sizes
     (clamp 40px → 100px) with line-height 0.96. Affects all 12 scenes —
     every italic accent (decision., yourself., assembled., blind., …)
     now renders fully. Layout pixel-identical via negative margins. */
  padding-top:    0.22em;
  padding-bottom: 0.22em;
  margin-top:    -0.22em;
  margin-bottom: -0.22em;
}
.cm-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.cm-scene.is-active .cm-word {
  animation: cm-word-up 1.1s cubic-bezier(.22,.61,.36,1) forwards;
}
.cm-scene.is-active .cm-word.d1 { animation-delay: 0.25s; }
.cm-scene.is-active .cm-word.d2 { animation-delay: 0.40s; }
.cm-scene.is-active .cm-word.d3 { animation-delay: 0.55s; }
.cm-scene.is-active .cm-word.d4 { animation-delay: 0.70s; }
.cm-scene.is-active .cm-word.d5 { animation-delay: 0.85s; }
.cm-scene.is-active .cm-word.d6 { animation-delay: 1.00s; }
.cm-scene.is-active .cm-word.d7 { animation-delay: 1.15s; }
.cm-scene.is-active .cm-word.d8 { animation-delay: 1.30s; }
@keyframes cm-word-up {
  to { transform: translateY(0); opacity: 1; }
}

.cm-fade-in {
  opacity: 0;
  transform: translateY(10px);
}
.cm-scene.is-active .cm-fade-in {
  animation: cm-fade-in 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.cm-scene.is-active .cm-fade-in.delay-1 { animation-delay: 0.9s; }
.cm-scene.is-active .cm-fade-in.delay-2 { animation-delay: 1.4s; }
.cm-scene.is-active .cm-fade-in.delay-3 { animation-delay: 1.9s; }
.cm-scene.is-active .cm-fade-in.delay-4 { animation-delay: 2.4s; }
@keyframes cm-fade-in {
  to { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════════════════════════
   §4. SCENE 1 — THE DECISION
   ════════════════════════════════════════════════════════════════════ */

.cm-scene--decision {
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(20, 28, 48, 0.5) 0%, transparent 70%);
}
.cm-scene--decision .cm-title { font-size: clamp(56px, 9vw, 140px); }

.cm-decision-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ct-gold, #c9a961);
  margin: 0 auto clamp(24px, 4vh, 40px);
  box-shadow: 0 0 40px 6px rgba(201,169,97,0.6);
  opacity: 0;
}
.cm-scene--decision.is-active .cm-decision-dot {
  animation: cm-decision-dot 4s ease-in-out infinite, cm-fade-in 1.4s ease forwards;
}
@keyframes cm-decision-dot {
  0%, 100% { box-shadow: 0 0 40px 4px rgba(201,169,97,0.5); }
  50%      { box-shadow: 0 0 70px 14px rgba(201,169,97,0.9); }
}

.cm-decision-rule {
  width: 1px; height: 80px;
  background: linear-gradient(180deg, transparent, rgba(201,169,97,0.5), transparent);
  margin: 36px auto 0;
  transform: scaleY(0);
  transform-origin: top;
}
.cm-scene--decision.is-active .cm-decision-rule {
  animation: cm-rule-grow 1.4s cubic-bezier(.22,.61,.36,1) 2.6s forwards;
}
@keyframes cm-rule-grow { to { transform: scaleY(1); } }


/* ════════════════════════════════════════════════════════════════════
   §5. SCENE 2 — THE NOISE
   ════════════════════════════════════════════════════════════════════ */

.cm-scene--noise .cm-noise-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.cm-noise-chip {
  position: absolute;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 236, 243, 0.85);
  background: rgba(15, 19, 32, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 18px 40px -20px rgba(0,0,0,0.7);
  opacity: 0;
  will-change: transform;
}
.cm-scene--noise.is-active .cm-noise-chip {
  animation:
    cm-chip-in 1.1s cubic-bezier(.22,.61,.36,1) forwards,
    cm-chip-drift 14s ease-in-out infinite alternate;
}
@keyframes cm-chip-in {
  0%   { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.6) rotate(var(--rot)); }
  100% { opacity: var(--op, 0.85); transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot)); }
}
@keyframes cm-chip-drift {
  to { transform: translate(calc(var(--tx) + var(--dx)), calc(var(--ty) + var(--dy))) scale(1) rotate(var(--rot2)); }
}

.cm-scene--noise .cm-scene__inner { position: relative; z-index: 2; }

/* Convergence ring behind the title for emphasis */
.cm-noise-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 50% at 50% 50%, rgba(4,6,11,0.85) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════════════
   §6. SCENE 3 — THE CONSEQUENCES (splitting paths)
   ════════════════════════════════════════════════════════════════════ */

.cm-scene--consequences { padding-top: 90px; }

.cm-paths {
  position: relative;
  width: min(1000px, 100%);
  height: clamp(220px, 38vh, 340px);
  margin: clamp(28px, 4vh, 48px) auto 0;
}
.cm-paths svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cm-path-line {
  fill: none;
  stroke: rgba(201,169,97,0.55);
  stroke-width: 1;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  filter: drop-shadow(0 0 6px rgba(201,169,97,0.18));
}
.cm-scene--consequences.is-active .cm-path-line {
  animation: cm-path-draw 1.8s cubic-bezier(.22,.61,.36,1) forwards;
}
.cm-scene--consequences.is-active .cm-path-line:nth-child(1) { animation-delay: 1.0s; }
.cm-scene--consequences.is-active .cm-path-line:nth-child(2) { animation-delay: 1.15s; }
.cm-scene--consequences.is-active .cm-path-line:nth-child(3) { animation-delay: 1.30s; }
.cm-scene--consequences.is-active .cm-path-line:nth-child(4) { animation-delay: 1.45s; }
.cm-scene--consequences.is-active .cm-path-line:nth-child(5) { animation-delay: 1.60s; }
.cm-scene--consequences.is-active .cm-path-line:nth-child(6) { animation-delay: 1.75s; }
@keyframes cm-path-draw { to { stroke-dashoffset: 0; } }

.cm-path-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cm-path-label {
  position: absolute;
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ct-text-dim, #8a93a8);
  white-space: nowrap;
  transform: translateY(8px);
  opacity: 0;
}
.cm-scene--consequences.is-active .cm-path-label {
  animation: cm-fade-in 0.9s ease forwards;
}
.cm-scene--consequences.is-active .cm-path-label:nth-child(1) { animation-delay: 2.4s; }
.cm-scene--consequences.is-active .cm-path-label:nth-child(2) { animation-delay: 2.55s; }
.cm-scene--consequences.is-active .cm-path-label:nth-child(3) { animation-delay: 2.70s; }
.cm-scene--consequences.is-active .cm-path-label:nth-child(4) { animation-delay: 2.85s; }
.cm-scene--consequences.is-active .cm-path-label:nth-child(5) { animation-delay: 3.00s; }
.cm-scene--consequences.is-active .cm-path-label:nth-child(6) { animation-delay: 3.15s; }


/* ════════════════════════════════════════════════════════════════════
   §7. SCENE 4 — THE SEARCH
   ════════════════════════════════════════════════════════════════════ */

.cm-search-field {
  position: relative;
  width: min(620px, 100%);
  height: clamp(200px, 34vh, 300px);
  margin: clamp(32px, 5vh, 56px) auto 0;
}

/* Concentric "search" rings */
.cm-search-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(201,169,97,0.18);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
}
.cm-scene--search.is-active .cm-search-ring {
  animation: cm-search-ring 4s ease-out infinite;
}
.cm-search-ring--1 { width: 120px; height: 120px; }
.cm-search-ring--2 { width: 120px; height: 120px; animation-delay: 1.3s !important; }
.cm-search-ring--3 { width: 120px; height: 120px; animation-delay: 2.6s !important; }
@keyframes cm-search-ring {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.0; }
  20%  { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(3.6); opacity: 0; }
}

.cm-search-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.4) 0%, transparent 70%);
  border: 1px solid rgba(201,169,97,0.45);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--ct-gold-2, #e6cf94);
}

.cm-search-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cm-search-word {
  position: absolute;
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,236,243,0.4);
  opacity: 0;
}
.cm-scene--search.is-active .cm-search-word {
  animation: cm-fade-in 0.9s ease forwards;
}


/* ════════════════════════════════════════════════════════════════════
   §8. SCENE 5 — THE FRAMEWORK (4 pillars assembling)
   ════════════════════════════════════════════════════════════════════ */

.cm-framework {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin: clamp(28px, 4.5vh, 48px) auto 0;
}
.cm-pillar {
  position: relative;
  padding: 32px 22px 30px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 28px 60px -30px rgba(0,0,0,0.7);
}
.cm-scene--framework.is-active .cm-pillar {
  animation: cm-pillar-rise 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.cm-scene--framework.is-active .cm-pillar:nth-child(1) { animation-delay: 0.9s; }
.cm-scene--framework.is-active .cm-pillar:nth-child(2) { animation-delay: 1.05s; }
.cm-scene--framework.is-active .cm-pillar:nth-child(3) { animation-delay: 1.20s; }
.cm-scene--framework.is-active .cm-pillar:nth-child(4) { animation-delay: 1.35s; }
@keyframes cm-pillar-rise {
  to { opacity: 1; transform: translateY(0); }
}
.cm-pillar__num {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ct-gold, #c9a961);
  margin-bottom: 22px;
}
.cm-pillar__title {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ct-text, #e8ecf3);
  margin-bottom: 14px;
}
.cm-pillar__desc {
  font-family: var(--sans, sans-serif);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ct-text-mute, #525d75);
}
.cm-pillar__rule {
  width: 28px; height: 1px;
  background: var(--ct-gold-dim, rgba(201,169,97,0.5));
  margin: 22px 0 0;
}


/* ════════════════════════════════════════════════════════════════════
   §9. SCENE 6 — ASSESSMENT ENGINE (fragments assembling)
   ════════════════════════════════════════════════════════════════════ */

.cm-assemble {
  position: relative;
  width: clamp(240px, 36vh, 340px);
  height: clamp(240px, 36vh, 340px);
  margin: clamp(28px, 4vh, 48px) auto 0;
}
.cm-frag {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(201,169,97,0.16) 0%, rgba(201,169,97,0.04) 100%);
  border: 1px solid rgba(201,169,97,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) translate(var(--fx), var(--fy)) rotate(var(--fr));
  opacity: 0;
}
.cm-scene--assessment.is-active .cm-frag {
  animation: cm-frag-converge 1.6s cubic-bezier(.22,.61,.36,1) forwards;
}
.cm-scene--assessment.is-active .cm-frag:nth-child(1) { animation-delay: 1.0s; }
.cm-scene--assessment.is-active .cm-frag:nth-child(2) { animation-delay: 1.1s; }
.cm-scene--assessment.is-active .cm-frag:nth-child(3) { animation-delay: 1.2s; }
.cm-scene--assessment.is-active .cm-frag:nth-child(4) { animation-delay: 1.3s; }
.cm-scene--assessment.is-active .cm-frag:nth-child(5) { animation-delay: 1.4s; }
@keyframes cm-frag-converge {
  0%   { opacity: 0; transform: translate(-50%, -50%) translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.7); }
  100% { opacity: 1; transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) rotate(0deg) scale(1); }
}
.cm-assemble__signals {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ct-text-mute, #525d75);
  pointer-events: none;
}
.cm-assemble__signal { opacity: 0; }
.cm-scene--assessment.is-active .cm-assemble__signal { animation: cm-fade-in 0.8s ease forwards; }
.cm-scene--assessment.is-active .cm-assemble__signal:nth-child(1) { animation-delay: 2.6s; }
.cm-scene--assessment.is-active .cm-assemble__signal:nth-child(2) { animation-delay: 2.75s; }
.cm-scene--assessment.is-active .cm-assemble__signal:nth-child(3) { animation-delay: 2.9s; }
.cm-scene--assessment.is-active .cm-assemble__signal:nth-child(4) { animation-delay: 3.05s; }
.cm-scene--assessment.is-active .cm-assemble__signal:nth-child(5) { animation-delay: 3.2s; }


/* ════════════════════════════════════════════════════════════════════
   §10. SCENE 7 — DOMAIN EXPLORER (orbiting worlds)
   ════════════════════════════════════════════════════════════════════ */

.cm-domains {
  position: relative;
  width: min(820px, 100%);
  height: clamp(240px, 38vh, 340px);
  margin: clamp(28px, 4vh, 48px) auto 0;
}
.cm-domain {
  position: absolute;
  top: 50%; left: 50%;
  width: 110px; height: 110px;
  margin: -55px 0 0 -55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ct-text-dim, #8a93a8);
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(201,169,97,0.12) 0%, transparent 55%),
    rgba(15, 19, 32, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 28px 60px -30px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) scale(0.4);
}
.cm-scene--domains.is-active .cm-domain {
  animation: cm-domain-in 1.2s cubic-bezier(.22,.61,.36,1) forwards,
             cm-domain-float 7s ease-in-out infinite alternate;
}
.cm-scene--domains.is-active .cm-domain:nth-child(1) { animation-delay: 0.9s,  3s; }
.cm-scene--domains.is-active .cm-domain:nth-child(2) { animation-delay: 1.0s,  3s; }
.cm-scene--domains.is-active .cm-domain:nth-child(3) { animation-delay: 1.1s,  3s; }
.cm-scene--domains.is-active .cm-domain:nth-child(4) { animation-delay: 1.2s,  3s; }
.cm-scene--domains.is-active .cm-domain:nth-child(5) { animation-delay: 1.3s,  3s; }
.cm-scene--domains.is-active .cm-domain:nth-child(6) { animation-delay: 1.4s,  3s; }
@keyframes cm-domain-in {
  to { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1); }
}
@keyframes cm-domain-float {
  to { transform: translate(calc(var(--dx) + var(--fx, 0px)), calc(var(--dy) + var(--fy, 0px))) scale(1); }
}


/* ════════════════════════════════════════════════════════════════════
   §11. SCENE 8 — COMPANY INTELLIGENCE (constellation)
   ════════════════════════════════════════════════════════════════════ */

.cm-constellation {
  position: relative;
  width: min(820px, 100%);
  height: clamp(220px, 36vh, 320px);
  margin: clamp(28px, 4vh, 48px) auto 0;
}
.cm-constellation svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.cm-constellation .cm-star {
  fill: var(--ct-gold, #c9a961);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(201,169,97,0.5));
}
.cm-scene--companies.is-active .cm-star {
  animation: cm-star-pop 0.8s cubic-bezier(.22,.61,.36,1) forwards,
             cm-star-twinkle 4s ease-in-out infinite alternate;
}
@keyframes cm-star-pop { to { opacity: 1; } }
@keyframes cm-star-twinkle { to { opacity: 0.45; } }

.cm-constellation .cm-link {
  stroke: rgba(201,169,97,0.25);
  stroke-width: 0.6;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.cm-scene--companies.is-active .cm-link {
  animation: cm-path-draw 2s ease forwards;
  animation-delay: 1.5s;
}

.cm-constellation__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cm-constellation__label {
  position: absolute;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ct-text-dim, #8a93a8);
  opacity: 0;
}
.cm-scene--companies.is-active .cm-constellation__label {
  animation: cm-fade-in 0.8s ease forwards;
}


/* ════════════════════════════════════════════════════════════════════
   §12. SCENE 9 — CAREER TOOLS (decision lab HUD)
   ════════════════════════════════════════════════════════════════════ */

.cm-lab {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 18px;
  width: 100%;
  margin: clamp(28px, 4.5vh, 48px) auto 0;
}
.cm-lab__panel {
  padding: 22px;
  border-radius: 16px;
  background: rgba(15, 19, 32, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
  opacity: 0;
  transform: translateY(28px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 50px -28px rgba(0,0,0,0.7);
  position: relative;
  overflow: hidden;
}
.cm-scene--tools.is-active .cm-lab__panel {
  animation: cm-pillar-rise 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.cm-scene--tools.is-active .cm-lab__panel:nth-child(1) { animation-delay: 1.0s; }
.cm-scene--tools.is-active .cm-lab__panel:nth-child(2) { animation-delay: 1.18s; }
.cm-scene--tools.is-active .cm-lab__panel:nth-child(3) { animation-delay: 1.36s; }

.cm-lab__label {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ct-gold, #c9a961);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-lab__label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ct-gold, #c9a961);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201,169,97,0.6);
}
.cm-lab__matrix {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px 14px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: var(--ct-text-dim, #8a93a8);
}
.cm-lab__matrix span {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.cm-lab__matrix span.is-best { color: var(--ct-gold, #c9a961); }

.cm-lab__bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  margin: 8px 0 14px;
  overflow: hidden;
}
.cm-lab__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ct-gold, #c9a961), var(--ct-gold-2, #e6cf94));
  border-radius: inherit;
}
.cm-scene--tools.is-active .cm-lab__bar-fill {
  animation: cm-bar-fill 1.6s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes cm-bar-fill { to { width: var(--w, 70%); } }

.cm-lab__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: var(--ct-text-dim, #8a93a8);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.cm-lab__row b { color: var(--ct-text, #e8ecf3); font-weight: 500; }


/* ════════════════════════════════════════════════════════════════════
   §13. SCENE 10 — CAREER THESIS REPORT (climax)
   ════════════════════════════════════════════════════════════════════ */

.cm-report-stage {
  position: relative;
  width: min(720px, 100%);
  height: clamp(320px, 50vh, 420px);
  margin: clamp(24px, 3.5vh, 40px) auto 0;
}

.cm-report-feeders {
  position: absolute;
  inset: 0;
}
.cm-report-feeder {
  position: absolute;
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ct-text-mute, #525d75);
  opacity: 0;
}
.cm-scene--report.is-active .cm-report-feeder {
  animation: cm-feeder-in 1.2s cubic-bezier(.22,.61,.36,1) forwards;
}
.cm-scene--report.is-active .cm-report-feeder:nth-child(1) { animation-delay: 0.9s; }
.cm-scene--report.is-active .cm-report-feeder:nth-child(2) { animation-delay: 1.05s; }
.cm-scene--report.is-active .cm-report-feeder:nth-child(3) { animation-delay: 1.20s; }
.cm-scene--report.is-active .cm-report-feeder:nth-child(4) { animation-delay: 1.35s; }
@keyframes cm-feeder-in {
  0%   { opacity: 0; transform: translate(var(--ftx,0), var(--fty,0)) translateY(20px); }
  60%  { opacity: 0.8; }
  100% { opacity: 0.4; transform: translate(var(--ftx,0), var(--fty,0)); }
}
.cm-report-feeder--tl { top: 8%;  left: 4%; }
.cm-report-feeder--tr { top: 8%;  right: 4%; }
.cm-report-feeder--bl { bottom: 8%; left: 4%; }
.cm-report-feeder--br { bottom: 8%; right: 4%; }

.cm-report-doc {
  position: absolute;
  top: 50%; left: 50%;
  width: 340px;
  height: 380px;
  transform: translate(-50%, -50%) scale(0.85);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201,169,97,0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: 14px;
  padding: 26px 28px;
  text-align: left;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 40px 100px -40px rgba(201,169,97,0.35),
    0 30px 80px -30px rgba(0,0,0,0.8);
}
.cm-scene--report.is-active .cm-report-doc {
  animation: cm-report-emerge 1.6s cubic-bezier(.22,.61,.36,1) 2s forwards;
}
@keyframes cm-report-emerge {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.cm-report-doc__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cm-report-doc__brand {
  font-family: var(--mono, monospace);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ct-gold, #c9a961);
}
.cm-report-doc__pill {
  font-family: var(--mono, monospace);
  font-size: 8px;
  letter-spacing: 0.2em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201,169,97,0.12);
  color: var(--ct-gold, #c9a961);
  border: 1px solid rgba(201,169,97,0.3);
}
.cm-report-doc__arch {
  font-family: var(--serif, Georgia, serif);
  font-weight: 300;
  font-style: italic;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #f4e2b4, #c9a961);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}
.cm-report-doc__sub {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-text-mute, #525d75);
  margin-bottom: 24px;
}
.cm-report-doc__rows { display: flex; flex-direction: column; gap: 9px; }
.cm-report-doc__row {
  display: flex; justify-content: space-between;
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: var(--ct-text-dim, #8a93a8);
}
.cm-report-doc__row b { color: var(--ct-text, #e8ecf3); font-weight: 500; }

/* Lines connecting feeders to doc */
.cm-report-stage svg.cm-report-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.cm-report-stage .cm-report-lines path {
  fill: none;
  stroke: rgba(201,169,97,0.25);
  stroke-width: 0.6;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.cm-scene--report.is-active .cm-report-lines path {
  animation: cm-path-draw 1.4s ease forwards;
  animation-delay: 1.6s;
}


/* ════════════════════════════════════════════════════════════════════
   §14. SCENE 11 — THE ECOSYSTEM (interconnected OS)
   ════════════════════════════════════════════════════════════════════ */

.cm-ecosystem {
  position: relative;
  width: min(900px, 100%);
  height: clamp(300px, 48vh, 400px);
  margin: clamp(24px, 3.5vh, 40px) auto 0;
}
.cm-ecosystem svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.cm-eco-link {
  fill: none;
  stroke: rgba(201,169,97,0.25);
  stroke-width: 0.8;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
.cm-scene--ecosystem.is-active .cm-eco-link {
  animation: cm-path-draw 1.6s ease forwards;
}
.cm-scene--ecosystem.is-active .cm-eco-link:nth-child(1) { animation-delay: 1.6s; }
.cm-scene--ecosystem.is-active .cm-eco-link:nth-child(2) { animation-delay: 1.75s; }
.cm-scene--ecosystem.is-active .cm-eco-link:nth-child(3) { animation-delay: 1.9s; }
.cm-scene--ecosystem.is-active .cm-eco-link:nth-child(4) { animation-delay: 2.05s; }
.cm-scene--ecosystem.is-active .cm-eco-link:nth-child(5) { animation-delay: 2.2s; }

.cm-eco-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 130px;
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(15,19,32,0.65);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ct-text, #e8ecf3);
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  transform: scale(0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 50px -28px rgba(0,0,0,0.7);
}
.cm-eco-node--core {
  width: 150px;
  padding: 22px 14px;
  background: linear-gradient(180deg, rgba(201,169,97,0.18) 0%, rgba(201,169,97,0.05) 100%);
  border-color: rgba(201,169,97,0.45);
  color: var(--ct-gold-2, #e6cf94);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -30px rgba(201,169,97,0.4),
    0 30px 80px -30px rgba(0,0,0,0.7);
}
.cm-scene--ecosystem.is-active .cm-eco-node {
  animation: cm-eco-pop 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.cm-scene--ecosystem.is-active .cm-eco-node:nth-child(2) { animation-delay: 0.9s; }
.cm-scene--ecosystem.is-active .cm-eco-node:nth-child(3) { animation-delay: 1.0s; }
.cm-scene--ecosystem.is-active .cm-eco-node:nth-child(4) { animation-delay: 1.1s; }
.cm-scene--ecosystem.is-active .cm-eco-node:nth-child(5) { animation-delay: 1.2s; }
.cm-scene--ecosystem.is-active .cm-eco-node:nth-child(6) { animation-delay: 1.3s; }
.cm-scene--ecosystem.is-active .cm-eco-node:nth-child(7) { animation-delay: 1.4s; }
@keyframes cm-eco-pop {
  to { opacity: 1; transform: scale(1); }
}


/* ════════════════════════════════════════════════════════════════════
   §15. SCENE 12 — THE MISSION (closing)
   ════════════════════════════════════════════════════════════════════ */

.cm-scene--mission {
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(201,169,97,0.07) 0%, transparent 70%);
}
.cm-scene--mission .cm-title {
  font-size: clamp(48px, 7vw, 100px);
  max-width: 17ch;
  margin: 0 auto;
}
.cm-mission-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 5vh, 56px);
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ct-gold-2, #e6cf94) 0%, var(--ct-gold, #c9a961) 100%);
  color: #0a0e16;
  font-family: var(--mono, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 0 0 1px rgba(201,169,97,0.4),
    0 20px 50px -20px rgba(201,169,97,0.5),
    0 30px 80px -30px rgba(0,0,0,0.8);
  transition: transform 320ms cubic-bezier(.22,.61,.36,1), box-shadow 320ms ease;
  opacity: 0;
  transform: translateY(20px);
}
.cm-scene--mission.is-active .cm-mission-cta {
  animation: cm-fade-in 1s ease forwards;
  animation-delay: 1.6s;
}
.cm-mission-cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 0 0 1px rgba(201,169,97,0.6),
    0 30px 70px -20px rgba(201,169,97,0.7),
    0 40px 100px -30px rgba(0,0,0,0.8);
}
.cm-mission-cta__arrow {
  font-family: var(--serif, serif);
  font-size: 18px;
  transition: transform 320ms ease;
}
.cm-mission-cta:hover .cm-mission-cta__arrow { transform: translateX(6px); }

.cm-mission-sig {
  margin-top: 36px;
  font-family: var(--mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ct-text-mute, #525d75);
  opacity: 0;
}
.cm-scene--mission.is-active .cm-mission-sig {
  animation: cm-fade-in 1s ease forwards;
  animation-delay: 2.2s;
}


/* ════════════════════════════════════════════════════════════════════
   §16. Reduced motion + small screens
   ════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .cm-root *,
  .cm-root *::before,
  .cm-root *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
}

@media (max-width: 900px) {
  .cm-scene__inner { padding: 110px 40px; }
  .cm-framework    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cm-lab          { grid-template-columns: 1fr; gap: 14px; }
  .cm-controls     { top: 20px; right: 20px; padding: 6px 6px 6px 14px; gap: 4px; }
  .cm-counter      { margin-right: 8px; font-size: 10.5px; }
  .cm-btn          { padding: 7px 11px; font-size: 10px; letter-spacing: 0.13em; }
  .cm-nav-arrow    { display: none; }
  .cm-report-doc   { width: 260px; height: 320px; padding: 22px; }
  .cm-report-doc__arch { font-size: 22px; }
}

@media (max-width: 560px) {
  .cm-scene__inner       { padding: 100px 24px; }
  .cm-btn__label         { display: none; }
  .cm-btn--enter         { padding: 9px 11px; }
  .cm-btn--enter .cm-btn__label,
  .cm-btn--enter-label   { display: none; }
  .cm-controls           { top: 16px; right: 16px; padding: 6px; }
  .cm-counter            { margin-right: 4px; }
  .cm-controls__sep      { display: none; }
  .cm-framework          { grid-template-columns: 1fr; }
  .cm-pillar             { padding: 18px 16px; }
  .cm-eco-node           { width: 96px; padding: 10px 6px; font-size: 9px; }
  .cm-eco-node--core     { width: 108px; }
  .cm-scrubber           { bottom: 18px; padding: 8px 12px; gap: 7px; }
  .cm-dot                { width: 5px; height: 5px; }
  .cm-dot.is-active      { width: 16px; }
}
