@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap");
@import url("https://rsms.me/inter/inter.css");

:root {
  --bg: #f7f1e7;
  --bg-deep: #ede4d8;
  --surface: rgba(255, 251, 246, 0.84);
  --surface-soft: rgba(255, 255, 255, 0.5);
  --surface-strong: rgba(255, 253, 249, 0.94);
  --line: rgba(22, 37, 41, 0.1);
  --line-strong: rgba(22, 37, 41, 0.18);
  --text: #142226;
  --muted: #6b7a75;
  --muted-strong: #334340;
  --teal: #5ae8cb;
  --teal-deep: #1d9a86;
  --teal-soft: rgba(90, 232, 203, 0.12);
  --ember: #ff9b6c;
  --ember-soft: rgba(255, 155, 108, 0.18);
  --gold: #f5da92;
  --paper: #fff9f0;
  --radius-2xl: 40px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 60px rgba(44, 54, 52, 0.1);
  --shadow-soft: 0 18px 40px rgba(44, 54, 52, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  font-family: "InterVariable", "Inter", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(90, 232, 203, 0.1), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(255, 155, 108, 0.12), transparent 22%),
    linear-gradient(180deg, #fbf6ef 0%, var(--bg) 22%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(24, 40, 44, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 44, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, black, transparent 84%);
  opacity: 0.28;
}

body::after {
  background:
    radial-gradient(circle at 50% 16%, rgba(90, 232, 203, 0.08), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(255, 155, 108, 0.06), transparent 28%);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1500px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 72px;
  position: relative;
  z-index: 1;
}

.frame-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 6px;
}

.frame-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.frame-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #9ffff0, var(--teal));
  box-shadow: 0 0 20px rgba(90, 232, 203, 0.4);
  flex: none;
}

.frame-mark strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.frame-mark p,
.frame-meta,
.eyebrow,
.status-label,
.section-index,
.story-time,
.panel-badge,
.scenario-button,
.channel-tab,
.thread-meta,
.row-top span,
.intervention-title span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frame-mark p,
.frame-meta,
.eyebrow,
.status-label,
.story-time,
.thread-meta,
.row-top span,
.intervention-title span {
  color: var(--muted);
}

.frame-meta {
  text-align: right;
}

.storyboard {
  display: grid;
  gap: 48px;
}

.reveal-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  min-height: min(92vh, 980px);
  align-items: stretch;
}

.hero-copy,
.hero-scene,
.contrast-card,
.character-column,
.chapter-overview,
.title-slide,
.system-copy article,
.mission-panel,
.chapter-spotlight,
.closing-metrics article {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 246, 238, 0.88)),
    rgba(255, 252, 248, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.hero-scene::before,
.contrast-card::before,
.character-column::before,
.chapter-overview::before,
.title-slide::before,
.system-copy article::before,
.mission-panel::before,
.chapter-spotlight::before,
.closing-metrics article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 28%);
  pointer-events: none;
}

.hero-copy {
  border-radius: var(--radius-2xl);
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 10.5ch;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(3.5rem, 7.2vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 600;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 60ch;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted-strong);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action,
.scenario-button,
.channel-tab {
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  text-decoration: none;
}

.primary-action {
  background: linear-gradient(135deg, var(--teal), #a1f6e6);
  color: #071114;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(90, 232, 203, 0.18);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-color: var(--line);
}

.primary-action:hover,
.secondary-action:hover,
.scenario-button:hover,
.channel-tab:hover {
  transform: translateY(-2px);
}

.headline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.headline-metrics div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.headline-metrics dt {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.headline-metrics dd {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.hero-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.hero-proofline span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-proofline strong {
  font-weight: 600;
}

.hero-scene {
  border-radius: calc(var(--radius-2xl) + 6px);
  min-height: 920px;
}

.hero-scene-image,
.hero-scene-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scene-image img {
  object-fit: cover;
  filter: brightness(1.04) contrast(0.94) saturate(0.94);
}

.hero-scene-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 247, 240, 0.1), rgba(247, 240, 230, 0.72)),
    radial-gradient(circle at 56% 50%, rgba(90, 232, 203, 0.14), transparent 34%);
}

.hero-scene::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -60px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(90, 232, 203, 0.12), transparent 66%);
  animation: driftGlow 18s ease-in-out infinite;
  pointer-events: none;
}

.hero-float,
.hero-core,
.hero-node,
.contrast-card,
.system-core,
.system-node,
.mission-summary,
.data-block,
.timeline-stage,
.queue-stage {
  backdrop-filter: blur(18px);
}

.hero-float {
  position: absolute;
  z-index: 2;
  width: min(250px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-float strong {
  display: block;
  margin-top: 10px;
  line-height: 1.38;
  font-weight: 600;
}

.hero-float-top {
  top: 28px;
  right: 24px;
  animation: floatY 7.5s ease-in-out infinite;
}

.hero-float-left {
  top: 210px;
  left: 24px;
  animation: floatY 8.5s ease-in-out infinite 1s;
}

.hero-float-bottom {
  right: 28px;
  bottom: 32px;
  animation: floatY 9.5s ease-in-out infinite 1.6s;
}

.hero-constellation {
  position: absolute;
  inset: auto 16px 18px 16px;
  min-height: 560px;
  z-index: 2;
}

.hero-lines,
.system-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-line {
  fill: none;
  stroke: rgba(29, 154, 134, 0.3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 14;
  animation: moveStroke 14s linear infinite;
}

.flow-line-delay-1 {
  animation-delay: 2s;
}

.flow-line-delay-2 {
  animation-delay: 3.4s;
}

.flow-line-delay-3 {
  animation-delay: 4.8s;
}

.hero-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  padding: 24px;
  transform: translate(-50%, -50%);
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 251, 247, 0.94);
  box-shadow: 0 18px 42px rgba(54, 66, 62, 0.12);
}

.hero-core p,
.hero-core span {
  margin: 0;
  color: var(--muted);
}

.hero-core p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-core strong {
  display: block;
  margin: 10px 0 8px;
  font-family: "Satoshi", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-node,
.system-node {
  position: absolute;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.88);
  color: var(--muted-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.hero-node::after,
.system-node::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 12px;
  bottom: 10px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(90, 232, 203, 0.84);
}

.hero-node-a {
  top: 28px;
  left: 26px;
  animation: floatY 8s ease-in-out infinite;
}

.hero-node-b {
  top: 286px;
  left: 12px;
  animation: floatY 8.6s ease-in-out infinite 1s;
}

.hero-node-c {
  bottom: 26px;
  left: 42px;
  animation: floatY 9.4s ease-in-out infinite 1.8s;
}

.hero-node-d {
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-node-e {
  top: 42px;
  right: 30px;
  animation: floatY 8.4s ease-in-out infinite 0.5s;
}

.hero-node-f {
  top: 286px;
  right: 12px;
  animation: floatY 8.8s ease-in-out infinite 1.3s;
}

.hero-node-g {
  bottom: 114px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-node-h {
  bottom: 34px;
  right: 40px;
  animation: floatY 10s ease-in-out infinite 2.1s;
}

.title-slide {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 18px;
  padding: 48px 34px;
  border-radius: var(--radius-2xl);
}

.section-index {
  color: #b6871b;
}

.title-slide h2 {
  margin: 0;
  max-width: 12ch;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 600;
  text-wrap: balance;
}

.title-slide p:last-child {
  margin: 0;
  max-width: 62ch;
  color: var(--muted-strong);
  line-height: 1.7;
  text-wrap: pretty;
}

.chapter-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-2xl);
}

.chapter-intro {
  display: grid;
  gap: 14px;
  align-content: start;
}

.chapter-intro h2 {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}

.chapter-intro p:last-child {
  margin: 0;
  max-width: 56ch;
  color: var(--muted-strong);
  line-height: 1.72;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chapter-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 240px;
  padding: 22px 20px;
  border-radius: 26px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 244, 236, 0.9)),
    rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow-soft);
}

.chapter-card span,
.chapter-step {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter-card strong,
.chapter-beat strong {
  font-family: "Satoshi", sans-serif;
  font-size: 1.42rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.chapter-card p,
.chapter-beat p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.64;
}

.contrast-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.contrast-card {
  min-height: 480px;
  border-radius: var(--radius-2xl);
  padding: 30px;
}

.contrast-card h3,
.character-head h3,
.system-copy h3,
.scenario-header h2,
.mission-heading h3,
.timeline-stage h4 {
  margin: 12px 0;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}

.contrast-card p:last-child {
  color: var(--muted-strong);
  line-height: 1.7;
}

.contrast-card-fragmented {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 243, 237, 0.92)),
    rgba(255, 240, 234, 0.8);
}

.contrast-card-unified {
  background:
    linear-gradient(180deg, rgba(245, 255, 252, 0.92), rgba(244, 250, 248, 0.94)),
    rgba(236, 252, 248, 0.82);
}

.fragment-cluster {
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.fragment-cluster div {
  border: 1px solid rgba(22, 37, 41, 0.08);
  border-radius: 999px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted-strong);
}

.contrast-beam {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 160px;
}

.contrast-beam svg {
  display: block;
  width: 100%;
  height: auto;
}

.contrast-beam path {
  fill: none;
  stroke: rgba(182, 135, 27, 0.44);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calm-thread {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.thread-line {
  max-width: 92%;
  border-radius: 24px;
  padding: 16px 18px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 37, 41, 0.08);
}

.thread-line.agent {
  background: rgba(90, 232, 203, 0.14);
  border-color: rgba(90, 232, 203, 0.18);
}

.thread-line.human {
  justify-self: end;
  background: rgba(255, 155, 108, 0.14);
  border-color: rgba(255, 155, 108, 0.18);
}

.character-slide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.character-column {
  border-radius: var(--radius-2xl);
  padding: 30px;
}

.story-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.story-rail li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.story-time {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: fit-content;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
}

.time-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 72px;
  border-radius: 999px;
  border: 1px solid rgba(90, 232, 203, 0.24);
  background: rgba(90, 232, 203, 0.12);
  color: #155549;
  padding: 10px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-rail strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.story-rail p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.62;
}

.system-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
  align-items: center;
}

.system-visual {
  min-height: 760px;
  position: relative;
}

.ring {
  position: absolute;
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(22, 37, 41, 0.08);
}

.ring-outer {
  width: 630px;
  height: 630px;
}

.ring-middle {
  width: 430px;
  height: 430px;
}

.ring-inner {
  width: 238px;
  height: 238px;
}

.system-lines circle {
  fill: none;
  stroke: rgba(29, 154, 134, 0.16);
  stroke-width: 2;
  stroke-dasharray: 12 16;
  animation: rotateStroke 26s linear infinite;
  transform-origin: center;
}

.system-lines circle:nth-child(2) {
  animation-direction: reverse;
}

.system-lines circle:nth-child(3) {
  animation-duration: 18s;
}

.system-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  height: 230px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 30%, rgba(90, 232, 203, 0.12), transparent 58%),
    rgba(255, 252, 247, 0.94);
  box-shadow: 0 24px 48px rgba(54, 66, 62, 0.12);
}

.system-core p {
  margin: 0 0 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.system-core strong {
  display: block;
  font-family: "Satoshi", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.system-node {
  animation: floatY 10s ease-in-out infinite;
}

.system-node-a {
  left: 80px;
  top: 102px;
}

.system-node-b {
  left: 28px;
  top: 322px;
  animation-delay: 800ms;
}

.system-node-c {
  left: 94px;
  bottom: 104px;
  animation-delay: 1500ms;
}

.system-node-d {
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
}

.system-node-e {
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  animation-delay: 500ms;
}

.system-node-f {
  right: 82px;
  top: 102px;
  animation-delay: 1200ms;
}

.system-node-g {
  right: 26px;
  top: 322px;
  animation-delay: 1800ms;
}

.system-node-h {
  right: 96px;
  bottom: 108px;
  animation-delay: 2400ms;
}

.system-copy {
  display: grid;
  gap: 18px;
}

.system-copy article {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.system-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.scenario-stage {
  display: grid;
  gap: 20px;
}

.chapter-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-2xl);
}

.chapter-spotlight-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.chapter-spotlight-copy h3 {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}

.chapter-spotlight-copy p:last-child {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.chapter-beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.chapter-beat {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 241, 232, 0.86)),
    rgba(255, 253, 249, 0.84);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.chapter-callouts {
  display: grid;
  gap: 12px;
}

.chapter-note {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 245, 237, 0.86)),
    rgba(255, 252, 248, 0.84);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.chapter-note span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter-note strong {
  font-size: 1.05rem;
  line-height: 1.45;
}

.scenario-header {
  display: grid;
  gap: 16px;
}

.scenario-header h2 {
  margin: 0;
  max-width: 12ch;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}

.scenario-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scenario-button,
.channel-tab {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.scenario-button.is-active,
.channel-tab.is-active {
  background: linear-gradient(135deg, rgba(90, 232, 203, 0.18), rgba(255, 155, 108, 0.1));
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px rgba(60, 72, 69, 0.12);
}

.mission-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

.mission-panel {
  border-radius: var(--radius-2xl);
  padding: 24px;
}

.mission-heading,
.data-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #155549;
  border: 1px solid rgba(90, 232, 203, 0.22);
}

.mission-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.summary-block,
.data-block,
.timeline-stage,
.queue-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(249, 244, 236, 0.88)),
    rgba(255, 252, 248, 0.84);
  padding: 18px;
}

.summary-block strong {
  display: block;
  margin: 10px 0 12px;
  font-size: 1.25rem;
  line-height: 1.12;
  font-weight: 600;
}

.summary-block p:last-child,
.row-copy,
.timeline-copy .row-copy,
.intervention-list p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.58;
  text-wrap: pretty;
}

.mission-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.workforce-list,
.agent-list,
.timeline-list,
.intervention-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.workforce-list li,
.agent-list li,
.intervention-list li {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(22, 37, 41, 0.08);
}

.workforce-list li:first-child,
.agent-list li:first-child,
.intervention-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.row-top strong {
  font-weight: 600;
}

.row-top span {
  color: var(--gold);
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(22, 37, 41, 0.08);
}

.timeline-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.mission-panel-side {
  display: flex;
  flex-direction: column;
}

.channel-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.channel-thread {
  min-height: 390px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(90, 232, 203, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 243, 235, 0.86)),
    rgba(255, 251, 246, 0.84);
  padding: 20px;
}

.thread-bubble {
  max-width: 92%;
  padding: 14px 16px;
  border-radius: 24px;
  line-height: 1.58;
  animation: riseIn 420ms ease both;
  box-shadow: var(--shadow-soft);
}

.thread-bubble.agent {
  justify-self: start;
  background: rgba(90, 232, 203, 0.14);
  border: 1px solid rgba(90, 232, 203, 0.18);
}

.thread-bubble.human {
  justify-self: end;
  background: rgba(255, 155, 108, 0.14);
  border: 1px solid rgba(255, 155, 108, 0.18);
}

.queue-stage {
  margin-top: 16px;
}

.intervention-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.intervention-title span {
  color: var(--ember);
}

.closing-slide {
  padding-bottom: 30px;
}

.closing-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.closing-metrics article {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.closing-metrics strong {
  display: block;
  margin: 12px 0;
  font-family: "Satoshi", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.closing-metrics span:last-child {
  color: var(--muted-strong);
  line-height: 1.6;
}

[data-refresh].is-refreshing {
  animation: softPulse 560ms ease;
}

@keyframes moveStroke {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -340;
  }
}

@keyframes rotateStroke {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes driftGlow {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, -14px);
  }
}

@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 rgba(90, 232, 203, 0), var(--shadow);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(90, 232, 203, 0.22), var(--shadow);
  }

  100% {
    box-shadow: var(--shadow);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .hero-slide,
  .system-slide,
  .mission-stage {
    grid-template-columns: 1fr;
  }

  .chapter-overview,
  .chapter-spotlight {
    grid-template-columns: 1fr;
  }

  .chapter-beats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-scene {
    min-height: 860px;
  }
}

@media (max-width: 1080px) {
  .contrast-slide,
  .character-slide,
  .closing-metrics,
  .headline-metrics,
  .mission-summary,
  .mission-columns,
  .chapter-grid,
  .chapter-beats {
    grid-template-columns: 1fr;
  }

  .contrast-slide {
    grid-template-columns: 1fr;
  }

  .contrast-beam {
    transform: rotate(90deg);
    max-width: 120px;
  }

  .frame-label {
    flex-direction: column;
    align-items: flex-start;
  }

  .frame-meta {
    text-align: left;
  }
}

@media (max-width: 740px) {
  .page-shell {
    width: min(100% - 18px, 1500px);
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .storyboard {
    gap: 34px;
  }

  .hero-copy,
  .hero-scene,
  .contrast-card,
  .character-column,
  .chapter-overview,
  .chapter-spotlight,
  .title-slide,
  .mission-panel,
  .closing-metrics article,
  .system-copy article {
    border-radius: 24px;
  }

  .hero-copy,
  .chapter-overview,
  .chapter-spotlight,
  .title-slide,
  .contrast-card,
  .character-column,
  .mission-panel {
    padding: 20px;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-copy h1,
  .title-slide h2,
  .scenario-header h2 {
    font-size: clamp(2.7rem, 11vw, 4.6rem);
  }

  .hero-scene {
    min-height: 940px;
  }

  .hero-float {
    width: calc(100% - 24px);
    left: 12px;
    right: 12px;
  }

  .hero-float-top {
    top: 16px;
  }

  .hero-float-left {
    top: 124px;
  }

  .hero-float-bottom {
    bottom: 18px;
    right: 12px;
  }

  .hero-constellation {
    inset: auto 10px 14px 10px;
    min-height: 620px;
  }

  .hero-node,
  .system-node {
    font-size: 0.72rem;
  }

  .hero-node-a {
    left: 8px;
  }

  .hero-node-b {
    left: 0;
    top: 310px;
  }

  .hero-node-c {
    left: 12px;
  }

  .hero-node-e {
    right: 8px;
  }

  .hero-node-f {
    right: 0;
    top: 310px;
  }

  .hero-node-h {
    right: 14px;
  }

  .system-visual {
    min-height: 760px;
  }

  .ring-outer {
    width: 100%;
    max-width: 560px;
    height: 560px;
  }

  .ring-middle {
    width: 390px;
    height: 390px;
  }

  .ring-inner {
    width: 220px;
    height: 220px;
  }

  .system-node-a {
    left: 14px;
  }

  .system-node-b {
    left: 0;
  }

  .system-node-c {
    left: 16px;
  }

  .system-node-f {
    right: 14px;
  }

  .system-node-g {
    right: 0;
  }

  .system-node-h {
    right: 18px;
  }

  .story-rail li,
  .timeline-list li {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
