/* ============================================================
   ASHFALL: DOMINION — marketing + docs stylesheet
   Self-contained: system fonts, no external assets.
   Dark ash/charcoal theme, crimson primary accent.
   ============================================================ */

:root {
  /* Core surface + ink */
  --bg: #17161a;
  --bg-1: #1b1a1f;
  --bg-2: #201f25;
  --bg-3: #2a282f;
  --panel: #1d1c21;
  --ink: #e9e4db;
  --ink-dim: #a49d95;
  --ink-faint: #726c67;
  --line: rgba(233, 228, 219, 0.10);
  --line-strong: rgba(233, 228, 219, 0.18);

  /* Primary accent */
  --crimson: #a32638;
  --crimson-bright: #cf3a51;
  --crimson-deep: #6d1926;
  --ember: #ff7a1a;

  /* Faction palettes */
  --legion-steel: #9aa3ad;
  --legion-crimson: #a32638;
  --kindled-ash: #4a4442;
  --kindled-flame: #ff7a1a;
  --hollow-bone: #d8d2bc;
  --hollow-verdigris: #3f7d6b;
  --companies-oil: #3a3f45;
  --companies-brass: #c9973f;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 8px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(163, 38, 56, 0.16), transparent 60%),
    radial-gradient(900px 500px at 5% 105%, rgba(58, 63, 69, 0.28), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--crimson-bright); text-decoration: none; }
a:hover { color: #e46073; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: #f3efe8;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--crimson);
}

.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.28)); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); }
.section-head p { color: var(--ink-dim); font-size: clamp(16px, 2vw, 19px); margin: 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-transform: uppercase;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(163, 38, 56, 0.9);
}
.btn-primary:hover { background: var(--crimson-bright); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--crimson); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-inline {
  background: none;
  border: 0;
  padding: 0;
  color: var(--crimson-bright);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-inline .arrow { transition: transform 0.15s ease; }
.btn-inline:hover .arrow { transform: translateX(4px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
}
.badge--alpha { color: #ffcf9c; border-color: rgba(255, 122, 26, 0.4); background: rgba(255, 122, 26, 0.08); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 19, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f3efe8;
  text-transform: uppercase;
  font-size: 16px;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .sub { color: var(--crimson-bright); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-links a.is-placeholder { position: relative; }
.nav-links a.is-placeholder::after {
  content: "soon";
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-left: 5px;
  border: 1px solid var(--line);
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: middle;
}
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 42px; height: 38px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 9vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-grid > *, .pillar > *, .campaign-grid > * { min-width: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .flame-text {
  background: linear-gradient(180deg, #ffd9a8, var(--crimson-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 0 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { color: var(--ink-faint); font-size: 13px; margin-top: 20px; letter-spacing: 0.02em; }
.hero-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f0e11;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9);
}
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-stats .stat { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .num { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #f3efe8; line-height: 1; }
.hero-stats .lbl { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }

/* ============================================================
   PILLARS (alternating)
   ============================================================ */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 70px) 0;
}
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar.reverse .pillar-media { order: -1; }
.pillar-body h3 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 16px; }
.pillar-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  margin-bottom: 12px;
}
.pillar-body p { color: var(--ink-dim); margin: 0 0 22px; font-size: 17px; }
.pillar-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #100f13;
  box-shadow: 0 24px 60px -40px rgba(0,0,0,0.9);
}
.pillar-media svg { display: block; width: 100%; height: auto; }

/* ============================================================
   FACTIONS
   ============================================================ */
.faction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.faction-card {
  position: relative;
  border: 1px solid var(--line);
  border-top: 3px solid var(--fc, var(--crimson));
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--panel));
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.faction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 180px at 88% 0%, var(--fc-glow, transparent), transparent 70%);
  pointer-events: none;
}
.faction-card:hover { transform: translateY(-3px); }
.faction-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.faction-crest {
  width: 82px; height: 96px; flex: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
}
.faction-crest svg { display: block; width: 100%; height: 100%; }
.faction-name { font-size: 24px; margin-bottom: 4px; }
.faction-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc, var(--crimson-bright));
}
.faction-identity { color: var(--ink); font-size: 16px; margin: 0 0 18px; font-style: italic; }
.faction-hooks { list-style: none; padding: 0; margin: 0 0 4px; }
.faction-hooks li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-dim);
}
.faction-hooks li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 8px;
  background: var(--fc, var(--crimson));
  transform: rotate(45deg);
}
.faction-hooks strong { color: var(--ink); font-weight: 700; }
.faction-hooks .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc, var(--crimson-bright));
  margin-bottom: 3px;
}

/* ============================================================
   CAMPAIGN / MAP
   ============================================================ */
.campaign-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0e0d10;
  box-shadow: 0 30px 70px -44px rgba(0,0,0,0.9);
}
.map-frame svg { display: block; width: 100%; height: auto; }
.persist-list { list-style: none; padding: 0; margin: 26px 0 0; }
.persist-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.persist-list .ico {
  flex: none; width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--crimson-bright);
  background: rgba(163,38,56,0.08);
}
.persist-list .ico svg { width: 22px; height: 22px; }
.persist-list h4 { font-size: 16px; margin: 2px 0 4px; }
.persist-list p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }

/* ============================================================
   MEDIA REEL
   ============================================================ */
.reel { display: grid; gap: 26px; }
.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0c0f;
  box-shadow: 0 26px 70px -46px rgba(0,0,0,0.9);
}
.shot-frame { position: relative; }
.shot-frame svg { display: block; width: 100%; height: auto; }
.shot-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.shot-caption .tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  border: 1px solid rgba(163,38,56,0.4);
  padding: 3px 8px;
  border-radius: 3px;
  flex: none;
}
.shot-caption p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.mock-label {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap { position: relative; }
.road-list { list-style: none; padding: 0; margin: 0; position: relative; }
.road-list::before {
  content: "";
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--crimson), var(--line));
}
.road-item {
  position: relative;
  padding: 0 0 30px 52px;
}
.road-item:last-child { padding-bottom: 0; }
.road-dot {
  position: absolute;
  left: 6px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
}
.road-item.done .road-dot { background: var(--crimson); border-color: var(--crimson); }
.road-item.active .road-dot { background: var(--bg); border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255,122,26,0.15); }
.road-milestone { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.road-milestone h4 { margin: 0; font-size: 18px; }
.road-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  color: var(--ink-faint);
}
.road-item.done .road-status { color: #9fd3a0; border-color: rgba(120,200,120,0.35); }
.road-item.active .road-status { color: #ffcf9c; border-color: rgba(255,122,26,0.4); background: rgba(255,122,26,0.08); }
.road-item p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.road-dod { color: var(--ink-faint); font-size: 13.5px; margin-top: 4px !important; font-style: italic; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
  letter-spacing: -0.01em;
}
.faq-q:hover { color: #fff; }
.faq-q .plus {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  transition: transform 0.2s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--crimson-bright);
  left: 50%; top: 50%;
}
.faq-q .plus::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq-q .plus::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq-item.open .plus { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-a-inner { padding: 0 44px 24px 0; color: var(--ink-dim); font-size: 16px; }
.faq-a-inner p { margin: 0 0 10px; }
.faq-a-inner p:last-child { margin: 0; }

/* ============================================================
   PLAY / PROTOTYPE
   ============================================================ */
.play {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(163,38,56,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--panel));
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.play > * { min-width: 0; }
.play h2 { font-size: clamp(26px, 4vw, 40px); }
.play p { color: var(--ink-dim); }
.codeblock {
  background: #0c0b0e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.codeblock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.codeblock-head .dots { display: flex; gap: 6px; margin-right: 6px; }
.codeblock-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); display: block; }
.codeblock pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: #d7d2ca;
}
.codeblock .c { color: var(--ink-faint); }
.codeblock .p { color: var(--ember); }
.play-req { list-style: none; padding: 0; margin: 20px 0 0; }
.play-req li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.play-req li::before { content: "→"; color: var(--crimson-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: rgba(0,0,0,0.25);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer h5 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--ink-dim); font-size: 14.5px; }
.footer li a:hover { color: var(--ink); }
.footer .placeholder-link { color: var(--ink-faint); font-size: 14.5px; cursor: default; }
.footer .placeholder-link::after {
  content: " · soon";
  font-size: 11px;
  color: rgba(255,255,255,0.15);
}
.footer-brand p { color: var(--ink-dim); font-size: 14px; margin: 14px 0 0; max-width: 320px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
}

/* ============================================================
   DOCS
   ============================================================ */
.doc-shell { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.doc-side { position: sticky; top: 84px; align-self: start; }
.doc-side nav { border-left: 1px solid var(--line); }
.doc-side .group-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 0 8px 18px;
  margin-top: 20px;
}
.doc-side .group-label:first-child { margin-top: 0; }
.doc-side a {
  display: block;
  padding: 8px 18px;
  color: var(--ink-dim);
  font-size: 14.5px;
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.doc-side a:hover { color: var(--ink); }
.doc-side a.active {
  color: #fff;
  border-left-color: var(--crimson);
  background: linear-gradient(90deg, rgba(163,38,56,0.10), transparent);
}
.doc-main { min-width: 0; }
.doc-breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; letter-spacing: 0.02em; }
.doc-breadcrumb a { color: var(--ink-dim); }
.doc-main h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 12px; }
.doc-main > .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-dim); margin: 0 0 40px; }
.doc-main h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 48px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc-main h3 { font-size: 20px; margin: 30px 0 10px; }
.doc-main p { color: var(--ink-dim); }
.doc-main ul, .doc-main ol { color: var(--ink-dim); padding-left: 22px; }
.doc-main li { margin-bottom: 8px; }
.doc-main li strong, .doc-main p strong { color: var(--ink); }
.doc-main code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 3px;
  color: #f0d9be;
}
.doc-main pre {
  background: #0c0b0e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
}
.doc-main pre code { background: none; padding: 0; color: #d7d2ca; }
.doc-main blockquote {
  margin: 22px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--crimson);
  color: var(--ink-dim);
  background: rgba(163,38,56,0.06);
}
.doc-main blockquote p:last-child { margin-bottom: 0; }

.callout {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--crimson);
  border-radius: var(--radius);
  background: rgba(163,38,56,0.06);
  padding: 16px 20px;
  margin: 24px 0;
}
.callout h4 { margin: 0 0 6px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--crimson-bright); }
.callout p { margin: 0; font-size: 15px; }

.doc-table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.doc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
table.doc-table th, table.doc-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.doc-table th { background: var(--bg-2); color: var(--ink); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
table.doc-table td { color: var(--ink-dim); }
table.doc-table tr:last-child td { border-bottom: 0; }

.diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #100f13;
  overflow: hidden;
  margin: 24px 0;
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13.5px; background: var(--panel); }

.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 8px 0 12px; }
.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--panel));
  padding: 24px;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.doc-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.doc-card .num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--crimson-bright); text-transform: uppercase;
}
.doc-card h3 { margin: 10px 0 8px; font-size: 20px; color: #f3efe8; }
.doc-card p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.doc-pager {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
}
.doc-pager a {
  display: flex; flex-direction: column; gap: 4px;
  color: var(--ink-dim); font-weight: 700; max-width: 48%;
}
.doc-pager a span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.doc-pager a:hover { color: #fff; }
.doc-pager .next { text-align: right; margin-left: auto; }

/* faction key chips in docs */
.fkey { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.fkey .swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; border: 1px solid rgba(255,255,255,0.2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(18,17,21,0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    gap: 2px;
  }
  .nav-links.open a { padding: 12px 8px; font-size: 16px; }
  .nav-links.open .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .pillar, .pillar.reverse { grid-template-columns: 1fr; }
  .pillar.reverse .pillar-media { order: 0; }
  .pillar-media { order: -1; }
  .faction-grid { grid-template-columns: 1fr; }
  .campaign-grid { grid-template-columns: 1fr; }
  .play { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-shell { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .doc-side nav { display: flex; flex-wrap: wrap; gap: 4px; border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .doc-side .group-label { display: none; }
  .doc-side a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 12px; }
  .doc-side a.active { border-left: 0; border-bottom-color: var(--crimson); background: none; }
}

@media (max-width: 560px) {
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stats .stat { border-right: 0; padding-right: 0; margin-right: 0; width: 42%; }
  .footer-grid { grid-template-columns: 1fr; }
  .faction-head { flex-direction: column; }
  .section-head { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
