/* ============================================================
   site.css — Concept01 (AAA Cinematic, full-site mock-up).
   Authored by Frigg 2026-05-31 per Baldur Concept01/frame.md + the
   formalized design-system.md + spec-nav-header-footer.md.
   Loaded by every page in Concept01/. Built to LOAD FIRST with the
   .js-ready pattern so no-JS users get visible content (audit B2/L1).
   ============================================================ */

@import url('main.css');   /* base design system tokens + utilities */

/* ── New tokens (formalized 2026-05-30) ── */
:root {
  --shadow: #371b22;   /* Sgrian wine-violet — replaces inline color-mix */
  --venom:  #426c7d;   /* Nyxa cool-shadow steel — replaces inline color-mix */
  /* Legacy 4-faction colors (per Bran spec — territory ownership) */
  --faction-nivet: #4a8dd6;   /* blue */
  --faction-norn:  #c0392b;   /* red */
  --faction-akhul: #4a9d5a;   /* green */
  --faction-lost:  #2a2a36;   /* black */
  --bg:     #0a0b0f;
  --ink:    #ece7da;
  --ink-faint: #8a877d;
  --rule:   rgba(255,255,255,.10);
  --surface-1: #14161c;
  --surface-2: #1a1d24;
  --f-display: 'Cinzel', serif;
  --f-body: 'Inter', system-ui, sans-serif;

  /* ── Responsive breakpoint scale (design-system §Responsive, Aeron-signed 2026-06-03).
     Plain CSS can't use custom props inside @media — these are DOCUMENTATION + discipline:
     author every @media at one of these four literal px values and nowhere else.
     Migration: 480/520→480 · 720/760→768 · 860/880/900→1024 · 1199→1024 · 1240/1480→1440. ── */
  --bp-sm: 480px;  --bp-md: 768px;  --bp-lg: 1024px;  --bp-xl: 1440px;

  /* ── Scrim system (design-system §Scrim; closes A11Y-1..4). BASELINE alphas, render-tuned:
     --ink clears 4.5:1 over worst-case bright art (--scrim-strong); --scrim-soft = large
     display type only (3:1). legacy-map.css references these with fallbacks; one definition
     lives here and consolidates on the 11ty port (token-plant-once). ── */
  --scrim-strong: rgba(7,8,11,.72);
  --scrim-soft:   rgba(7,8,11,.42);
}

/* cross-document soft transitions (View Transitions opt-in) */
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); }
img, picture { max-width: 100%; display: block; }
a { color: inherit; }

/* ── .js-ready pattern (audit B2/L1 fix) ────────────────────────
   site.js sets <html class="js-ready"> immediately on parse. Any
   GSAP-hidden-then-revealed element wraps its hidden state in
   `.js-ready` so no-JS users see the natural visible state. */

/* ── GLOBAL NAV / HEADER ──────────────────────────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 24px; transition: background .25s ease, padding .25s ease, border-color .25s ease;
  background: transparent; border-bottom: 1px solid transparent; }
/* A11Y-2 fix — top-anchored gradient scrim is the ACTUAL contrast guarantee for
   nav-over-hero (blur darkens nothing + has no fallback). Shows only in the
   transparent hero-overlay state; the condensed/solid states carry their own
   solid bar so the scrim hides under them. Extends below the short bar for a
   smooth cinematic fade; pointer-events:none so the hero stays clickable. */
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200%;
  background: linear-gradient(180deg, var(--scrim-strong) 0%, rgba(7,8,11,.30) 55%, transparent 100%);
  pointer-events: none; z-index: 0; }
.site-header.is-condensed::before, .site-header.is-solid::before { display: none; }
.site-header__inner { position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--space-4); max-width: 1480px; margin: 0 auto; }
.site-header__nav-left,
.site-header__nav-right { display: flex; gap: var(--space-4); justify-content: center; }
.site-header__brand { display: flex; align-items: center; gap: var(--space-3); justify-content: center; }
.site-header__brand img { height: 36px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.8)); }
.site-header__brand a { text-decoration: none; }
.site-header a.nav-link { font-family: var(--f-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: #ece7da;
  padding: .5em .25em; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
  text-shadow: 0 1px 3px rgba(0,0,0,.55); }   /* scrim insurance (design-system §Scrim rule 3) */
.site-header a.nav-link:hover, .site-header a.nav-link:focus-visible {
  color: var(--gold); border-bottom-color: var(--gold); outline: none; }
.site-header a.nav-link.is-highlight { color: var(--ember-br); }
.site-header a.nav-link.is-highlight:hover { color: var(--gold-br); }

/* State 2: scroll-condense — added by site.js when scroll past sentinel */
.site-header.is-condensed { background: rgba(7,8,11,.92); border-bottom-color: var(--rule);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 8px 24px; }
.site-header.is-condensed .site-header__brand img { height: 28px; }
/* State 3: hero-less (page has no hero) — solid from first paint */
.site-header.is-solid { background: rgba(7,8,11,.92); border-bottom-color: var(--rule); }

/* Mobile drawer toggle (nav→drawer at --bp-lg / 1024) */
.site-header__menu-toggle { display: none; background: transparent; border: 1px solid var(--rule);
  color: var(--ink); border-radius: 6px; padding: 8px 12px; cursor: pointer;
  font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.site-header__menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* nav hamburger boundary re-anchored 900→1024 (--bp-lg). Gate-cond (a): 5+5 nav
   validated to hold 1024–1440 on render; if it ever crowds that's a Baldur nav-density call. */
@media (max-width: 1024px) {
  .site-header__nav-left, .site-header__nav-right { display: none; }
  .site-header__menu-toggle { display: inline-block; }
  .site-header__inner { grid-template-columns: 1fr auto auto; }
}

/* Mobile full-overlay drawer (opened by site.js) */
.site-drawer { position: fixed; inset: 0; z-index: 70; background: rgba(7,8,11,.97);
  display: none; flex-direction: column; padding: var(--space-6) var(--space-5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-drawer[aria-hidden="false"] { display: flex; }
.site-drawer__close { align-self: flex-end; background: transparent; border: none; color: var(--ink);
  font-size: 1.6rem; cursor: pointer; padding: var(--space-3); }
.site-drawer__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.site-drawer__nav { display: flex; flex-direction: column; gap: var(--space-4); flex: 1;
  justify-content: center; align-items: center; }
.site-drawer__nav a { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); text-decoration: none; padding: var(--space-3); }
.site-drawer__nav a:hover, .site-drawer__nav a:focus-visible { color: var(--gold); outline: none; }
body.is-drawer-open { overflow: hidden; }

/* ── AUDIO TOGGLE — promoted global per nav spec; icon-only ≤480px (P2) ── */
.audio-toggle { position: fixed; top: 14px; right: 14px; z-index: 60;
  display: inline-flex; align-items: center; gap: .5ch;
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  background: rgba(12,14,18,.74); color: #ece7da;
  border: 1px solid rgba(255,255,255,.18); font: 600 .78rem/1 var(--f-body);
  letter-spacing: .02em; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.audio-toggle:hover { border-color: var(--gold); }
.audio-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.audio-toggle[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.audio-toggle[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  .audio-toggle { padding: 0; width: 44px; justify-content: center; }
  .audio-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ── KS BANNER (top-of-page promo strip, restyled) ── */
.ks-banner { background: linear-gradient(90deg, rgba(214,103,42,.18), rgba(214,103,42,.08));
  border-bottom: 1px solid color-mix(in srgb, var(--ember-br) 30%, transparent);
  padding: 8px 18px; text-align: center; font-size: .82rem; font-family: var(--f-body); }
.ks-banner a { color: var(--ember-br); font-family: var(--f-display); letter-spacing: .08em;
  font-weight: 600; text-decoration: none; }
.ks-banner a:hover { text-decoration: underline; }
.ks-banner__close { background: transparent; border: none; color: var(--ink-faint);
  cursor: pointer; padding: 0 8px; }

/* ── PAGE LAYOUT HELPERS ── */
.page { padding-top: 0; }   /* hero-overlay pages bleed under header */
.page--with-banner { padding-top: 36px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: clamp(3rem,8vh,7rem) var(--space-5); }
.section--dark { background: var(--bg); }
.section--surface { background: var(--surface-1); }
.eyebrow { font-family: var(--f-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-size: .72rem; margin: 0 0 var(--space-3); }
.h2 { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 var(--space-3); }
.lede { color: var(--ink-faint); font-size: clamp(1rem,2vw,1.2rem); line-height: 1.55;
  max-width: 60ch; margin: 0 auto var(--space-5); }
.muted { color: var(--ink-faint); }
.center { text-align: center; }
.placeholder { color: var(--ink-faint); font-style: italic; }
.btn { display: inline-block; padding: .8em 1.6em; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; font-size: .82rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all .2s; }
.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-br); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── .overlay-panel (design-system §Scrim) — formalizes the proven kickstarter
   countdown-panel pattern: a contained dark-scrim panel for dense copy / forms /
   data over variable imagery that a gradient alone can't protect. ── */
.overlay-panel { background: var(--scrim-strong); border: 1px solid var(--rule);
  border-radius: 12px; padding: var(--space-5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ── .legend-card — FORMAL component with --sm / --md / --lg variants (L3) ── */
.legend-card { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--rule); background: #07080b; perspective: 700px;
  text-decoration: none; color: inherit; display: block;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.legend-card:hover, .legend-card:focus-visible { transform: translateY(-6px); outline: none;
  border-color: var(--legend-accent, var(--gold));
  box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px var(--legend-accent, var(--gold)),
              0 0 30px color-mix(in srgb, var(--legend-accent, var(--gold)) 50%, transparent); }
.legend-card__img { position: absolute; inset: -4%; width: 108%; height: 108%;
  object-fit: cover; will-change: transform; transition: transform .18s ease-out; }
.legend-card__rim { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  transition: opacity .25s ease;
  box-shadow: inset 0 0 70px 16px color-mix(in srgb, var(--legend-accent, var(--gold)) 26%, transparent); }
.legend-card:hover .legend-card__rim,
.legend-card:focus-visible .legend-card__rim { opacity: 1; }
.legend-card__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: var(--space-3);
  background: linear-gradient(0deg, rgba(6,7,10,.96) 30%, transparent); }
.legend-card__name { font-family: var(--f-display); font-weight: 700; color: #fff;
  margin: 0 0 .2rem; font-size: 1.05rem; }
.legend-card__class { font-family: var(--f-display); letter-spacing: .14em;
  text-transform: uppercase; color: var(--legend-accent, var(--gold)); font-size: .72rem; margin: 0; }
.legend-card__chip { display: inline-block; padding: .12em .55em; border-radius: 999px;
  font-family: var(--f-display); font-size: .62rem; color: var(--ink-faint);
  border: 1px dashed rgba(255,255,255,.18); margin-left: .4em; letter-spacing: .1em; }
/* Size variants */
.legend-card--sm { font-size: .82em; }   /* homepage band (small) */
.legend-card--md { font-size: 1em; }     /* hub (default-size) */
.legend-card--lg { font-size: 1.1em; }   /* cross-link / feature */
.legend-card--lg .legend-card__name { font-size: 1.4rem; }

/* ── .mode-card — 4:3 landscape sibling to .legend-card ── */
.mode-card { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rule); background: #07080b; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mode-card:hover, .mode-card:focus-visible { transform: translateY(-6px); outline: none;
  border-color: var(--mode-accent, var(--gold));
  box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px var(--mode-accent, var(--gold)); }
.mode-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .55; transition: opacity .25s ease; }
.mode-card:hover .mode-card__img { opacity: .75; }
.mode-card__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(7,8,11,.95), rgba(7,8,11,.3) 60%, transparent); }
.mode-card__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--space-5); }
.mode-card__eyebrow { font-family: var(--f-display); letter-spacing: .2em;
  text-transform: uppercase; color: var(--mode-accent, var(--gold)); font-size: .68rem; margin: 0 0 .4rem; }
.mode-card__name { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: 1.6rem; margin: 0 0 .4rem; }
.mode-card__desc { color: var(--ink); font-size: .92rem; line-height: 1.4; margin: 0; opacity: .85; }
.mode-card[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.mode-card__chip { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 3;
  padding: .2em .6em; border-radius: 999px; font-family: var(--f-display);
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,0,.6); color: var(--ink-faint); border: 1px solid var(--rule); }

/* ── FOOTER — 4-column AAA ── */
.site-footer { background: #07080b; border-top: 1px solid var(--rule);
  padding: clamp(3rem,7vh,5rem) 0 var(--space-4); margin-top: var(--space-7); }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
  max-width: 1240px; margin: 0 auto; padding: 0 var(--space-5); }
@media (max-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__col h4 { font-family: var(--f-display); font-weight: 700; color: var(--gold);
  letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; margin: 0 0 var(--space-3); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6em; }
.site-footer__col a { color: var(--ink-faint); text-decoration: none; font-size: .88rem; }
.site-footer__col a:hover { color: var(--ink); }
.site-footer__brand img { height: 32px; width: auto; margin-bottom: var(--space-3); }
.site-footer__brand p { color: var(--ink-faint); font-size: .82rem; line-height: 1.5; margin: 0; }
.site-footer__legal { max-width: 1240px; margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-5) 0; border-top: 1px solid var(--rule);
  display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: space-between;
  font-size: .76rem; color: var(--ink-faint); }
.site-footer__legal a { color: var(--ink-faint); text-decoration: none; }
.site-footer__legal a:hover { color: var(--ink); }
.site-footer__credit { font-family: var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  font-size: .68rem; }

/* ── Visually-hidden a11y helper ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Skip link ── */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #000; padding: var(--space-3) var(--space-4);
  font-family: var(--f-display); font-weight: 700; }
.skip-link:focus { left: 0; }

/* ── reduced-motion — kills all transforms / transitions site-wide ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
  }
}

/* ── Reveal-on-scroll, REDUCED (mobile / touch) tier. site.js sets
   html[data-fx-reduced] ONLY when the lightweight IO path runs (the Full-desktop
   GSAP tier never sets it, reduced-motion never sets it). The hidden state lives
   only under that attr, so no-JS users see everything and reduced-motion is exempt. ── */
@media (prefers-reduced-motion: no-preference) {
  html[data-fx-reduced] [data-reveal] { opacity: 0; transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease; }
  html[data-fx-reduced] [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* ============================================================
   LEGENDS SECTION LAYOUT  (CSS-1 — authored 2026-06-06, Frigg)
   site.css carried .legend-card* but NONE of the Legends hub /
   per-hero section layout classes — never authored for the Jun-4
   BEM markup (diagnosis: never-authored, not a regression).
   Built to: Baldur/Concept01/surfaces/legends.md +
   baldur/spec-legends-hub-and-hero-pages.md + design-system.md L218
   (--md ~340x455). No new tokens. Grid values confirmed by Baldur
   via Aeron 2026-06-06: roster gap --space-6 (32px), tighten to
   --space-3 (12px) <=480px; max-width --max (1200px), centered;
   2-up mobile (frame §2 supersedes spec's 1-up).
   Content is CSS-visible by default — no .js-ready opacity hide
   (audit B2/L1); GSAP only enhances at runtime.
   ============================================================ */

/* ── HUB · page head ── */
.legends-hub-head { padding: clamp(5rem,12vh,9rem) var(--space-5) var(--space-6); text-align: center; }
.legends-hub-head__inner { max-width: 70ch; margin-inline: auto; }
.legends-hub-head h1 { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(2rem,5vw,3.4rem); line-height: 1.08; margin: 0 0 var(--space-4); }
.legends-hub-head .sub { color: var(--ink-faint); font-size: clamp(1rem,2vw,1.18rem);
  line-height: 1.55; margin: 0; }

/* ── HUB · roster grid (3-up / 2-up tablet / 2-up mobile; zig-zag is reveal-order, not layout) ── */
.legends-roster { padding: 0 var(--space-5) clamp(3rem,8vh,6rem); }
.legends-roster__grid { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6); max-width: var(--max); margin-inline: auto; }
@media (max-width: 1024px) { .legends-roster__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .legends-roster__grid { gap: var(--space-3); } }

/* card sub-elements introduced by the new hub markup, absent from the base component */
.legend-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .6em; margin: 0; }
.legend-card__elem { font-family: var(--f-display); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); }
.legend-card__enter { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 6;
  font-family: var(--f-display); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--legend-accent, var(--gold)); opacity: 0; transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease; }
.legend-card:hover .legend-card__enter,
.legend-card:focus-visible .legend-card__enter { opacity: 1; transform: none; }

/* ── HUB · "How a Legend is made" full-bleed lore tease ── */
.legends-howmade { position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(4rem,12vh,8rem) var(--space-5); }
.legends-howmade__bg { position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; }
.legends-howmade__bg picture { position: absolute; inset: 0; display: block; }
.legends-howmade__bg img { width: 100%; height: 100%; object-fit: cover; }
.legends-howmade__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7,8,11,.94), rgba(7,8,11,.66) 60%, rgba(7,8,11,.82)); }
.legends-howmade__inner { max-width: 56ch; margin-inline: auto; text-align: center; }
.legends-howmade__inner h2 { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(1.7rem,4vw,2.8rem); line-height: 1.1; margin: 0 0 var(--space-4); }
.legends-howmade__inner p { color: var(--ink); opacity: .9; line-height: 1.6; margin: 0 0 var(--space-5); }

/* ── Cross-link strips (hub: .legends-crosslinks/.crosslink-card · hero: .legend-crosslinks/.legend-crosslink) ── */
.legends-crosslinks, .legend-crosslinks { padding: clamp(3rem,8vh,5rem) var(--space-5); }
.legends-crosslinks__grid, .legend-crosslinks__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
  max-width: var(--max); margin-inline: auto; }
@media (max-width: 768px) {
  .legends-crosslinks__grid, .legend-crosslinks__grid { grid-template-columns: 1fr; } }
.crosslink-card, .legend-crosslink { display: block; text-decoration: none; color: inherit;
  background: var(--surface-1); border: 1px solid var(--rule); border-radius: 12px; padding: var(--space-5);
  transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.crosslink-card:hover, .crosslink-card:focus-visible,
.legend-crosslink:hover, .legend-crosslink:focus-visible {
  transform: translateY(-4px); border-color: var(--legend-accent, var(--gold));
  background: var(--surface-2); outline: none; }
.crosslink-card h3, .legend-crosslink h3 { font-family: var(--f-display); color: #fff;
  font-size: 1.12rem; margin: 0 0 .4rem; }
.crosslink-card p, .legend-crosslink p { color: var(--ink-faint); font-size: .9rem; line-height: 1.45; margin: 0; }

/* ── HERO · cinematic banner (100svh; tier-B stage+cutout / tier-C frame|img) ── */
.legend-banner { position: relative; isolation: isolate; overflow: hidden; display: block;
  height: min(100svh, 820px); min-height: 480px; }
/* image layer — covers all three banner inner-shapes */
.legend-banner picture,
.legend-banner__frame,
.legend-banner--tier-b .legend-banner__stage { position: absolute; inset: 0; z-index: 1; }
.legend-banner__img,
.legend-banner__backdrop { width: 100%; height: 100%; object-fit: cover; }
.legend-banner__frame .legend-banner__img,
.legend-banner__frame picture { position: absolute; inset: 0; }
/* tier-C empty .legend-banner__stage = faction wash overlay (sgrian/bravus) */
.legend-banner--tier-c .legend-banner__stage { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(80% 70% at 50% 30%,
    color-mix(in srgb, var(--legend-accent, var(--gold)) 16%, transparent), transparent 70%); }
.legend-banner__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 16%, transparent 42%, rgba(7,8,11,.5) 78%, rgba(7,8,11,.9)),
    linear-gradient(0deg, rgba(7,8,11,.95) 3%, transparent 42%); }
.legend-banner__rim { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 160px 34px color-mix(in srgb, var(--legend-accent, var(--gold)) 20%, transparent); }
/* tier-B cutout subject, anchored bottom-centre over the backdrop */
.legend-banner__subject { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 96%; width: auto; max-width: none; object-fit: contain; z-index: 3;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.6)); }
.legend-banner__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  max-width: var(--max); margin-inline: auto; padding: clamp(2rem,7vh,5rem) var(--space-5); }
.legend-banner__name { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(2.4rem,7vw,4.5rem); line-height: 1; margin: .3rem 0 .2rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.7); }
.legend-banner__tag { font-family: var(--f-display); font-style: italic; color: var(--ink);
  font-size: clamp(1rem,2.4vw,1.4rem); margin: 0; }

/* ── HERO · identity strip (handles __head and __primary variants) ── */
.legend-identity { max-width: var(--max); margin-inline: auto; padding: clamp(2.5rem,6vh,4rem) var(--space-5); }
.legend-identity__row { display: flex; flex-wrap: wrap; gap: var(--space-6);
  align-items: flex-start; justify-content: space-between; }
.legend-identity__head,
.legend-identity__primary { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.legend-identity__eyebrow { font-family: var(--f-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-size: .72rem; margin: 0; }
.legend-identity__name { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(2rem,5vw,3.2rem); line-height: 1.04; margin: .1rem 0 .25rem; }
.legend-identity__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.legend-identity__class { font-family: var(--f-display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--legend-accent, var(--gold)); font-size: .9rem; }
.legend-identity__sep { color: var(--ink-faint); }
.legend-identity__elem { font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); font-size: .82rem; }
.legend-identity__weapon { color: var(--ink-faint); font-size: .95rem; margin: 0; }
.legend-identity__accent-rule { display: block; width: 64px; height: 3px; border-radius: 2px;
  margin-top: .6rem; background: var(--legend-accent, var(--gold)); }

/* ladder standing card (Phase-2 placeholder) */
.legend-ladder { flex: 0 1 18rem; background: var(--surface-1); border: 1px solid var(--rule);
  border-radius: 12px; padding: var(--space-5); }
.legend-ladder__label { font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-size: .66rem; margin: 0 0 .4rem; }
.legend-ladder__rank { font-family: var(--f-display); color: #fff; font-size: 1.4rem; margin: 0 0 .2rem; }
.legend-ladder__tier { color: var(--ink-faint); font-size: .9rem; margin: 0 0 .7rem; }
.legend-ladder__pending { display: inline-block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); border: 1px dashed rgba(255,255,255,.18); border-radius: 999px; padding: .2em .7em; }

/* vitals (single Max Health stat) */
.legend-stats { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-5); }
.legend-stat { background: var(--surface-1); border: 1px solid var(--rule); border-radius: 10px;
  padding: var(--space-4) var(--space-5); min-width: 120px; text-align: center; }
.legend-stat__label { font-family: var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-size: .66rem; margin: 0 0 .3rem; }
.legend-stat__value { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: 2rem; line-height: 1; margin: 0; }

/* ── HERO · abilities band ── */
.legend-abilities { max-width: var(--max); margin-inline: auto; padding: clamp(2rem,5vh,3.5rem) var(--space-5); }
.legend-abilities__head { margin-bottom: var(--space-5); }
.legend-abilities__head h2 { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(1.5rem,3.5vw,2.4rem); margin: .2rem 0 0; }
.legend-abilities__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5); }
.legend-ability { background: var(--surface-1); border: 1px solid var(--rule);
  border-top: 3px solid var(--legend-accent, var(--gold)); border-radius: 12px; padding: var(--space-5); }
.legend-ability__head { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-3); }
.legend-ability__name { font-family: var(--f-display); color: #fff; font-size: 1.05rem; margin: 0; }
/* pills: pages use either __pill or __type for the same chip — style both */
.legend-ability__pill, .legend-ability__type { font-family: var(--f-display); font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase; padding: .25em .7em; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink-faint); white-space: nowrap; }
.legend-ability__pill--passive, .legend-ability__type--passive { color: var(--ice); border-color: color-mix(in srgb, var(--ice) 50%, transparent); }
.legend-ability__pill--active,  .legend-ability__type--active  { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.legend-ability__pill--ultimate,.legend-ability__type--ultimate{ color: var(--ember-br); border-color: color-mix(in srgb, var(--ember-br) 50%, transparent); }
.legend-ability__desc { color: var(--ink-faint); font-size: .92rem; line-height: 1.5; margin: 0 0 var(--space-4); }
.legend-ability__nums { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0; }
.legend-ability__num { display: flex; flex-direction: column; }
.legend-ability__num strong { font-family: var(--f-display); color: #fff; font-size: 1.2rem; }
.legend-ability__num span { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

/* ── HERO · lore beat (full-bleed scene) ── */
.legend-lore { position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(4rem,14vh,9rem) var(--space-5); margin-top: var(--space-6); }
/* lore bg appears as: <picture class=bg>, <div class=bg><picture>, or <div class=bg style=background-image> — cover all three */
.legend-lore__bg { position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; }
.legend-lore__bg picture { position: absolute; inset: 0; display: block; }
.legend-lore__bg img { width: 100%; height: 100%; object-fit: cover; }
.legend-lore__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7,8,11,.94), rgba(7,8,11,.72) 55%, rgba(7,8,11,.86)); }
.legend-lore__in { max-width: 62ch; margin-inline: auto; }
.legend-lore__eyebrow { font-family: var(--f-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--legend-accent, var(--gold)); font-size: .72rem; margin: 0 0 var(--space-3); }
.legend-lore__headline { font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(1.6rem,4vw,2.6rem); line-height: 1.12; margin: 0 0 var(--space-4); }
.legend-lore__body { color: var(--ink); opacity: .9; line-height: 1.65; margin: 0 0 var(--space-4); }

/* ── HERO · voice / signature pull-quote ── */
.legend-voice { max-width: 60ch; margin-inline: auto; padding: clamp(3rem,8vh,5rem) var(--space-5);
  text-align: center; }
.legend-voice__quote { font-family: var(--f-display); font-style: italic; color: #fff;
  font-size: clamp(1.4rem,3.5vw,2.2rem); line-height: 1.3; margin: 0; }
.legend-voice__rule { display: block; width: 80px; height: 3px; border-radius: 2px;
  margin: var(--space-5) auto var(--space-4); background: var(--legend-accent, var(--gold)); }
.legend-voice__attrib { font-family: var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-size: .8rem; margin: 0; }
