/* ============================================================
   CHRONICLES OF BONE — design tokens + chrome
   ============================================================ */
:root {
  --bg: #020204;
  --bg-1: #07060a;
  --bg-2: #0d0a0e;
  --copper: #d7a16f;
  --copper-deep: #a67149;
  --copper-shadow: #3d2615;
  --amber: #f5c79a;
  --ember: #ff8a3a;
  --ink: #f1e7dc;
  --ink-dim: rgba(241, 231, 220, 0.62);
  --ink-faint: rgba(241, 231, 220, 0.32);
  --ink-ghost: rgba(241, 231, 220, 0.14);

  --glass-bg: rgba(20, 14, 10, 0.55);
  --glass-bg-strong: rgba(12, 8, 6, 0.78);
  --glass-border: rgba(215, 161, 111, 0.22);
  --glass-border-soft: rgba(215, 161, 111, 0.1);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-sans: "Outfit", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --rail-w: 92px;
  --act-pad-x: clamp(48px, 6vw, 120px);

  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.005em;
  overflow: hidden;            /* horizontal strip controls scroll */
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- root atmosphere ---------- */
.atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(1200px 800px at var(--mx, 50%) var(--my, 50%),
      rgba(215, 161, 111, 0.16),
      rgba(215, 161, 111, 0.04) 35%,
      transparent 65%),
    radial-gradient(140% 90% at 50% 110%,
      rgba(166, 113, 73, 0.18),
      transparent 60%),
    linear-gradient(180deg, #050307 0%, #020204 55%, #07060a 100%);
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.013) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.7;
}

/* film grain noise */
.noise {
  position: fixed; inset: -10%; pointer-events: none; z-index: 2;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.84 0 0 0 0 0.63 0 0 0 0 0.43 0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.32;
  mix-blend-mode: overlay;
  animation: grain 1.6s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(4%, -1%); }
  60% { transform: translate(-2%, 3%); }
  80% { transform: translate(3%, -2%); }
  100% { transform: translate(0, 0); }
}
.no-noise .noise { display: none; }

/* vignette */
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.7) 100%);
}

/* ---------- cursor ring ---------- */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9000;
  width: 38px; height: 38px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 220ms var(--ease-cinema), height 220ms var(--ease-cinema),
              background 220ms var(--ease-cinema), opacity 200ms;
  mix-blend-mode: screen;
  box-shadow: 0 0 24px rgba(215, 161, 111, 0.25), inset 0 0 6px rgba(215,161,111,0.15);
}
.cursor-ring::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 4px; height: 4px; background: var(--copper);
  border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--copper);
}
.cursor-ring.is-hot {
  width: 84px; height: 84px;
  background: rgba(215, 161, 111, 0.06);
  border-color: var(--amber);
}
.cursor-ring.is-text {
  width: 14px; height: 22px; border-radius: 2px;
}
.no-cursor .cursor-ring { display: none; }
.no-cursor, .no-cursor * { cursor: auto !important; }
body:not(.no-cursor) { cursor: none; }
body:not(.no-cursor) * { cursor: none; }

/* hide on touch */
@media (hover: none) {
  .cursor-ring { display: none; }
  body, body * { cursor: auto !important; }
}

/* ============================================================
   LAYOUT — film strip
   ============================================================ */
.stage {
  position: relative; z-index: 5;
  width: 100vw; height: 100vh; overflow: hidden;
}
.strip {
  position: relative;
  display: flex; flex-direction: row;
  width: max-content; height: 100vh;
  will-change: transform;
  transition: transform 1100ms var(--ease-cinema);
}
.act {
  position: relative;
  width: 100vw; height: 100vh;
  padding: 48px var(--act-pad-x) 100px calc(var(--rail-w) + var(--act-pad-x));
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.act > .act-head, .act > .act-foot, .act > .ticker, .act > .hero-foot,
.act > .upscale-bar, .act > .stack-foot, .act > .params { flex-shrink: 0; }
.act-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
}

/* film strip perforations on top/bottom edges of stage */
.perf {
  position: fixed; left: 0; right: 0; z-index: 6;
  height: 22px; pointer-events: none;
  background-image:
    radial-gradient(circle at 12px 50%, rgba(0,0,0,0.95) 4px, transparent 4.5px);
  background-size: 36px 22px;
  background-repeat: repeat-x;
  opacity: 0.45;
}
.perf.top { top: 0; }
.perf.bot { bottom: 0; transform: scaleY(-1); }

/* ============================================================
   NAVIGATION — side rail
   ============================================================ */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w);
  z-index: 50; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 0 28px;
}
.rail > * { pointer-events: auto; }
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(245,199,154,0.35), transparent 60%),
    radial-gradient(circle at 65% 70%, rgba(215,161,111,0.4), transparent 65%),
    #0a0608;
  box-shadow: 0 0 22px rgba(215,161,111,0.35), inset 0 0 8px rgba(0,0,0,0.6);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, transparent 0 60deg, var(--copper) 60deg 64deg, transparent 64deg 180deg, var(--amber) 180deg 184deg, transparent 184deg 360deg);
  opacity: 0.9; mix-blend-mode: screen;
}
.brand-name {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.32em;
  color: var(--ink-dim); writing-mode: vertical-rl; transform: rotate(180deg);
  margin-top: 6px;
}

.rail-acts {
  margin-top: auto; margin-bottom: auto;
  display: flex; flex-direction: column; gap: 20px;
  align-items: center;
}
.rail-act {
  display: flex; align-items: center; gap: 10px;
  position: relative; padding: 8px 4px;
}
.rail-numeral {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  width: 36px; text-align: center;
  transition: color 350ms, transform 400ms var(--ease-cinema);
}
.rail-label {
  position: absolute; left: 44px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 280ms, transform 320ms var(--ease-cinema);
  pointer-events: none;
}
.rail-act:hover .rail-label,
.rail-act.is-active .rail-label { opacity: 1; transform: translateX(0); }
.rail-act:hover .rail-numeral { color: var(--amber); }
.rail-act.is-active .rail-numeral {
  color: var(--copper);
  text-shadow: 0 0 18px rgba(215,161,111,0.55);
}
.rail-act .tick {
  position: absolute; left: -12px; top: 50%; width: 8px; height: 1px;
  background: var(--copper); opacity: 0; transform: translateY(-50%);
  transition: opacity 200ms, width 320ms var(--ease-cinema);
}
.rail-act.is-active .tick { opacity: 1; width: 18px; }

.rail-foot {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 8.5px;
  letter-spacing: 0.3em; color: var(--ink-faint);
}
.cinema-toggle {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  position: relative;
  transition: border-color 320ms, box-shadow 320ms;
}
.cinema-toggle:hover { border-color: var(--copper); box-shadow: 0 0 28px rgba(215,161,111,0.35); }
.cinema-toggle .bars {
  display: flex; align-items: end; gap: 2px; height: 14px;
}
.cinema-toggle .bars span {
  width: 2px; background: var(--copper); border-radius: 1px;
  animation: eq 1.1s ease-in-out infinite;
}
.cinema-toggle .bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.cinema-toggle .bars span:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.cinema-toggle .bars span:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.cinema-toggle .bars span:nth-child(4) { height: 75%; animation-delay: 0.45s; }
.cinema-toggle.muted .bars span { animation-play-state: paused; opacity: 0.35; }
.cinema-toggle .lbl {
  font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.3em;
  color: var(--ink-dim);
}
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ============================================================
   TOP META BAR
   ============================================================ */
.topbar {
  position: fixed; top: 22px; right: 32px; z-index: 60;
  display: flex; gap: 18px; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.28em; color: var(--ink-dim);
}
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 8px var(--copper);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.topbar .sep { width: 1px; height: 14px; background: var(--glass-border); }

/* ============================================================
   META — generic
   ============================================================ */
.meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.meta-strong { color: var(--copper); }
.meta-row {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.meta-row > span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row .crumb::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  background: var(--copper); border-radius: 50%; margin-right: 8px;
  box-shadow: 0 0 8px var(--copper);
}
.meta-row .crumb { letter-spacing: 0.22em; }

.divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
}

/* ============================================================
   ACT I — HERO
   ============================================================ */
.hero-center {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(180deg, var(--amber) 0%, var(--copper) 55%, var(--copper-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 50px rgba(215,161,111,0.25);
}
.hero-title .frag { display: block; }
.hero-title .frag.indent { padding-left: clamp(40px, 8vw, 140px); }
.hero-title .frag.label {
  font-size: 0.18em;
  letter-spacing: 0.32em;
  color: var(--copper);
  font-weight: 500;
  margin-top: 0.6em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-right { display: flex; flex-direction: column; gap: 22px; }
.hero-sub {
  margin: 0;
  max-width: 44ch;
  font-family: var(--font-sans); font-weight: 300;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.55;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.hero-cta-row {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}

/* magnetic launch button */
.launch {
  position: relative;
  padding: 22px 38px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--copper);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(215,161,111,0.08), rgba(215,161,111,0.02));
  display: inline-flex; align-items: center; gap: 18px;
  isolation: isolate;
  transition: transform 320ms var(--ease-cinema), border-color 320ms;
  overflow: visible;
}
.launch::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(245,199,154,0.55), rgba(215,161,111,0.18) 40%, transparent 70%);
  opacity: 0; transition: opacity 380ms var(--ease-cinema);
  z-index: -1; filter: blur(14px);
}
.launch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--bmx, 50%) var(--bmy, 50%), rgba(245,199,154,0.25), transparent 55%);
  opacity: 0; transition: opacity 320ms;
}
.launch:hover { border-color: var(--amber); }
.launch:hover::before { opacity: 1; }
.launch:hover::after { opacity: 1; }
.launch .arrow {
  width: 30px; height: 1px; background: var(--copper); position: relative;
  transition: width 320ms var(--ease-cinema);
}
.launch .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 8px; height: 1px; background: var(--copper);
  transform-origin: right; transform: translateY(-50%) rotate(35deg);
}
.launch .arrow::before {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 8px; height: 1px; background: var(--copper);
  transform-origin: right; transform: translateY(-50%) rotate(-35deg);
}
.launch:hover .arrow { width: 46px; }

.secondary-cta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid transparent;
  transition: color 220ms, border-color 220ms;
}
.secondary-cta:hover { color: var(--copper); border-color: var(--copper); }
.secondary-cta .play {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-grid; place-items: center;
}
.secondary-cta .play::after {
  content: ""; width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  margin-left: 2px;
}

/* ticker */
.ticker {
  position: relative;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(8,5,4,0.6), rgba(8,5,4,0.2));
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.ticker-track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: tickerScroll 48s linear infinite;
  width: max-content;
}
.ticker-item {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 14px;
}
.ticker-item .marker {
  width: 6px; height: 6px; background: var(--copper);
  display: inline-block;
}
.ticker-item .marker.warn { background: var(--amber); transform: rotate(45deg); }
.ticker-item .marker.live { border-radius: 50%; box-shadow: 0 0 8px var(--copper); }
.ticker-item .copper { color: var(--copper); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-foot {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 20px;
  align-items: end;
  padding-top: 6px;
}
.hero-stat .num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 1.8vw, 30px);
  letter-spacing: -0.03em;
  color: var(--amber);
  line-height: 1;
}
.hero-stat .lbl {
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 8.5px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint);
}
.ticker { padding: 10px 0; }
.ticker-item { font-size: 10px; }

/* ============================================================
   ACT II — PROMPT BLADE DECONSTRUCTOR
   ============================================================ */
.act-deconstruct {
  grid-template-rows: auto 1fr auto;
}
.deconstruct-grid {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 440px);
  gap: 24px;
}

/* cinematic frame — 21:9 letterbox, height-constrained */
.frame {
  position: relative;
  aspect-ratio: 21 / 9;
  height: 100%;
  max-width: 100%;
  width: auto;
  margin: auto;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(215,161,111,0.42), transparent 55%),
    radial-gradient(40% 40% at 50% 60%, rgba(245,199,154,0.25), transparent 70%),
    radial-gradient(120% 70% at 50% 0%, rgba(0,0,0,0.6), transparent 60%),
    linear-gradient(180deg, #0a0708 0%, #15100c 50%, #2a1a10 100%);
  overflow: hidden;
  box-shadow: 0 30px 120px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.6);
  border-radius: 2px;
  align-self: center;
  justify-self: center;
}
/* the colossus silhouette — abstract atmospheric placeholder */
.frame .horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(215,161,111,0.08) 30%, rgba(40,22,12,0.7) 100%),
    repeating-linear-gradient(95deg, rgba(215,161,111,0.04) 0 2px, transparent 2px 6px);
}
.frame .colossus {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  width: 22%; height: 78%;
  background:
    radial-gradient(60% 25% at 50% 8%, rgba(245,199,154,0.7), transparent 70%),
    linear-gradient(180deg, rgba(245,199,154,0.5) 0%, rgba(215,161,111,0.4) 30%, rgba(166,113,73,0.3) 60%, transparent 100%);
  filter: blur(1px) drop-shadow(0 0 60px rgba(215,161,111,0.6));
  clip-path: polygon(45% 0%, 55% 0%, 60% 18%, 70% 30%, 64% 48%, 78% 60%, 70% 78%, 62% 100%, 38% 100%, 30% 78%, 22% 60%, 36% 48%, 30% 30%, 40% 18%);
  opacity: 0.85;
}
.frame .dust {
  position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 20% 60%, rgba(245,199,154,0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(245,199,154,0.5), transparent 60%),
    radial-gradient(2px 2px at 80% 70%, rgba(215,161,111,0.7), transparent 60%),
    radial-gradient(1px 1px at 35% 30%, rgba(245,199,154,0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 80%, rgba(245,199,154,0.4), transparent 60%),
    radial-gradient(1px 1px at 90% 20%, rgba(245,199,154,0.5), transparent 60%),
    radial-gradient(2px 2px at 15% 35%, rgba(215,161,111,0.45), transparent 60%);
  animation: dustDrift 18s linear infinite;
  mix-blend-mode: screen;
}
@keyframes dustDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, -10px); }
}
.frame .keylight {
  position: absolute; left: 50%; top: -10%;
  width: 60%; height: 80%; transform: translateX(-50%) rotate(8deg);
  background: radial-gradient(50% 60% at 50% 0%, rgba(245,199,154,0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.frame .frame-noise {
  position: absolute; inset: 0; opacity: 0.45; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='f'><feTurbulence baseFrequency='1.4' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23f)' opacity='0.6'/></svg>");
}

/* frame chrome — slate label, crop ticks */
.frame .slate {
  position: absolute; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.28em; color: var(--ink);
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--glass-border);
  padding: 6px 10px;
  z-index: 4;
}
.frame .slate .clap { color: var(--copper); }
.frame .tc {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.28em; color: var(--copper);
  background: rgba(0,0,0,0.55);
  padding: 6px 10px;
  z-index: 4;
}
.frame .crop {
  position: absolute; width: 14px; height: 14px;
  border-color: rgba(245,199,154,0.6);
  z-index: 4;
}
.frame .crop.tl { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.frame .crop.tr { top: 8px; right: 8px; border-top: 1px solid; border-right: 1px solid; }
.frame .crop.bl { bottom: 8px; left: 8px; border-bottom: 1px solid; border-left: 1px solid; }
.frame .crop.br { bottom: 8px; right: 8px; border-bottom: 1px solid; border-right: 1px solid; }

/* hotspots (pins) */
.pin {
  position: absolute; z-index: 5;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  border: 0; padding: 0;
}
.pin .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--copper);
  animation: pinPulse 2.6s var(--ease-cinema) infinite;
}
.pin .ring.r2 { animation-delay: 0.8s; }
.pin .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--copper);
  box-shadow: 0 0 14px var(--copper);
  z-index: 2;
}
.pin .num {
  position: absolute; left: 42px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.28em; color: var(--ink);
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--glass-border);
  padding: 4px 8px; white-space: nowrap;
  opacity: 0; transition: opacity 220ms;
}
.pin:hover .num, .pin.is-active .num { opacity: 1; }
.pin.is-active .dot { background: var(--amber); box-shadow: 0 0 22px var(--amber); }
.pin.is-active .ring { border-color: var(--amber); }
@keyframes pinPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* quadrant overlay grid hint */
.quad-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(245,199,154,0.08) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(245,199,154,0.08) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

/* deconstructor side panel */
.blade-panel {
  display: flex; flex-direction: column;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  min-height: 0;
  max-height: 100%;
  position: relative;
  overflow: hidden;
}
.blade-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--glass-border-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.blade-head .lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.32em; color: var(--copper); }
.blade-head .idx { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.28em; color: var(--ink-faint); }

.blade-body {
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; min-height: 0;
  overflow: hidden;
}
.blade-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}
.blade-cat {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.32em; color: var(--copper); text-transform: uppercase;
}
.blade-desc {
  font-size: 12px; line-height: 1.5; color: var(--ink-dim);
  text-wrap: pretty;
}

/* terminal */
.terminal {
  margin-top: auto;
  border-top: 1px solid var(--glass-border-soft);
  padding: 12px 18px 14px;
  font-family: var(--font-mono); font-size: 10.5px;
  line-height: 1.5;
  color: var(--amber);
  background: rgba(0,0,0,0.35);
  position: relative;
  min-height: 110px;
  flex-shrink: 0;
}
.terminal .promptline {
  color: var(--copper); margin-bottom: 8px;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
}
.terminal .typed { white-space: pre-wrap; word-break: break-word; }
.terminal .caret {
  display: inline-block; width: 8px; height: 14px; background: var(--amber);
  vertical-align: middle; margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* deconstructor footer params row */
.params {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--glass-border-soft);
}
.params .p {
  padding: 12px 16px;
  border-right: 1px solid var(--glass-border-soft);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.28em;
  color: var(--ink-dim);
}
.params .p:last-child { border-right: 0; }
.params .p b { display: block; color: var(--copper); font-weight: 500; margin-bottom: 4px; }

/* ============================================================
   ACT III — UPSCALE LAB
   ============================================================ */
.act-upscale { grid-template-rows: auto 1fr auto; }
.upscale-wrap {
  position: relative;
  aspect-ratio: 21 / 9;
  flex: 1; min-height: 0;
  height: 100%;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: #050305;
  align-self: center;
  user-select: none;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.upscale-side {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--side-bg, #111);
}
.upscale-side.left { z-index: 1; }
.upscale-side.right {
  z-index: 2;
  clip-path: inset(0 0 0 var(--split, 50%));
}
.upscale-side .img {
  position: absolute; inset: 0;
}
.upscale-side.left .img {
  background:
    radial-gradient(60% 50% at 50% 95%, rgba(166,113,73,0.5), transparent 70%),
    radial-gradient(30% 30% at 50% 50%, rgba(245,199,154,0.18), transparent 70%),
    linear-gradient(180deg, #0a0608 0%, #1a110a 60%, #2a1810 100%);
  filter: blur(0.5px) saturate(0.85);
}
.upscale-side.left .img::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply; opacity: 0.7;
}
.upscale-side.right .img {
  background:
    radial-gradient(50% 35% at 50% 85%, rgba(245,199,154,0.7), transparent 70%),
    radial-gradient(30% 40% at 50% 55%, rgba(245,199,154,0.35), transparent 70%),
    radial-gradient(120% 50% at 50% 0%, rgba(0,0,0,0.45), transparent 60%),
    linear-gradient(180deg, #0a0608 0%, #1a110a 60%, #3a2010 100%);
}
.upscale-side.right .img::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='f'><feTurbulence baseFrequency='1.8' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23f)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay; opacity: 0.6;
}
.upscale-side.right .img::after {
  content: ""; position: absolute; left: 50%; bottom: 5%;
  transform: translateX(-50%);
  width: 22%; height: 78%;
  background:
    radial-gradient(60% 25% at 50% 8%, rgba(255,220,180,0.9), transparent 70%),
    linear-gradient(180deg, rgba(255,220,180,0.7) 0%, rgba(245,199,154,0.5) 30%, rgba(166,113,73,0.4) 60%, transparent 100%);
  filter: drop-shadow(0 0 50px rgba(245,199,154,0.7));
  clip-path: polygon(45% 0%, 55% 0%, 60% 18%, 70% 30%, 64% 48%, 78% 60%, 70% 78%, 62% 100%, 38% 100%, 30% 78%, 22% 60%, 36% 48%, 30% 30%, 40% 18%);
}

.upscale-tag {
  position: absolute; top: 18px; z-index: 5;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.32em;
  background: rgba(0,0,0,0.6); padding: 8px 12px;
  border: 1px solid var(--glass-border);
}
.upscale-tag.left { left: 18px; color: var(--ink-dim); }
.upscale-tag.right { right: 18px; color: var(--amber); }
.upscale-tag b { display: block; color: var(--copper); font-size: 8px; letter-spacing: 0.36em; margin-bottom: 3px; font-weight: 500; }

.upscale-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--split, 50%); transform: translateX(-50%);
  width: 2px; background: var(--copper);
  box-shadow: 0 0 24px rgba(215,161,111,0.6);
  z-index: 4; cursor: ew-resize;
}
.upscale-handle .knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--copper);
  background: rgba(8,5,4,0.85);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(215,161,111,0.55);
}
.upscale-handle .knob::before,
.upscale-handle .knob::after {
  content: ""; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.upscale-handle .knob::before { border-right: 6px solid var(--copper); margin-right: 4px; }
.upscale-handle .knob::after  { border-left: 6px solid var(--copper); margin-left: 4px; }

.upscale-readout {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.32em; color: var(--copper);
  background: rgba(0,0,0,0.7); border: 1px solid var(--glass-border);
  padding: 8px 16px;
}

.upscale-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--glass-border-soft);
  border-bottom: 1px solid var(--glass-border-soft);
}
.upscale-bar .cell {
  padding: 10px 18px;
  border-right: 1px solid var(--glass-border-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.upscale-bar .cell:last-child { border-right: 0; }
.upscale-bar .cell .k {
  font-family: var(--font-mono); font-size: 8.5px;
  letter-spacing: 0.26em; color: var(--ink-faint); text-transform: uppercase;
}
.upscale-bar .cell .v {
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: -0.02em; color: var(--amber);
}
.upscale-bar .cell .v small {
  font-family: var(--font-mono); font-size: 9px; color: var(--ink-dim);
  letter-spacing: 0.2em; margin-left: 6px;
}

/* ============================================================
   ACT IV — STACK SPECS (periodic plates)
   ============================================================ */
.act-stack { grid-template-rows: auto 1fr auto; }
.stack-grid {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plate {
  position: relative;
  min-height: 0;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(20,14,10,0.55), rgba(8,5,4,0.7));
  backdrop-filter: blur(10px);
  padding: 10px 14px 10px;
  display: flex; flex-direction: column;
  gap: 3px;
  overflow: hidden;
  transition: border-color 320ms, transform 220ms var(--ease-cinema), box-shadow 320ms;
  transform-style: preserve-3d;
  cursor: pointer;
}
.plate .sym { font-size: clamp(22px, 2.2vw, 38px); }
.plate .name { font-size: 11px; }
.plate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px 240px at var(--px, 50%) var(--py, 50%), rgba(215,161,111,0.18), transparent 60%);
  opacity: 0; transition: opacity 320ms;
}
.plate:hover { border-color: var(--copper); box-shadow: 0 24px 60px rgba(215,161,111,0.18); }
.plate:hover::before { opacity: 1; }

.plate .num {
  font-family: var(--font-mono); font-size: 8.5px;
  letter-spacing: 0.26em; color: var(--ink-faint);
}
.plate .sym {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 2.6vw, 44px);
  letter-spacing: -0.04em;
  color: var(--copper);
  line-height: 1;
  margin-top: auto;
}
.plate .name {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.2;
}
.plate .cat {
  font-family: var(--font-mono); font-size: 7.5px;
  letter-spacing: 0.26em; color: var(--ink-dim);
  text-transform: uppercase;
}
.plate .mass {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 0.22em; color: var(--ink-faint);
  text-align: right;
}
.plate .mass b { display: block; color: var(--amber); font-weight: 500; font-size: 10px; letter-spacing: 0.06em; }

.plate.is-primary {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(215,161,111,0.16), transparent 60%),
    linear-gradient(180deg, rgba(40,24,16,0.7), rgba(15,9,6,0.85));
  border-color: rgba(215,161,111,0.45);
}
.plate.is-primary .sym { color: var(--amber); text-shadow: 0 0 22px rgba(245,199,154,0.5); }

/* plate sizes for asymmetric layout */
.plate.s-22 { grid-column: span 2; grid-row: span 2; }
.plate.s-21 { grid-column: span 2; grid-row: span 1; }
.plate.s-12 { grid-column: span 1; grid-row: span 2; }
.plate.s-11 { grid-column: span 1; grid-row: span 1; }

/* variant — bento: chunkier, 4-col */
.stack-variant-bento {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.stack-variant-bento .plate.s-22 { grid-column: span 2; grid-row: span 2; }
.stack-variant-bento .plate.s-21 { grid-column: span 2; grid-row: span 1; }
.stack-variant-bento .plate.s-12 { grid-column: span 1; grid-row: span 2; }
.stack-variant-bento .plate.s-11 { grid-column: span 1; grid-row: span 1; }

/* variant — drawers: 3 horizontal shelves */
.stack-variant-drawers {
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(3, 1fr) !important;
  gap: 14px;
}
.stack-variant-drawers .plate {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  flex-direction: row !important;
  align-items: center;
  gap: 24px !important;
  padding: 18px 28px !important;
}
.stack-variant-drawers .plate .sym {
  margin-top: 0;
  font-size: clamp(40px, 4vw, 64px);
  min-width: 100px;
}
.stack-variant-drawers .plate .name { font-size: 16px; min-width: 220px; }
.stack-variant-drawers .plate .cat { min-width: 180px; }
.stack-variant-drawers .plate .num { min-width: 60px; }
.stack-variant-drawers .plate .mass { position: static; text-align: left; margin-left: auto; min-width: 100px; }
.stack-variant-drawers .plate-feature { padding: 20px 28px !important; }
.stack-variant-drawers .plate-feature .title { font-size: 22px; min-width: 240px; }
.stack-variant-drawers .plate-feature .copy { font-size: 12px; max-width: 60ch; }
.stack-variant-drawers .plate-feature .meter { min-width: 120px; max-width: 160px; margin-left: auto; }

/* feature plate */
.plate-feature {
  display: grid; grid-template-rows: auto 1fr auto auto;
  gap: 6px;
  padding: 12px 14px;
}
.plate-feature .title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(14px, 1.3vw, 20px);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.plate-feature .copy {
  font-size: 10.5px; line-height: 1.45; color: var(--ink-dim);
  max-width: 34ch;
}
.plate-feature .meter {
  margin-top: 4px;
  display: flex; gap: 4px;
}
.plate-feature .meter span {
  height: 4px; flex: 1; background: var(--ink-ghost);
}
.plate-feature .meter span.on { background: var(--copper); box-shadow: 0 0 8px rgba(215,161,111,0.6); }

/* stack legend bar */
.stack-foot {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; gap: 0;
  border-top: 1px solid var(--glass-border-soft);
  border-bottom: 1px solid var(--glass-border-soft);
}
.stack-foot .cell {
  padding: 10px 16px;
  border-right: 1px solid var(--glass-border-soft);
}
.stack-foot .cell:last-child { border-right: 0; }
.stack-foot .k {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 0.26em; color: var(--ink-faint); text-transform: uppercase;
  margin-bottom: 4px;
}
.stack-foot .v {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: -0.02em; color: var(--copper);
}

/* ============================================================
   ACT V — DIRECTOR'S CUT
   ============================================================ */
.act-cut { grid-template-rows: auto 1fr auto; }
.cut-grid {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}
.cut-left { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.cut-quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.22; letter-spacing: -0.025em;
  color: var(--ink); text-wrap: pretty;
  margin: 0;
}
.cut-quote em {
  font-style: italic;
  color: var(--copper);
}
.cut-attr {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.28em; color: var(--ink-dim);
}
.cut-attr .av {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--copper);
  background:
    radial-gradient(circle at 35% 30%, rgba(245,199,154,0.45), transparent 60%),
    #0a0608;
  box-shadow: 0 0 18px rgba(215,161,111,0.35);
}
.cut-attr b { color: var(--ink); font-weight: 500; font-size: 12px; letter-spacing: 0.22em; }
.bone-note {
  width: max-content;
  border-top: 1px solid var(--glass-border-soft);
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

.cut-right {
  display: flex; flex-direction: column; gap: 16px;
  min-height: 0;
}
.reel .reel-head {
  display: flex; justify-content: space-between; align-items: center;
}
.reel-head .lbl {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.32em; color: var(--copper);
}
.reel {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0; flex: 1;
}
.reel-list { display: flex; flex-direction: column; gap: 6px; }
.reel-row {
  display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px;
  align-items: center; padding: 7px 0;
  border-bottom: 1px solid var(--glass-border-soft);
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-dim); letter-spacing: 0.04em;
}
.reel-row:last-child { border-bottom: 0; }
.reel-row .n { color: var(--ink-faint); letter-spacing: 0.2em; font-size: 9px; }
.reel-row .t { color: var(--ink); letter-spacing: 0.18em; text-transform: uppercase; font-size: 10px; }
.reel-row .tc { color: var(--copper); font-size: 9px; letter-spacing: 0.28em; }
.reel-row .st {
  font-size: 8px; letter-spacing: 0.32em; padding: 4px 8px;
  border: 1px solid var(--glass-border); color: var(--amber);
}
.reel-row .st.done { color: var(--copper); border-color: var(--copper); }

.cut-cta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

/* ============================================================
   GLOBAL — section title scaffold
   ============================================================ */
.act-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px;
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border-soft);
}
.act-head .num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 3.6vw, 56px);
  letter-spacing: -0.04em;
  color: var(--copper);
  line-height: 0.85;
  text-shadow: 0 0 40px rgba(215,161,111,0.35);
}
.act-head .title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(16px, 1.2vw, 20px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.act-head .crumbs {
  display: flex; gap: 14px;
  font-family: var(--font-mono); font-size: 8.5px;
  letter-spacing: 0.28em; color: var(--ink-faint);
}

.act-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 6px;
  font-family: var(--font-mono); font-size: 8.5px;
  letter-spacing: 0.26em; color: var(--ink-faint);
}
.act-foot .right { color: var(--ink-dim); }

/* ============================================================
   EDGE NAV ARROWS + PROGRESS
   ============================================================ */
.edge-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 70;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  color: var(--copper);
  transition: border-color 320ms, box-shadow 320ms, transform 320ms var(--ease-cinema), opacity 320ms;
}
.edge-nav:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 36px rgba(215,161,111,0.45);
  transform: translateY(-50%) scale(1.05);
}
.edge-nav.prev { left: calc(var(--rail-w) + 20px); }
.edge-nav.next { right: 32px; }
.edge-nav[disabled] { opacity: 0; pointer-events: none; }
.edge-nav .chev {
  width: 18px; height: 18px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.edge-nav.next .chev { transform: rotate(45deg) translate(-2px, 2px); }
.edge-nav.prev .chev { transform: rotate(-135deg) translate(-2px, 2px); }
.edge-nav .ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid var(--copper);
  opacity: 0.4; animation: pinPulse 2.6s var(--ease-cinema) infinite;
  pointer-events: none;
}
.edge-nav.next .label,
.edge-nav.prev .label {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.32em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink);
  opacity: 0; transition: opacity 280ms;
}
.edge-nav.next .label { right: calc(100% + 16px); }
.edge-nav.prev .label { left: calc(100% + 16px); }
.edge-nav:hover .label { opacity: 0.9; }

/* bottom progress strip */
.progress {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.3em;
  color: var(--ink-dim);
}
.progress .ticks { display: flex; align-items: center; gap: 8px; }
.progress .tick {
  width: 28px; height: 2px; background: var(--ink-ghost);
  transition: background 320ms, width 320ms var(--ease-cinema);
  cursor: pointer; border: 0; padding: 0;
}
.progress .tick.is-active { background: var(--copper); width: 56px; box-shadow: 0 0 10px rgba(215,161,111,0.6); }
.progress .tick.is-done { background: var(--copper-deep); }
.progress .hint {
  display: inline-flex; align-items: center; gap: 8px;
  padding-left: 14px; border-left: 1px solid var(--glass-border-soft);
  color: var(--ink-faint);
}
.progress .hint .kbd {
  padding: 2px 6px; font-size: 8.5px;
  background: rgba(0,0,0,0.5);
}
.progress .lbl-act { color: var(--copper); }

@media (max-width: 1100px) {
  .edge-nav { width: 56px; height: 56px; }
  .edge-nav.prev { left: calc(var(--rail-w) + 8px); }
  .edge-nav.next { right: 16px; }
}

/* keyboard hint */
.kbd {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; color: var(--ink-dim);
  background: rgba(0,0,0,0.4);
}

/* reduced motion */
.no-motion *, .no-motion *::before, .no-motion *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --mx: 50% !important;
    --my: 50% !important;
  }

  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .cursor-ring {
    display: none !important;
  }

  body, body * {
    cursor: auto !important;
  }

  .ticker-track,
  .bench-track {
    transform: none !important;
  }
}

/* density compact */
.density-compact .act { padding-top: 56px; padding-bottom: 64px; gap: 18px; }
.density-compact .hero-title { font-size: clamp(48px, 7vw, 110px); }
.density-compact .stack-grid { gap: 10px; }

/* density spacious */
.density-spacious .act { gap: 40px; }

/* ============================================================
   IMAGE SLOTS
   ============================================================ */
/* hero backdrop slot — subtle, opaque, behind everything */
.hero-bg-slot {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: var(--rail-w);
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  filter: grayscale(0.35) contrast(1.05) saturate(0.85);
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);
}
.hero-bg-slot image-slot {
  display: block;
  width: 100%; height: 100%;
  pointer-events: auto;
}
.hero-bg-slot image-slot:not(:defined),
.hero-bg-slot image-slot::part(empty),
.hero-bg-slot image-slot::part(placeholder) {
  opacity: 0;
}

/* All act children sit above the bg slot — except the bg slot itself */
.act > *:not(.hero-bg-slot) { position: relative; z-index: 1; }

/* in-frame still slots (Acts II + III) */
image-slot.frame-slot {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}
image-slot.frame-slot::part(empty) { opacity: 0; }
image-slot.frame-slot::part(placeholder) { opacity: 0.4; }

.frame image-slot.frame-slot { z-index: 0; }
.frame > *:not(image-slot) { position: relative; z-index: 1; }
.frame .crop, .frame .slate, .frame .tc { z-index: 4; }
.frame .pin { z-index: 5; }
.frame .frame-caption { z-index: 4; }

/* frame caption — bottom-left, beneath slate */
.frame-caption {
  position: absolute;
  left: 14px; right: 14px;
  bottom: 14px;
  max-width: 56ch;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-dim);
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.7) 40%);
  padding: 28px 14px 10px;
}
.frame-caption b {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--copper);
  font-weight: 500;
  margin-bottom: 6px;
}

/* director avatar slot */
.avatar-slot {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.cut-attr .av {
  overflow: hidden;
  padding: 0;
}

/* ============================================================
   ACT IV — SUPPORTING BENCH TICKER
   ============================================================ */
.stack-bench {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
  border-top: 1px solid var(--glass-border-soft);
  border-bottom: 1px solid var(--glass-border-soft);
  background: linear-gradient(180deg, rgba(8,5,4,0.45), rgba(8,5,4,0.15));
  flex-shrink: 0;
}
.bench-lbl {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--copper);
  text-transform: uppercase;
}
.bench-ticker {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}
.bench-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 60s linear infinite;
}
.bench-item {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bench-item .dot {
  width: 4px; height: 4px;
  background: var(--copper);
  border-radius: 50%;
}

/* ============================================================
   RESPONSIVE STAGE - keep the film strip readable on narrow screens
   ============================================================ */
@media (max-width: 700px) {
  :root {
    --rail-w: 56px;
    --act-pad-x: 16px;
  }

  .act {
    padding: 48px 16px 78px calc(var(--rail-w) + var(--act-pad-x));
    gap: 10px;
  }

  .topbar {
    top: 12px;
    left: calc(var(--rail-w) + 12px);
    right: 12px;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .topbar .sep,
  .topbar span:nth-last-child(-n + 2) {
    display: none;
  }

  .rail {
    width: var(--rail-w);
    padding: 16px 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 7px;
    letter-spacing: 0.24em;
  }

  .rail-acts {
    gap: 14px;
  }

  .rail-numeral {
    width: 28px;
    font-size: 13px;
  }

  .rail-label {
    display: none;
  }

  .cinema-toggle {
    padding: 8px 4px;
  }

  .cinema-toggle .lbl {
    display: none;
  }

  .act-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 6px;
  }

  .act-head .num {
    font-size: 32px;
  }

  .act-head .title {
    font-size: 15px;
  }

  .act-head .crumbs {
    display: none;
  }

  .meta,
  .meta-row,
  .act-foot,
  .hero-stat .lbl,
  .ticker-item,
  .bench-item,
  .params .p,
  .upscale-bar .cell .k,
  .stack-foot .k {
    letter-spacing: 0.16em;
  }

  .hero-center {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
  }

  .hero-title {
    font-size: clamp(34px, 11.8vw, 48px);
    line-height: 1;
  }

  .hero-title .frag.indent {
    padding-left: 0;
  }

  .hero-title .frag.label {
    font-size: 0.16em;
    letter-spacing: 0.22em;
  }

  .hero-right {
    gap: 12px;
  }

  .hero-sub {
    max-width: 32ch;
    font-size: 13px;
    line-height: 1.48;
  }

  .hero-cta-row {
    gap: 12px;
  }

  .launch {
    padding: 14px 20px;
    font-size: 9px;
    letter-spacing: 0.22em;
    overflow: hidden;
  }

  .secondary-cta {
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }

  .ticker {
    padding: 8px 0;
  }

  .ticker-track {
    gap: 28px;
  }

  .ticker-item {
    font-size: 8px;
  }

  .hero-foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 0;
  }

  .hero-foot > div:first-child {
    display: none;
  }

  .hero-stat .num {
    font-size: 24px;
  }

  .deconstruct-grid,
  .cut-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .frame,
  .upscale-wrap {
    height: auto;
    width: 100%;
  }

  .blade-panel {
    max-height: 280px;
  }

  .blade-head,
  .blade-body,
  .terminal {
    padding-inline: 12px;
  }

  .blade-desc,
  .terminal {
    font-size: 10px;
  }

  .params,
  .upscale-bar,
  .stack-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .params .p,
  .upscale-bar .cell,
  .stack-foot .cell {
    padding: 8px 10px;
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(74px, 1fr);
    overflow: hidden;
  }

  .plate,
  .plate-feature {
    padding: 8px 9px;
  }

  .plate .mass,
  .plate .cat,
  .plate-feature .copy,
  .plate-feature .meter {
    display: none;
  }

  .plate .sym {
    font-size: 28px;
  }

  .plate .name {
    font-size: 10px;
  }

  .stack-bench {
    gap: 10px;
    padding-inline: 10px;
  }

  .bench-lbl {
    font-size: 7px;
    letter-spacing: 0.18em;
  }

  .bench-track {
    gap: 22px;
  }

  .bench-item {
    font-size: 7.5px;
  }

  .cut-left {
    gap: 10px;
    justify-content: start;
  }

  .act-cut .cut-grid {
    align-content: start;
    overflow: hidden;
  }

  .cut-quote {
    font-size: clamp(15px, 4.4vw, 20px);
    line-height: 1.18;
  }

  .cut-attr {
    gap: 12px;
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .bone-note {
    width: auto;
    padding-top: 6px;
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .cut-cta {
    display: none;
  }

  .cut-right {
    gap: 8px;
    min-height: 0;
    overflow: hidden;
  }

  .reel {
    padding: 8px 10px;
    gap: 6px;
    max-height: none;
    overflow: hidden;
  }

  .reel-head .lbl {
    font-size: 7.5px;
    letter-spacing: 0.24em;
  }

  .reel-list {
    gap: 2px;
    overflow: hidden;
  }

  .reel-row {
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    padding: 2px 0;
    font-size: 8.5px;
  }

  .reel-row .tc,
  .reel-row .st {
    display: none;
  }

  .reel-row .t {
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }

  .edge-nav {
    display: none;
  }

  .edge-nav.prev {
    left: calc(var(--rail-w) + 6px);
  }

  .edge-nav.next {
    right: 10px;
  }

  .edge-nav .label {
    display: none;
  }

  .progress {
    left: calc(var(--rail-w) + 8px);
    right: 8px;
    bottom: 12px;
    transform: none;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    font-size: 7px;
    letter-spacing: 0.18em;
  }

  .progress .ticks {
    gap: 6px;
  }

  .progress .tick {
    width: 20px;
  }

  .progress .tick.is-active {
    width: 38px;
  }

  .progress .hint {
    display: none;
  }
}
