/* ============================================================
   STORYBOARD DIRECTOR · 24 STEP REPLAY
   theatre dark · amber backlight · ember red · paper white
   ============================================================ */

:root {
  --ink: #07080a;
  --ink-2: #0e0f12;
  --ink-3: #161719;
  --paper: #ece4d3;
  --paper-2: #d8cdb6;
  --paper-3: #b9a98a;
  --amber: #f4b740;
  --amber-2: #e0962a;
  --amber-soft: #f7d27d;
  --ember: #d24a2c;
  --ember-2: #b03319;
  --gold: #f0c465;
  --line: rgba(236, 228, 211, 0.12);
  --line-2: rgba(236, 228, 211, 0.22);
  --glass: rgba(20, 19, 17, 0.55);
  --serif: "Noto Serif SC", "Cormorant Garamond", "Songti SC", serif;
  --display: "Cormorant Garamond", "Noto Serif SC", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
ol, ul { list-style: none; padding: 0; margin: 0; }

/* ===== 全局背景：戏台 ===== */
.stage-vignette {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
}
.stage-vignette::before {
  /* 戏台木纹底色 */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 28%, rgba(244, 183, 64, 0.12), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(210, 74, 44, 0.06), transparent 70%),
    linear-gradient(180deg, #08080a 0%, #0c0a08 40%, #0a0807 100%);
}
.stage-curtain {
  position: absolute; top: -10vh; bottom: -10vh; width: 22vw;
  background:
    repeating-linear-gradient(90deg, rgba(120, 30, 16, 0.55) 0 2px, rgba(70, 14, 6, 0.85) 2px 14px, rgba(120, 30, 16, 0.55) 14px 18px),
    linear-gradient(90deg, #2a0d07 0%, #4a1a0d 60%, #2a0d07 100%);
  filter: saturate(0.9) brightness(0.85);
  opacity: 0.55;
}
.stage-curtain--left { left: -3vw; transform: skewY(-2deg); border-right: 1px solid rgba(0,0,0,.6); }
.stage-curtain--right { right: -3vw; transform: skewY(2deg); border-left: 1px solid rgba(0,0,0,.6); }
.stage-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30vh;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65) 80%);
}
.stage-glow {
  position: absolute; left: 50%; top: 8vh; transform: translateX(-50%);
  width: 70vw; height: 60vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 183, 64, 0.18), transparent 70%);
  filter: blur(10px);
  animation: stageBreath 7s ease-in-out infinite alternate;
}
@keyframes stageBreath {
  from { opacity: .55; transform: translate(-50%, 0) scale(0.96); }
  to   { opacity: .85; transform: translate(-50%, -2vh) scale(1.04); }
}
.stage-grain {
  position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.84 0 0 0 0 0.62 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stage-spotlights .spot {
  position: absolute; width: 60vw; height: 70vh;
  background: radial-gradient(closest-side, rgba(247, 210, 125, 0.22), transparent 70%);
  filter: blur(18px); pointer-events: none; opacity: 0.55;
  mix-blend-mode: screen;
}
.spot.s1 { top: -10vh; left: -10vw; animation: spotDrift1 22s ease-in-out infinite alternate; }
.spot.s2 { bottom: -15vh; right: -15vw; animation: spotDrift2 28s ease-in-out infinite alternate; }
.spot.s3 { top: 30vh; left: 35vw; width: 35vw; height: 40vh; animation: spotDrift3 19s ease-in-out infinite alternate; }
@keyframes spotDrift1 { from { transform: translate(0, 0); } to { transform: translate(8vw, 5vh); } }
@keyframes spotDrift2 { from { transform: translate(0, 0); } to { transform: translate(-10vw, -6vh); } }
@keyframes spotDrift3 { from { transform: translate(-3vw, -2vh) scale(1); opacity: 0.4; } to { transform: translate(4vw, 3vh) scale(1.1); opacity: 0.7; } }

/* ===== 顶部状态栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; gap: 24px;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.85), rgba(8, 8, 10, 0.55) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-glyph {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--amber);
  background: linear-gradient(140deg, rgba(244,183,64,.18), rgba(244,183,64,.04));
  border: 1px solid rgba(244,183,64,.35);
  box-shadow: 0 0 24px rgba(244,183,64,.25), inset 0 0 18px rgba(244,183,64,.18);
}
.brand strong { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.brand small { display: block; font-family: var(--mono); font-size: 11px; color: var(--paper-3); letter-spacing: .12em; text-transform: uppercase; }

.topbar-meta { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper-2);
  padding: 7px 12px; border-radius: 999px;
  background: rgba(236, 228, 211, 0.04);
  border: 1px solid var(--line);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-3); display: inline-block; }
.dot--ok { background: var(--amber); box-shadow: 0 0 10px rgba(244,183,64,.7); animation: dotBlink 2.4s ease-in-out infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--paper-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  transition: all .25s ease;
  text-decoration: none;
}
.ghost:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.top-jump {
  color: var(--amber-soft);
  border-color: rgba(244, 183, 64, 0.36);
  background: rgba(244, 183, 64, 0.08);
}

/* ===== 通用 act ===== */
.act { position: relative; z-index: 1; padding: 120px 6vw; }
@media (max-width: 1100px) { .act { padding: 80px 5vw; } }

/* ============================================================
   ACT 1 · HERO
   ============================================================ */
.act-hero { padding-top: 80px; min-height: calc(100vh - 70px); display: flex; align-items: center; }
.hero-grid {
  width: 100%; max-width: 1320px; margin: 0 auto;
  display: grid; gap: 36px;
}
.hero-eyebrow {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .35em; color: var(--paper-3);
}
.eb-line { height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .6; }
.eb-text { white-space: nowrap; }

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 9.2vw, 144px);
  line-height: 0.96;
  margin: 0;
  letter-spacing: -0.01em;
  text-align: center;
}
.ht-row { display: block; }
.ht-row[data-row="2"] { transform: translateX(0.4em); margin-top: -0.06em; }
.ht-word {
  display: inline-block; padding: 0 0.06em;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ht-accent {
  background: linear-gradient(180deg, var(--amber) 0%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(244,183,64,.25);
}
.ht-italic { font-style: italic; font-family: "Cormorant Garamond", var(--display); font-weight: 600; }

.hero-lede {
  max-width: 680px; margin: 0 auto;
  font-size: 19px; color: var(--paper-2); text-align: center; line-height: 1.7;
  font-weight: 400;
}
.hero-lede em { color: var(--amber-soft); font-style: normal; font-weight: 600; border-bottom: 1px dashed rgba(244,183,64,.5); padding-bottom: 1px; }

.hero-meta {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center; gap: 18px;
  max-width: 1100px; margin: 12px auto 0; padding: 22px 28px;
  background: linear-gradient(180deg, rgba(20,18,14,.65), rgba(20,18,14,.35));
  border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(8px);
}
.meta-cell { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.meta-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .25em; color: var(--paper-3); }
.meta-value { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--paper); display: flex; align-items: baseline; gap: 8px; }
.meta-value b { font-size: 40px; font-weight: 600; color: var(--amber); font-feature-settings: "tnum"; }
.meta-value small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; color: var(--paper-3); text-transform: uppercase; }
.meta-divider { width: 1px; height: 36px; background: var(--line-2); }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; isolation: isolate; overflow: hidden;
  margin: 12px auto 0; padding: 22px 38px;
  border: 1px solid var(--amber); border-radius: 999px; background: transparent;
  font-family: var(--display); font-size: 22px; color: var(--ink);
  letter-spacing: .01em;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 30px 60px -20px rgba(244,183,64,.5), 0 0 0 1px rgba(244,183,64,.4) inset;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--amber) 0%, var(--gold) 50%, var(--amber-2) 100%);
  background-size: 200% 200%;
  animation: ctaBg 5s ease-in-out infinite alternate;
}
@keyframes ctaBg { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.cta-text { font-weight: 600; }
.cta-arrow { display: inline-block; margin-left: 14px; font-family: var(--mono); font-size: 18px; transition: transform .3s; }
.cta:hover { transform: translateY(-3px); }
.cta:hover .cta-arrow { transform: translateX(6px); }

.hero-case-switch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -6px;
}
.hero-case-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(236, 228, 211, 0.06);
  color: var(--paper-2);
  text-decoration: none;
  font-size: 14px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.hero-case-switch button:hover {
  transform: translateY(-1px);
  border-color: rgba(236, 228, 211, 0.5);
  background: rgba(236, 228, 211, 0.12);
  color: var(--paper);
}
.hero-case-switch button.is-hot {
  color: var(--amber-soft);
  border-color: rgba(244, 183, 64, 0.42);
  background: linear-gradient(135deg, rgba(244, 183, 64, 0.18), rgba(210, 74, 44, 0.12));
}

.hero-floor {
  margin-top: 42px;
  border-top: 1px dashed var(--line-2); padding-top: 22px;
  overflow: hidden; position: relative;
}
.ticker {
  display: flex; gap: 28px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; color: var(--paper-3); letter-spacing: .12em;
  animation: tickerSlide 38s linear infinite;
}
.ticker span:nth-child(2n) { color: var(--amber); }
@keyframes tickerSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   ACT 2 · TERMINAL + TREATMENT
   ============================================================ */
.act-prompt {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px;
  align-items: stretch;
  max-width: 1320px; margin: 0 auto;
}
@media (max-width: 1000px) { .act-prompt { grid-template-columns: 1fr; } }

.terminal {
  background: linear-gradient(180deg, rgba(14,15,18,.96), rgba(14,15,18,.78));
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 50px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(244,183,64,.06) inset;
}
.terminal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.dotmac { width: 11px; height: 11px; border-radius: 50%; }
.dotmac--r { background: #ff5f56; }
.dotmac--y { background: #ffbd2e; }
.dotmac--g { background: #27c93f; }
.terminal-title { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--paper-3); letter-spacing: .08em; }

.terminal-body { padding: 36px 32px; flex: 1; display: flex; flex-direction: column; gap: 22px; min-height: 360px; }
.prompt-line { display: flex; align-items: flex-start; gap: 14px; font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--paper); }
.prompt-arrow { color: var(--amber); font-family: var(--mono); font-size: 24px; line-height: 1; padding-top: 4px; }
.typed { display: inline; min-height: 1em; }
.caret { display: inline-block; width: 10px; height: 1.1em; background: var(--amber); margin-left: 4px; vertical-align: middle; animation: caretBlink .85s steps(1, end) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

.prompt-meta { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; transform: translateY(12px); }
.prompt-meta span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--paper-3); padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
}

.treatment-card {
  position: relative; isolation: isolate;
  padding: 36px 36px 32px; border-radius: 18px;
  background: linear-gradient(180deg, var(--paper) 0%, #f3eadb 100%);
  color: #1c1810;
  border: 1px solid var(--paper-3);
  box-shadow: 0 60px 100px -40px rgba(0,0,0,.65), 0 0 0 6px rgba(244,183,64,.12);
  overflow: hidden;
}
.treatment-stripe {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--amber), var(--ember));
}
.treatment-card::before {
  content: ""; position: absolute; right: -50px; top: -50px; width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(244,183,64,.35), transparent 75%);
  pointer-events: none;
}
.treatment-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: #6b5a3a;
  margin-bottom: 8px;
}
.treatment-stamp {
  padding: 4px 10px; background: var(--ember); color: var(--paper); border-radius: 4px;
  transform: rotate(-3deg); letter-spacing: .15em;
  box-shadow: 0 6px 14px -6px rgba(176, 51, 25, .8);
}
.treatment-title {
  margin: 4px 0 8px; font-family: var(--display); font-size: 38px; font-weight: 600;
  letter-spacing: -.005em; line-height: 1.1;
}
.treatment-logline { margin: 0 0 22px; font-size: 17px; line-height: 1.7; color: #2c2516; max-width: 56ch; }
.treatment-logline em { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; color: #5a3d12; }

.beats { display: grid; gap: 10px; }
.beats li {
  display: grid; grid-template-columns: 130px 70px 1fr; align-items: baseline; gap: 14px;
  padding: 10px 0; border-top: 1px dashed rgba(28, 24, 16, .25);
  font-size: 15px;
}
.beats li:first-child { border-top: none; }
.beats b { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ember-2); }
.beats span {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em;
  background: rgba(28,24,16,.06); color: #4a3a17; text-transform: uppercase; text-align: center;
}
.beats p { margin: 0; color: #2c2516; line-height: 1.5; font-family: var(--serif); }

/* ============================================================
   ACT 3 · PIPELINE
   ============================================================ */
.act-pipeline { max-width: 1320px; margin: 0 auto; }
.pipeline-head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end;
  margin-bottom: 48px; padding-bottom: 32px;
  border-bottom: 1px solid var(--line-2);
}
@media (max-width: 900px) { .pipeline-head { grid-template-columns: 1fr; } }
.ph-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .35em; color: var(--amber); }
.ph-left h2 { font-family: var(--display); font-size: 56px; line-height: 1.05; margin: 8px 0 14px; font-weight: 500; letter-spacing: -.005em; }
.ph-left p { color: var(--paper-2); margin: 0; max-width: 56ch; }
.ph-left p code { font-family: var(--mono); font-size: 13px; color: var(--amber); background: rgba(244,183,64,.08); padding: 2px 6px; border-radius: 4px; }

.bigprogress { display: flex; align-items: baseline; justify-content: space-between; }
.bp-label { font-family: var(--mono); font-size: 11px; letter-spacing: .25em; color: var(--paper-3); }
.bp-value { font-family: var(--display); font-size: 22px; }
.bp-value b { font-size: 80px; line-height: 1; font-weight: 500; color: var(--amber); font-feature-settings: "tnum"; letter-spacing: -.02em; }
.bp-value small { font-family: var(--mono); font-size: 13px; color: var(--paper-3); letter-spacing: .1em; margin-left: 6px; }
.bp-bar { margin-top: 14px; height: 4px; background: rgba(236,228,211,.08); border-radius: 4px; overflow: hidden; }
.bp-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--amber), var(--gold));
  background-size: 200% 100%;
  box-shadow: 0 0 20px rgba(244,183,64,.5);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
  animation: bpShift 3s ease-in-out infinite alternate;
}
@keyframes bpShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.pipeline-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 1100px) { .pipeline-grid { grid-template-columns: 1fr; } }

.flow { display: grid; gap: 0; counter-reset: flow; position: relative; }
.flow::before {
  content: ""; position: absolute; left: 23px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, transparent, var(--line-2) 6%, var(--line-2) 94%, transparent);
}
.step {
  position: relative; padding: 18px 0 18px 60px;
  border-bottom: 1px dashed var(--line);
  transition: padding-left .4s cubic-bezier(.2,.8,.2,1);
}
.step:last-child { border-bottom: none; }
.step::before {
  content: ""; position: absolute; left: 17px; top: 23px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink-3); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 4px var(--ink);
  transition: all .4s cubic-bezier(.2,.8,.2,1);
}
.step.is-active::before {
  background: var(--amber); border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--ink), 0 0 16px rgba(244,183,64,.8);
  animation: stepPulse 1.6s ease-in-out infinite;
}
.step.is-done::before {
  background: var(--paper); border-color: var(--paper); box-shadow: 0 0 0 4px var(--ink);
}
.step.is-done { opacity: 0.78; }
@keyframes stepPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.step-num {
  position: absolute; left: 0; top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--paper-3);
  font-feature-settings: "tnum";
  width: 14px; text-align: right;
}
.step-body { display: grid; gap: 5px; }
.step-title { font-family: var(--display); font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--paper); }
.step-desc { color: var(--paper-2); font-size: 14.5px; line-height: 1.55; max-width: 64ch; }
.step-detail {
  margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--amber-soft); padding: 8px 12px; border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, rgba(244,183,64,.06), transparent 80%);
}
.step-state {
  position: absolute; right: 0; top: 22px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .25em; color: var(--paper-3);
  text-transform: uppercase;
}
.step.is-active .step-state { color: var(--amber); }
.step.is-done .step-state { color: var(--paper); }

/* step inline-assets row */
.step-inline {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}
.inline-thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--ink-2);
  position: relative;
}
.inline-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inline-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(244,183,64,.18) 50%, transparent 70%);
  background-size: 240% 100%; background-position: 100% 0;
  pointer-events: none;
  animation: thumbShimmer 2.4s ease-in-out infinite;
}
@keyframes thumbShimmer { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

/* ===== Aside cards ===== */
.pipeline-aside { position: sticky; top: 84px; display: grid; gap: 22px; }
.aside-card {
  background: linear-gradient(180deg, rgba(20,19,17,.6), rgba(20,19,17,.3));
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: 18px 18px 20px;
  backdrop-filter: blur(10px);
}
.aside-card header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.aside-card h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0; }
.aside-card header span { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--paper-3); text-transform: uppercase; }
.aside-card header b { color: var(--amber); font-weight: 500; font-feature-settings: "tnum"; }

.entity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ent {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
  transform: scale(.94); opacity: 0;
}
.ent.is-on { animation: entPop .9s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes entPop {
  0% { transform: scale(.7) rotate(-4deg); opacity: 0; filter: blur(6px); }
  60% { transform: scale(1.05) rotate(1.5deg); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.ent img { width: 100%; height: 100%; object-fit: cover; }
.ent-tag {
  position: absolute; left: 6px; bottom: 6px; right: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .15em; color: var(--paper);
  background: rgba(0,0,0,.65); padding: 4px 6px; border-radius: 4px; text-align: center;
  text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 4px;
}
.ent-tag b { color: var(--amber); }
.ent::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(247, 210, 125, .25) 50%, transparent 70%);
  background-size: 240% 100%; background-position: 130% 0;
  opacity: 0; transition: opacity .3s;
}
.ent.is-flash::after { opacity: 1; animation: entFlash 1.2s ease forwards; }
@keyframes entFlash {
  from { background-position: 130% 0; opacity: 1; }
  to { background-position: -50% 0; opacity: 0; }
}

.board-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--ink-2);
}
.board-skeleton {
  position: absolute; inset: 0; padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
  transition: opacity .45s ease;
}
.board-skeleton span {
  background: linear-gradient(120deg, rgba(236,228,211,.06) 25%, rgba(236,228,211,.14) 50%, rgba(236,228,211,.06) 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skelShimmer 1.8s ease infinite;
}
.board-skeleton span:nth-child(2) { animation-delay: -.6s; }
.board-skeleton span:nth-child(3) { animation-delay: -1.2s; }
@keyframes skelShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.board-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.board-frame.is-on .board-skeleton { opacity: 0; }
.board-frame.is-on img { opacity: 1; }
.board-scan {
  position: absolute; left: -10%; right: -10%; top: 0; height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(244,183,64,.5) 50%, transparent 60%);
  filter: blur(2px);
  transform: translateY(-100%);
  pointer-events: none;
}
.board-frame.is-scanning .board-scan { animation: boardScan 1.6s ease forwards; }
@keyframes boardScan {
  from { transform: translateY(-100%); opacity: 1; }
  to { transform: translateY(120%); opacity: 0; }
}

.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2); background: #000;
}
.video-skeleton {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(closest-side, #1a1612, #060606 80%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; color: var(--paper-3);
}
.vs-bars { display: flex; gap: 6px; align-items: flex-end; height: 36px; }
.vs-bars i { display: block; width: 6px; height: 100%; background: var(--amber); border-radius: 2px; transform-origin: bottom; animation: bars 1.1s ease-in-out infinite; opacity: .85; }
.vs-bars i:nth-child(2) { animation-delay: -.15s; height: 70%; }
.vs-bars i:nth-child(3) { animation-delay: -.3s; height: 85%; }
.vs-bars i:nth-child(4) { animation-delay: -.45s; height: 60%; }
.vs-bars i:nth-child(5) { animation-delay: -.6s; height: 90%; }
@keyframes bars { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.video-frame video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.video-frame.is-on video { opacity: 1; }
.video-frame.is-on .video-skeleton { opacity: 0; pointer-events: none; transition: opacity .5s; }
.video-shutter {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 45%, transparent 50%, var(--ink) 55%, var(--ink) 100%);
  background-size: 220% 100%;
  background-position: 0% 0;
  opacity: 0;
}
.video-frame.is-firing .video-shutter { animation: shutterPlay 1.1s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes shutterPlay {
  0% { opacity: 1; background-position: 50% 0; }
  100% { opacity: 0; background-position: -100% 0; }
}

/* ============================================================
   ACT 4 · GALLERY
   ============================================================ */
.act-gallery { max-width: 1320px; margin: 0 auto; }
.gallery-head { margin-bottom: 56px; text-align: left; }
.gh-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .35em; color: var(--ember); }
.gallery-head h2 { font-family: var(--display); font-size: 60px; font-weight: 500; line-height: 1.05; margin: 8px 0 0; }

.gallery { display: grid; gap: 64px; }
.row-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; color: var(--paper-3);
  text-transform: uppercase; margin: 0 0 18px;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line);
}

.entity-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
@media (max-width: 1000px) { .entity-row { grid-template-columns: repeat(3, 1fr); } }
.entity-card {
  position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-2);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s;
}
.entity-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(244,183,64,.4); }
.entity-card img { width: 100%; height: 100%; object-fit: cover; }
.entity-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
.entity-card .ec-meta {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; color: var(--paper); text-transform: uppercase;
}
.entity-card .ec-meta b { color: var(--amber); font-weight: 500; }
.entity-card .ec-name {
  position: absolute; left: 12px; right: 12px; bottom: 32px; z-index: 2;
  font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--paper);
  line-height: 1.15;
}

.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } }
.shot {
  position: relative;
  padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(20,19,17,.6), rgba(20,19,17,.3));
  border: 1px solid var(--line-2);
  display: grid; gap: 8px;
  overflow: hidden;
}
.shot::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--ember));
  transform: scaleY(0); transform-origin: top; transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.shot:hover::before { transform: scaleY(1); }
.shot-id { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--amber); }
.shot-title { font-family: var(--display); font-size: 19px; font-weight: 600; }
.shot-desc { font-size: 13.5px; color: var(--paper-2); line-height: 1.55; }
.shot-time { display: flex; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--paper-3); }
.shot-time b { color: var(--paper-2); font-weight: 500; }

.board-big {
  margin: 0;
  position: relative;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
}
.board-big img { width: 100%; height: auto; display: block; }
.board-big figcaption {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--paper-3);
  background: rgba(0,0,0,.55); padding: 6px 10px; border-radius: 4px;
}

.final-video {
  margin: 0; position: relative;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--amber); background: #000;
  box-shadow: 0 60px 120px -40px rgba(244,183,64,.45), 0 0 0 1px rgba(244,183,64,.3) inset;
}
.final-video video { width: 100%; height: auto; display: block; }
.final-video figcaption {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--paper);
  background: rgba(0,0,0,.55); padding: 6px 10px; border-radius: 4px;
}

/* ============================================================
   ACT 5 · LONG FORM CASE
   ============================================================ */
.act-rust {
  padding-top: 110px;
  border-top: 1px solid var(--line);
}
.rust-head {
  max-width: 1080px;
  margin: 0 auto 44px;
  text-align: center;
}
.rust-head h2 {
  margin: 10px 0 16px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.98;
  font-weight: 500;
  color: var(--paper);
}
.rust-head p {
  max-width: 860px;
  margin: 0 auto;
  color: var(--paper-2);
  font-size: 18px;
  line-height: 1.8;
}
.rust-layout {
  max-width: 1240px;
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
}
.rust-prompt,
.rust-stats,
.rust-assets,
.rust-board,
.rust-video {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,18,14,.72), rgba(20,18,14,.42));
  border-radius: 28px;
  box-shadow: 0 40px 120px -70px rgba(244,183,64,.45), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
}
.rust-prompt {
  padding: 32px;
}
.rust-label {
  display: inline-flex;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.rust-prompt h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 500;
}
.rust-prompt p {
  margin: 0;
  color: var(--paper-2);
  font-size: 17px;
  line-height: 1.85;
}
.rust-prompt p + p {
  margin-top: 16px;
}
.rust-stats {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rust-stats div {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(236,228,211,.05);
  min-height: 132px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.rust-stats b {
  color: var(--amber);
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
}
.rust-stats span {
  color: var(--paper-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.rust-assets,
.rust-board,
.rust-video {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 28px;
}
.rust-entity-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.rust-entity-row figure,
.rust-board-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0,0,0,.24);
}
.rust-entity-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.rust-entity-row figcaption,
.rust-board-grid figcaption {
  color: var(--paper-2);
  font-size: 13px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.rust-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rust-board-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.rust-video .final-video {
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .rust-layout,
  .rust-board-grid {
    grid-template-columns: 1fr;
  }
  .rust-entity-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .rust-entity-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rust-stats {
    grid-template-columns: 1fr;
  }
  .rust-prompt,
  .rust-assets,
  .rust-board,
  .rust-video {
    padding: 18px;
  }
}

/* ============================================================
   FOOTER + HUD + SCROLL
   ============================================================ */
.endbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 36px 6vw; gap: 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.4));
  position: relative; z-index: 1;
}
.endbar strong { font-family: var(--display); font-size: 22px; }
.endbar small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--paper-3); margin-top: 4px; }
.end-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.end-meta span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; color: var(--paper-3);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 60;
  background: linear-gradient(90deg, var(--ember), var(--amber), var(--gold));
  box-shadow: 0 0 12px var(--amber);
  transition: width .15s linear;
}

.hud {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 80px);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(8,8,10,.85);
  border: 1px solid var(--amber);
  box-shadow: 0 20px 40px -20px rgba(244,183,64,.5);
  font-family: var(--mono); font-size: 12px; letter-spacing: .15em; color: var(--paper); text-transform: uppercase;
  opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s; z-index: 50;
  backdrop-filter: blur(8px);
}
.hud.is-on { opacity: 1; transform: translate(-50%, 0); }
.hud-num b { color: var(--amber); font-weight: 600; font-feature-settings: "tnum"; }
.hud-text { white-space: nowrap; }

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   ADDED · v2 润色
   ============================================================ */

/* hero 用户原话胶囊 */
.hero-userline {
  margin: -8px auto 0;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(244,183,64,.14), rgba(210,74,44,.10));
  border: 1px solid rgba(244,183,64,.35);
  align-self: center;
  width: max-content; max-width: 92vw;
  font-family: var(--serif);
  box-shadow: 0 18px 40px -22px rgba(244,183,64,.45), inset 0 0 0 1px rgba(244,183,64,.08);
  position: relative; overflow: hidden;
}
.hero-userline::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(247,210,125,.25) 50%, transparent 70%);
  background-size: 220% 100%; background-position: 130% 0;
  animation: hu-shimmer 4.2s ease-in-out infinite;
}
@keyframes hu-shimmer { 0%, 60% { background-position: 130% 0; } 100% { background-position: -50% 0; } }
.hu-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; color: var(--paper-3);
  text-transform: uppercase;
  padding-right: 12px; border-right: 1px dashed var(--line-2);
}
.hu-quote { font-size: 17px; color: var(--paper); }
.hu-quote b {
  color: var(--amber-soft); font-weight: 600; font-family: var(--display); font-size: 18px;
  font-style: italic;
}

/* CTA hint */
.cta-hint {
  margin: 14px auto 0; text-align: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--paper-3);
}

/* 终端：双行 + 提示 + 关键词高亮 */
.prompt-hint {
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em;
  color: var(--paper-3); text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line);
  margin-bottom: 6px;
}
.prompt-line { padding: 4px 0; }
.typed mark {
  background: linear-gradient(120deg, rgba(244,183,64,.42) 0%, rgba(244,183,64,.18) 100%);
  color: var(--amber-soft);
  padding: 0 4px; border-radius: 3px;
  font-weight: 600;
  position: relative;
  box-shadow: 0 0 0 1px rgba(244,183,64,.25), 0 0 22px rgba(244,183,64,.25);
  animation: markPulse 2.8s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(244,183,64,.25), 0 0 14px rgba(244,183,64,.18); }
  50%      { box-shadow: 0 0 0 1px rgba(244,183,64,.55), 0 0 26px rgba(244,183,64,.45); }
}

/* 巡演控制条 */
.tour-bar {
  position: fixed; right: 22px; top: 86px; z-index: 55;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20,16,8,.92), rgba(8,8,10,.92));
  border: 1px solid rgba(244,183,64,.55);
  box-shadow: 0 26px 50px -25px rgba(244,183,64,.45), inset 0 0 0 1px rgba(244,183,64,.12);
  backdrop-filter: blur(14px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--paper);
  text-transform: uppercase;
  opacity: 0; transform: translateY(-12px) scale(.96);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.tour-bar.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tour-label { color: var(--amber); font-weight: 600; }
.tour-track { width: 140px; height: 3px; background: rgba(236,228,211,.12); border-radius: 4px; overflow: hidden; }
.tour-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--ember), var(--amber), var(--gold)); box-shadow: 0 0 12px rgba(244,183,64,.6); transition: width .12s linear; }
.tour-time b { font-family: var(--mono); color: var(--amber); font-weight: 600; font-feature-settings: "tnum"; }
.tour-time small { color: var(--paper-3); margin-left: 2px; }
.tour-stop {
  background: transparent; border: 1px solid var(--line-2); color: var(--paper-2);
  padding: 4px 10px; border-radius: 999px; font: inherit; cursor: pointer;
  transition: all .25s;
}
.tour-stop:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* 鼠标暖光 */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 480px; height: 480px;
  margin-left: -240px; margin-top: -240px;
  pointer-events: none; z-index: 2;
  background: radial-gradient(closest-side, rgba(244,183,64,.18), rgba(244,183,64,.06) 35%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(20px);
  transform: translate(-9999px, -9999px);
  transition: opacity .4s ease;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-glow { opacity: 1; }
}

/* entity 悬浮 tilt 用 transition */
.entity-card { will-change: transform; }
.entity-card .ec-stamp {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .25em;
  color: var(--paper); background: rgba(0,0,0,.55);
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(244,183,64,.4);
  text-transform: uppercase;
  z-index: 3;
}

/* 标题 hover 暖光跟随（极轻） */
.hero-title { position: relative; }
.hero-title::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 90%; height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(244,183,64,.18), transparent 70%);
  pointer-events: none; filter: blur(40px);
  z-index: -1;
}

/* 运行中：禁用平滑滚动以让 GSAP 接管 */
html.is-touring { scroll-behavior: auto !important; }
.is-touring .cta { pointer-events: none; }

/* ============================================================
   MOBILE LAYOUT · public demo
   ============================================================ */
@media (max-width: 760px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .stage-vignette::before {
    background:
      radial-gradient(ellipse 95% 60% at 50% 12%, rgba(244, 183, 64, 0.12), transparent 62%),
      linear-gradient(180deg, #08080a 0%, #0c0a08 55%, #080706 100%);
  }
  .stage-curtain {
    display: none;
  }
  .stage-glow {
    width: 110vw;
    height: 42vh;
    animation: none;
    opacity: .45;
  }
  .stage-grain,
  .stage-floor,
  .stage-spotlights {
    display: none;
  }
  .spot {
    filter: blur(38px);
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 10px;
  }
  .brand {
    min-width: 0;
  }
  .brand-glyph {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex: 0 0 auto;
  }
  .brand strong {
    display: block;
    max-width: 54vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 20px;
  }
  .brand small,
  .topbar-meta .pill {
    display: none;
  }
  .topbar-meta {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  #btn-replay {
    display: none;
  }
  .ghost {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
    letter-spacing: .04em;
  }
  .top-jump {
    display: none;
  }

  .act {
    padding: 68px 18px;
  }
  .act-hero {
    min-height: auto;
    padding-top: 34px;
    align-items: flex-start;
  }
  .hero-grid {
    gap: 22px;
  }
  .hero-eyebrow {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    font-size: 9.5px;
    letter-spacing: .16em;
  }
  .eb-line {
    display: none;
  }
  .eb-text {
    white-space: normal;
  }
  .hero-title {
    font-size: clamp(31px, 8.9vw, 38px);
    line-height: 1.02;
    letter-spacing: 0;
  }
  .ht-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .015em;
  }
  .ht-word {
    padding: 0 .02em;
  }
  .ht-row[data-row="2"] {
    transform: none;
    margin-top: .04em;
  }
  .hero-lede {
    max-width: none;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
  }
  .hero-userline {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 8px;
    border-radius: 18px;
    padding: 13px 14px;
  }
  .hu-label {
    border-right: 0;
    padding-right: 0;
    font-size: 10px;
    letter-spacing: .16em;
  }
  .hu-quote,
  .hu-quote b {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }
  .meta-divider {
    display: none;
  }
  .meta-cell {
    align-items: flex-start;
    text-align: left;
    padding: 12px;
    min-height: 88px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(236, 228, 211, .035);
  }
  .meta-label {
    font-size: 9px;
    letter-spacing: .16em;
  }
  .meta-value {
    display: grid;
    gap: 4px;
    font-size: 22px;
  }
  .meta-value b {
    font-size: 34px;
  }
  .meta-value small {
    font-size: 9.5px;
    line-height: 1.4;
  }

  .cta {
    width: 100%;
    min-height: 58px;
    margin-top: 4px;
    padding: 15px 18px;
    font-size: 18px;
    line-height: 1.35;
  }
  .cta-bg,
  .hero-userline::before,
  .typed mark,
  .inline-thumb::after,
  .dot--ok,
  .ticker {
    animation: none;
  }
  .cta-text {
    display: block;
  }
  .hero-case-switch {
    width: 100%;
    gap: 8px;
    margin-top: -2px;
  }
  .hero-case-switch button {
    flex: 1 1 145px;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
  }
  .cta-hint {
    max-width: 32em;
    font-size: 10.5px;
    line-height: 1.65;
    letter-spacing: .08em;
  }
  .hero-floor {
    margin-top: 18px;
    padding-top: 14px;
  }
  .ticker {
    gap: 18px;
    font-size: 10px;
  }

  .act-prompt {
    gap: 22px;
  }
  .terminal,
  .treatment-card {
    border-radius: 16px;
  }
  .terminal-head {
    padding: 10px 12px;
  }
  .terminal-title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10.5px;
  }
  .terminal-body {
    min-height: auto;
    padding: 22px 18px;
    gap: 16px;
  }
  .prompt-line {
    gap: 9px;
    font-size: 17px;
    line-height: 1.65;
    word-break: break-word;
  }
  .prompt-arrow {
    font-size: 18px;
    padding-top: 6px;
  }
  .prompt-meta {
    gap: 8px;
  }
  .prompt-meta span {
    font-size: 9.5px;
    letter-spacing: .08em;
  }
  .treatment-card {
    padding: 24px 20px 22px;
  }
  .treatment-head {
    display: grid;
    gap: 8px;
    align-items: start;
    font-size: 9.5px;
    letter-spacing: .14em;
  }
  .treatment-stamp {
    width: max-content;
  }
  .treatment-title {
    font-size: 30px;
  }
  .treatment-logline {
    font-size: 15.5px;
  }
  .beats li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 0;
  }
  .beats span {
    width: max-content;
  }

  .pipeline-head {
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 22px;
  }
  .ph-eyebrow,
  .gh-eyebrow {
    font-size: 9.5px;
    letter-spacing: .18em;
  }
  .ph-left h2,
  .gallery-head h2 {
    font-size: clamp(34px, 12vw, 48px);
  }
  .bigprogress {
    display: grid;
    gap: 8px;
  }
  .bp-value b {
    font-size: 58px;
  }
  .pipeline-grid {
    gap: 28px;
  }
  .flow::before {
    left: 15px;
  }
  .step {
    padding: 16px 0 16px 42px;
  }
  .step::before {
    left: 9px;
  }
  .step-num {
    left: 0;
    width: 13px;
    font-size: 10px;
  }
  .step-title {
    padding-right: 0;
    font-size: 20px;
  }
  .step-state {
    position: static;
    width: max-content;
    margin-top: 8px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 9.5px;
    letter-spacing: .12em;
  }
  .step-detail {
    font-size: 11px;
    line-height: 1.55;
  }
  .step-inline {
    gap: 8px;
  }
  .inline-thumb {
    width: 58px;
    height: 58px;
  }
  .pipeline-aside {
    position: relative;
    top: auto;
  }
  .aside-card {
    padding: 15px;
  }
  .entity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery {
    gap: 42px;
  }
  .gallery-head {
    margin-bottom: 34px;
  }
  .entity-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .entity-card {
    border-radius: 13px;
  }
  .entity-card .ec-name {
    font-size: 16px;
  }
  .entity-card .ec-meta {
    font-size: 9px;
  }
  .board-big,
  .final-video {
    border-radius: 16px;
  }
  .board-big figcaption,
  .final-video figcaption {
    position: static;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: rgba(0,0,0,.72);
    font-size: 9.5px;
    line-height: 1.5;
    letter-spacing: .08em;
  }
  .final-video video {
    min-height: 210px;
    object-fit: contain;
  }

  .act-rust {
    padding-top: 72px;
  }
  .rust-head {
    margin-bottom: 26px;
    text-align: left;
  }
  .rust-head h2 {
    font-size: clamp(34px, 12vw, 50px);
    line-height: 1.08;
  }
  .rust-head p {
    font-size: 16px;
    line-height: 1.75;
  }
  .rust-layout {
    gap: 16px;
  }
  .rust-prompt,
  .rust-assets,
  .rust-board,
  .rust-video {
    padding: 16px;
    border-radius: 18px;
  }
  .rust-prompt h3 {
    font-size: 24px;
    line-height: 1.2;
  }
  .rust-prompt p {
    font-size: 15px;
  }
  .rust-stats {
    gap: 10px;
  }
  .rust-stats div {
    padding: 16px;
    min-height: 96px;
  }
  .rust-stats b {
    font-size: 38px;
  }
  .rust-entity-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .rust-entity-row figure,
  .rust-board-grid figure {
    border-radius: 16px;
  }
  .rust-entity-row figcaption,
  .rust-board-grid figcaption {
    font-size: 12px;
    line-height: 1.4;
  }
  .rust-board-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rust-board-grid img {
    aspect-ratio: 16 / 11;
  }
  .row-title {
    font-size: 9.5px;
    letter-spacing: .16em;
    line-height: 1.5;
  }

  .endbar {
    display: grid;
    gap: 18px;
    padding: 28px 18px 38px;
  }
  .end-meta {
    gap: 8px;
  }
  .end-meta span {
    font-size: 9px;
    letter-spacing: .12em;
  }
  .tour-bar {
    display: none !important;
  }
  .hud {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding-inline: 12px;
  }
  .brand strong {
    max-width: 46vw;
    font-size: 18px;
  }
  .top-jump {
    max-width: 96px;
  }
  .ghost {
    padding-inline: 9px;
    font-size: 10px;
  }
  .act {
    padding-inline: 14px;
  }
  .hero-meta {
    grid-template-columns: 1fr;
  }
  .meta-cell {
    min-height: auto;
  }
  .entity-row,
  .rust-entity-row {
    grid-template-columns: 1fr;
  }
  .final-video video {
    min-height: 190px;
  }
}
