.feature-scene {
  --demo-canvas: #f3f1ea;
  --demo-paper: #fffdf8;
  --demo-paper-2: #f4f1e9;
  --demo-ink: #2b261d;
  --demo-line: #dcd6c9;
  --demo-line-strong: #c9c3b4;
  --demo-mint: #3fae93;
  --demo-coral: #c96442;
  --demo-gold: #d1a857;
  --demo-indigo: #7b86d5;
  --demo-node-radius: 7px;
  --demo-sheet-radius: 2px;
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 420px;
  padding: 30px 32px;
  overflow: hidden;
  background: #202321;
}

.feature-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  background-image: radial-gradient(circle, rgba(236, 233, 226, .34) 1px, transparent 1.2px);
  background-size: 24px 24px;
}

.scene-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  color: var(--ink);
  border: 1px solid #d8d1c2;
  border-top: 3px solid var(--mint-dark);
  border-radius: 4px;
  background: rgba(250, 247, 239, .98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.scene-card > header {
  min-height: 44px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid #ded7c9;
}

.scene-card > header span,
.config-sources p > span {
  padding: 2px 5px;
  color: #725313;
  border: 1px solid rgba(209, 168, 87, .55);
  background: rgba(209, 168, 87, .14);
  font: 9px var(--mono);
}

.scene-card > header b { font-size: 12px; }
.scene-card > header small { color: var(--muted); font: 8px var(--mono); }

.impact-scene {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) 46px minmax(360px, 1.15fr);
  align-items: stretch;
  padding: 24px 0;
  background: #f3f1ea;
}

.impact-scene::before {
  opacity: 1;
  background-image: radial-gradient(circle, rgba(43, 38, 29, .13) 1px, transparent 1.5px);
  background-size: 26px 26px;
}

.impact-input,
.impact-output { min-width: 0; display: grid; grid-template-rows: 28px minmax(0, 1fr); }
.impact-input > p,
.impact-output > p { margin: 0; padding: 0 26px; color: #777b76; font: 8px var(--mono); letter-spacing: .08em; }
.impact-output > p { padding-left: 24px; }
.impact-card-field { min-height: 0; padding: 18px 0; display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; overflow: hidden; }
.impact-card-row {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 94%, transparent 100%);
}
.impact-card-row::after { content: ""; position: absolute; z-index: 2; top: 15%; right: -7px; bottom: 15%; width: 30px; background: radial-gradient(ellipse at right, rgba(63, 174, 147, .16), transparent 68%); pointer-events: none; }
.impact-card-track { width: max-content; display: flex; will-change: transform; }
.impact-card-set { flex: none; display: flex; align-items: center; gap: 38px; padding-right: 38px; }
.impact-card-row.row-one .impact-card-track { animation: cardConveyor 11.6s linear infinite; }
.impact-card-row.row-two .impact-card-track { animation: cardConveyor 13.2s linear infinite; animation-delay: -7.1s; }
.impact-card-row.row-three .impact-card-track { animation: cardConveyor 12.4s linear infinite; animation-delay: -3.8s; }

.impact-card {
  --accent: var(--mint);
  position: relative;
  flex: none;
  width: 148px;
  height: 58px;
  padding: 9px 11px 8px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-content: center;
  color: #292d2a;
  border: 1px solid var(--demo-line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--demo-node-radius);
  background: linear-gradient(145deg, rgba(255, 253, 248, .99), rgba(244, 241, 233, .97));
  box-shadow: 0 1px 1px rgba(43, 38, 29, .05), 0 9px 22px rgba(43, 38, 29, .1), inset 0 1px rgba(255, 255, 255, .82);
}
.impact-card::before,
.impact-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--demo-paper-2);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px var(--demo-canvas), 0 0 0 4px rgba(37, 42, 38, .08);
}
.impact-card::before { left: -7px; }
.impact-card::after { right: -7px; }
.impact-card span { grid-row: 1 / 3; align-self: center; min-width: 29px; padding: 5px 5px; color: #343834; border: 1px solid color-mix(in srgb, var(--accent) 52%, #b6b3a9); border-radius: 4px; background: color-mix(in srgb, var(--accent) 13%, white); font: 8px var(--mono); text-align: center; }
.impact-card b { align-self: end; font-size: 10px; line-height: 1; }
.impact-card small { align-self: start; color: #878a85; font: 7px var(--mono); }
.impact-card.accent-mint { --accent: #56ad90; }
.impact-card.accent-indigo { --accent: #6b72c8; }
.impact-card.accent-orange { --accent: #d66a45; }
.impact-card.accent-gold { --accent: #d19b3e; }

.impact-portal { position: relative; z-index: 3; display: grid; place-items: center; }
.impact-portal::before {
  content: "";
  position: absolute;
  inset: 8% -42px;
  background: radial-gradient(ellipse at center, rgba(73, 181, 151, .16) 0, rgba(73, 181, 151, .06) 28%, transparent 68%);
  filter: blur(5px);
  animation: portalBreath 3.2s ease-in-out infinite;
}
.portal-line {
  position: absolute;
  inset: 4% auto;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(62, 148, 124, .62) 9%, #4cb494 50%, rgba(62, 148, 124, .62) 91%, transparent);
  box-shadow: 0 0 7px rgba(73, 181, 151, .54), 0 0 22px rgba(73, 181, 151, .18);
}
.portal-line::before,
.portal-line::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4eb391;
  box-shadow: 0 0 8px rgba(73, 181, 151, .74);
}
.portal-line::before { top: 7%; }
.portal-line::after { bottom: 7%; }
.portal-flare {
  --flare-y: 50%;
  --flare-color: 73, 181, 151;
  position: absolute;
  left: 50%;
  top: var(--flare-y);
  width: 10px;
  height: 34px;
  border-radius: 50%;
  background: rgba(var(--flare-color), .72);
  box-shadow: 0 0 10px rgba(var(--flare-color), .8), 0 0 28px rgba(var(--flare-color), .46), 0 0 48px rgba(var(--flare-color), .2);
  filter: blur(2px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.35, .7);
  animation: portalCrossing 3.1s ease-out infinite;
}
.flare-one { --flare-y: 27%; --flare-color: 107, 114, 200; }
.flare-two { --flare-y: 51%; --flare-color: 214, 106, 69; animation-delay: -1.05s; }
.flare-three { --flare-y: 75%; --flare-color: 209, 155, 62; animation-delay: -2.1s; }

.manuscript-window {
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 98%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 98%, transparent 100%);
}
.manuscript-window::before { content: ""; position: absolute; z-index: 4; top: 10%; bottom: 10%; left: 0; width: 54px; background: linear-gradient(90deg, rgba(63, 174, 147, .18), rgba(63, 174, 147, .035) 46%, transparent); filter: blur(4px); pointer-events: none; }
.manuscript-track { width: max-content; display: flex; will-change: transform; animation: manuscriptConveyor 17s linear infinite; }
.manuscript-set { flex: none; display: flex; align-items: center; }
.manuscript-page {
  position: relative;
  flex: none;
  width: 166px;
  height: 278px;
  margin-left: -36px;
  padding: 17px 15px 14px;
  display: grid;
  grid-template-rows: 38px 1fr 28px;
  color: #353834;
  border: 1px solid #c9c7bf;
  border-radius: var(--demo-sheet-radius);
  background: linear-gradient(105deg, #f8f4ea 0, #fffef9 8%, #fffef9 100%);
  box-shadow: -2px 1px 0 rgba(201, 195, 181, .34), 0 10px 24px rgba(43, 38, 29, .13);
}
.manuscript-page:nth-child(1) { z-index: 1; transform: translateY(5px); }
.manuscript-page:nth-child(2) { z-index: 2; transform: translateY(-2px); }
.manuscript-page:nth-child(3) { z-index: 3; transform: translateY(3px); }
.feature-panel.is-active .impact-card { animation: nodeDrift 4.6s ease-in-out infinite alternate; }
.feature-panel.is-active .impact-card:nth-child(2) { animation-delay: -1.7s; }
.feature-panel.is-active .impact-card:nth-child(3) { animation-delay: -3.1s; }
.feature-panel.is-active .manuscript-page:nth-child(1) { animation: paperDriftOne 5.8s ease-in-out infinite alternate; }
.feature-panel.is-active .manuscript-page:nth-child(2) { animation: paperDriftTwo 6.4s ease-in-out infinite alternate; }
.feature-panel.is-active .manuscript-page:nth-child(3) { animation: paperDriftThree 5.2s ease-in-out infinite alternate; }
.manuscript-page::before { content: ""; position: absolute; inset: 5px; border: 1px solid #e5e2d9; border-radius: 1px; pointer-events: none; }
.manuscript-page header { position: relative; z-index: 1; display: grid; grid-template-columns: 25px 1fr; align-items: start; gap: 7px; border-bottom: 1px solid #dedbd2; }
.manuscript-page header span { color: #c45e3e; font: 8px var(--mono); }
.manuscript-page header b { font-family: var(--display); font-size: 10px; font-weight: 600; }
.manuscript-lines { position: relative; z-index: 1; padding-top: 14px; display: grid; align-content: start; gap: 9px; }
.manuscript-lines i { display: block; width: 100%; height: 1px; background: #d8d5cc; }
.manuscript-lines i:nth-child(3n + 1) { width: 88%; }
.manuscript-lines i:nth-child(4n) { width: 73%; }
.manuscript-page footer { position: relative; z-index: 1; align-self: end; padding-top: 8px; color: #777b76; border-top: 1px solid #dedbd2; font: 6px var(--mono); white-space: nowrap; }

.profile-scan-scene {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(430px, 1.55fr);
  gap: 58px;
  align-items: center;
  padding: 34px 30px 32px;
  background: #f3f1ea;
}
.profile-scan-scene::before {
  opacity: 1;
  background-image: radial-gradient(circle, rgba(43, 38, 29, .13) 1px, transparent 1.5px);
  background-size: 26px 26px;
}
.profile-canvas-wires { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.profile-canvas-wires path { fill: none; stroke: rgba(116, 98, 62, .31); stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.raw-brief { position: relative; z-index: 1; align-self: stretch; min-width: 0; padding: 2px 12px 2px 2px; }
.raw-brief > p { margin: 0; color: #888a85; font: 7px var(--mono); letter-spacing: .08em; }
.raw-fragments { position: relative; height: calc(100% - 18px); min-height: 320px; }
.raw-fragment { --port-color: #3fae93; position: absolute; display: grid; grid-template-columns: auto 1fr; gap: 2px 7px; color: #575b56; opacity: .72; }
.raw-fragment::after { content: ""; position: absolute; top: 50%; right: -16px; width: 11px; height: 11px; border: 3px solid var(--port-color); border-radius: 50%; background: var(--demo-paper-2); box-shadow: 0 0 0 3px var(--demo-canvas), 0 0 0 4px rgba(43, 38, 29, .08); transform: translateY(-50%); }
.raw-fragment i { grid-row: 1 / 3; align-self: center; color: #8a8d87; font: 7px var(--mono); font-style: normal; }
.raw-fragment b { font-family: var(--display); font-size: 14px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.raw-fragment small { color: #a1a39e; font: 6px var(--mono); }
.fragment-form { --port-color: #3fae93; top: 8%; left: 4%; }
.fragment-platform { --port-color: #e0a13d; top: 10%; right: 9%; }
.fragment-genre { --port-color: #6d87dc; top: 31%; left: 16%; color: #313632; opacity: .82; }
.fragment-genre b { font-size: 23px; }
.fragment-volume { --port-color: #3fae93; top: 51%; right: 3%; }
.fragment-chapter { --port-color: #e0a13d; top: 67%; left: 0; }
.fragment-negative { --port-color: #d95c4e; right: 0; bottom: 7%; color: #bd5b3d; opacity: .78; }
.fragment-negative b { font-size: 11px; }
.fragment-style { --port-color: #6d87dc; left: 28%; bottom: 0; color: #536d64; opacity: .78; }

.scan-threshold { position: absolute; z-index: 4; top: 0; bottom: 0; left: 4%; width: 58px; display: grid; place-items: center; opacity: 0; pointer-events: none; will-change: left, opacity; }
.scan-threshold::before { content: ""; position: absolute; inset: 4% -25px; background: linear-gradient(90deg, transparent, rgba(77, 176, 146, .05) 24%, rgba(77, 176, 146, .18) 52%, rgba(77, 176, 146, .05) 76%, transparent); filter: blur(7px); }
.scan-threshold::after { content: ""; position: absolute; z-index: -1; top: 0; right: 50%; bottom: 0; width: 110vw; background: linear-gradient(90deg, rgba(63, 174, 147, .012), rgba(63, 174, 147, .055)); }
.scan-threshold > span { position: absolute; top: 1px; color: #4f8d7a; font: 6px var(--mono); letter-spacing: .12em; writing-mode: vertical-rl; }
.scan-threshold > i { position: absolute; z-index: 2; inset: 4% auto; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(77, 176, 146, .72) 10%, #4db092 50%, rgba(77, 176, 146, .72) 90%, transparent); box-shadow: 0 0 9px rgba(77, 176, 146, .62), 0 0 28px rgba(77, 176, 146, .22); }
.scan-threshold > i::before { content: ""; position: absolute; top: 52%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #4db092; box-shadow: 0 0 0 7px rgba(77, 176, 146, .1), 0 0 22px rgba(77, 176, 146, .82); transform: translate(-50%, -50%); }
.scan-particle { position: absolute; z-index: 3; width: 4px; height: 4px; background: var(--particle); box-shadow: 0 0 8px color-mix(in srgb, var(--particle) 64%, transparent); }
.particle-one { --particle: #d19b3e; top: 27%; left: 20%; }
.particle-two { --particle: #6b72c8; top: 39%; right: 17%; }
.particle-three { --particle: #d66a45; top: 54%; left: 10%; width: 6px; height: 2px; }
.particle-four { --particle: #56ad90; top: 67%; right: 8%; }
.particle-five { --particle: #d19b3e; top: 79%; left: 27%; width: 3px; height: 7px; }

.story-profile-sheet { position: relative; z-index: 2; min-width: 0; height: 332px; display: grid; grid-template-rows: 34px 1fr 114px 34px; color: #2d312e; border: 1px solid var(--demo-line-strong); border-radius: 4px; background: rgba(255, 253, 248, .96); box-shadow: 0 2px 3px rgba(43, 38, 29, .05), 0 18px 42px rgba(43, 38, 29, .11); will-change: opacity, filter, transform; }
.profile-port { position: absolute; z-index: 5; top: 52%; width: 13px; height: 13px; border: 3px solid var(--port-color); border-radius: 50%; background: var(--demo-paper-2); box-shadow: 0 0 0 3px var(--demo-canvas), 0 0 0 4px rgba(43, 38, 29, .08); transform: translateY(-50%); }
.profile-port::after { position: absolute; top: 13px; color: #8c8f89; font: 5px var(--mono); font-style: normal; letter-spacing: .08em; }
.profile-port-in { --port-color: #3fae93; left: -8px; }
.profile-port-in::after { content: "IN"; left: 1px; }
.profile-port-out { --port-color: #d95c4e; right: -8px; }
.profile-port-out::after { content: "OUT"; right: -2px; }
.story-profile-sheet::before { content: ""; position: absolute; inset: 5px; border: 1px solid #e3e0d7; border-radius: 2px; pointer-events: none; }
.story-profile-sheet::after { content: ""; position: absolute; top: 49px; right: 22px; width: 72px; height: 44px; opacity: .22; background-image: radial-gradient(circle, #565b56 1px, transparent 1.2px); background-size: 6px 6px; }
.story-profile-sheet > header { position: relative; z-index: 1; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: #6f736e; border-bottom: 1px solid #d9d6cc; font: 7px var(--mono); letter-spacing: .08em; }
.story-profile-sheet > header b { color: #c55e3e; font-weight: 500; }
.profile-heading { position: relative; z-index: 1; padding: 18px 20px 12px; }
.profile-heading > p { margin: 0 0 6px; color: #4d8c79; font: 6px var(--mono); letter-spacing: .1em; }
.profile-heading h3 { margin: 0; font-family: var(--display); font-size: 39px; font-weight: 500; line-height: 1; letter-spacing: 0; }
.profile-heading > div { margin-top: 13px; display: flex; align-items: center; gap: 9px; color: #565a56; font-size: 9px; }
.profile-heading > div i { width: 3px; height: 3px; border-radius: 50%; background: #d19b3e; }
.profile-specs { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1.2fr; border-top: 1px solid #d9d6cc; }
.profile-specs section { min-width: 0; padding: 13px 14px 10px; border-right: 1px solid #d9d6cc; }
.profile-specs section:last-child { border-right: 0; }
.profile-specs small { display: block; margin-bottom: 8px; color: #848781; font: 6px var(--mono); letter-spacing: .08em; }
.profile-specs b { display: block; margin-bottom: 6px; font-family: var(--display); font-size: 13px; font-weight: 600; }
.profile-specs p { margin: 0; color: #777b76; font-size: 7px; line-height: 1.55; }
.profile-specs .avoid-spec b { display: inline-block; margin: 0 5px 7px 0; padding: 3px 5px; color: #b85538; border: 1px solid rgba(198, 91, 60, .38); border-radius: 4px; background: rgba(201, 100, 66, .045); font-family: var(--sans); font-size: 8px; font-weight: 500; }
.story-profile-sheet > footer { position: relative; z-index: 1; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: #767a75; border-top: 1px solid #d9d6cc; font: 6px var(--mono); letter-spacing: .06em; }
.story-profile-sheet > footer span { display: flex; align-items: center; gap: 7px; color: #397763; }
.story-profile-sheet > footer span i { width: 6px; height: 6px; border-radius: 50%; background: #56ad90; box-shadow: 0 0 0 4px rgba(86, 173, 144, .09); }
.feature-panel.is-active .scan-threshold { animation: profileScan 6.6s linear infinite; }
.feature-panel.is-active .raw-brief { animation: rawBriefCycle 6.6s ease-in-out infinite; }
.feature-panel.is-active .story-profile-sheet { animation: profileMaterialize 6.6s ease-in-out infinite; }
.feature-panel.is-active .scan-particle { animation: scanParticle 1.8s ease-in-out infinite alternate; }
.feature-panel.is-active .scan-particle:nth-of-type(2n) { animation-delay: -.9s; }
.feature-panel.is-active .story-profile-sheet > footer span i { animation: calibratedPulse 6.6s ease-in-out infinite; }

.memory-timeline-scene {
  display: grid;
  grid-template-columns: minmax(210px, .68fr) 58px minmax(450px, 1.55fr);
  align-items: center;
  padding: 34px 30px 32px;
  color: #2d312e;
  background: #f3f1ea;
}
.memory-timeline-scene::before { opacity: 1; background-image: radial-gradient(circle, rgba(43, 38, 29, .13) 1px, transparent 1.5px); background-size: 26px 26px; }
.memory-canvas-wires { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.memory-canvas-wires path { fill: none; stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.wire-relation { stroke: rgba(63, 174, 147, .42); }
.wire-ledger { stroke: rgba(217, 92, 78, .38); }
.wire-foreshadow { stroke: rgba(224, 161, 61, .52); }
.memory-runner { position: absolute; z-index: 5; top: 0; left: 0; width: 9px; height: 9px; border: 2px solid #fffdf8; border-radius: 50%; background: var(--runner); box-shadow: 0 0 0 1px rgba(43, 38, 29, .12), 0 0 12px color-mix(in srgb, var(--runner) 72%, transparent); opacity: 0; offset-rotate: 0deg; pointer-events: none; }
.runner-relation { --runner: #3fae93; offset-path: path("M 282 210 C 330 210 332 110 394 110 L 815 110"); }
.runner-ledger { --runner: #d95c4e; offset-path: path("M 282 210 C 338 210 340 210 394 210 L 815 210"); }
.runner-foreshadow { --runner: #e0a13d; offset-path: path("M 282 210 C 330 210 332 310 394 310 L 815 310"); }

.chapter-archive-stack { position: relative; z-index: 2; align-self: stretch; min-width: 0; }
.chapter-archive-stack > p { margin: 0; color: #858882; font: 7px var(--mono); letter-spacing: .08em; }
.chapter-sheet { position: absolute; width: 176px; height: 282px; border: 1px solid var(--demo-line-strong); border-radius: var(--demo-sheet-radius); background: linear-gradient(105deg, #f5f0e5 0, #fffdf8 8%, #fffdf8 100%); box-shadow: -2px 1px 0 rgba(201, 195, 181, .3), 0 10px 26px rgba(43, 38, 29, .11); }
.chapter-sheet > span { position: absolute; top: 12px; right: 13px; color: #a6a093; font: 8px var(--mono); }
.sheet-126 { top: 62px; left: 3px; transform: rotate(-2.4deg); opacity: .62; }
.sheet-127 { top: 52px; left: 18px; transform: rotate(1.2deg); opacity: .8; }
.sheet-128 { top: 42px; left: 34px; padding: 0 15px 13px; display: grid; grid-template-rows: 39px 1fr auto 34px; border-top: 2px solid var(--demo-coral); transform: rotate(-.3deg); will-change: transform, opacity; }
.sheet-128::before { content: "128"; position: absolute; right: 9px; bottom: 34px; color: rgba(201, 100, 66, .08); font-family: var(--display); font-size: 64px; line-height: 1; }
.sheet-128 > header { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; border-bottom: 1px solid #ddd7ca; }
.sheet-128 > header span { padding: 2px 4px; color: #a75144; border: 1px solid rgba(167, 81, 68, .34); border-radius: 4px; background: rgba(201, 100, 66, .045); font: 7px var(--mono); }
.sheet-128 > header b { font-family: var(--display); font-size: 11px; }
.sheet-128 > header small { color: #7c7568; font: 6px var(--mono); }
.sheet-128 > strong { align-self: end; font-family: var(--display); font-size: 22px; font-weight: 500; }
.sheet-128 > p { position: relative; z-index: 1; margin: 8px 0 0; color: #59564e; font-family: var(--display); font-size: 10px; line-height: 1.8; }
.sheet-128 > footer { display: flex; align-items: end; gap: 7px; border-top: 1px solid #ddd7ca; }
.sheet-128 > footer span { padding: 2px 4px; color: #7d776b; border-radius: 4px; background: #f0ece1; font: 6px var(--mono); }
.chapter-output-port { position: absolute; top: 50%; right: -8px; width: 13px; height: 13px; border: 3px solid #d95c4e; border-radius: 50%; background: var(--demo-paper-2); box-shadow: 0 0 0 3px var(--demo-canvas), 0 0 0 4px rgba(43, 38, 29, .08); transform: translateY(-50%); }

.archive-threshold { position: relative; z-index: 4; align-self: stretch; display: grid; place-items: center; }
.archive-threshold::before { content: ""; position: absolute; inset: 4% -24px; background: linear-gradient(90deg, transparent, rgba(86, 173, 144, .04) 22%, rgba(86, 173, 144, .15) 50%, rgba(86, 173, 144, .04) 78%, transparent); filter: blur(7px); }
.archive-threshold > span { position: absolute; top: 1px; color: #4f8d7a; font: 6px var(--mono); letter-spacing: .12em; writing-mode: vertical-rl; }
.archive-threshold > i { position: absolute; inset: 4% auto; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(77, 176, 146, .68) 10%, #4db092 50%, rgba(77, 176, 146, .68) 90%, transparent); box-shadow: 0 0 9px rgba(77, 176, 146, .5); }
.archive-signal { position: absolute; left: 50%; width: 7px; height: 7px; border: 2px solid #f3f1ea; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1px rgba(43, 38, 29, .15), 0 0 13px color-mix(in srgb, var(--signal) 64%, transparent); transform: translateX(-50%); }
.signal-relation { --signal: #3fae93; top: 24%; }
.signal-ledger { --signal: #d95c4e; top: 50%; }
.signal-foreshadow { --signal: #e0a13d; top: 76%; }

.memory-ledger-map { position: relative; z-index: 2; min-width: 0; height: 334px; display: grid; grid-template-rows: 34px repeat(3, 1fr) 31px; border: 1px solid var(--demo-line-strong); border-radius: 4px; background: rgba(255, 253, 248, .92); box-shadow: 0 2px 3px rgba(43, 38, 29, .04), 0 18px 42px rgba(43, 38, 29, .09); }
.memory-ledger-map::before { content: "1,000,000"; position: absolute; top: 45px; right: 15px; color: rgba(43, 38, 29, .035); font-family: var(--display); font-size: 68px; line-height: 1; }
.memory-ledger-map > header { position: relative; z-index: 1; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: #797c76; border-bottom: 1px solid #d9d4c7; font: 7px var(--mono); letter-spacing: .08em; }
.memory-ledger-map > header b { color: #c45d3f; font-weight: 500; }
.memory-lane { position: relative; z-index: 1; min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); border-bottom: 1px solid #d9d4c7; }
.lane-name { padding: 11px 12px; display: grid; grid-template-columns: auto 1fr; gap: 3px 7px; align-content: center; border-right: 1px solid #d9d4c7; }
.lane-name span { grid-row: 1 / 3; align-self: center; padding: 3px 5px; color: var(--track); border: 1px solid color-mix(in srgb, var(--track) 46%, #bcb6a8); border-radius: 4px; background: color-mix(in srgb, var(--track) 7%, #fffdf8); font: 7px var(--mono); }
.lane-name b { font-family: var(--display); font-size: 11px; }
.lane-name small { color: #92948e; font: 5px var(--mono); letter-spacing: .06em; }
.relation-track { --track: #3fae93; }
.ledger-track { --track: #d95c4e; }
.foreshadow-track { --track: #e0a13d; }
.lane-content { position: relative; min-width: 0; padding: 10px 14px; display: grid; align-content: center; gap: 5px; }
.lane-axis { position: absolute; top: 22px; left: 13px; right: 14px; border-top: 1px solid color-mix(in srgb, var(--track) 65%, #bdb7a9); }
.lane-axis i { position: absolute; top: -6px; width: 11px; height: 11px; border: 3px solid var(--track); border-radius: 50%; background: var(--demo-paper-2); box-shadow: 0 0 0 2px #fffdf8, 0 0 0 3px rgba(43, 38, 29, .08); }
.lane-axis i:first-child { left: 0; }
.lane-axis i:nth-child(2) { right: 17%; }
.lane-axis i:nth-child(3) { right: 0; }
.lane-content > strong { position: relative; z-index: 1; align-self: end; margin-top: 14px; font-family: var(--display); font-size: 12px; font-weight: 600; }
.lane-content > p { margin: 0; color: #777a74; font-size: 7px; }
.long-axis { border-top-width: 2px; }
.long-axis i:nth-child(2) { right: 0; }
.thread-range { display: flex; justify-content: space-between; color: #9a762d; font: 6px var(--mono); }
.memory-ledger-map > footer { position: relative; z-index: 1; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: #8a8d87; font: 6px var(--mono); letter-spacing: .06em; }
.memory-ledger-map > footer b { color: #447968; font-weight: 500; }
.feature-panel.is-active .sheet-128 { animation: chapterArrive 8.4s ease-in-out infinite; }
.feature-panel.is-active .sheet-126 { animation: archivePaperOne 6.2s ease-in-out infinite alternate; }
.feature-panel.is-active .sheet-127 { animation: archivePaperTwo 5.7s ease-in-out infinite alternate; }
.feature-panel.is-active .archive-threshold::before { animation: archiveThresholdGlow 8.4s ease-in-out infinite; }
.feature-panel.is-active .archive-signal { animation: archiveSignalPulse 8.4s ease-in-out infinite; }
.feature-panel.is-active .signal-ledger { animation-delay: .18s; }
.feature-panel.is-active .signal-foreshadow { animation-delay: .36s; }
.feature-panel.is-active .memory-canvas-wires path { animation: memoryWireWake 8.4s ease-in-out infinite; }
.feature-panel.is-active .memory-runner { animation: memoryRunner 8.4s linear infinite; }
.feature-panel.is-active .runner-ledger { animation-delay: .18s; }
.feature-panel.is-active .runner-foreshadow { animation-delay: .36s; }
.feature-panel.is-active .memory-lane { animation: memoryLaneReveal 8.4s ease-in-out infinite; }
.feature-panel.is-active .ledger-track { animation-delay: .2s; }
.feature-panel.is-active .foreshadow-track { animation-delay: .4s; }
.feature-panel.is-active .lane-axis i { animation: memoryNodeWake 8.4s ease-in-out infinite; }
.feature-panel.is-active .long-axis { animation: longThreadRecall 8.4s ease-in-out infinite; }
.feature-panel.is-active .memory-ledger-map::before { animation: memoryWatermark 8.4s ease-in-out infinite; }

@keyframes cardConveyor { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes manuscriptConveyor { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes nodeDrift { from { translate: 0 -1px; } to { translate: 0 2px; } }
@keyframes paperDriftOne { from { transform: translateY(5px) rotate(-.15deg); } to { transform: translateY(1px) rotate(.1deg); } }
@keyframes paperDriftTwo { from { transform: translateY(-2px) rotate(.12deg); } to { transform: translateY(2px) rotate(-.12deg); } }
@keyframes paperDriftThree { from { transform: translateY(3px) rotate(-.08deg); } to { transform: translateY(-1px) rotate(.14deg); } }
@keyframes portalBreath { 0%, 100% { opacity: .56; transform: scaleX(.78); } 50% { opacity: 1; transform: scaleX(1.08); } }
@keyframes portalCrossing {
  0%, 58%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.25, .5); }
  68% { opacity: .28; }
  76% { opacity: 1; transform: translate(-50%, -50%) scale(1.15, 1.45); }
  88% { opacity: 0; transform: translate(-50%, -50%) scale(2.4, .42); }
}
@keyframes profileScan {
  0% { left: 2%; opacity: 0; }
  7% { opacity: 1; }
  82% { left: 94%; opacity: 1; }
  91%, 100% { left: 96%; opacity: 0; }
}
@keyframes rawBriefCycle {
  0%, 14%, 100% { opacity: 1; filter: grayscale(0) blur(0); transform: translateX(0); }
  48%, 86% { opacity: .32; filter: grayscale(.55) blur(.35px); transform: translateX(9px); }
}
@keyframes profileMaterialize {
  0%, 28%, 100% { opacity: .22; filter: grayscale(.78) blur(.65px); transform: translateX(8px) scale(.992); }
  58%, 88% { opacity: 1; filter: grayscale(0) blur(0); transform: translateX(0) scale(1); }
}
@keyframes scanParticle { from { translate: -3px -4px; opacity: .35; } to { translate: 5px 5px; opacity: 1; } }
@keyframes calibratedPulse { 0%, 58%, 100% { opacity: .28; box-shadow: 0 0 0 3px rgba(86, 173, 144, .06); } 72%, 88% { opacity: 1; box-shadow: 0 0 0 6px rgba(86, 173, 144, .14), 0 0 16px rgba(86, 173, 144, .38); } }
@keyframes chapterArrive {
  0%, 100% { opacity: 0; transform: translateX(-34px) rotate(-1.6deg) scale(.98); }
  18%, 88% { opacity: 1; transform: translateX(0) rotate(-.3deg) scale(1); }
  96% { opacity: .15; transform: translateX(8px) rotate(-.1deg) scale(.995); }
}
@keyframes archivePaperOne { from { transform: rotate(-2.4deg) translateY(1px); } to { transform: rotate(-1.8deg) translateY(-2px); } }
@keyframes archivePaperTwo { from { transform: rotate(1.2deg) translateY(-1px); } to { transform: rotate(.7deg) translateY(2px); } }
@keyframes archiveThresholdGlow { 0%, 17%, 100% { opacity: .25; transform: scaleX(.7); } 28%, 58% { opacity: 1; transform: scaleX(1.12); } 82% { opacity: .45; } }
@keyframes archiveSignalPulse { 0%, 22%, 100% { opacity: .2; transform: translateX(-50%) scale(.65); } 31%, 64% { opacity: 1; transform: translateX(-50%) scale(1.35); } 78% { opacity: .35; transform: translateX(-50%) scale(.85); } }
@keyframes memoryWireWake { 0%, 21%, 100% { opacity: .2; } 34%, 78% { opacity: 1; } 92% { opacity: .32; } }
@keyframes memoryRunner {
  0%, 23%, 100% { offset-distance: 0%; opacity: 0; }
  27% { opacity: 1; }
  70% { offset-distance: 100%; opacity: 1; }
  74% { offset-distance: 100%; opacity: 0; }
}
@keyframes memoryLaneReveal { 0%, 28%, 100% { opacity: .34; filter: grayscale(.6); } 48%, 87% { opacity: 1; filter: grayscale(0); } 95% { opacity: .45; } }
@keyframes memoryNodeWake { 0%, 35%, 100% { scale: .72; opacity: .35; } 52%, 82% { scale: 1; opacity: 1; box-shadow: 0 0 0 2px #fffdf8, 0 0 0 5px color-mix(in srgb, var(--track) 16%, transparent); } }
@keyframes longThreadRecall { 0%, 46%, 100% { opacity: .36; filter: none; } 64%, 87% { opacity: 1; filter: drop-shadow(0 0 5px rgba(224, 161, 61, .58)); } }
@keyframes memoryWatermark { 0%, 42%, 100% { opacity: .3; } 64%, 88% { opacity: 1; } }

@media (min-width: 1101px) {
  .system-screen .section-head { grid-template-columns: 140px minmax(560px, 1fr) minmax(320px, 430px); gap: 36px; }
  .system-screen .section-head h2 { font-size: 45px; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .system-screen { height: calc(100svh - 66px); min-height: 650px; padding: 28px 0 22px; overflow: hidden; }
  .system-screen .system-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .system-screen .section-head { padding-bottom: 18px; }
  .system-screen .feature-theatre,
  .system-screen .feature-viewport,
  .system-screen .feature-scene { height: 100%; min-height: 0; }
  .system-screen .feature-tabs { display: grid; grid-template-rows: repeat(3, 1fr); }
  .system-screen .feature-tabs button { min-height: 0; padding-top: 16px; padding-bottom: 14px; }
  .system-screen .workflow-strip { margin-top: 14px; }
  .system-screen .workflow-strip li { min-height: 54px; padding-top: 8px; padding-bottom: 8px; }
}

@media (max-width: 1100px) {
  .feature-scene { padding: 24px 20px; }
  .impact-scene { grid-template-columns: minmax(280px, .9fr) 42px minmax(330px, 1.1fr); }
  .profile-scan-scene { grid-template-columns: minmax(200px, .68fr) minmax(410px, 1.5fr); gap: 48px; padding-left: 22px; padding-right: 22px; }
  .memory-timeline-scene { grid-template-columns: minmax(190px, .64fr) 48px minmax(420px, 1.5fr); padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 760px) {
  .feature-scene { min-width: 720px; overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .impact-card-track,
  .impact-card,
  .manuscript-track,
  .manuscript-page,
  .impact-portal::before,
  .portal-flare,
  .scan-threshold,
  .raw-brief,
  .story-profile-sheet,
  .scan-particle,
  .story-profile-sheet > footer span i,
  .sheet-128,
  .sheet-126,
  .sheet-127,
  .archive-threshold::before,
  .archive-signal,
  .memory-canvas-wires path,
  .memory-lane,
  .lane-axis i,
  .long-axis,
  .memory-ledger-map::before { animation-play-state: paused; }
  .memory-runner { animation-play-state: paused; opacity: 0; }
}
