:root {
  --paper: #fffaf0;
  --paper-bright: #fffef8;
  --ink: #11284b;
  --ink-soft: #365274;
  --sky: #21aae1;
  --cobalt: #155bc1;
  --coral: #ff6d4a;
  --tangerine: #ff9d3f;
  --lemon: #ffd85a;
  --leaf: #4dba62;
  --violet: #7c66d9;
  --gold: #f6b928;
  --gold-light: #ffe89a;
  --glass: rgba(255, 253, 245, 0.84);
  --glass-strong: rgba(255, 253, 245, 0.94);
  --hairline: rgba(17, 40, 75, 0.16);
  --shadow: 0 24px 70px rgba(13, 58, 104, 0.18);
  --topbar-h: 74px;
  --scene-pad: clamp(24px, 5vw, 88px);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.prelude-active {
  background: #05070c;
}

body.prelude-active .skip-link,
body.prelude-active .topbar,
body.prelude-active .progress,
body.prelude-active .deck {
  visibility: hidden;
}

.story-prelude {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 47%, rgba(35, 52, 77, 0.22), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(246, 185, 40, 0.08), transparent 31%),
    #05070c;
  color: #f8f1df;
  opacity: 1;
  transition: opacity 650ms ease;
}

.story-prelude[hidden] {
  display: none;
}

.story-prelude::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mask-image: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
}

.story-prelude.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.prelude__content {
  width: min(82vw, 1120px);
  text-align: center;
}

.prelude__premise,
.prelude__question {
  margin: 0;
  text-wrap: balance;
}

.prelude__premise {
  color: rgba(248, 241, 223, 0.78);
  font-size: clamp(17px, 1.55vw, 26px);
  font-weight: 440;
  letter-spacing: 0.08em;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(12px);
}

.story-prelude.prelude-running .prelude__premise {
  animation: prelude-premise 3.5s ease 350ms both;
}

.prelude__question {
  margin-top: clamp(22px, 3.5vh, 42px);
  color: rgba(248, 241, 223, 0.66);
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: clamp(35px, 4.3vw, 72px);
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(18px);
}

.story-prelude.prelude-running .prelude__question {
  animation: prelude-question 3.85s cubic-bezier(0.16, 1, 0.3, 1) 2.35s both;
}

.prelude__question em {
  color: #fff8e8;
  font-style: normal;
  text-shadow: 0 0 32px rgba(246, 185, 40, 0.12);
}

.prelude__actions {
  position: absolute;
  z-index: 2;
  bottom: clamp(20px, 4vh, 42px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.story-prelude.prelude-running .prelude__actions {
  opacity: 1;
  pointer-events: auto;
}

.story-prelude.prelude-running .prelude__start {
  display: none;
}

.prelude__start,
.prelude__skip {
  padding: 8px 12px;
  border: 1px solid rgba(255, 248, 232, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 248, 232, 0.56);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.prelude__start {
  border-color: rgba(246, 185, 40, 0.92);
  background: #f6b928;
  color: #1a160b;
  font-weight: 700;
}

.prelude__start:hover,
.prelude__start:focus-visible {
  border-color: #ffe89a;
  background: #ffe89a;
  box-shadow: 0 0 0 3px rgba(246, 185, 40, 0.28);
}

.prelude__skip:hover,
.prelude__skip:focus-visible {
  border-color: rgba(246, 185, 40, 0.62);
  background: rgba(246, 185, 40, 0.08);
  color: #fff8e8;
}

.prelude__thread {
  position: absolute;
  bottom: clamp(92px, 13vh, 136px);
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #f6b928 18%, #ffe89a 50%, #f6b928 82%, transparent);
  box-shadow: 0 0 18px rgba(246, 185, 40, 0.52);
  transform: translateX(-50%);
}

.story-prelude.prelude-running .prelude__thread {
  animation: prelude-thread 1s cubic-bezier(0.16, 1, 0.3, 1) 5.2s both;
}

@keyframes prelude-premise {
  0% { opacity: 0; transform: translateY(12px); }
  16%, 74% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.18; transform: translateY(-8px); }
}

@keyframes prelude-question {
  0% { opacity: 0; transform: translateY(18px); }
  22%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes prelude-thread {
  from { width: 0; opacity: 0; }
  to { width: min(72vw, 980px); opacity: 1; }
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.topbar {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(20px, 3.2vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(180deg, rgba(255, 253, 246, 0.95), rgba(255, 253, 246, 0.73));
  box-shadow: 0 8px 32px rgba(19, 69, 108, 0.07);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.tool-button--product {
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 50% 50% 45% 55%;
  background: linear-gradient(145deg, var(--cobalt), var(--sky));
  box-shadow: 0 7px 18px rgba(21, 91, 193, 0.24);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.brand__word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__note {
  padding-left: 10px;
  border-left: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tool-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(17, 40, 75, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 5px 16px rgba(17, 40, 75, 0.05);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tool-button:hover {
  border-color: rgba(21, 91, 193, 0.4);
  background: #fff;
  transform: translateY(-1px);
}

.tool-button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cobalt), var(--sky));
  color: #fff;
}

.tool-button--icon {
  width: 36px;
  justify-content: center;
  padding: 0;
  font-size: 18px;
}

.tool-button__icon {
  font-size: 12px;
}

.tool-button__label {
  font-size: 12px;
  font-weight: 650;
}

.audio-status {
  max-width: 160px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-count {
  min-width: 58px;
  padding-left: 18px;
  border-left: 1px solid var(--hairline);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.audio-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: transparent;
}

.audio-progress span {
  display: block;
  width: calc(var(--audio-progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--sky), var(--gold), var(--coral));
  transition: width 120ms linear;
}

.progress {
  position: fixed;
  z-index: 70;
  top: 50%;
  right: clamp(12px, 1.6vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-50%);
}

.progress__dot {
  width: 32px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(17, 40, 75, 0.55);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.progress__dot span {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.progress__dot::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-16px);
  transition: width 180ms ease, background 180ms ease;
}

.progress__dot:hover,
.progress__dot.is-active {
  background: rgba(255, 255, 255, 0.72);
  color: var(--cobalt);
  transform: translateX(-4px);
}

.progress__dot.is-active::before {
  width: 13px;
  background: var(--gold);
}

.deck {
  width: 100%;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}

.slide {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
  background: var(--paper);
}

body.film-mode .deck {
  position: relative;
  height: 100vh;
  overflow: hidden;
  scroll-snap-type: none;
}

body.film-mode .slide {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.018);
  transition: opacity 900ms ease, transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.film-mode .slide.is-film-active,
body.film-mode .slide.is-film-leaving {
  visibility: visible;
}

body.film-mode .slide.is-film-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

body.film-mode .slide.is-film-leaving {
  z-index: 1;
  opacity: 0;
}

body.film-mode .topbar,
body.film-mode .progress {
  opacity: 0.72;
}

body.prelude-active.film-mode .topbar {
  z-index: 420;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.scene-art {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  background: var(--sky);
}

.scene-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.01);
  will-change: transform;
}

.scene-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 251, 238, 0.9) 0%, rgba(255, 251, 238, 0.56) 30%, rgba(255, 251, 238, 0.03) 61%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(7, 42, 82, 0.08));
  pointer-events: none;
}

.is-visible .scene-art img {
  animation: cinematic-drift 18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cinematic-drift {
  from { transform: scale(1.06) translate3d(calc(var(--mx, 0) * -4px), calc(var(--my, 0) * -3px), 0); }
  to { transform: scale(1.015) translate3d(calc(var(--mx, 0) * 4px), calc(var(--my, 0) * 3px), 0); }
}

.story-copy {
  position: absolute;
  z-index: 4;
  top: clamp(118px, 15vh, 154px);
  left: var(--scene-pad);
  width: min(47vw, 720px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease 150ms, transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 150ms;
}

.story-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -32px -46px -38px -38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 58% 42% 48% 52% / 48% 55% 45% 52%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.97), rgba(255, 251, 238, 0.79) 58%, rgba(255, 251, 238, 0.3) 82%, transparent 83%);
  filter: drop-shadow(0 24px 36px rgba(26, 62, 94, 0.12));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.is-visible .story-copy {
  opacity: 1;
  transform: translateY(0);
}

.story-copy--right {
  right: clamp(54px, 8vw, 132px);
  left: auto;
  width: min(43vw, 680px);
}

.story-copy--right::before {
  border-radius: 44% 56% 54% 46% / 54% 44% 56% 46%;
}

.story-copy--narrow {
  width: min(39vw, 610px);
}

.story-copy--compact {
  width: min(40vw, 620px);
}

.story-copy--dramatic {
  width: min(48vw, 760px);
}

.story-copy--closing {
  width: min(43vw, 680px);
}

.act {
  margin: 0 0 15px;
  color: var(--cobalt);
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 17em;
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.11;
  text-wrap: balance;
  text-shadow: 0 2px 1px rgba(255, 255, 255, 0.55);
}

h1 {
  font-size: clamp(42px, 5.1vw, 86px);
}

h2 {
  font-size: clamp(36px, 4.15vw, 70px);
}

h1 em,
h2 em {
  position: relative;
  color: var(--cobalt);
  font-style: normal;
}

h1 em::after,
h2 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.06em;
  bottom: 0.02em;
  left: -0.03em;
  height: 0.22em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 216, 90, 0.25), rgba(246, 185, 40, 0.75), rgba(255, 109, 74, 0.24));
  transform: rotate(-1deg);
}

.story-lede {
  max-width: 41em;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.78;
  text-wrap: pretty;
}

.narration-caption {
  position: absolute;
  z-index: 7;
  left: var(--scene-pad);
  bottom: clamp(20px, 3.2vh, 42px);
  width: min(38vw, 600px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 13px;
  align-items: start;
  padding: 12px 16px 13px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px 28px 18px 24px;
  background: rgba(255, 252, 241, 0.78);
  box-shadow: 0 10px 30px rgba(14, 59, 100, 0.1);
  opacity: 0;
  transform: translateY(16px);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  transition: opacity 600ms ease 520ms, transform 800ms ease 520ms;
}

.is-visible .narration-caption {
  opacity: 1;
  transform: translateY(0);
}

.narration-caption > span {
  padding-top: 3px;
  color: var(--cobalt);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.narration-caption p {
  margin: 0;
  color: rgba(17, 40, 75, 0.82);
  font-size: clamp(11px, 0.77vw, 13px);
  line-height: 1.62;
}

.scene--08 .narration-caption {
  width: min(55vw, 880px);
}

.scene--11 .narration-caption {
  width: min(39vw, 620px);
}

.scene-next {
  position: absolute;
  z-index: 8;
  right: clamp(28px, 5vw, 82px);
  bottom: clamp(27px, 4vh, 50px);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.scene-next span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.scene-next i {
  position: relative;
  width: 46px;
  height: 1px;
  background: var(--ink);
}

.scene-next i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.gold-thread {
  position: absolute;
  z-index: 2;
  display: block;
  width: 40vw;
  height: 22vh;
  border-top: 3px solid rgba(255, 210, 72, 0.92);
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(255, 190, 30, 0.7));
  opacity: 0;
  transform: scaleX(0.2) rotate(var(--thread-rotate, 0deg));
  transform-origin: left center;
}

.is-visible .gold-thread {
  animation: draw-thread 2.2s cubic-bezier(0.16, 1, 0.3, 1) 480ms forwards, thread-glow 3.6s ease-in-out 2.7s infinite;
}

.gold-thread::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 18px 5px rgba(255, 205, 61, 0.75);
}

.knowledge-thread {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.knowledge-thread__base,
.knowledge-thread__active {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.knowledge-thread__base {
  stroke: rgba(255, 204, 61, 0.2);
  stroke-width: 4;
}

.knowledge-thread__active {
  stroke: #ffd451;
  stroke-width: 7;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--thread-offset, 1);
  filter: drop-shadow(0 0 8px rgba(255, 190, 30, 0.9));
}

.knowledge-thread__node,
.knowledge-thread__pulse {
  fill: #fff4b5;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(255, 190, 30, 0.95));
}

.film-mode .scene.is-film-active .knowledge-thread__pulse,
.film-mode .scene.is-film-active .knowledge-thread__node.is-reached {
  opacity: 1;
}

.film-mode .scene.is-film-active .story-copy > [data-film-beat] {
  opacity: 0;
  transform: translateY(14px);
  animation: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.film-mode .scene.is-film-active .story-copy > [data-film-beat].is-film-revealed {
  opacity: 1;
  transform: translateY(0);
}

.film-link-bridge {
  position: fixed;
  z-index: 8;
  right: 0;
  bottom: 18vh;
  width: 18vw;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 81, 0.92));
  pointer-events: none;
}

.film-link-bridge i {
  position: absolute;
  right: calc((1 - var(--bridge-progress, 0)) * 100%);
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff4b5;
  box-shadow: 0 0 18px rgba(255, 190, 30, 0.95);
}

body.film-mode .film-link-bridge.is-active { opacity: 1; }

body.film-paused .story-prelude.prelude-running .prelude__premise,
body.film-paused .story-prelude.prelude-running .prelude__question,
body.film-paused .story-prelude.prelude-running .prelude__thread,
body.film-paused .scene.is-film-active .scene-art img,
body.film-paused .scene.is-film-active .scene-art::before,
body.film-paused .scene.is-film-active .knowledge-thread__pulse,
body.film-paused .film-link-bridge,
body.film-paused .film-link-bridge i {
  animation-play-state: paused !important;
}

@keyframes draw-thread {
  to { opacity: 0.95; transform: scaleX(1) rotate(var(--thread-rotate, 0deg)); }
}

@keyframes thread-glow {
  50% { filter: drop-shadow(0 0 16px rgba(255, 185, 26, 0.92)); }
}

/* Scene 01 */
.scene-art--hero img {
  object-position: center 48%;
}

.scene-art--hero::after {
  background:
    linear-gradient(270deg, rgba(255, 252, 240, 0.94) 0%, rgba(255, 252, 240, 0.7) 31%, rgba(255, 252, 240, 0.04) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(6, 48, 88, 0.08));
}

.gold-thread--hero {
  --thread-rotate: -4deg;
  top: 43%;
  right: 15%;
  width: 29vw;
}

.paper-cloud {
  position: absolute;
  top: 17%;
  right: 12%;
  width: 20vw;
  height: 11vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.66), transparent 67%);
  mix-blend-mode: screen;
}

/* Scene 02 */
.scene-art--scattered img {
  object-position: 30% center;
  filter: saturate(0.96) brightness(1.04);
}

.scene-art--scattered::after {
  background:
    linear-gradient(90deg, rgba(255, 250, 237, 0.96) 0%, rgba(255, 250, 237, 0.78) 34%, rgba(255, 250, 237, 0.12) 67%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(31, 103, 154, 0.1));
}

.loose-page {
  position: absolute;
  z-index: 2;
  width: clamp(70px, 7vw, 120px);
  height: clamp(46px, 4.8vw, 82px);
  border: 1px solid rgba(17, 40, 75, 0.12);
  border-radius: 13px;
  background:
    linear-gradient(rgba(21, 91, 193, 0.16), rgba(21, 91, 193, 0.16)) 18px 18px / 55% 2px no-repeat,
    linear-gradient(rgba(255, 109, 74, 0.2), rgba(255, 109, 74, 0.2)) 18px 30px / 72% 2px no-repeat,
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 13px 34px rgba(18, 61, 104, 0.12);
  opacity: 0;
}

.is-visible .loose-page {
  animation: page-float 6s ease-in-out infinite;
}

.loose-page--a { top: 24%; right: 18%; transform: rotate(8deg); animation-delay: 300ms !important; }
.loose-page--b { top: 47%; right: 33%; transform: rotate(-9deg); animation-delay: 700ms !important; }
.loose-page--c { top: 66%; right: 13%; transform: rotate(4deg); animation-delay: 1.1s !important; }

@keyframes page-float {
  0%, 100% { opacity: 0.78; translate: 0 0; }
  50% { opacity: 1; translate: 0 -16px; }
}

.gold-thread--broken {
  --thread-rotate: 5deg;
  top: 63%;
  right: 12%;
  width: 34vw;
  border-style: dashed;
}

.scattered-words {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.scattered-words span {
  padding: 8px 12px;
  border: 1px solid rgba(21, 91, 193, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font-size: 12px;
}

/* Scene 03 */
.scene-art--human-risk img {
  object-position: 42% center;
  filter: saturate(1.05) contrast(1.01);
}

.scene-art--human-risk::after {
  background:
    linear-gradient(270deg, rgba(255, 251, 240, 0.95) 0%, rgba(255, 251, 240, 0.67) 32%, rgba(255, 251, 240, 0.02) 62%),
    linear-gradient(180deg, rgba(255, 109, 74, 0.02), rgba(255, 109, 74, 0.12));
}

.answer-rain {
  position: absolute;
  z-index: 2;
  top: 11%;
  width: 27%;
  height: 74%;
  opacity: 0.32;
  background: repeating-linear-gradient(175deg, transparent 0 24px, rgba(255, 255, 255, 0.94) 25px 28px, transparent 29px 53px);
  filter: blur(0.2px);
}

.answer-rain--one { left: 9%; transform: rotate(-4deg); }
.answer-rain--two { left: 38%; transform: rotate(3deg); }

.gold-thread--question {
  --thread-rotate: -8deg;
  top: 51%;
  right: 9%;
  width: 30vw;
}

.first-principle {
  display: inline-block;
  margin: 28px 0 0;
  padding: 11px 0 9px;
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid rgba(17, 40, 75, 0.14);
  color: var(--ink);
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(18px, 1.6vw, 27px);
  font-weight: 700;
}

/* Scenes 04-07 */
.scene-art--cognitive img {
  object-position: center;
}

.scene-art--cognitive::after {
  background:
    linear-gradient(90deg, rgba(255, 252, 241, 0.96) 0%, rgba(255, 252, 241, 0.73) 34%, rgba(255, 252, 241, 0.05) 63%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(18, 81, 130, 0.07));
}

.missing-room {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: 16%;
  width: 20vw;
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 226, 116, 0.78);
  border-radius: 43% 57% 51% 49%;
  box-shadow: inset 0 0 70px rgba(255, 231, 141, 0.28), 0 0 35px rgba(255, 198, 39, 0.26);
}

.gold-thread--forming {
  --thread-rotate: -12deg;
  top: 44%;
  right: 11%;
  width: 35vw;
}

.missing-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  color: var(--ink-soft);
  font-size: 12px;
}

.missing-equation span,
.missing-equation strong,
.missing-equation em {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-style: normal;
  font-weight: 700;
}

.missing-equation strong { color: var(--cobalt); }
.missing-equation em { background: linear-gradient(135deg, var(--gold), var(--lemon)); color: var(--ink); }

.scene-art--second-brain img {
  object-position: 55% center;
}

.cognitive-halo {
  position: absolute;
  z-index: 2;
  top: 22%;
  right: 9%;
  width: 42vw;
  aspect-ratio: 1.55;
  border: 2px solid rgba(255, 223, 105, 0.66);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(255, 198, 41, 0.28);
}

.cognitive-halo--two {
  top: 29%;
  right: 16%;
  width: 30vw;
  border-color: rgba(255, 255, 255, 0.65);
}

.gold-thread--alive {
  --thread-rotate: 2deg;
  top: 58%;
  right: 8%;
  width: 42vw;
}

blockquote {
  margin: 26px 0 0;
  padding: 12px 0 12px 18px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(17px, 1.5vw, 25px);
  font-weight: 650;
  line-height: 1.62;
}

.product-signature {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 25px;
}

.product-signature b {
  color: var(--cobalt);
  font-family: Georgia, serif;
  font-size: 20px;
}

.product-signature span {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-art--remember img {
  object-position: 60% center;
  filter: saturate(1.13);
}

.memory-stamp {
  position: absolute;
  z-index: 3;
  display: grid;
  width: clamp(52px, 5vw, 76px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 238, 170, 0.82);
  box-shadow: 0 10px 35px rgba(255, 178, 22, 0.25);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  backdrop-filter: blur(8px);
}

.is-visible .memory-stamp {
  animation: stamp-in 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.memory-stamp--one { top: 23%; right: 29%; animation-delay: 520ms !important; }
.memory-stamp--two { top: 40%; right: 11%; animation-delay: 760ms !important; }
.memory-stamp--three { top: 61%; right: 31%; animation-delay: 1s !important; }
.memory-stamp--four { top: 69%; right: 14%; animation-delay: 1.24s !important; }

@keyframes stamp-in {
  from { opacity: 0; scale: 0.5; rotate: -12deg; }
  to { opacity: 1; scale: 1; rotate: 0deg; }
}

.gold-thread--memory {
  --thread-rotate: 6deg;
  top: 51%;
  right: 8%;
  width: 42vw;
}

.three-beats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.three-beats i {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--cobalt), var(--gold));
}

.three-beats strong {
  color: var(--cobalt);
}

.scene-art--understand img {
  object-position: 59% center;
}

.bridge-label {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 252, 241, 0.78);
  box-shadow: 0 8px 24px rgba(16, 64, 105, 0.12);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  backdrop-filter: blur(10px);
}

.is-visible .bridge-label {
  animation: label-rise 620ms ease forwards;
}

.bridge-label--known { top: 42%; left: 52%; animation-delay: 700ms !important; }
.bridge-label--new { top: 28%; right: 9%; animation-delay: 1.05s !important; }

@keyframes label-rise {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

.gold-thread--bridge {
  --thread-rotate: -9deg;
  top: 52%;
  right: 9%;
  width: 39vw;
}

.personalized-note {
  margin: 26px 0 0;
  color: var(--cobalt);
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(16px, 1.35vw, 23px);
  font-weight: 700;
  line-height: 1.55;
}

/* Scene 08 */
.scene-art--capability img {
  object-position: 52% center;
}

.scene-art--capability::after {
  background:
    linear-gradient(90deg, rgba(255, 249, 232, 0.94) 0%, rgba(255, 249, 232, 0.68) 32%, rgba(255, 249, 232, 0.03) 61%),
    linear-gradient(180deg, rgba(83, 96, 196, 0.02), rgba(255, 112, 66, 0.08));
}

.sun-flare {
  position: absolute;
  z-index: 2;
  top: 5%;
  right: 9%;
  width: 30vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 197, 0.7), rgba(255, 202, 79, 0.13) 40%, transparent 70%);
  mix-blend-mode: screen;
}

.gold-thread--flight {
  --thread-rotate: -6deg;
  top: 53%;
  right: 5%;
  width: 43vw;
}

.ability-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ability-path li {
  position: relative;
  min-height: 94px;
  padding: 13px 14px 11px;
  border-top: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.25));
}

.ability-path li:first-child { border-radius: 14px 0 0 14px; }
.ability-path li:last-child { border-radius: 0 14px 14px 0; }
.ability-path li + li { border-left: 1px solid rgba(17, 40, 75, 0.13); }

.ability-path span {
  display: block;
  color: var(--coral);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.ability-path b {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.ability-path small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

/* Scene 09 */
.scene-art--ownership img {
  object-position: 62% center;
  filter: saturate(0.9) brightness(1.04);
}

.ownership-boundary {
  position: absolute;
  z-index: 2;
  top: 16%;
  right: 8%;
  width: 45vw;
  height: 66vh;
  border: 2px solid rgba(255, 216, 90, 0.78);
  border-radius: 45% 55% 49% 51%;
  box-shadow: inset 0 0 80px rgba(255, 232, 143, 0.15), 0 0 45px rgba(255, 191, 32, 0.23);
}

.gold-thread--owned {
  --thread-rotate: 4deg;
  top: 54%;
  right: 9%;
  width: 40vw;
}

.ownership-diagram {
  display: grid;
  grid-template-columns: auto 38px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.ownership-models {
  display: grid;
  gap: 6px;
}

.ownership-models span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.ownership-diagram > i {
  position: relative;
  height: 1px;
  background: var(--gold);
}

.ownership-diagram > i::after {
  content: "授权";
  position: absolute;
  top: -18px;
  left: 50%;
  color: var(--cobalt);
  font-size: 8px;
  font-style: normal;
  transform: translateX(-50%);
}

.ownership-core {
  padding: 13px 15px;
  border: 1px solid rgba(255, 204, 48, 0.52);
  border-radius: 18px 24px 17px 27px;
  background: linear-gradient(135deg, rgba(255, 246, 195, 0.92), rgba(255, 255, 255, 0.76));
  box-shadow: 0 12px 35px rgba(255, 170, 0, 0.12);
}

.ownership-core small,
.ownership-core b,
.ownership-core em {
  display: block;
}

.ownership-core small {
  color: var(--cobalt);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ownership-core b {
  margin-top: 4px;
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(16px, 1.35vw, 22px);
}

.ownership-core em {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-style: normal;
  line-height: 1.45;
}

/* Scene 10 */
.scene-art--human img {
  object-position: center;
}

.scene-art--human::after {
  background:
    linear-gradient(90deg, rgba(255, 250, 236, 0.94) 0%, rgba(255, 250, 236, 0.58) 28%, rgba(255, 250, 236, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(16, 70, 112, 0.12));
}

.story-copy--human {
  top: clamp(104px, 12vh, 130px);
  width: min(38vw, 590px);
}

.gold-thread--people {
  --thread-rotate: 5deg;
  top: 60%;
  right: 10%;
  width: 45vw;
}

.human-entries {
  position: absolute;
  z-index: 6;
  right: clamp(54px, 6vw, 100px);
  bottom: clamp(90px, 13vh, 145px);
  left: clamp(54px, 6vw, 100px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px 30px 18px 26px;
  background: rgba(255, 252, 241, 0.78);
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  transform: translateY(20px);
  backdrop-filter: blur(15px) saturate(135%);
  -webkit-backdrop-filter: blur(15px) saturate(135%);
  transition: opacity 700ms ease 520ms, transform 850ms ease 520ms;
}

.is-visible .human-entries {
  opacity: 1;
  transform: translateY(0);
}

.human-entries li {
  min-height: 76px;
  padding: 13px 14px;
  border-top: 3px solid;
}

.human-entries li:nth-child(1) { border-color: var(--cobalt); }
.human-entries li:nth-child(2) { border-color: var(--coral); }
.human-entries li:nth-child(3) { border-color: var(--violet); }
.human-entries li:nth-child(4) { border-color: var(--leaf); }
.human-entries li:nth-child(5) { border-color: var(--gold); }
.human-entries li + li { border-left: 1px solid rgba(17, 40, 75, 0.1); }

.human-entries b,
.human-entries span {
  display: block;
}

.human-entries b {
  font-size: 12px;
}

.human-entries span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.42;
}

/* Scene 11 */
.scene-art--now img {
  object-position: center;
}

.scene-art--now::after {
  background:
    linear-gradient(90deg, rgba(255, 251, 238, 0.94) 0%, rgba(255, 251, 238, 0.62) 30%, rgba(255, 251, 238, 0.02) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(20, 71, 108, 0.1));
}

.gold-thread--tomorrow {
  --thread-rotate: -8deg;
  top: 23%;
  right: 3%;
  width: 37vw;
}

.now-path {
  position: absolute;
  z-index: 6;
  right: clamp(50px, 5vw, 86px);
  bottom: clamp(104px, 15vh, 166px);
  left: clamp(50px, 5vw, 86px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 22px 30px 18px 28px;
  background: rgba(255, 252, 241, 0.82);
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  transform: translateY(22px);
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  transition: opacity 700ms ease 560ms, transform 850ms ease 560ms;
}

.is-visible .now-path {
  opacity: 1;
  transform: translateY(0);
}

.now-path li {
  min-height: 95px;
  padding: 14px 18px 15px;
  border-top: 4px solid;
}

.now-path li:nth-child(1) { border-color: var(--cobalt); }
.now-path li:nth-child(2) { border-color: var(--coral); }
.now-path li:nth-child(3) { border-color: var(--leaf); }
.now-path li + li { border-left: 1px solid rgba(17, 40, 75, 0.12); }
.now-path li:first-child { border-radius: 22px 0 0 28px; }
.now-path li:last-child { border-radius: 0 30px 18px 0; }

.now-path span {
  color: var(--cobalt);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.now-path b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.now-path p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.closing-line {
  position: absolute;
  z-index: 7;
  right: clamp(42px, 5vw, 86px);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  backdrop-filter: blur(10px);
}

.closing-line i {
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.closing-line strong { color: var(--cobalt); }
.closing-line b { color: var(--ink); }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .audio-status,
  .brand__note {
    display: none;
  }

  .story-copy {
    width: min(53vw, 640px);
  }

  .story-copy--right {
    width: min(48vw, 620px);
  }

  h1 { font-size: clamp(40px, 5.7vw, 70px); }
  h2 { font-size: clamp(34px, 4.8vw, 59px); }

  .narration-caption {
    width: min(50vw, 580px);
  }
}

@media (max-width: 820px) {
  :root {
    --topbar-h: 64px;
    --scene-pad: 20px;
  }

  .topbar {
    gap: 12px;
    padding: 0 14px;
  }

  .prelude__content {
    width: calc(100vw - 40px);
  }

  .prelude__premise {
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .prelude__question {
    font-size: clamp(31px, 9.6vw, 45px);
    line-height: 1.4;
  }

  .brand__word {
    font-size: 16px;
  }

  .tool-button {
    width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
  }

  .tool-button--product {
    width: auto;
    padding: 0 10px;
  }

  .tool-button__label {
    display: none;
  }

  .page-count {
    min-width: 50px;
    padding-left: 10px;
    font-size: 10px;
  }

  .progress {
    top: auto;
    right: 50%;
    bottom: 8px;
    flex-direction: row;
    gap: 0;
    transform: translateX(50%);
  }

  .progress__dot {
    width: 23px;
    height: 23px;
  }

  .progress__dot::before,
  .progress__dot span {
    display: none;
  }

  .progress__dot::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
  }

  .progress__dot.is-active::after {
    width: 12px;
    border-radius: 999px;
    background: var(--gold);
  }

  .story-copy,
  .story-copy--right,
  .story-copy--narrow,
  .story-copy--compact,
  .story-copy--dramatic,
  .story-copy--closing,
  .story-copy--human {
    top: 88px;
    right: 20px;
    left: 20px;
    width: auto;
  }

  .story-copy::before {
    inset: -18px -14px -22px;
    border-radius: 24px 34px 26px 31px;
    background: rgba(255, 252, 242, 0.87);
  }

  h1 {
    font-size: clamp(34px, 10.2vw, 54px);
  }

  h2 {
    font-size: clamp(30px, 8.4vw, 47px);
  }

  .story-lede {
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.58;
  }

  .act {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .narration-caption,
  .scene--08 .narration-caption,
  .scene--11 .narration-caption {
    right: 16px;
    bottom: 43px;
    left: 16px;
    width: auto;
    max-height: 22vh;
    overflow: auto;
    padding: 9px 11px;
  }

  .narration-caption p {
    font-size: 10px;
    line-height: 1.5;
  }

  .scene-next {
    display: none;
  }

  .scene-art img {
    object-position: 58% center;
  }

  .scene-art::after,
  .scene-art--hero::after,
  .scene-art--human-risk::after,
  .scene-art--cognitive::after,
  .scene-art--capability::after,
  .scene-art--human::after,
  .scene-art--now::after {
    background: linear-gradient(180deg, rgba(255, 251, 240, 0.9) 0%, rgba(255, 251, 240, 0.38) 47%, rgba(17, 57, 94, 0.1) 100%);
  }

  .scattered-words,
  .missing-equation,
  .three-beats,
  .product-signature,
  .ownership-diagram {
    margin-top: 14px;
  }

  blockquote {
    margin-top: 14px;
    font-size: 15px;
  }

  .ability-path {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .ability-path li {
    min-height: auto;
    display: grid;
    grid-template-columns: 30px auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-top-width: 1px;
  }

  .ability-path small {
    margin: 0;
  }

  .human-entries,
  .now-path {
    right: 16px;
    bottom: 25vh;
    left: 16px;
  }

  .human-entries {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    overflow-x: auto;
  }

  .now-path {
    grid-template-columns: 1fr;
    max-height: 25vh;
    overflow: auto;
  }

  .now-path li {
    min-height: auto;
    padding: 8px 12px;
  }

  .closing-line {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 821px) {
  .story-copy {
    top: 96px;
  }

  .story-lede {
    margin-top: 14px;
    line-height: 1.55;
  }

  .narration-caption {
    bottom: 16px;
  }

  .human-entries,
  .now-path {
    bottom: 93px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .scene-art img,
  .story-copy,
  .narration-caption,
  .human-entries,
  .now-path {
    transform: none !important;
  }

  .prelude__premise,
  .prelude__question {
    opacity: 1 !important;
    transform: none !important;
  }

  .prelude__premise {
    color: rgba(248, 241, 223, 0.72);
  }

  .prelude__thread {
    width: min(72vw, 980px);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   V2 · one life, twelve independent scenes
   The generated artwork carries the world; CSS carries time, focus and copy.
   -------------------------------------------------------------------------- */

:root {
  --topbar-h: 68px;
  --scene-wash: linear-gradient(90deg, rgba(255, 253, 247, 0.96) 0%, rgba(255, 253, 247, 0.8) 26%, rgba(255, 253, 247, 0.2) 50%, transparent 67%);
  --scene-glow-x: 18%;
  --scene-glow-y: 42%;
  --camera-from: 1.045;
  --camera-to: 1.012;
  --camera-shift-x: 7px;
  --camera-shift-y: 3px;
}

.topbar {
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 253, 247, 0.64) 72%, transparent);
  box-shadow: none;
}

.brand__mark {
  position: relative;
  overflow: visible;
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(246, 185, 40, 0));
  box-shadow: 0 0 9px rgba(246, 185, 40, 0.58);
  transform: translateY(-50%);
}

.slide {
  min-height: 100svh;
  background: #eef7f4;
}

.scene::before {
  content: attr(data-age);
  position: absolute;
  z-index: 9;
  top: calc(var(--topbar-h) + 18px);
  left: var(--scene-pad);
  min-width: 64px;
  padding: 7px 12px 7px 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 26px rgba(17, 40, 75, 0.08);
  color: var(--cobalt);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.scene::after {
  content: "";
  position: absolute;
  z-index: 10;
  top: calc(var(--topbar-h) + 30px);
  left: calc(var(--scene-pad) + 10px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 185, 40, 0.16), 0 0 16px rgba(246, 185, 40, 0.72);
  opacity: 0;
}

.scene--01::before,
.scene--03::before {
  right: clamp(54px, 8vw, 132px);
  left: auto;
}

.scene--01::after,
.scene--03::after {
  right: calc(clamp(54px, 8vw, 132px) + 10px);
  left: auto;
}

.scene.is-visible::before {
  animation: age-arrive 680ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.scene.is-visible::after {
  animation: age-dot 900ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
}

@keyframes age-arrive {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes age-dot {
  0% { opacity: 0; scale: 0.35; }
  60% { opacity: 1; scale: 1.35; }
  100% { opacity: 1; scale: 1; }
}

.scene-art img {
  object-position: center;
  filter: saturate(1.08) contrast(1.015) brightness(1.015);
  transform: scale(var(--camera-from));
}

.scene-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle at var(--scene-glow-x) var(--scene-glow-y), rgba(255, 230, 143, 0.22), transparent 28%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.scene-art::after,
.scene-art--hero::after,
.scene-art--human-risk::after,
.scene-art--cognitive::after,
.scene-art--capability::after,
.scene-art--human::after,
.scene-art--now::after {
  z-index: 2;
  background:
    var(--scene-wash),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(15, 65, 104, 0.08)) !important;
}

.scene--01,
.scene--03 {
  --scene-wash: linear-gradient(270deg, rgba(255, 253, 247, 0.97) 0%, rgba(255, 253, 247, 0.8) 26%, rgba(255, 253, 247, 0.18) 50%, transparent 67%);
  --scene-glow-x: 76%;
}

.scene--02 { --scene-glow-x: 24%; --camera-shift-x: -5px; }
.scene--04 { --scene-glow-x: 17%; --camera-shift-x: -6px; }
.scene--05 { --scene-glow-x: 20%; --camera-shift-x: -5px; }
.scene--06 { --scene-glow-x: 18%; --camera-shift-x: -4px; }
.scene--07 { --scene-glow-x: 18%; --camera-shift-x: -5px; }
.scene--08 { --scene-glow-x: 17%; --camera-shift-x: -4px; }
.scene--09 { --scene-glow-x: 18%; --camera-shift-x: -5px; }
.scene--10 { --scene-glow-x: 17%; --camera-shift-x: -4px; }
.scene--11 { --scene-glow-x: 15%; --camera-shift-x: -5px; }

.is-visible .scene-art img {
  animation: life-camera 16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.is-visible .scene-art::before {
  animation: life-light 6.5s ease-in-out 260ms both;
}

@keyframes life-camera {
  from {
    transform: scale(var(--camera-from)) translate3d(calc(var(--camera-shift-x) * -1), calc(var(--camera-shift-y) * -1), 0);
  }
  to {
    transform: scale(var(--camera-to)) translate3d(var(--camera-shift-x), var(--camera-shift-y), 0);
  }
}

@keyframes life-light {
  0% { opacity: 0; transform: scale(0.88); }
  32%, 72% { opacity: 0.82; }
  100% { opacity: 0.35; transform: scale(1.08); }
}

.story-copy,
.story-copy--human {
  top: clamp(126px, 16vh, 170px);
}

.story-copy::before,
.story-copy--right::before {
  inset: -42px -56px -48px -50px;
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 22% 48%, rgba(255, 253, 247, 0.88) 0%, rgba(255, 253, 247, 0.57) 48%, transparent 74%);
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.story-copy--right::before {
  background: radial-gradient(ellipse at 78% 48%, rgba(255, 253, 247, 0.9) 0%, rgba(255, 253, 247, 0.58) 48%, transparent 74%);
}

.story-copy > * {
  opacity: 0;
  transform: translateY(14px);
}

.is-visible .story-copy > .act { animation: copy-rise 620ms ease 210ms both; }
.is-visible .story-copy > h1,
.is-visible .story-copy > h2 { animation: copy-rise 860ms cubic-bezier(0.16, 1, 0.3, 1) 330ms both; }
.is-visible .story-copy > .story-lede { animation: copy-rise 760ms ease 540ms both; }
.is-visible .story-copy > :nth-child(n + 4) { animation: copy-rise 760ms ease 700ms both; }
.is-visible .story-copy > :not(.act):not(h1):not(h2):not(.story-lede) {
  animation: copy-rise 760ms ease 700ms both;
}

@keyframes copy-rise {
  to { opacity: 1; transform: translateY(0); }
}

h1,
h2 {
  max-width: 15em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.76), 0 12px 35px rgba(17, 40, 75, 0.1);
}

.scene--01 h1 {
  font-size: clamp(40px, 4.45vw, 76px);
}

h1 em::after,
h2 em::after {
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left center;
}

.is-visible h1 em::after,
.is-visible h2 em::after {
  animation: thought-underline 900ms cubic-bezier(0.16, 1, 0.3, 1) 860ms forwards;
}

@keyframes thought-underline {
  to { transform: scaleX(1) rotate(-1deg); }
}

.narration-caption {
  border: 0;
  border-left: 3px solid rgba(246, 185, 40, 0.86);
  border-radius: 7px 17px 17px 7px;
  background: rgba(255, 253, 247, 0.67);
  box-shadow: 0 8px 26px rgba(17, 40, 75, 0.07);
}

.paper-cloud,
.gold-thread,
.loose-page,
.answer-rain,
.missing-room,
.cognitive-halo,
.memory-stamp,
.bridge-label,
.sun-flare,
.ownership-boundary {
  display: none;
}

.ability-path li,
.human-entries,
.now-path {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 253, 247, 0.67);
  box-shadow: 0 15px 45px rgba(17, 40, 75, 0.1);
}

.progress__dot--infinity span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 13px;
}

/* Infinity coda */
.scene--coda {
  --scene-wash: linear-gradient(90deg, rgba(255, 253, 247, 0.97) 0%, rgba(255, 253, 247, 0.83) 28%, rgba(255, 253, 247, 0.2) 51%, transparent 68%);
  --scene-glow-x: 18%;
  --camera-from: 1.035;
  --camera-to: 1.006;
  background: #f8f2e7;
}

.scene--coda::before {
  color: var(--violet);
}

.scene--coda::after {
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 102, 217, 0.14), 0 0 16px rgba(124, 102, 217, 0.58);
}

.story-copy--coda {
  top: clamp(126px, 15vh, 164px);
  width: min(46vw, 720px);
}

.coda-consents {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 27px;
}

.coda-consents span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 40, 75, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.coda-consents span i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(246, 185, 40, 0.72);
}

.coda-consents span:last-child i {
  background: var(--sky);
  box-shadow: 0 0 14px rgba(33, 170, 225, 0.68);
}

.coda-consents b {
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 500;
}

.coda-question {
  margin: 25px 0 0;
  color: var(--ink);
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 700;
  line-height: 1.55;
}

/* Phone presentation mode: the phone is deliberately rotated to landscape. */
@media (orientation: landscape) and (max-height: 680px) {
  :root {
    --topbar-h: 52px;
    --scene-pad: clamp(18px, 3vw, 34px);
  }

  .topbar {
    height: var(--topbar-h);
    padding: 0 16px;
  }

  .brand__mark {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .brand__word { font-size: 15px; }
  .brand__note,
  .audio-status { display: none; }

  .topbar__tools { gap: 5px; }
  .tool-button { min-height: 30px; }
  .page-count { padding-left: 8px; }

  .scene::before {
    top: 59px;
    left: var(--scene-pad);
    padding: 5px 9px 5px 22px;
    font-size: 8px;
  }

  .scene::after {
    top: 68px;
    left: calc(var(--scene-pad) + 8px);
    width: 6px;
    height: 6px;
  }

  .scene--01::before,
  .scene--03::before {
    right: var(--scene-pad);
    left: auto;
  }

  .scene--01::after,
  .scene--03::after {
    right: calc(var(--scene-pad) + 8px);
    left: auto;
  }

  .story-copy,
  .story-copy--right,
  .story-copy--narrow,
  .story-copy--compact,
  .story-copy--dramatic,
  .story-copy--closing,
  .story-copy--human,
  .story-copy--coda {
    top: 86px;
    width: min(48vw, 560px);
  }

  .story-copy,
  .story-copy--left,
  .story-copy--narrow,
  .story-copy--compact,
  .story-copy--dramatic,
  .story-copy--closing,
  .story-copy--human,
  .story-copy--coda {
    right: auto;
    left: var(--scene-pad);
  }

  .story-copy--right {
    right: var(--scene-pad);
    left: auto;
  }

  .story-copy::before,
  .story-copy--right::before {
    inset: -20px -26px -24px;
  }

  h1,
  h2 {
    font-size: clamp(27px, 7vh, 44px);
    line-height: 1.08;
  }

  .scene--01 h1 {
    font-size: clamp(27px, 7vh, 44px);
  }

  .act {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .story-lede {
    max-width: 37em;
    margin-top: 11px;
    font-size: clamp(11px, 2.55vh, 15px);
    line-height: 1.48;
  }

  blockquote,
  .first-principle,
  .personalized-note,
  .coda-question {
    margin-top: 12px;
    font-size: clamp(12px, 2.8vh, 17px);
    line-height: 1.42;
  }

  .scattered-words,
  .missing-equation,
  .three-beats,
  .product-signature,
  .ownership-diagram,
  .coda-consents {
    margin-top: 11px;
  }

  .ability-path {
    margin-top: 12px;
  }

  .ability-path li {
    min-height: 72px;
    padding: 8px 9px;
  }

  .ability-path b { font-size: 11px; }
  .ability-path small { font-size: 8px; }

  .human-entries,
  .now-path {
    right: var(--scene-pad);
    bottom: 45px;
    left: var(--scene-pad);
  }

  .human-entries li {
    min-height: 56px;
    padding: 7px 8px;
  }

  .human-entries b { font-size: 10px; }
  .human-entries span { margin-top: 3px; font-size: 7px; }

  .now-path li {
    min-height: 60px;
    padding: 8px 10px;
  }

  .now-path b { font-size: 11px; }
  .now-path p { margin-top: 3px; font-size: 8px; }

  .narration-caption,
  .closing-line,
  .scene-next {
    display: none;
  }

  .progress {
    top: auto;
    right: 50%;
    bottom: 5px;
    flex-direction: row;
    gap: 0;
    transform: translateX(50%);
  }

  .progress__dot {
    width: 24px;
    height: 24px;
  }

  .progress__dot::before,
  .progress__dot span {
    display: none;
  }

  .progress__dot::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
  }

  .progress__dot.is-active::after {
    width: 12px;
    border-radius: 999px;
    background: var(--gold);
  }

  .coda-consents span {
    padding: 7px 9px;
    font-size: 9px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .prelude__actions {
    bottom: 16px;
  }

  .prelude__start,
  .prelude__skip,
  .tool-button {
    min-height: 44px;
  }

  .knowledge-thread__active {
    stroke-width: 5;
  }

  .knowledge-thread__node {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0.78);
  }

}

@media (prefers-reduced-motion: reduce) {
  .scene.is-visible::before,
  .scene.is-visible::after,
  .is-visible .scene-art img,
  .is-visible .scene-art::before,
  .is-visible .story-copy > *,
  .is-visible h1 em::after,
  .is-visible h2 em::after {
    animation: none !important;
  }

  .scene::before,
  .scene::after,
  .story-copy > * {
    opacity: 1 !important;
    transform: none !important;
  }

  h1 em::after,
  h2 em::after {
    transform: scaleX(1) rotate(-1deg) !important;
  }

  .film-mode .scene.is-film-active .scene-art img {
    transform: scale(1) !important;
  }

  .film-mode .scene.is-film-active .scene-art::before {
    animation: none !important;
  }

  .knowledge-thread__pulse,
  .film-link-bridge {
    display: none;
  }

  .film-mode .scene.is-film-active .story-copy > [data-film-beat] {
    opacity: 0 !important;
    transform: none !important;
    transition: opacity 160ms ease !important;
  }

  .film-mode .scene.is-film-active .story-copy > [data-film-beat].is-film-revealed {
    opacity: 1 !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  body.film-mode .audio-status {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: 52px;
    display: block !important;
    max-width: min(52vw, 260px);
    max-height: 3.2em;
    overflow: hidden;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(7, 20, 39, 0.78);
    color: #fff8e8;
    font-size: 10px;
    line-height: 1.35;
    pointer-events: none;
  }
}
