/* Mirage Source 6 — site theme.
   Illustrated night-city pixel art (site-assets/art) with the existing
   metallic wordmark. Docs fragments in packages/server/src/site/content
   depend on these class names: .callout, .step, .step-num, .table-wrap,
   .card-grid, .feature-grid, .card, .feature-card, .page-nav, .req-list,
   .tag-pill, .lede. */

:root {
  --bg: #07090f;
  --bg-raise: #100e14;
  --ink: #f4ecdf;
  --text: #e7dfd2;
  --text-dim: #b7ad9f;
  --text-dimmer: #8a8174;
  --gold: #e2b15a;
  --gold-deep: #a8742e;
  --gold-soft: rgba(226, 177, 90, 0.35);
  --danger: #e07a86;
  --success: #7dcaa0;
  --serif: 'Cinzel', Georgia, serif;
  --sans: 'Outfit', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #f3d7a2; }
::selection { background: rgba(226, 177, 90, 0.35); color: #fff; }

/* ── Plaques (generated pixel frames) ───────────────────────────────── */

.plate, .btn, .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 7px 16px 8px;
  border: 0;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
a.plate-gold,
a.plate-gold:hover,
a.plate-gold:focus,
a.plate-gold:active,
a.btn-gold,
a.btn-gold:hover,
a.btn-gold:focus,
a.btn-gold:active,
.plate-gold, .btn-gold {
  color: #2a1608;
  text-shadow: 0 1px 0 rgba(255, 246, 214, 0.7);
  background: linear-gradient(180deg, #ffe9a6 0%, #f3c14e 40%, #d8921c 100%);
  box-shadow:
    0 0 0 1px #241608,
    0 0 0 2px #e2b15a,
    inset 0 1px 0 #fff3c4,
    inset 0 -2px 0 #8f5c10,
    0 2px 0 #4a2c0a;
}
.plate-stone, .btn {
  color: #fff6e8;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, #3e362f 0%, #241f1a 100%);
  box-shadow:
    0 0 0 1px #100e0c,
    0 0 0 2px #e2b15a,
    inset 0 1px 0 rgba(255, 228, 176, 0.28),
    inset 0 -2px 0 #0a0908,
    0 2px 0 #24180c;
}
.plate-gold:hover, .btn-gold:hover,
.plate-stone:hover, .btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.plate:active, .btn:active, .btn-gold:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}
.plate:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.plate-sm {
  padding: 5px 10px 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ── Nav / footer ───────────────────────────────────────────────────── */

.topnav {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px 22px;
  flex-wrap: wrap;
  padding: 10px clamp(16px, 3vw, 36px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-soft);
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.site-footer {
  background: #07090f;
  padding: 22px clamp(16px, 3vw, 36px) 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.site-footer nav {
  display: flex; gap: 18px;
  font-family: var(--serif); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.site-footer nav a { color: var(--text-dim); }
.site-footer nav a:hover { color: var(--ink); text-decoration: none; }
.social-row { display: flex; gap: 10px; margin-left: auto; }
.site-footer .ic {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  background: #141018;
}
.site-footer .ic:hover { color: var(--ink); background: #1c1814; }
.footer-tag {
  width: 100%;
  order: 10;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: max(680px, calc(100svh - 74px));
  background: #07090f;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 50% 28%, rgba(5, 7, 14, 0.72), rgba(5, 7, 14, 0.28) 62%, rgba(5, 7, 14, 0.12) 100%),
    linear-gradient(180deg, rgba(5, 7, 14, 0.45) 0%, rgba(5, 7, 14, 0.18) 46%, transparent 72%);
}
.hero-stars {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 45%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-meteors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 8vh, 96px) 16px 80px;
  text-align: center;
}
.hero-lockup { margin: 0; }
.hero-logo {
  width: min(520px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.75));
}
.hero-kicker {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f6ecd8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.hero-lede {
  margin: 12px auto 0;
  max-width: 460px;
  font-size: 18px;
  line-height: 1.5;
  color: #f3eadc;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}
.hero .hero-actions { justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions-center { justify-content: center; }
.hero-note {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 236, 216, 0.8);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ── World reel ─────────────────────────────────────────────────────── */

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.reel { padding: 28px 0 72px; }
.reel-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 26px;
}
.reel-intro h2,
.mast h1,
.cta-copy h2,
.ledger h2,
.section h1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0;
}
.reel-intro h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.reel-intro p { margin: 0; color: var(--text-dim); font-size: 17px; line-height: 1.55; }

.reel-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 640px;
}
.reel-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 240px;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.reel-card-lead { grid-row: 1 / span 2; min-height: 100%; }
.reel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.reel-card:hover img { transform: scale(1.045); }
.reel-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.reel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 56px 18px 16px;
  background: linear-gradient(transparent, rgba(5, 6, 10, 0.92));
}
.reel-cap h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.reel-cap p { margin: 0; color: #ddd4c6; font-size: 14px; }

/* ── Ledger (stone plaque) ──────────────────────────────────────────── */

.ledger-wrap {
  position: relative;
  z-index: 0;
  padding: 72px 0 56px;
  background: url('/site-assets/art/chest.png') center / cover no-repeat;
}
.ledger-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #07090f 0%, transparent 16%, transparent 84%, #07090f 100%);
}
.ledger {
  position: relative;
  z-index: 1;
  padding: 32px 36px 28px;
  border: 1px solid rgba(226, 177, 90, 0.55);
  border-radius: 16px;
  background: rgba(12, 10, 16, 0.78);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 236, 196, 0.08);
  backdrop-filter: blur(8px);
}
.ledger h2 { font-size: clamp(26px, 3vw, 34px); }
.ledger-lead { margin: 10px 0 6px; color: #d9d0c4; font-size: 16px; }
.ledger .hero-actions { margin-top: 22px; }
.ledger-list { list-style: none; margin: 18px 0 0; padding: 0; }
.ledger-list li {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(226, 177, 90, 0.28);
}
.ledger-list strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: #f0d7a4;
}
.ledger-list span { color: #e4dcd0; }

/* ── Closing band ───────────────────────────────────────────────────── */

.cta {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #07090f;
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.scene-rule {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 46px;
  margin: -23px 0;
  background: transparent;
  pointer-events: none;
}
.scene-rule-line {
  flex: 1;
  align-self: stretch;
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 46px;
}
.scene-rule-left { background-image: url('/site-assets/art/separator_left.png'); }
.scene-rule-right { background-image: url('/site-assets/art/separator_right.png'); }
.scene-rule-gem {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.cta::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 110px;
  background: linear-gradient(#07090f, transparent);
  pointer-events: none;
  z-index: 1;
}
.cta::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  background: linear-gradient(transparent, #07090f);
  pointer-events: none;
  z-index: 1;
}
.cta-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 8px 48px;
  text-align: center;
  background: linear-gradient(transparent, rgba(5, 7, 12, 0.55) 28%, rgba(5, 7, 12, 0.88));
}
.cta-copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}
.cta-copy p { color: #f0e7da; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85); margin: 10px 0 0; }
.cta-copy .hero-note { text-align: center; }

/* ── Download ───────────────────────────────────────────────────────── */

.banner { height: min(62vh, 560px); overflow: hidden; background: #07090f; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.section { padding: 42px 0 80px; }
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 28px;
}
.mast h1, .section h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.lede { margin: 12px 0 0; max-width: 640px; color: var(--text-dim); font-size: 18px; line-height: 1.55; }
.mast .hero-actions { margin-top: 0; flex-shrink: 0; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.shot { background: #100e14; display: flex; flex-direction: column; min-width: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.shot-body { padding: 16px 16px 18px; }
.shot-body h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.shot-body p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }

.page-download .ledger + .trio { margin-top: 28px; }
.page-download .trio + .ledger { margin-top: 8px; }

/* ── Docs contract ──────────────────────────────────────────────────── */

.page-docs {
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.72), var(--bg) 380px),
    url('/site-assets/art/hero.png') center top / 100% auto no-repeat,
    var(--bg);
}

.callout {
  margin: 22px 0;
  padding: 14px 16px;
  background: rgba(20, 16, 18, 0.72);
  border: 1px solid var(--gold-soft);
  border-left: 3px solid var(--gold);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}
.callout.warn { border-left-color: #d4783a; }
.callout p { margin: 0; }
.callout strong, .callout b { color: var(--ink); }

.step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(226, 177, 90, 0.2); }
.step:first-child { border-top: none; }
.step-num {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px; font-weight: 700; color: #2a1608;
  background: var(--gold);
}
.step-body p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(226, 177, 90, 0.18); }
th {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0d7a4;
}
td { color: var(--text-dim); }

.card-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.card, .feature-card {
  position: relative;
  background: #14121a;
  padding: 18px 18px 16px;
  border: 1px solid var(--gold-soft);
}
.card::after, .feature-card::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(226, 177, 90, 0.16);
  pointer-events: none;
}
.stack-list { list-style: none; margin: 8px 0 22px; padding: 0; }
.stack-list li {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 8px 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(226, 177, 90, 0.22);
}
.stack-list li:first-child { border-top: none; }
.stack-list code { color: #f0d7a4; }
.stack-list span { color: var(--text-dim); }
.card h3, .feature-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; color: var(--ink); }
.card p, .feature-card p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.glyph-lg { color: var(--gold); font-size: 20px; margin-bottom: 8px; }

.req-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.req-item { color: var(--text); font-size: 15px; }
.tag-pill {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a1608;
  background: var(--gold);
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
}
.page-nav a { color: var(--text-dim); }
.page-nav a:hover { color: var(--gold); text-decoration: none; }

pre {
  background: #100e12;
  border: 1px solid var(--gold-soft);
  padding: 16px 18px;
  overflow: auto;
  margin: 18px 0;
}
pre code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  background: none;
  padding: 0;
  border: none;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: #f0d7a4;
  background: #1a1614;
  border: 1px solid rgba(226, 177, 90, 0.25);
  padding: 1px 6px;
}

main h1 { font-family: var(--serif); font-size: 36px; color: var(--ink); margin: 0 0 14px; line-height: 1.15; }
main h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin: 40px 0 12px;
  scroll-margin-top: 96px;
}
main p.lede { font-size: 18px; color: var(--text-dim); margin: 0 0 22px; }
main p { margin: 0 0 14px; }
main ul, main ol { padding-left: 22px; }
main li { margin-bottom: 4px; }

.docs-shell { max-width: 1400px; margin: 0 auto; }
.docs-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 16px clamp(16px, 3vw, 36px) 0;
  position: relative;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
  padding: 8px 12px;
  background: rgba(16, 14, 18, 0.85);
  border: 1px solid var(--gold-soft);
  color: var(--text-dimmer);
}
.search input {
  background: none; border: none; outline: none;
  color: var(--ink); font: inherit; font-size: 14px; width: 100%;
}
.search input::placeholder { color: var(--text-dimmer); }
.search-results {
  position: absolute;
  top: 58px;
  right: clamp(16px, 3vw, 36px);
  width: min(380px, calc(100vw - 32px));
  max-height: 420px;
  overflow: auto;
  background: #14121a;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  z-index: 30;
}
.search-results a { display: block; padding: 10px 14px; border-bottom: 1px solid rgba(226, 177, 90, 0.15); }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: #1c1916; text-decoration: none; }
.search-results .sr-title { font-weight: 700; color: var(--ink); font-size: 14px; }
.search-results .sr-section { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dimmer); }
.search-results .sr-snippet { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.search-results .sr-empty { padding: 14px; text-align: center; color: var(--text-dimmer); }

.docs-body { display: flex; align-items: flex-start; }
.sidebar {
  width: 250px;
  flex-shrink: 0;
  padding: 18px 16px 48px;
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 74px);
  overflow: auto;
}
.nav-group {
  margin: 18px 12px 8px;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-group:first-child { margin-top: 4px; }
.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--text-dim);
  font-size: 14px;
}
.sidebar .nav-item .ico {
  width: 6px; height: 6px; flex-shrink: 0;
  background: #5c5348;
}
.sidebar .nav-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.03); text-decoration: none; }
.sidebar .nav-item.active {
  color: #f0d7a4;
  background: rgba(226, 177, 90, 0.1);
  box-shadow: inset 2px 0 0 var(--gold);
}
.sidebar .nav-item.active .ico { background: var(--gold); }

.docs-body main {
  flex: 1;
  min-width: 0;
  padding: 8px clamp(16px, 3vw, 48px) 80px;
  max-width: 820px;
}
.crumb { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dimmer); margin-bottom: 12px; }
.crumb .sep { margin: 0 6px; }

.toc {
  width: 200px;
  flex-shrink: 0;
  padding: 28px 16px;
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 74px);
  overflow: auto;
}
.toc-label {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid rgba(226, 177, 90, 0.25);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
}
.toc a:hover { color: var(--ink); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .reel-card img { transition: none; }

}

@media (max-width: 980px) {
  .reel-intro, .mast { grid-template-columns: 1fr; display: grid; }
  .mast { align-items: start; }
  .reel-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .reel-card-lead { grid-row: auto; min-height: 320px; }
  .reel-card { min-height: 240px; }
  .trio, .card-grid, .feature-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 720px) {
  .nav-links { margin-left: 0; width: 100%; order: 3; gap: 16px; }
  .nav-actions { margin-left: auto; }
  .ledger { padding: 20px 16px 18px; }
  .ledger-list li,
  .stack-list li { grid-template-columns: 1fr; gap: 4px; }
  .plate { min-width: 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero .hero-actions,
  .hero-actions-center { align-items: center; }
  .hero { min-height: 620px; }
  .hero-bg { object-position: 28% center; }
  .hero-copy { padding-bottom: 80px; }
  .docs-body { flex-direction: column; }
  .sidebar { position: static; width: 100%; max-height: none; }
  .brand img { height: 32px; }
}
