/* ============================================================================
   EchoDesk · Editorial Magazine × Precision Engineering Stylesheet (v4)
   Typography: Noto Serif SC × Noto Sans SC (Light/Regular) × Bahnschrift × Cascadia Mono
   Craft: Frameless breathing room, 2.5% film grain, 1px specular hairlines, 60fps GPU.
============================================================================ */

:root {
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Georgia", "STSong", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Segoe UI Variable Display", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", "Noto Sans SC", sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;

  /* Neutrals: Obsidian Studio & Gallery Paper (zero warm-yellow template tint) */
  --bg-dark: #0B0B0D;
  --surface-dark: #121215;
  --surface-dark-2: #18181D;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-dark-strong: rgba(255, 255, 255, 0.18);
  --ink-light: #F4F4F2;
  --ink-light-soft: rgba(244, 244, 242, 0.44);
  --ink-light-2: rgba(244, 244, 242, 0.68);
  --muted-light: rgba(244, 244, 242, 0.40);

  --bg-light: #F5F4F0;
  --surface-light: #FFFFFF;
  --surface-light-2: #ECEBE6;
  --line-light: rgba(17, 17, 19, 0.09);
  --line-light-strong: rgba(17, 17, 19, 0.17);
  --ink-dark: #111113;
  --ink-dark-soft: rgba(17, 17, 19, 0.40);
  --ink-dark-2: rgba(17, 17, 19, 0.66);
  --muted-dark: rgba(17, 17, 19, 0.44);

  /* Semantic Hardware Signals */
  --signal: #E84D1C;
  --signal-bright: #FF6B3D;
  --ok: #0D9668;
  --ok-bright: #34D399;
  --danger: #DC3C3C;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050506;
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

svg {
  display: block;
}

.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

/* 1920x1080 Locked Cinema Stage */
.stage {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  background: var(--bg-dark);
  color: var(--ink-light);
  transition: background-color 0.6s var(--ease), color 0.5s var(--ease);
  contain: layout style paint;
}

.stage.theme-light,
.stage.theme-warm {
  background: var(--bg-light);
  color: var(--ink-dark);
}

.stage.is-paused *,
.stage.is-paused *::before,
.stage.is-paused *::after {
  animation-play-state: paused !important;
}

body.no-transitions *,
body.no-transitions *::before,
body.no-transitions *::after {
  transition: none !important;
}

/* Studio Top Spotlight + Subtle Film Grain (zero grid clutter, zero AI blobs) */
.stage-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 48% at 50% -4%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(120% 95% at 50% 50%, transparent 56%, rgba(0, 0, 0, 0.52) 100%);
  transition: opacity 0.6s var(--ease);
}

.stage.theme-light .bg-spotlight,
.stage.theme-warm .bg-spotlight {
  background:
    radial-gradient(70% 55% at 50% -6%, rgba(255, 255, 255, 0.75), transparent 68%),
    radial-gradient(120% 100% at 50% 50%, transparent 64%, rgba(17, 17, 19, 0.045) 100%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.stage.theme-light .bg-grain,
.stage.theme-warm .bg-grain {
  opacity: 0.022;
}

/* ============================================================================
   Frameless Top Telemetry HUD
============================================================================ */
.stage-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hud-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.hud-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.hud-slash {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.28;
}

.hud-tag {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  opacity: 0.56;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-dark-strong);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.stage.theme-light .mode-switch,
.stage.theme-warm .mode-switch {
  border-color: var(--line-light-strong);
}

.mode-switch:hover {
  background: rgba(255, 255, 255, 0.06);
}

.stage.theme-light .mode-switch:hover,
.stage.theme-warm .mode-switch:hover {
  background: rgba(17, 17, 19, 0.045);
}

.mode-switch__led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok-bright);
}

.mode-switch.is-interactive {
  background: var(--ink-light);
  color: var(--ink-dark);
  border-color: var(--ink-light);
}

.stage.theme-light .mode-switch.is-interactive,
.stage.theme-warm .mode-switch.is-interactive {
  background: var(--ink-dark);
  color: var(--ink-light);
  border-color: var(--ink-dark);
}

.mode-switch.is-interactive .mode-switch__led {
  background: var(--signal);
}

.hud-bar {
  width: 148px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.stage.theme-light .hud-bar,
.stage.theme-warm .hud-bar {
  background: rgba(17, 17, 19, 0.15);
}

.hud-bar__fill {
  width: 100%;
  height: 100%;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0);
}

.hud-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  opacity: 0.56;
  min-width: 44px;
  text-align: right;
}

/* Virtual Camera Rig & Scene Base */
.camera-rig {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  will-change: transform;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.992);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease);
}

.scene.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Scene 1 Staggered Editorial Title Reveal */
.scene-1 .s1-eyebrow,
.scene-1 .s1-wordmark,
.scene-1 .s1-lead,
.scene-1 .s1-spec-row {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.72s var(--ease), transform 0.8s var(--ease);
}

.scene-1.is-active .s1-eyebrow  { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: 0.05s; }
.scene-1.is-active .s1-wordmark { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: 0.14s; }
.scene-1.is-active .s1-lead     { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: 0.26s; }
.scene-1.is-active .s1-spec-row { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: 0.38s; }

.scene-canvas {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

/* Shared Editorial Two-Tone Serif Header (Anthropic / Kinfolk Aesthetic) */
.editorial-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-light);
}

.editorial-head--dark {
  border-bottom-color: var(--line-dark);
}

.ed-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--muted-dark);
  margin-bottom: 14px;
}

.editorial-head--dark .ed-index {
  color: var(--muted-light);
}

.editorial-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.24;
  color: var(--ink-dark);
}

.editorial-head--dark h2 {
  color: var(--ink-light);
}

.editorial-head h2 .h-soft {
  font-weight: 300;
  color: var(--ink-dark-soft);
}

.editorial-head--dark h2 .h-soft {
  color: var(--ink-light-soft);
}

.wire-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-light-strong);
  background: transparent;
  color: var(--ink-dark);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.wire-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wire-btn:hover {
  background: var(--ink-dark);
  color: var(--ink-light);
  border-color: var(--ink-dark);
}

.wire-btn--dark {
  border-color: var(--line-dark-strong);
  color: var(--ink-light-2);
}

.wire-btn--dark:hover {
  background: var(--ink-light);
  color: var(--ink-dark);
  border-color: var(--ink-light);
}

/* ============================================================================
   SCENE 1 · Editorial Cover × Precision Oscilloscope Intro (0s - 6s)
============================================================================ */
.scene-1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.s1-frame {
  position: relative;
  z-index: 2;
  width: 1180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -28px;
}

.s1-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.26em;
  color: var(--muted-light);
}

.s1-wordmark {
  margin: 26px 0 24px;
  font-family: var(--font-serif);
  font-size: 156px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: #FFFFFF;
}

.s1-wordmark em {
  font-style: italic;
  font-weight: 300;
  color: rgba(244, 244, 242, 0.78);
}

.s1-lead {
  margin: 0 0 40px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.02em;
  color: var(--ink-light-2);
}

.s1-spec-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

.s1-spec-row i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

/* ============================================================================
   SCENE ORIGIN · Why This Exists & Differentiation (6s - 16s)
============================================================================ */
.scene-origin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 112px 72px;
}

.so-grid {
  width: 100%;
  max-width: 1540px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.so-jump-hint {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}

.so-columns {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 80px;
  align-items: start;
}

/* Left: Editorial Origin Story */
.so-why {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 6px;
}

.so-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted-dark);
}

.so-quote {
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--ink-dark);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink-dark);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.so-quote.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.so-prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.so-prose.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.so-prose p {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.86;
  color: var(--ink-dark-2);
}

.so-prose strong {
  color: var(--ink-dark);
  font-weight: 500;
}

/* Right: Frameless 1px Hairline Comparison Matrix */
.so-diff {
  display: flex;
  flex-direction: column;
}

.so-diff-head,
.so-row {
  display: grid;
  grid-template-columns: 118px 0.92fr 1.08fr;
  gap: 28px;
  align-items: center;
}

.so-diff-head {
  padding: 6px 14px 16px;
  border-bottom: 1px solid var(--ink-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted-dark);
}

.so-diff-head .is-echo {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-dark);
}

.so-row {
  padding: 26px 14px;
  border-bottom: 1px solid var(--line-light-strong);
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background-color 0.25s var(--ease);
}

.so-row.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.so-row.is-focus {
  background: rgba(17, 17, 19, 0.032);
}

.so-row:hover {
  background: rgba(17, 17, 19, 0.05);
}

.so-dim {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-dark);
}

.so-old {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--muted-dark);
}

.so-new {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.62;
  color: var(--ink-dark);
}

.so-new::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--ok);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
}

.so-row.is-focus .so-new::before,
.so-row:hover .so-new::before {
  opacity: 1;
}

/* ============================================================================
   SCENE 2 · Frameless Telemetry Rail + Gallery-Paper Floating App (16s - 38s)
============================================================================ */
.scene-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 80px 64px;
}

.s2-shell {
  width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Completely Frameless Signal Path */
.s2-telemetry {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
}

.tel-node {
  display: flex;
  align-items: center;
  gap: 11px;
  opacity: 0.45;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.tel-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(17, 17, 19, 0.24);
  flex-shrink: 0;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tel-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tel-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dark);
  letter-spacing: 0.01em;
}

.tel-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--muted-dark);
}

.tel-node.is-hot {
  opacity: 1;
}

.tel-node.is-hot .tel-led {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(232, 77, 28, 0.18);
}

.tel-node.is-done {
  opacity: 0.88;
}

.tel-node.is-done .tel-led {
  background: var(--ok);
}

.tel-wire {
  position: relative;
  height: 1px;
  background: var(--line-light-strong);
  overflow: hidden;
}

.tel-pulse {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink-dark);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.55s var(--ease);
}

.tel-pulse.is-on {
  transform: scaleX(1);
}

/* Single Physical Focal Artifact: High-Craft Floating Desktop Sheet */
.app-sheet {
  position: relative;
  background: var(--surface-light);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(17, 17, 19, 0.07),
    0 2px 6px rgba(17, 17, 19, 0.03),
    0 28px 72px -18px rgba(17, 17, 19, 0.13);
  overflow: hidden;
}

.app-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
  z-index: 2;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(17, 17, 19, 0.06);
}

.sheet-id {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sheet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-dark);
  color: #FFFFFF;
  display: grid;
  place-items: center;
}

.sheet-avatar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.sheet-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-dark);
  transition: color 0.2s var(--ease);
}

.sheet-title.is-typing {
  color: var(--signal);
}

.sheet-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-dark);
  margin-top: 2px;
}

.sheet-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-dark);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.sheet-feed {
  height: 462px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF9F7 100%);
}

.feed-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 78%;
}

.feed-row--her {
  align-self: flex-start;
  align-items: flex-start;
}

.feed-row--user {
  align-self: flex-end;
  align-items: flex-end;
}

.feed-row.is-past {
  opacity: 0.48;
}

.spring-item {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
}

.spring-item.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.user-msg {
  padding: 13px 20px;
  border-radius: 14px 14px 3px 14px;
  background: var(--ink-dark);
  color: #F9F9F8;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.feed-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 300;
  color: var(--muted-dark);
}

.feed-meta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.voice-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 19, 0.12);
  background: #FFFFFF;
  color: var(--ink-dark);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.voice-pill:hover {
  border-color: rgba(17, 17, 19, 0.42);
  transform: translateY(-1px);
}

.voice-pill.is-wide {
  min-width: 244px;
}

.voice-pill.is-whisper {
  min-width: 180px;
  background: transparent;
  border-style: dashed;
  border-color: rgba(17, 17, 19, 0.22);
}

.voice-pill.is-playing {
  border-color: var(--ink-dark);
  background: #F4F3EF;
}

.v-ico {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.v-state-ico {
  font-size: 10px;
  width: 14px;
  text-align: center;
}

.v-eq {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  flex: 1;
}

.v-eq i {
  width: 1.5px;
  height: 5px;
  background: currentColor;
  opacity: 0.34;
  border-radius: 1px;
}

.v-eq i:nth-child(2n) { height: 11px; }
.v-eq i:nth-child(3n) { height: 15px; }
.v-eq i:nth-child(4n) { height: 8px; }

.voice-pill.is-playing .v-eq i {
  opacity: 0.9;
  animation: eqPulse 0.72s ease-in-out infinite alternate;
}

.voice-pill.is-playing .v-eq i:nth-child(2n) { animation-delay: 0.14s; }
.voice-pill.is-playing .v-eq i:nth-child(3n) { animation-delay: 0.28s; }
.voice-pill.is-playing .v-eq i:nth-child(5n) { animation-delay: 0.42s; }

@keyframes eqPulse {
  from { transform: scaleY(0.35); }
  to   { transform: scaleY(1.15); }
}

.v-len {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--muted-dark);
}

.live-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ok);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.live-tag.is-on {
  opacity: 1;
}

.whisper-code {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-dark);
}

.feed-caption {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dark-2);
  padding-left: 4px;
  min-height: 24px;
}

.feed-caption--active {
  color: var(--ink-dark);
  font-weight: 400;
}

.feed-caption.is-whisper {
  font-family: var(--font-serif);
  color: var(--muted-dark);
}

/* Seamless Bottom Capture Bay */
.sheet-dock {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px 20px;
  border-top: 1px solid rgba(17, 17, 19, 0.06);
  background: #FFFFFF;
}

.rec-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ink-dark);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.22s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.rec-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rec-btn:hover {
  transform: scale(1.04);
}

.rec-btn.is-recording {
  background: var(--signal);
  box-shadow: 0 0 0 8px rgba(232, 77, 28, 0.15);
}

.scope-bay {
  position: relative;
  flex: 1;
  height: 64px;
  border-radius: 999px;
  background: var(--bg-light);
  overflow: hidden;
}

#voiceCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scope-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.scope-hint.is-hidden {
  opacity: 0;
}

/* ============================================================================
   SCENE 3 · Editorial Contrast: Rational Diff × Independent Print Diary
============================================================================ */
.scene-3 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 112px 72px;
}

.s3-grid {
  width: 100%;
  max-width: 1520px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.s3-columns {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: stretch;
}

.s3-left {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Frameless Source Quote */
.diff-source {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--ink-dark);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-dark);
}

.diff-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-dark);
  flex-shrink: 0;
}

/* High-Contrast 3D Flip Artifact */
.flip-stage {
  height: 320px;
  perspective: 1500px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.78s var(--ease);
}

.flip-stage.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-face--old {
  background: var(--surface-light);
  box-shadow:
    0 0 0 1px rgba(17, 17, 19, 0.08),
    0 18px 42px -18px rgba(17, 17, 19, 0.10);
  color: var(--ink-dark);
}

.flip-face--new {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #16161A 0%, #0C0C0E 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.11),
    0 24px 56px -14px rgba(11, 11, 13, 0.42);
  color: #FFFFFF;
}

.flip-face--new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.ff-top,
.ff-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.ff-code {
  opacity: 0.56;
}

.ff-state {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 11px;
}

.ff-state--old {
  background: rgba(220, 60, 60, 0.10);
  color: var(--danger);
}

.ff-state--new {
  background: rgba(52, 211, 153, 0.14);
  color: var(--ok-bright);
}

.ff-body {
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.ff-main {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.flip-face--new .ff-main strong {
  color: var(--ok-bright);
  font-weight: 600;
}

.ff-strike {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 2.5px;
  background: var(--danger);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}

.ff-strike.is-drawn {
  transform: scaleX(1);
}

.ff-foot {
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  color: var(--muted-dark);
}

.flip-face--new .ff-foot {
  border-top-color: var(--line-dark);
  color: var(--muted-light);
}

/* Completely Frameless 3-Column Multi-Model Spec Strip */
.route-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light-strong);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.route-table.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.rt-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rt-k {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-dark);
}

.rt-v {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dark);
}

.rt-cell.is-accent .rt-k {
  color: var(--ok);
  font-weight: 500;
}

/* Right: Independent Print Book Page Diary */
.s3-right {
  display: flex;
}

.print-diary {
  position: relative;
  flex: 1;
  background: #FFFEFC;
  border-radius: 3px 10px 10px 3px;
  padding: 46px 52px 42px 58px;
  box-shadow:
    inset 10px 0 18px -12px rgba(17, 17, 19, 0.14),
    0 0 0 1px rgba(17, 17, 19, 0.06),
    0 24px 60px -22px rgba(17, 17, 19, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.35;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.print-diary.is-settled {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.pd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(17, 17, 19, 0.16);
}

.pd-date {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--ink-dark);
}

.pd-date span {
  opacity: 0.28;
  margin: 0 3px;
  font-weight: 200;
}

.pd-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-dark);
}

.pd-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 0;
}

.j-line {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: 0.015em;
  color: #1E1E21;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.j-line.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.pd-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.pd-foot.is-shown {
  opacity: 1;
}

.pd-rule {
  flex: 1;
  height: 1px;
  background: var(--line-light-strong);
}

/* ============================================================================
   SCENE 4 · Frameless Obsidian Audit Console (36s - 50s)
   Zero heavy boxes: timeline hairlines on left, open hardware channels on right.
============================================================================ */
.scene-4 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 112px 72px;
}

.s4-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1560px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.s4-columns {
  display: grid;
  grid-template-columns: 1.0fr 1.0fr;
  gap: 112px;
  align-items: stretch;
}

/* Left: Frameless Hairline Message Timeline */
.s4-track {
  display: flex;
  flex-direction: column;
}

.t-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color 0.35s var(--ease);
}

.t-row.is-safe {
  border-bottom-color: rgba(52, 211, 153, 0.28);
}

.t-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-light);
  width: 24px;
  flex-shrink: 0;
}

.t-idx--red {
  color: var(--signal-bright);
}

.t-txt {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-light-2);
  flex: 1;
}

.t-row.is-safe .t-txt {
  color: var(--ink-light);
}

.t-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ok-bright);
  opacity: 0;
  transform: translate3d(6px, 0, 0);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.t-lock svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-lock.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Sensitive Target Slot */
.t-slot {
  position: relative;
  min-height: 152px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}

.t-sens {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.t-sens.is-gone {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.t-sens-bubble {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-left: 2px solid var(--signal);
  background: linear-gradient(90deg, rgba(232, 77, 28, 0.14), rgba(232, 77, 28, 0.02));
  font-size: 18px;
  font-weight: 400;
  color: #FFFFFF;
}

.t-action-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 77, 28, 0.55);
  background: rgba(232, 77, 28, 0.12);
  color: #FF8E68;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.35;
  transform: translate3d(0, -4px, 0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.t-action-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-action-btn.is-open,
body.is-interactive .t-action-btn {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.t-action-btn.is-hover,
.t-action-btn:hover {
  background: var(--signal);
  color: #FFFFFF;
  border-color: var(--signal);
}

.t-ghost {
  position: absolute;
  inset: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 22px;
  border-left: 2px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.t-ghost.is-shown {
  opacity: 1;
}

.t-ghost-main {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-light);
}

.t-ghost-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted-light);
}

/* Frameless RAM Composer Buffer */
.t-refill {
  margin-top: auto;
  padding: 22px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.t-refill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 300;
}

.t-refill-label {
  color: var(--muted-light);
}

.t-refill-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--signal-bright);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.t-refill-pill.is-shown {
  opacity: 1;
}

.t-refill-val {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark-strong);
  font-size: 16px;
  font-weight: 300;
  color: var(--muted-light);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.t-refill.is-filled .t-refill-val {
  border-bottom-color: var(--signal);
  background: rgba(232, 77, 28, 0.06);
  color: #FFFFFF;
}

/* Right: Frameless Open Hardware Storage Channels (Zero Boxes) */
.s4-modules {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mod-bar {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 24px 28px 28px;
  border-top: 1px solid var(--line-dark);
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.mod-bar:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.mod-bar.is-hit {
  border-left-color: var(--signal);
  background: linear-gradient(90deg, rgba(232, 77, 28, 0.10), transparent 75%);
}

.mod-bar.is-clean {
  border-left-color: var(--ok-bright);
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.08), transparent 75%);
}

.mod-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  transition: color 0.3s var(--ease);
}

.mod-bar.is-hit .mod-code { color: var(--signal-bright); }
.mod-bar.is-clean .mod-code { color: var(--ok-bright); }

.mod-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mod-desc strong {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: #FFFFFF;
}

.mod-desc span {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted-light);
}

.mod-stat {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted-light);
  min-width: 96px;
  text-align: right;
  transition: color 0.3s var(--ease);
}

.mod-bar.is-hit .mod-stat { color: var(--signal-bright); }
.mod-bar.is-clean .mod-stat { color: var(--ok-bright); }

/* ============================================================================
   SCENE 5 · Open Full-Bleed GPU VRAM Oscilloscope (50s - 62s)
============================================================================ */
.scene-5 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 112px 72px;
}

.s5-grid {
  width: 100%;
  max-width: 1560px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.vram-pill-delta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.42);
  background: rgba(52, 211, 153, 0.10);
  color: var(--ok-bright);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.vram-pill-delta.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.s5-columns {
  display: grid;
  grid-template-columns: 0.66fr 1.34fr;
  gap: 64px;
  align-items: stretch;
}

/* Left: Minimal Desktop Corner Surface */
.s5-tray-box {
  position: relative;
  min-height: 492px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.s5-win {
  margin: 34px 28px 0;
  border-radius: 10px;
  background: #17171B;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 20px 44px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform-origin: bottom right;
  transition: transform 0.5s var(--ease), opacity 0.42s var(--ease);
}

.s5-win.is-min {
  transform: translate3d(130px, 240px, 0) scale(0.14);
  opacity: 0;
  pointer-events: none;
}

.s5-win-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--ink-light-2);
}

.s5-x {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--ink-light-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.s5-x svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.s5-x.is-hover,
.s5-x:hover {
  background: var(--signal);
  color: #FFFFFF;
}

.s5-win-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw-line {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: #FFFFFF;
}

.sw-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-light);
}

/* Frameless Reclaimed Centerpiece */
.s5-reclaimed {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.s5-reclaimed.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.rec-ico {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ok-bright);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rec-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-light);
}

.rec-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted-light);
}

/* Native-Style Floating Tray Context Menu */
.s5-menu {
  position: absolute;
  right: 18px;
  bottom: 64px;
  width: 288px;
  padding: 6px;
  border-radius: 10px;
  background: #17171C;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 24px 52px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.28s var(--ease);
  z-index: 5;
}

.s5-menu.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.sm-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-light-2);
  text-align: left;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.sm-item--hot {
  color: #FF8E68;
  font-weight: 500;
}

.sm-item--hot svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  flex-shrink: 0;
}

.sm-item--hot.is-hover,
.sm-item--hot:hover {
  background: var(--signal);
  color: #FFFFFF;
}

.s5-dock-bar {
  height: 52px;
  padding: 0 20px;
  border-top: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s5-dock-txt {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-light);
}

.s5-tray-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), border-color 0.3s var(--ease);
}

.s5-tray-btn i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  transition: background-color 0.35s var(--ease);
}

.s5-tray-btn.is-bounce {
  transform: scale(1.22);
  border-color: #FFFFFF;
}

.s5-tray-btn.is-cold i {
  background: var(--ok-bright);
}

/* Right: Completely Frameless Giant GPU Oscilloscope */
.s5-scope {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0;
}

.scope-readout {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.scope-num {
  font-family: var(--font-display);
  font-size: 112px;
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}

.scope-unit-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scope-unit {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--ink-light-2);
}

.scope-sub {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted-light);
}

.scope-canvas-wrap {
  width: 100%;
  height: 280px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}

#vramCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scope-leds {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.led-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted-light);
  transition: color 0.3s var(--ease);
}

.led-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.led-item.is-ok {
  color: var(--ink-light);
}

.led-item.is-ok i {
  background: var(--ok-bright);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

/* ============================================================================
   SCENE 6 · Open Crosshair Editorial Index + Cinema Outro (62s - 72s)
============================================================================ */
.scene-6 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 108px 112px 72px;
}

.s6-board {
  width: 100%;
  max-width: 1520px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.s6-board.is-gone {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

/* Completely Open 2x2 Editorial Grid (Zero Outer Box!) */
.swiss-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-dark);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  background: var(--bg-light);
  padding: 4px 6px;
}

.sg-cell {
  padding: 30px 56px 32px 0;
  border-bottom: 1px solid var(--line-light-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.sg-cell.is-interactive-cell {
  cursor: pointer;
}

.sg-cell:nth-of-type(2n) {
  padding-left: 64px;
  padding-right: 0;
  border-left: 1px solid var(--line-light-strong);
}

.sg-cell:nth-of-type(n+3) {
  border-bottom: 0;
}

.sg-cell.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.sg-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted-dark);
}

.sg-try {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-dark-2);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.sg-cell:hover .sg-try,
body.is-interactive .sg-try {
  opacity: 0.72;
}

.sg-tag {
  font-family: var(--font-sans);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-light-strong);
  color: var(--ink-dark-2);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.sg-val {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink-dark);
}

.sg-sub {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.66;
  color: var(--ink-dark-2);
  max-width: 650px;
}

/* ---- 4 Frameless Swiss Micro-Visualizers inside Scene 6 ---- */
.arch-vis {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 62px;
  margin: 4px 0 2px;
}

.arch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
}

.arch-stat {
  font-weight: 500;
  color: var(--ink-dark);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s var(--ease);
}

/* 01 · SHA-256 Hash Scan Rail */
.hash-rail {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

.hash-ticks {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 18px;
}

.hash-ticks i {
  width: 2px;
  height: 10px;
  background: rgba(17, 17, 19, 0.14);
  transition: background-color 0.2s var(--ease), height 0.2s var(--ease);
}

.hash-ticks i:nth-child(4n+1) { height: 16px; }
.hash-ticks i.is-on { background: var(--ink-dark); }
.arch-vis--hash.is-verified .hash-ticks i.is-on { background: var(--ok); }
.arch-vis--hash.is-verified .arch-stat { color: var(--ok); }

.hash-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--signal);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* 02 · $40 Rolling Budget Cap Meter */
.budget-scale {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.budget-track {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(17, 17, 19, 0.10);
  overflow: hidden;
}

.budget-fill {
  width: 100%;
  height: 100%;
  background: var(--ink-dark);
  transform-origin: left center;
  transform: scaleX(0);
  transition: background-color 0.25s var(--ease);
}

.budget-mid {
  position: absolute;
  left: 44%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(17, 17, 19, 0.18);
  pointer-events: none;
}

.budget-cap {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-left: 2px solid var(--ink-dark);
  color: var(--ink-dark-2);
  flex-shrink: 0;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.arch-vis--budget.is-capped .budget-fill { background: var(--signal); }
.arch-vis--budget.is-capped .budget-cap {
  border-left-color: var(--signal);
  color: var(--signal);
  background: rgba(232, 77, 28, 0.09);
}
.arch-vis--budget.is-capped .arch-stat { color: var(--signal); }

/* 03 · Atomic Deploy & Rollback Rail */
.deploy-svg {
  width: 100%;
  height: 40px;
  overflow: visible;
}

.dp-line-bg {
  stroke: rgba(17, 17, 19, 0.14);
  stroke-width: 1.4;
}

.dp-line-fg {
  stroke: var(--ink-dark);
  stroke-width: 1.8;
  stroke-dasharray: 634;
  stroke-dashoffset: 634;
  transition: stroke 0.25s var(--ease);
}

.dp-rollback {
  fill: none;
  stroke: rgba(17, 17, 19, 0.14);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  transition: stroke 0.3s var(--ease), stroke-width 0.3s var(--ease);
}

.dp-node {
  fill: var(--bg-light);
  stroke: rgba(17, 17, 19, 0.28);
  stroke-width: 1.6;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease);
}

.dp-node.is-on {
  fill: var(--ink-dark);
  stroke: var(--ink-dark);
}

.dp-node.is-ok {
  fill: var(--ok);
  stroke: var(--ok);
}

.dp-node.is-fault {
  fill: var(--signal);
  stroke: var(--signal);
}

.arch-vis--deploy.is-live .dp-line-fg { stroke: var(--ok); }
.arch-vis--deploy.is-live .arch-stat { color: var(--ok); }
.arch-vis--deploy.is-rollback .dp-rollback {
  stroke: var(--signal);
  stroke-width: 1.8;
}
.arch-vis--deploy.is-rollback .arch-stat { color: var(--signal); }

/* 04 · Sparse Heartbeat ECG + Live2D Seam Slot */
.road-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
}

.ecg-svg {
  flex: 1;
  height: 38px;
  overflow: visible;
}

.ecg-base {
  fill: none;
  stroke: rgba(17, 17, 19, 0.12);
  stroke-width: 1.2;
}

.ecg-pulse {
  fill: none;
  stroke: var(--ok);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120 460;
  stroke-dashoffset: 580;
}

.seam-slot {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.seam-core {
  padding: 5px 10px;
  background: var(--ink-dark);
  color: #FFFFFF;
}

.seam-gap {
  width: 14px;
  height: 1px;
  background: rgba(17, 17, 19, 0.28);
  transition: width 0.45s var(--ease), background-color 0.35s var(--ease);
}

.seam-mod {
  padding: 4px 10px;
  border: 1px dashed rgba(17, 17, 19, 0.36);
  color: var(--ink-dark-2);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.seam-slot.is-docked .seam-gap {
  width: 4px;
  background: var(--ok);
}

.seam-slot.is-docked .seam-mod {
  border-style: solid;
  border-color: var(--ok);
  color: var(--ok);
  background: rgba(13, 150, 104, 0.08);
}

.arch-vis--roadmap.is-docked .arch-stat {
  color: var(--ok);
}

/* Pure Black Cinema Outro Lockup */
.s6-fin {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s var(--ease);
  z-index: 6;
}

.s6-fin.is-shown {
  opacity: 1;
  pointer-events: auto;
}

.s6-fin-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.s6-tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-light-2);
}

.s6-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.s6-actions.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.fin-btn {
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink-light);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.2s var(--ease);
}

.fin-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.fin-btn--primary {
  background: #FFFFFF;
  color: #0B0B0D;
  border-color: #FFFFFF;
  font-weight: 500;
}

.fin-btn--primary:hover {
  background: #E8E8E6;
  color: #0B0B0D;
  border-color: #E8E8E6;
}

/* ============================================================================
   Precision Cursor, Unobstructed Launch Trigger & Minimal Studio Monitor Bar
============================================================================ */
.pro-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 32px;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.2s var(--ease);
}

.pro-cursor.is-visible {
  opacity: 1;
}

.pro-cursor.is-down svg {
  transform: scale(0.86);
}

.pro-cursor svg {
  width: 100%;
  height: 100%;
  transition: transform 0.12s var(--ease);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.pro-ripple {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.pro-ripple.is-pop {
  animation: ripplePop 0.45s var(--ease) forwards;
}

@keyframes ripplePop {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(0.35); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.1); }
}

/* Unobstructed Bottom Play Trigger */
.start-curtain {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.04) 0%, rgba(11, 11, 13, 0.14) 60%, rgba(11, 11, 13, 0.78) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 108px;
  transition: opacity 0.45s var(--ease);
}

.start-curtain.is-gone {
  opacity: 0;
  pointer-events: none;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 26px 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(18, 18, 22, 0.92);
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.start-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
  background: #1C1C22;
}

.start-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0B0B0D;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.start-play svg {
  width: 17px;
  height: 17px;
  margin-left: 2px;
}

.start-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.start-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-light-2);
  padding-left: 14px;
  border-left: 1px solid var(--line-dark-strong);
}

/* Floating Studio Monitor Director Bar */
.director-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(15, 15, 18, 0.90);
  color: #E4E4E7;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.director-bar.is-hidden {
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
}

.ctrl-grp,
.tab-grp {
  display: flex;
  align-items: center;
  gap: 4px;
}

.c-btn,
.c-tab {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(244, 244, 242, 0.60);
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.c-btn:hover,
.c-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.c-btn--accent {
  background: #FFFFFF;
  color: #0B0B0D;
  font-weight: 500;
}

.c-btn--accent:hover {
  background: #E4E4E7;
  color: #0B0B0D;
}

.c-btn.is-on,
.c-tab.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

#scrubber {
  width: 164px;
  height: 3px;
  accent-color: #FFFFFF;
  cursor: pointer;
}

/* Portrait Mobile Light Hint */
.portrait-hint {
  display: none;
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 15, 18, 0.88);
  color: rgba(244, 244, 242, 0.78);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-aspect-ratio: 1/1) and (max-width: 900px) {
  .portrait-hint {
    display: block;
  }
  .director-bar {
    max-width: calc(100vw - 20px);
    overflow-x: auto;
  }
}
