:root {
  color-scheme: dark;
  --ink-0: #07131d;
  --ink-1: #0b1d2b;
  --ink-2: #102a3c;
  --paper: #f3f0e8;
  --paper-soft: rgba(243, 240, 232, 0.72);
  --paper-faint: rgba(243, 240, 232, 0.12);
  --cyan: #78d9d1;
  --gold: #e4b85b;
  --coral: #e88469;
  --blue: #5e8eb6;
  --line: rgba(243, 240, 232, 0.16);
  --ease: cubic-bezier(.2, .75, .25, 1);
  --font-ui: "Avenir Next", "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  --font-data: "Avenir Next Condensed", "SF Mono", "PingFang SC", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink-0);
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 14%, rgba(94, 142, 182, 0.12), transparent 34rem),
    var(--ink-0);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

html.modal-scroll-locked,
html.modal-scroll-locked body {
  overscroll-behavior: none;
}

dialog[open] {
  overscroll-behavior: contain;
}

:is(.source-list, .value-detail-body, .act2-persona-body, .act2-definition-body, .act3-detail-body, .act4-detail-body) {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 14px;
  color: var(--ink-0);
  background: var(--paper);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 68px);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}

.topbar.is-scrolled {
  background: rgba(7, 19, 29, 0.76);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-lockup img {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-lockup .brand-wordmark-zh {
  height: 28px;
}

.brand-lockup .brand-wordmark-en {
  height: 16px;
  opacity: 0.78;
}

.chapter-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  color: var(--paper-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.chapter-status span {
  color: var(--cyan);
  font-family: var(--font-data);
}

.chapter-status i {
  width: 34px;
  height: 1px;
  background: var(--line);
}

.chapter-status strong {
  font-weight: 500;
}

.source-open {
  justify-self: end;
  min-height: 40px;
  padding: 0 16px;
  color: var(--paper-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.source-open:hover {
  color: var(--paper);
  background: var(--paper-faint);
  border-color: rgba(243, 240, 232, 0.34);
}

.global-progress {
  position: fixed;
  z-index: 45;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(243, 240, 232, 0.06);
}

.global-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

.chapter-rail {
  position: fixed;
  z-index: 35;
  top: 50%;
  right: clamp(18px, 2.5vw, 42px);
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.chapter-rail button {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.chapter-rail i {
  position: absolute;
  inset: 5px;
  background: rgba(243, 240, 232, 0.22);
  border-radius: 50%;
  transition: background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.chapter-rail button:hover i,
.chapter-rail button.is-active i {
  background: var(--cyan);
  transform: scale(1.6);
  box-shadow: 0 0 0 4px rgba(120, 217, 209, 0.13);
}

.chapter-rail span {
  position: absolute;
  right: 28px;
  top: 50%;
  width: max-content;
  padding: 6px 9px;
  color: var(--paper);
  background: rgba(11, 29, 43, 0.9);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.chapter-rail button:hover span,
.chapter-rail button:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}

.story-scene {
  position: relative;
  height: calc(var(--frames, 4) * 100svh);
  background: var(--ink-0);
}

.story-scene:nth-child(even) {
  background: var(--ink-1);
}

.scene-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  overflow: hidden;
  padding: 98px clamp(66px, 8vw, 150px) 48px clamp(32px, 7vw, 124px);
  isolation: isolate;
}

.scene-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.7;
  background:
    linear-gradient(rgba(243, 240, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
}

.scene-copy {
  position: relative;
  z-index: 4;
  min-height: 64vh;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: clamp(10px, 0.8vw, 13px);
  letter-spacing: 0.24em;
}

.story-steps {
  position: relative;
  min-height: 56vh;
}

.story-step {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(100%, 650px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + 36px));
  transition: opacity 560ms var(--ease), transform 720ms var(--ease), filter 560ms ease;
  filter: blur(8px);
}

.story-step.is-past {
  transform: translateY(calc(-50% - 34px));
}

.story-step.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
  filter: blur(0);
}

.step-index {
  display: inline-block;
  margin-bottom: 20px;
  color: rgba(243, 240, 232, 0.38);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.story-step h1,
.story-step h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 82px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.story-step h2 {
  font-size: clamp(36px, 4.15vw, 68px);
}

.story-step h2 em {
  color: var(--gold);
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 600;
}

.story-step p {
  max-width: 40em;
  margin: 24px 0 0;
  color: var(--paper-soft);
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.75;
  text-wrap: pretty;
}
.story-emphasis,
.act-transition { display: block; margin-top: 14px; color: var(--gold); font-family: var(--font-serif); font-size: clamp(15px, 1.35vw, 19px); font-weight: 500; line-height: 1.55; }
.act-transition { color: var(--paper-soft); font-size: 13px; }

.citation {
  min-height: 40px;
  margin-top: 18px;
  padding: 0 13px;
  color: var(--cyan);
  background: rgba(120, 217, 209, 0.07);
  border: 1px solid rgba(120, 217, 209, 0.24);
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.citation:hover {
  background: rgba(120, 217, 209, 0.13);
  border-color: rgba(120, 217, 209, 0.48);
}

.scene-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  aspect-ratio: 1.12;
  justify-self: center;
}

.scene-counter {
  position: absolute;
  left: clamp(32px, 7vw, 124px);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(243, 240, 232, 0.4);
  font-family: var(--font-data);
  font-size: 10px;
}

.scene-counter span {
  color: var(--paper);
}

.scene-counter i {
  width: 32px;
  height: 1px;
  background: var(--line);
}

.scroll-cue {
  position: absolute;
  right: clamp(66px, 8vw, 150px);
  bottom: 30px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(243, 240, 232, 0.36);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--cyan);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(0); }
  100% { transform: translateY(300%); }
}

/* 01 — AI arrival */
.ambient-grid {
  position: absolute;
  inset: 7%;
  background:
    linear-gradient(rgba(120, 217, 209, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 217, 209, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 0 48%, transparent 74%);
}

.arrival-core {
  --heartbeat-rgb: 120, 217, 209;
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: clamp(128px, 15vw, 208px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  background: rgba(11, 29, 43, 0.72);
  border: 1px solid rgba(120, 217, 209, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(120, 217, 209, 0.12), inset 0 0 40px rgba(120, 217, 209, 0.05);
  scale: 1;
  transform: translate(-50%, -50%) scale(0.84);
  transition: transform 900ms var(--ease), box-shadow 900ms ease, border-color 600ms ease;
  animation: ai-core-heartbeat 2.4s cubic-bezier(.2, .72, .24, 1) infinite;
  will-change: scale, box-shadow;
}

.arrival-core span {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.08em;
}

.arrival-core small {
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.arrival-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(120, 217, 209, 0.18);
  border-radius: 50%;
  scale: 1;
  transform: translate(-50%, -50%) scale(0.72);
  transition: transform 1s var(--ease), border-color 600ms ease;
  animation: ai-ring-heartbeat 2.4s cubic-bezier(.2, .72, .24, 1) infinite;
  will-change: scale;
}

.ring-one { width: 49%; aspect-ratio: 1; animation-delay: 90ms; }
.ring-two { width: 77%; aspect-ratio: 1; border-style: dashed; animation-delay: 180ms; }

@keyframes ai-core-heartbeat {
  0%, 30%, 100% {
    scale: 1;
    box-shadow: 0 0 70px rgba(var(--heartbeat-rgb), 0.12), inset 0 0 40px rgba(var(--heartbeat-rgb), 0.05);
  }
  7% {
    scale: 1.04;
    box-shadow: 0 0 86px rgba(var(--heartbeat-rgb), 0.2), inset 0 0 46px rgba(var(--heartbeat-rgb), 0.09);
  }
  12% {
    scale: 0.992;
    box-shadow: 0 0 62px rgba(var(--heartbeat-rgb), 0.1), inset 0 0 36px rgba(var(--heartbeat-rgb), 0.04);
  }
  20% {
    scale: 1.075;
    box-shadow: 0 0 112px rgba(var(--heartbeat-rgb), 0.26), inset 0 0 54px rgba(var(--heartbeat-rgb), 0.12);
  }
}

@keyframes ai-ring-heartbeat {
  0%, 34%, 100% { scale: 1; }
  9% { scale: 1.018; }
  22% { scale: 1.048; }
}

.arrival-signal {
  position: absolute;
  z-index: 3;
  min-width: 108px;
  padding: 15px 17px;
  background: rgba(11, 29, 43, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.7) translateY(20px);
  transition: opacity 500ms var(--ease), transform 820ms var(--ease), border-color 500ms ease;
}

.arrival-signal b { display: block; font-size: 16px; font-weight: 500; }
.arrival-signal small { color: rgba(243, 240, 232, 0.38); font-family: var(--font-data); font-size: 8px; letter-spacing: 0.14em; }
.signal-a { top: 8%; left: 18%; }
.signal-b { top: 14%; right: 12%; }
.signal-c { top: 49%; right: 2%; }
.signal-d { right: 19%; bottom: 13%; }
.signal-e { left: 7%; bottom: 16%; }

.arrival-question {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 0;
  width: max-content;
  max-width: 92%;
  color: var(--gold);
  font-family: var(--font-data);
  font-size: clamp(12px, 1.2vw, 18px);
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 700ms ease, transform 800ms var(--ease);
}

.scene-ai[data-frame-current="1"] .arrival-core,
.scene-ai[data-frame-current="2"] .arrival-core,
.scene-ai[data-frame-current="3"] .arrival-core { transform: translate(-50%, -50%) scale(1); }
.scene-ai[data-frame-current="1"] .ring-one,
.scene-ai[data-frame-current="2"] .ring-one,
.scene-ai[data-frame-current="3"] .ring-one { transform: translate(-50%, -50%) scale(1); }
.scene-ai[data-frame-current="2"] .ring-two,
.scene-ai[data-frame-current="3"] .ring-two { transform: translate(-50%, -50%) scale(1); }
.scene-ai[data-frame-current="1"] .arrival-signal,
.scene-ai[data-frame-current="2"] .arrival-signal,
.scene-ai[data-frame-current="3"] .arrival-signal { opacity: 1; transform: scale(1) translateY(0); }
.scene-ai[data-frame-current="2"] .arrival-signal { border-color: rgba(120, 217, 209, 0.42); }
.scene-ai[data-frame-current="3"] .arrival-core { --heartbeat-rgb: 228, 184, 91; border-color: rgba(228, 184, 91, 0.46); }
.scene-ai[data-frame-current="3"] .arrival-question { opacity: 1; transform: translate(-50%, 0); }

/* 02 — fracture */
.fracture-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(232, 132, 105, 0.08), transparent 56%);
  border: 1px solid rgba(232, 132, 105, 0.08);
  border-radius: 50%;
}

.memory-thread {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-radius: 48% 52% 50% 50%;
  transform: translate(-50%, -50%);
  transition: border-color 600ms ease, border-radius 900ms var(--ease), transform 900ms var(--ease);
}

.fragment {
  position: absolute;
  z-index: 3;
  width: 126px;
  padding: 14px 16px;
  background: rgba(11, 29, 43, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.18;
  transform: scale(0.84);
  transition: opacity 460ms ease, transform 700ms var(--ease), border-color 500ms ease;
}

.fragment span { display: block; color: rgba(243, 240, 232, 0.4); font-family: var(--font-data); font-size: 8px; letter-spacing: 0.1em; }
.fragment b { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; }
.fragment-a { top: 7%; left: 5%; }
.fragment-b { top: 8%; right: 5%; }
.fragment-c { top: 43%; right: 0; }
.fragment-d { right: 3%; bottom: 20%; }
.fragment-e { left: 0; bottom: 20%; }

.fracture-score {
  position: absolute;
  left: 50%;
  bottom: 1%;
  display: flex;
  gap: 32px;
  padding: 11px 22px;
  background: rgba(7, 19, 29, 0.76);
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 600ms ease, transform 700ms var(--ease);
}

.fracture-score div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.fracture-score span { color: var(--paper-soft); font-size: 11px; }
.fracture-score b { color: var(--gold); font-size: 20px; }
.fracture-score div:last-child b { color: var(--coral); }

.gap-label {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--coral);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translate(-50%, 86px);
  transition: opacity 500ms ease, transform 600ms var(--ease);
}

.scene-gap[data-frame-current="1"] .fragment,
.scene-gap[data-frame-current="2"] .fragment,
.scene-gap[data-frame-current="3"] .fragment,
.scene-gap[data-frame-current="4"] .fragment { opacity: 1; transform: scale(1); }
.scene-gap[data-frame-current="2"] .memory-thread,
.scene-gap[data-frame-current="3"] .memory-thread,
.scene-gap[data-frame-current="4"] .memory-thread { border-color: rgba(232, 132, 105, 0.4); border-radius: 34% 68% 40% 62%; transform: translate(-50%, -50%) rotate(8deg); }
.scene-gap[data-frame-current="3"] .fragment,
.scene-gap[data-frame-current="4"] .fragment { border-color: rgba(232, 132, 105, 0.42); }
.scene-gap[data-frame-current="3"] .fracture-score,
.scene-gap[data-frame-current="4"] .fracture-score { opacity: 1; transform: translate(-50%, 0); }
.scene-gap[data-frame-current="4"] .fragment { opacity: 0.38; transform: scale(0.92) translate(var(--shift-x, 0), var(--shift-y, 0)); }
.scene-gap[data-frame-current="4"] .fragment-a { --shift-x: -20px; --shift-y: -12px; }
.scene-gap[data-frame-current="4"] .fragment-b { --shift-x: 18px; --shift-y: -12px; }
.scene-gap[data-frame-current="4"] .fragment-c { --shift-x: 20px; }
.scene-gap[data-frame-current="4"] .fragment-d { --shift-x: 18px; --shift-y: 12px; }
.scene-gap[data-frame-current="4"] .fragment-e { --shift-x: -18px; --shift-y: 12px; }
.scene-gap[data-frame-current="4"] .gap-label { opacity: 1; transform: translate(-50%, 78px); }

.human-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform: translate(-50%, -50%);
  transition: background 600ms ease;
}

.axis-a { width: 78%; height: 1px; }
.axis-b { width: 1px; height: 78%; background: linear-gradient(transparent, var(--line), transparent); }

.human-domain {
  position: absolute;
  z-index: 3;
  width: clamp(150px, 15vw, 200px);
  min-height: 116px;
  padding: 18px;
  background: rgba(11, 29, 43, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  opacity: 0.12;
  transform: scale(0.88);
  transition: opacity 500ms ease, transform 780ms var(--ease), border-color 500ms ease, box-shadow 500ms ease;
}

.human-domain span { color: rgba(243, 240, 232, 0.36); font-family: var(--font-data); font-size: 9px; }
.human-domain b { display: block; margin-top: 8px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; }
.human-domain small { display: block; margin-top: 5px; color: var(--paper-soft); }
.domain-work { top: 9%; left: 6%; }
.domain-learn { top: 9%; right: 5%; }
.domain-life { right: 6%; bottom: 8%; }
.domain-self { left: 6%; bottom: 8%; }

.continuity-caption {
  position: absolute;
  left: 50%;
  bottom: 1%;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 17px;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 700ms ease, transform 800ms var(--ease);
}

/* 03 — five directions, one Agent */
.entry-memory {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 170px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 3px;
  text-align: center;
  background: rgba(11, 29, 43, 0.96);
  border: 1px solid rgba(120, 217, 209, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 60px rgba(120, 217, 209, 0.1);
}

.entry-memory small { color: var(--cyan); font-family: var(--font-data); font-size: 8px; letter-spacing: 0.15em; }
.entry-memory b { font-family: var(--font-serif); font-size: 22px; font-weight: 500; }
.entry-memory span { color: var(--paper-soft); font-size: 10px; }

.entry-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entry-lines path {
  fill: none;
  stroke: rgba(120, 217, 209, 0.2);
  stroke-width: 0.3;
  stroke-dasharray: 2 2;
  opacity: .38;
  transition: opacity 680ms ease, stroke 680ms ease;
  transition-delay: var(--entry-delay, 0ms);
}

.entry-lines path:nth-child(2) { --entry-delay: 55ms; }
.entry-lines path:nth-child(3) { --entry-delay: 110ms; }
.entry-lines path:nth-child(4) { --entry-delay: 165ms; }
.entry-lines path:nth-child(5) { --entry-delay: 220ms; }

.entry-node {
  position: absolute;
  z-index: 5;
  min-width: 136px;
  padding: 15px 18px;
  background: rgba(11, 29, 43, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: .3;
  transform: translateY(6px) scale(.92);
  transition: opacity 560ms ease, transform 820ms var(--ease), border-color 560ms ease, box-shadow 560ms ease;
  transition-delay: var(--entry-delay, 0ms);
}

.entry-node span { color: rgba(243, 240, 232, 0.36); font-family: var(--font-data); font-size: 9px; }
.entry-node b { display: block; margin-top: 4px; font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.entry-node small { color: var(--paper-soft); font-size: 10px; }
.entry-work { top: 6%; left: 8%; }
.entry-learn { top: 5%; right: 7%; }
.entry-life { top: 47%; right: 0; }
.entry-self { right: 18%; bottom: 4%; }
.entry-wealth { left: 7%; bottom: 10%; border-color: rgba(228, 184, 91, .26); }

.scene-entry[data-frame-current="1"] .entry-work,
.scene-entry[data-frame-current="2"] .entry-learn,
.scene-entry[data-frame-current="3"] .entry-life,
.scene-entry[data-frame-current="4"] .entry-self,
.scene-entry[data-frame-current="5"] .entry-wealth {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(120, 217, 209, .42);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18), 0 0 28px rgba(120, 217, 209, .07);
}

.scene-entry[data-frame-current="5"] .entry-wealth {
  border-color: rgba(228, 184, 91, .48);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .18), 0 0 22px rgba(228, 184, 91, .06);
}

.scene-entry:is([data-frame-current="2"],[data-frame-current="3"],[data-frame-current="4"],[data-frame-current="5"]) .entry-work,
.scene-entry:is([data-frame-current="3"],[data-frame-current="4"],[data-frame-current="5"]) .entry-learn,
.scene-entry:is([data-frame-current="4"],[data-frame-current="5"]) .entry-life,
.scene-entry[data-frame-current="5"] .entry-self {
  opacity: .58;
  transform: translateY(0) scale(.97);
  border-color: rgba(120, 217, 209, .26);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.scene-entry[data-frame-current="1"] [data-direction-line="work"],
.scene-entry[data-frame-current="2"] [data-direction-line="learning"],
.scene-entry[data-frame-current="3"] [data-direction-line="life"],
.scene-entry[data-frame-current="4"] [data-direction-line="self"],
.scene-entry[data-frame-current="5"] [data-direction-line="wealth"] { opacity: 1; stroke: rgba(120, 217, 209, .58); }

.scene-entry[data-frame-current="5"] [data-direction-line="wealth"] { stroke: rgba(228, 184, 91, .58); }

/* 04 — memory stack */
.pain-ring {
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(232, 132, 105, 0.26);
  border-radius: 50%;
  transition: opacity 700ms ease, transform 900ms var(--ease);
}

.pain-ring span {
  position: absolute;
  padding: 8px 11px;
  color: var(--coral);
  background: rgba(232, 132, 105, 0.06);
  border: 1px solid rgba(232, 132, 105, 0.2);
  border-radius: 999px;
  font-size: 10px;
}

.pain-ring span:nth-child(1) { top: 6%; left: 19%; }
.pain-ring span:nth-child(2) { top: 13%; right: 11%; }
.pain-ring span:nth-child(3) { top: 49%; right: -2%; }
.pain-ring span:nth-child(4) { right: 17%; bottom: 6%; }
.pain-ring span:nth-child(5) { left: 1%; bottom: 25%; }

.memory-stack {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(80%, 600px);
  height: 60%;
  transform: translate(-50%, -50%);
  perspective: 1100px;
}

.memory-stack article {
  position: absolute;
  left: 50%;
  width: 76%;
  height: 82px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  background: rgba(11, 29, 43, 0.94);
  border: 1px solid var(--line);
  border-radius: 13px;
  opacity: 0.08;
  transform: translate(-50%, 80px) rotateX(18deg) scale(0.92);
  transition: opacity 560ms ease, transform 850ms var(--ease), border-color 520ms ease, box-shadow 520ms ease;
}

.memory-stack article:nth-child(1) { top: 0; }
.memory-stack article:nth-child(2) { top: 17%; }
.memory-stack article:nth-child(3) { top: 34%; }
.memory-stack article:nth-child(4) { top: 51%; }
.memory-stack article:nth-child(5) { top: 68%; }
.memory-stack span { color: var(--cyan); font-family: var(--font-data); font-size: 11px; }
.memory-stack b { font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.memory-stack small { color: var(--paper-soft); }

.layer-meter {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: min(68%, 480px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  color: var(--paper-soft);
  font-size: 10px;
  transform: translateX(-50%);
}

.layer-meter b { color: var(--paper); font-family: var(--font-data); }
.layer-meter i { grid-column: 1 / -1; height: 2px; overflow: hidden; background: var(--line); }
.layer-meter em { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }

.future-layers {
  position: absolute;
  z-index: 6;
  inset: 9%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-bottom: 10%;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.06);
  transition: opacity 800ms ease, transform 1s var(--ease);
}

.future-layers::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(228, 184, 91, 0.18), rgba(7, 19, 29, 0.94) 58%);
  border: 1px solid rgba(228, 184, 91, 0.2);
  border-radius: 50%;
}

.future-layers span {
  position: relative;
  z-index: 2;
  padding: 8px 10px;
  color: var(--gold);
  border: 1px solid rgba(228, 184, 91, 0.24);
  border-radius: 999px;
  font-size: 9px;
}

.future-layers b {
  position: absolute;
  z-index: 2;
  top: 42%;
  left: 50%;
  width: max-content;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 500;
  transform: translate(-50%, -50%);
}

.scene-memory[data-frame-current="1"] .memory-stack article:nth-child(-n+1),
.scene-memory[data-frame-current="2"] .memory-stack article:nth-child(-n+2),
.scene-memory[data-frame-current="3"] .memory-stack article:nth-child(-n+3),
.scene-memory[data-frame-current="4"] .memory-stack article:nth-child(-n+4),
.scene-memory[data-frame-current="5"] .memory-stack article:nth-child(-n+5),
.scene-memory[data-frame-current="6"] .memory-stack article:nth-child(-n+5) { opacity: 1; transform: translate(-50%, 0) rotateX(0) scale(1); border-color: rgba(120, 217, 209, 0.34); box-shadow: 0 15px 34px rgba(0, 0, 0, 0.16); }
.scene-memory[data-frame-current="1"] .layer-meter em { transform: scaleX(.2); }
.scene-memory[data-frame-current="2"] .layer-meter em { transform: scaleX(.4); }
.scene-memory[data-frame-current="3"] .layer-meter em { transform: scaleX(.6); }
.scene-memory[data-frame-current="4"] .layer-meter em { transform: scaleX(.8); }
.scene-memory[data-frame-current="5"] .layer-meter em,
.scene-memory[data-frame-current="6"] .layer-meter em { transform: scaleX(1); }
.scene-memory[data-frame-current="4"] .pain-ring,
.scene-memory[data-frame-current="5"] .pain-ring { opacity: 0.34; transform: scale(.96); }
.scene-memory[data-frame-current="6"] .pain-ring,
.scene-memory[data-frame-current="6"] .memory-stack,
.scene-memory[data-frame-current="6"] .layer-meter { opacity: 0.08; }
.scene-memory[data-frame-current="6"] .future-layers { opacity: 1; transform: scale(1); }

.site-footer {
  position: relative;
  z-index: 20;
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 28px 24px;
  background: #06111a;
  border-top: 1px solid rgba(243, 240, 232, 0.1);
}

.site-footer a {
  color: rgba(243, 240, 232, 0.56);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--paper);
}
