/* Animatix site stylesheet — Precision Studio design system.
 *
 * High-craft technical tool aesthetics: deep obsidian ground (#08090d),
 * restrained ambient lighting, hairline borders, bone-white slate typography,
 * crisp warm amber accents, and precision-framed WebGPU stage surfaces.
 */

:root {
  color-scheme: dark;
  --bg: #08090d;
  --raised: #0f121a;
  --sunken: #05060a;
  --card-bg: rgba(15, 18, 26, 0.72);
  --card-bg-hover: rgba(20, 26, 38, 0.88);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(245, 185, 66, 0.32);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.14);

  --ink: #f8fafc;
  --dim: #cbd5e1;
  --faint: #94a3b8;
  --muted: #64748b;

  --accent: #f5b942;
  --accent-strong: #fbbf24;
  --accent-dim: rgba(245, 185, 66, 0.35);
  --accent-ghost: rgba(245, 185, 66, 0.08);
  --accent-border: rgba(245, 185, 66, 0.24);

  --cyan: #38bdf8;
  --cyan-ghost: rgba(56, 189, 248, 0.1);
  --emerald: #34d399;
  --emerald-ghost: rgba(52, 211, 153, 0.1);
  --rose: #fb7185;

  --ok: #34d399;
  --err: #f87171;
  --plate-edge: rgba(255, 255, 255, 0.08);

  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --measure: 1160px;
  --col: 56ch;
  --col-note: 32rem;

  --radius-container: 16px;
  --radius-card: 12px;
  --radius-control: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--card-border);
  --shadow-glow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 36px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--card-border-hover);

  --expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --settle: cubic-bezier(0.34, 1.32, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -12%, rgba(245, 185, 66, 0.05) 0%, transparent 70%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--dim);
  font: 15.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

::selection {
  background: rgba(245, 185, 66, 0.28);
  color: #fff;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ── typography & text utilities ───────────────────────────────────── */
h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.035em;
  font-family: var(--sans);
  margin: 0;
  text-wrap: balance;
}

.metric-item, .timecode, .stamp, .sec-num, .stat-pill, .meta li, .btn-copy, .term-text, .channel-num, .rn, .n {
  font-variant-numeric: tabular-nums;
}

h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 750;
  line-height: 1.2;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

/* ── text gradient utilities (Precision Studio) ────────────────────── */
.text-gradient,
.text-gradient-titanium {
  background: linear-gradient(180deg, #ffffff 15%, #cbd5e1 65%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #fff3d6 0%, var(--accent) 55%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #64748b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

@media (forced-colors: active) {
  .text-gradient,
  .text-gradient-titanium,
  .text-gradient-amber,
  .text-gradient-silver {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: currentColor;
  }
}

@supports not (-webkit-background-clip: text) {
  .text-gradient,
  .text-gradient-titanium,
  .text-gradient-silver {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--ink);
  }
  .text-gradient-amber {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--accent);
  }
}

header:not(.hero-split) {
  margin-bottom: 36px;
}

.kicker, .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

header:not(.hero-split) h1, .page-title {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

header:not(.hero-split) .lede, .page-lede {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 0 20px;
}

p {
  color: var(--dim);
  max-width: var(--col);
  margin: 0 0 16px;
}

p strong {
  color: var(--ink);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

.meta, .page-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
}

.meta li, .stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta li::before, .stat-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.meta li b, .stat-pill b {
  color: var(--ink);
  font-weight: 600;
}

/* ── buttons & badges ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  font-family: var(--sans);
  text-decoration: none;
  border-radius: var(--radius-control);
  padding: 10px 20px;
  transition: all 0.2s var(--expo-out);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn.primary {
  background: var(--accent);
  color: #080a0f;
  border-color: rgba(245, 185, 66, 0.6);
  box-shadow: 0 2px 10px rgba(245, 185, 66, 0.2);
}

.btn.primary:hover {
  background: var(--accent-strong);
  color: #080a0f;
  box-shadow: 0 4px 16px rgba(245, 185, 66, 0.35);
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sunken);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  border-color: var(--accent-border);
  color: var(--ink);
}

.btn-copy:active {
  transform: translateY(1px);
}

.btn-copy .term-prompt { color: var(--accent); font-weight: 700; }
.btn-copy .copy-tag {
  font-size: 11px;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  transition: all 0.2s;
}
.btn-copy:hover .copy-tag {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-copy.copied {
  border-color: var(--emerald);
  color: var(--emerald);
}
.btn-copy.copied .term-prompt { color: var(--emerald); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 550;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--dim);
  white-space: nowrap;
}

/* ── site nav & timeline progress ruler ────────────────────────────── */
nav.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 13, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav.site .site-inner {
  max-width: var(--measure); margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}

nav.site .wordmark {
  font-family: var(--sans); font-size: 18px; font-weight: 800;
  letter-spacing: -0.025em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 2px;
}

nav.site .wordmark i { font-style: normal; color: var(--accent); }

nav.site .site-links { display: flex; gap: 2px; align-items: center; }

nav.site .site-links a {
  color: var(--faint); text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; white-space: nowrap;
  transition: all 0.18s;
}

nav.site .site-links a:hover {
  color: var(--ink); background: rgba(255, 255, 255, 0.05);
}

nav.site .site-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-ghost);
  font-weight: 600;
}

nav.site .site-links a.github-star {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-left: 6px;
}
nav.site .site-links a.github-star:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

nav.site .timecode {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  margin-left: 12px; padding: 2px 8px;
  border: 1px solid var(--border); border-radius: 5px; background: var(--sunken);
  visibility: hidden; white-space: nowrap;
}
nav.site .timecode.on { visibility: visible; }
@media (max-width: 760px) { nav.site .timecode { display: none; } }

/* Refined 1px hairline timeline ruler */
nav.site .ruler {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  pointer-events: none;
}
nav.site .ruler .ruler-track {
  position: absolute; inset: 0; background: rgba(255, 255, 255, 0.04);
}
nav.site .ruler .ruler-fill {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}
nav.site .ruler .ruler-head {
  position: absolute; top: 50%; width: 5px; height: 5px;
  left: clamp(2px, var(--head, 0%), calc(100% - 3px));
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--accent); border-radius: 1px;
}
nav.site .ruler .ruler-tick {
  position: absolute; top: -1px; bottom: -1px; width: 1px;
  transform: translateX(-50%); background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
  nav.site .site-links a:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  nav.site .site-inner { padding: 0 14px; }
  nav.site .site-links { gap: 0; }
  nav.site .site-links a { padding: 5px 8px; font-size: 12.5px; }
}

/* ── hero: precision split layout ──────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  padding: 44px 0 60px;
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 0 44px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.12) 0%, rgba(245, 185, 66, 0.04) 100%);
  border: 1px solid var(--accent-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.hero-title {
  margin: 0 0 16px;
  color: var(--ink);
}

.hero-lede {
  color: var(--dim);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.hero-quick-install {
  margin-bottom: 24px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.metric-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Direct hardware stage canvas (no simulated OS window chrome) */
.hero-stage {
  position: relative;
}

.stage-canvas, .stage-frame {
  background: var(--sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-container);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.stage-canvas-hud, .stage-frame-header {
  height: 36px;
  padding: 0 14px;
  background: rgba(10, 13, 20, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-hud-tag, .stage-pill {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.stage-hud-live, .stage-status {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot, .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 5px var(--emerald);
}

.stage-canvas-body, .stage-frame-body {
  position: relative;
  background: #000;
  line-height: 0;
}

.stage-canvas-body amx-player, .stage-frame-body amx-player {
  width: 100%;
  border: none;
  border-radius: 0;
}

.stage-canvas-caption, .stage-frame-footer {
  padding: 9px 14px;
  background: rgba(10, 13, 20, 0.85);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
}

.stage-source-link {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  text-decoration: none;
}
.stage-source-link:hover {
  color: var(--accent);
}

/* ── sections ──────────────────────────────────────────────────────── */
section {
  margin-top: 88px;
  scroll-margin-top: 72px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.sec-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  padding: 2px 7px;
  background: var(--accent-ghost);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sec-head .stamp {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sec-head .stamp::before { content: "@ "; color: var(--accent-dim); }

.sec-sub {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: var(--col);
  margin: 0 0 28px;
}

/* ── duality (code + stage) ────────────────────────────────────────── */
.duality {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}
@media (max-width: 900px) { .duality { grid-template-columns: 1fr; } }

.duality-code-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.duality-code-header {
  height: 38px;
  padding: 0 16px;
  background: rgba(10, 14, 22, 0.85);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.pill-hint {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 4px;
}

.duality pre {
  margin: 0;
  padding: 18px 20px;
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
}
.duality pre .line {
  display: block;
  border-left: 2px solid transparent;
  margin-left: -20px;
  padding-left: 18px;
  transition: background 0.18s, border-color 0.18s;
  cursor: pointer;
}
.duality pre .line:hover { background: rgba(255, 255, 255, 0.03); }
.duality pre .line.live {
  background: var(--accent-ghost);
  border-left-color: var(--accent);
}

.stage-col figure { margin: 0; }
.stage-col amx-player {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.duality .stage-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin: 10px 2px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.duality .stage-note .beat {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--sunken);
  border: 1px solid var(--border);
}

/* Architectural Pillars Row */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 860px) {
  .pillars-row { grid-template-columns: 1fr; }
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.pillar-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.pillar-card h3 {
  font-size: 16.5px;
  margin: 0 0 6px;
  color: var(--ink);
}
.pillar-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dim);
  margin: 0;
}

/* ── bento grid (engine architecture) ──────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.hero-span { grid-column: span 1 !important; }
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.22s var(--expo-out);
}

.bento-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.bento-card.hero-span {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(16, 21, 31, 0.85) 0%, rgba(11, 14, 22, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bento-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.bento-badge {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 5px;
}

.bento-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
}

.bento-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0 0 16px;
  flex: 1;
}

.bento-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.pill-spec {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  background: var(--sunken);
  border: 1px solid var(--border-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── interactive explainers (demos) ────────────────────────────────── */
.demo-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-container);
  overflow: hidden;
  text-decoration: none;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--expo-out);
}
@media (max-width: 900px) {
  .demo-spotlight { grid-template-columns: 1fr; }
}

.demo-spotlight:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.spotlight-poster {
  position: relative;
  background: var(--sunken);
  line-height: 0;
  border-right: 1px solid var(--border);
}
@media (max-width: 900px) {
  .spotlight-poster { border-right: none; border-bottom: 1px solid var(--border); }
}

.spotlight-poster amx-player {
  width: 100%;
  border: none;
  border-radius: 0;
}

.spotlight-info {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.spotlight-title {
  font-size: 21px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 12px;
}

.spotlight-blurb {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0 0 18px;
}

.spotlight-action {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s;
}
.demo-spotlight:hover .spotlight-action {
  transform: translateX(4px);
  color: var(--accent-strong);
}

/* 3 sub demo cards */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .demos-grid { grid-template-columns: 1fr; }
}

.demo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.22s var(--expo-out);
}

.demo-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.demo-poster {
  position: relative;
  background: var(--sunken);
  line-height: 0;
  border-bottom: 1px solid var(--border);
}
.demo-poster amx-player {
  width: 100%;
  border: none;
  border-radius: 0;
}

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.poster-badge.live::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  margin-right: 5px;
  vertical-align: middle;
}

.demo-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-content h4 {
  font-size: 16.5px;
  color: var(--ink);
  margin: 0 0 6px;
}

.demo-content p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dim);
  margin: 0 0 14px;
  flex: 1;
}

.demo-link {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: transform 0.18s;
}
.demo-card:hover .demo-link {
  transform: translateX(3px);
  color: var(--accent-strong);
}

/* ── developer workflow (quickstart) ───────────────────────────────── */
.quickstart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .quickstart-layout { grid-template-columns: 1fr; }
}

.terminal-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-bar {
  height: 38px;
  padding: 0 14px;
  background: rgba(10, 14, 22, 0.85);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-right: auto;
}

.terminal-copy {
  padding: 3px 8px;
  font-size: 11px;
}

.terminal-box pre {
  margin: 0;
  padding: 18px 20px;
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0;
}

.specs-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s var(--expo-out);
}

.spec-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  transform: translateX(2px);
}

.spec-icon {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-info {
  flex: 1;
  min-width: 0;
}

.spec-info h4 {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 3px;
}

.spec-info p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
  margin: 0;
}

.spec-info .path {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
}

.spec-arrow {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
  transition: transform 0.18s;
}
.spec-card:hover .spec-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ── code blocks & syntax tokens ───────────────────────────────────── */
pre {
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

pre .lang, pre .cmt { color: #64748b; font-style: italic; }
pre .kw { color: var(--accent); font-weight: 600; }
pre .str { color: var(--ok); }
pre .num { color: #38bdf8; }
pre .at { color: #fb7185; }
pre .prop { color: var(--ink); font-weight: 560; }
pre .dim { color: var(--dim); }

code.inline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--ink);
  white-space: nowrap;
}

/* ── backward compatible gallery, recipes, and hub styles ─────────── */
.cards.hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 900px) { .cards.hub { grid-template-columns: 1fr; } }

.hub-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: all 0.22s var(--expo-out);
  box-shadow: var(--shadow-sm);
}

a.hub-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hub-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
@media (max-width: 900px) { .hub-card.featured { flex-direction: column; } }

.hub-poster {
  display: block; position: relative; background: var(--sunken);
  border-bottom: 1px solid var(--border); line-height: 0;
}
.hub-card.featured .hub-poster {
  flex: 1.2; min-width: 0;
  border-bottom: none; border-right: 1px solid var(--border);
}
@media (max-width: 900px) {
  .hub-card.featured .hub-poster { border-right: none; border-bottom: 1px solid var(--border); }
}

.hub-poster amx-player, .hub-poster .plate {
  display: block; width: 100%; border: none; border-radius: 0;
}
.hub-poster .plate { height: 100%; object-fit: cover; }

.hub-body {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; flex: 1;
}

.demo-kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}

.hub-title {
  font-family: var(--sans); font-size: 19px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
}

.hub-blurb {
  font-size: 14px; line-height: 1.6; color: var(--dim); flex: 1; margin: 0;
}

.hub-card .open {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: var(--accent); margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.hub-card .open::after { content: "→"; transition: transform 0.18s; }
.hub-card:hover .open::after { transform: translateX(3px); }

/* Gallery & Recipes Grid */
.gallery-grid, .recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 640px) {
  .gallery-grid, .recipes-grid { grid-template-columns: 1fr; }
}

.gallery figure, .gallery-grid figure, .recipes-grid figure {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s var(--expo-out);
}
.gallery figure:hover, .gallery-grid figure:hover, .recipes-grid figure:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-glow);
}

.figure-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.figure-title {
  font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 0;
}
.figure-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--accent); background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  padding: 2px 7px; border-radius: 4px;
}

figure amx-player, figure img.plate {
  display: block; border: 1px solid var(--plate-edge); border-radius: 8px;
  overflow: hidden; width: 100%;
}

figcaption {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 14px;
  margin-top: 10px; font-size: 13px; color: var(--faint);
}
figcaption .cap { flex: 1 1 240px; }
figcaption .cap b { color: var(--dim); font-weight: 600; }
figcaption .fig-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
figcaption a.src {
  color: var(--faint); text-decoration: none; font-family: var(--mono); font-size: 11.5px;
}
figcaption a.src:hover { color: var(--accent); }

.theater-btn {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 5px; padding: 3px 8px; cursor: pointer; white-space: nowrap;
  transition: all 0.18s;
}
.theater-btn:hover {
  color: var(--accent); border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.08);
}

.gallery figure:fullscreen {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg); padding: 32px; overflow: auto;
}
.gallery figure:fullscreen amx-player {
  max-width: 1280px; margin: 0 auto;
}

/* ── hero figure on deep-dive walkthroughs ────────────────────────── */
figure.hero {
  margin: 28px 0 36px;
  background: var(--sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-container);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
figure.hero amx-player {
  width: 100%;
  border: none;
  border-radius: 0;
  display: block;
}
figure.hero figcaption {
  padding: 12px 18px;
  background: rgba(10, 13, 20, 0.9);
  border-top: 1px solid var(--border);
  margin: 0;
  font-size: 13px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ── howto embed & integration cards ──────────────────────────────── */
.howto-card, .howto {
  margin-top: 56px;
  padding: 24px 26px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-sm);
}
.howto-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.howto-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.howto-header h3, .howto h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}
.howto-card p, .howto p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0 0 16px;
  max-width: none;
}
.howto-card pre, .howto pre {
  margin: 0 0 16px;
}
.howto-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--faint);
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.howto-footer a {
  font-family: var(--mono);
  font-size: 12px;
}

/* ── contents / toc (for tour) ─────────────────────────────────────── */
nav.toc {
  margin: 32px 0 12px; padding: 18px 22px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-card);
}
nav.toc .toc-title {
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-family: var(--mono); font-weight: 600;
}
nav.toc ol {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px;
}
@media (max-width: 760px) { nav.toc ol { grid-template-columns: 1fr; } }
nav.toc a { color: var(--dim); text-decoration: none; font-size: 14.5px; }
nav.toc a:hover { color: var(--accent); }
nav.toc .n { font-family: var(--mono); color: var(--accent); font-size: 11.5px; margin-right: 8px; }

/* ── tour editors & diagnostics ────────────────────────────────────── */
.tour-embed { margin: 24px 0 8px; }
.edit-toggle {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 0; white-space: nowrap;
}
.edit-toggle:hover { color: #fff; text-decoration: underline; }

.tour-embed.editing .stage-row {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px; align-items: start;
}
.stage-col { min-width: 0; }
.editor-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.editor-col[hidden] { display: none; }
.editor-bar {
  display: flex; align-items: center; gap: 8px;
  position: sticky; top: 60px; z-index: 5;
  background: var(--bg); padding: 4px 0;
}
.editor-title {
  font-family: var(--mono); font-size: 12px; color: var(--faint); margin-right: auto;
}
.editor-btn {
  font: 12.5px var(--mono); color: var(--dim); background: var(--raised);
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer;
}
.editor-btn:hover { color: var(--ink); border-color: var(--accent-border); }
.editor-btn.primary {
  color: #080a0f; background: var(--accent); border-color: var(--accent);
}
.editor-btn.primary:hover {
  background: var(--accent-strong); border-color: var(--accent-strong);
}
.editor-text {
  width: 100%; min-height: 320px; resize: vertical;
  font: 12.5px/1.6 var(--mono); color: var(--ink);
  background: var(--sunken); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 12px 14px; tab-size: 2;
}
.editor-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.editor-status { font-size: 12.5px; color: var(--faint); margin: 0; }
.editor-status.ok { color: var(--ok); }
.editor-status.warn { color: var(--accent); }
.editor-status.error { color: var(--err); }
.diag-panel { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.diag {
  text-align: left; font: 12px/1.5 var(--mono); color: var(--dim);
  background: var(--raised); border: 1px solid var(--border-soft);
  border-radius: 6px; padding: 6px 10px; cursor: pointer;
}
.diag:hover { border-color: var(--accent-border); }
.diag-error { border-left: 3px solid var(--err); }
.diag-warning { border-left: 3px solid var(--accent); }
.diag-info, .diag-hint { border-left: 3px solid var(--border); }
.diag-ok { font: 12px var(--mono); color: var(--ok); margin: 0; }
@media (max-width: 1000px) {
  .tour-embed.editing .stage-row { grid-template-columns: 1fr; }
}

/* ── deep dive editorial & transformer styles ──────────────────────── */
.chapter-rail {
  position: sticky; top: 16px; z-index: 40; margin: 28px auto 40px;
  max-width: fit-content;
  background: rgba(8, 11, 18, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 6px 12px;
  display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.chapter-rail::-webkit-scrollbar { display: none; }
.chapter-rail a {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim); text-decoration: none;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; gap: 6px;
}
.chapter-rail a .rn { color: var(--accent); font-weight: 700; font-size: 10.5px; }
.chapter-rail a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.chapter-rail a.active {
  color: #080a0f; background: var(--accent); font-weight: 700;
  box-shadow: 0 0 18px rgba(245, 185, 66, 0.45);
}
.chapter-rail a.active .rn { color: #080a0f; }

/* Double-Bezel Hardware Stage Deck */
.stage-deck {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 8px;
  margin: 28px 0 34px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.stage-deck:hover {
  border-color: rgba(245, 185, 66, 0.22);
  box-shadow: 0 28px 68px -12px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 30px -10px rgba(245, 185, 66, 0.08);
}
.stage-core {
  background: #06080d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(22px - 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stage-hud {
  height: 42px;
  padding: 0 18px;
  background: rgba(10, 14, 22, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stage-hud-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stage-hud-specs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
}
.stage-hud-live {
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}
.stage-viewport {
  position: relative;
  background: #000;
  line-height: 0;
}
.stage-viewport amx-player {
  width: 100%;
  border: none;
  border-radius: 0;
}
.stage-caption-bar {
  padding: 16px 20px;
  background: rgba(12, 16, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stage-meta {
  flex: 1;
  min-width: 280px;
}
.stage-meta-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}
.stage-meta-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dim);
  margin: 0;
}
.stage-meta-text strong {
  color: var(--ink);
}
.stage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-stage-src {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-stage-src:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-border);
  color: var(--ink);
}
.btn-stage-src:active {
  transform: scale(0.98);
}
.btn-stage-src .btn-icon-wrap {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-stage-src:hover .btn-icon-wrap {
  transform: translate(1px, -1px) scale(1.08);
  background: rgba(245, 185, 66, 0.22);
}

.mental-model-banner {
  background: linear-gradient(145deg, rgba(16, 21, 32, 0.95), rgba(9, 12, 18, 0.98));
  border: 1px solid rgba(245, 185, 66, 0.24);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin: 0 0 36px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.mental-model-banner::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.model-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.model-title {
  font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 8px;
}
.model-text {
  font-size: 14.5px; line-height: 1.65; color: var(--dim); margin: 0 0 18px; max-width: none;
}
.model-pipeline {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: rgba(5, 7, 11, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
  font-family: var(--mono); font-size: 11.5px; overflow-x: auto;
}
.pipeline-step {
  display: flex; align-items: center; gap: 6px; color: var(--dim); white-space: nowrap;
}
.pipeline-step span {
  font-size: 9.5px; font-weight: 700; color: var(--faint);
  background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 4px;
}
.pipeline-step.active { color: var(--accent); font-weight: 700; }
.pipeline-step.active span { background: var(--accent-ghost); color: var(--accent); border: 1px solid var(--accent-border); }
.pipeline-arrow { color: var(--muted); font-size: 11px; font-weight: 700; }

/* Evolution table & Insights */
.insight-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin: 20px 0 26px;
}
.insight-card {
  background: linear-gradient(150deg, rgba(16, 21, 32, 0.8), rgba(11, 15, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}
.insight-title {
  margin: 0 0 10px; font-size: 13.5px; font-weight: 750; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.insight-body { margin: 0; font-size: 13px; line-height: 1.6; color: var(--dim); }

.evolution-table {
  width: 100%; max-width: 100%; margin-top: 16px; border-collapse: separate; border-spacing: 0;
  font-size: 13px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08);
}
.evolution-table th, .evolution-table td {
  padding: 11px 14px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.evolution-table th {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--faint); background: rgba(5, 7, 11, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.evolution-table td:first-child {
  font-family: var(--mono); font-weight: 700; color: var(--accent); white-space: nowrap;
}
.evolution-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── living theater & demo showcase styles ──────────────────────── */
.theater-hero {
  position: relative;
  margin: 28px 0 64px;
}

.theater-aura {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--theater-accent, rgba(245, 185, 66, 0.18)) 0%, rgba(245, 185, 66, 0.04) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  animation: aura-breathe 6s ease-in-out infinite alternate;
}

.theater-screen {
  position: relative;
  z-index: 1;
  background: var(--sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-container);
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
}

.theater-hud {
  height: 40px;
  padding: 0 18px;
  background: rgba(10, 14, 22, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theater-hud-file {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.theater-hud-live {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theater-stage-body {
  position: relative;
  background: #000;
  line-height: 0;
}

.theater-stage-body amx-player {
  width: 100%;
  border: none;
  border-radius: 0;
}

.theater-caption-bar {
  padding: 16px 20px;
  background: rgba(12, 16, 24, 0.92);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.theater-meta {
  flex: 1;
  min-width: 260px;
}

.theater-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}

.theater-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.theater-desc {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.5;
  margin: 0;
  max-width: 65ch;
}

.theater-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-theater-primary {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #080a0f;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s var(--expo-out);
}
.btn-theater-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 185, 66, 0.3);
}

.btn-theater-ghost {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}
.btn-theater-ghost:hover {
  color: var(--ink);
  border-color: var(--accent-border);
}

.theater-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 1000px) {
  .theater-channels { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .theater-channels { grid-template-columns: 1fr; }
}

.channel-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s var(--expo-out);
}
.channel-btn:hover {
  background: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.channel-btn.active {
  background: rgba(245, 185, 66, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border), inset 0 0 16px rgba(245, 185, 66, 0.05);
}

.channel-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  background: var(--sunken);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}
.channel-btn.active .channel-num {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-ghost);
}

.channel-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.channel-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.channel-btn.active .channel-tag {
  color: var(--accent-dim);
}

/* ── filter bar & catalog grid ────────────────────────────────────── */
.catalog-section {
  margin-top: 60px;
}

.catalog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.filter-pill {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 550;
  color: var(--dim);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter-pill:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-pill.active {
  color: #080a0f;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

.catalog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.22s var(--expo-out);
  box-shadow: var(--shadow-sm);
}
.catalog-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.catalog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
@media (max-width: 960px) {
  .catalog-card.featured { display: flex; flex-direction: column; }
}

.catalog-poster {
  position: relative;
  background: var(--sunken);
  border-bottom: 1px solid var(--border);
  line-height: 0;
}
.catalog-card.featured .catalog-poster {
  border-bottom: none;
  border-right: 1px solid var(--border);
}
@media (max-width: 960px) {
  .catalog-card.featured .catalog-poster {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.catalog-poster amx-player {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
}

.catalog-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--dim);
  backdrop-filter: blur(8px);
}
.catalog-badge.live {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.3);
}

.catalog-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.catalog-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.catalog-title {
  font-family: var(--sans);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.catalog-blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
  margin: 0;
  flex: 1;
}

.catalog-tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  background: var(--sunken);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2px 7px;
}

.catalog-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.catalog-cta::after {
  content: "→";
  transition: transform 0.18s;
}
.catalog-card:hover .catalog-cta::after {
  transform: translateX(4px);
}

.catalog-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.btn-catalog-deck {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-ghost);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}

.catalog-card:hover .btn-catalog-deck {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0e14;
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-catalog-src {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  text-decoration: none;
  padding: 4px 6px;
  transition: color 0.18s;
}

.btn-catalog-src:hover {
  color: var(--accent);
}

/* ── progressive disclosure mechanics drawer ──────────────────────── */
.mechanics-drawer {
  background: rgba(10, 14, 22, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin: 16px 0 28px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.mechanics-drawer[open] {
  border-color: rgba(245, 185, 66, 0.25);
  background: rgba(12, 16, 26, 0.85);
}

.mechanics-summary {
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: transparent;
  transition: color 0.16s, background 0.16s;
}
.mechanics-summary:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}
.mechanics-summary::after {
  content: "+ Deep Mechanics & Technical Specs";
  font-size: 11.5px;
  color: var(--accent);
}
.mechanics-drawer[open] .mechanics-summary::after {
  content: "− Hide Technical Specs";
  color: var(--faint);
}

.mechanics-body {
  padding: 18px 20px;
  border-top: 1px solid var(--border-soft);
}

.intuition-callout {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.08), rgba(14, 18, 27, 0.7));
  border: 1px solid rgba(245, 185, 66, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 18px 0 24px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}
.intuition-callout-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.intuition-callout-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.walk {
  background: linear-gradient(150deg, rgba(14, 18, 27, 0.75), rgba(9, 12, 18, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 22px 0 28px;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.4);
}
.walk-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.walk-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.walk ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.walk li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dim);
}
.walk li strong {
  color: var(--ink);
}
.walk li .step {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── footer ────────────────────────────────────────────────────────── */
footer {
  margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 13.5px; display: flex; gap: 16px;
  flex-wrap: wrap; justify-content: space-between; align-items: center;
}
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer strong { color: var(--ink); font-weight: 600; }

/* ── interactive deck presentation styles ──────────────────────────── */
.deck-stepper-bar {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 20px auto 32px;
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.deck-nav-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.deck-nav-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.deck-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}
.deck-mode-badge b {
  color: var(--accent);
}
.deck-view-toggles {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px;
}
.btn-deck-mode {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
}
.btn-deck-mode.active {
  background: var(--accent);
  color: #080a0f;
  box-shadow: 0 0 12px rgba(245, 185, 66, 0.35);
}
.btn-deck-mode:hover:not(.active) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}
.deck-pills-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.deck-pills-scroll::-webkit-scrollbar {
  display: none;
}
.deck-pill {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.deck-pill .pill-num {
  color: var(--faint);
  font-size: 10px;
}
.deck-pill:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}
.deck-pill.active {
  color: #080a0f;
  background: var(--deck-accent, var(--accent));
  font-weight: 700;
  box-shadow: 0 0 16px rgba(245, 185, 66, 0.4);
}
.deck-pill.active .pill-num {
  color: rgba(8, 10, 15, 0.7);
}
.deck-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.deck-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.deck-arrow-btn:hover {
  background: var(--deck-accent, var(--accent));
  color: #080a0f;
  border-color: transparent;
  transform: scale(1.08);
}
.deck-arrow-btn:active {
  transform: scale(0.95);
}

/* Ambient backlight glow on stage */
.deck-slide {
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.deck-mode-slideshow .deck-slide {
  margin: 0 0 40px;
}
.stage-deck-aura {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle at 50% 50%, var(--deck-accent, #f5b942) 0%, transparent 65%);
  opacity: 0.12;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  border-radius: 30px;
  animation: deck-aura-pulse 5s ease-in-out infinite alternate;
}
@keyframes deck-aura-pulse {
  0% { opacity: 0.08; transform: scale(0.97); }
  100% { opacity: 0.16; transform: scale(1.03); }
}

/* Briefing Panel inside Deck / Slide */
.briefing-deck {
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-top: 20px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.briefing-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.briefing-title-group {
  flex: 1;
  min-width: 260px;
}
.briefing-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deck-accent, var(--accent));
  margin-bottom: 6px;
  display: block;
}
.briefing-title {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.briefing-hook {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0;
  max-width: 65ch;
}
.briefing-hook strong {
  color: var(--ink);
}

/* Scannable Spec Strips */
.briefing-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
}
.spec-chip {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.spec-chip b {
  color: var(--ink);
  font-weight: 600;
}
.spec-chip.accent {
  border-color: rgba(245, 185, 66, 0.25);
  background: rgba(245, 185, 66, 0.06);
  color: var(--accent);
}

/* Choreography Step Strip */
.briefing-beats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0 10px;
}
.beat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.2s ease;
}
.beat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.beat-step-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--deck-accent, var(--accent));
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.beat-card-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--dim);
}
.beat-card-text strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

/* Progressive Disclosure Code Drawer */
.deck-code-drawer {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}
.deck-code-summary {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: color 0.2s ease;
}
.deck-code-summary:hover {
  color: var(--deck-accent, var(--accent));
}
.deck-code-body {
  margin-top: 12px;
  background: #06080d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}
.deck-code-body pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: #abb2bf;
}
