/* Fonts are loaded via <link rel="preconnect"> + a <link rel="stylesheet"> in each
   page <head> (parallel, preload-scanner-discoverable) rather than a render-blocking
   @import chained behind this file. */

/* =========================================================================
   LA Sin of Angels — shared stylesheet
   Dark Americana outlaw-MC crime saga. Leather and chrome, blood red on black.
   Design tokens -> reset -> type -> chrome -> buttons -> header/footer ->
   layout primitives -> components -> utilities -> responsive -> reduced-motion
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --ink: #0a0a0b;
  --ink-2: #0d0d0f;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --blood: #b00711;
  --blood-hot: #d11021;
  --blood-deep: #6d0410;
  --chrome: #c9ccd1;
  --chrome-bright: #eef0f2;
  --muted: #8b9096;
  --bone: #e9e4da;
  --ember: #c8862a;
  --hairline: rgba(201, 204, 209, 0.12);
  --hairline-strong: rgba(201, 204, 209, 0.22);
  --blood-glow: rgba(176, 7, 17, 0.35);
  --blood-link: #f0454f;   /* body-size red link/text — lightened to clear WCAG AA 4.5:1 on --ink */

  /* Elevation system — one light source (top). In this dark theme, lift is signaled
     FIRST by a lighter surface tint, with soft, layered shadows tinted toward the
     near-black/blood ground (never pure #000) as secondary support. Assign by
     importance: tag < resting card < raised/hover card < overlay. */
  --surface-1: #141416;   /* level 1 — tags, dense data cells (lowest lift) */
  --surface-2: #191a1d;   /* level 2 — cards / tiles at rest */
  --surface-3: #212228;   /* level 3 — featured / hovered cards */
  --surface-4: #282a31;   /* level 4 — overlays / floating art */
  --shadow-1: 0 1px 2px rgba(6, 4, 5, 0.5);
  --shadow-2: 0 2px 6px rgba(6, 4, 5, 0.46), 0 6px 16px rgba(6, 4, 5, 0.34);
  --shadow-3: 0 6px 14px rgba(6, 4, 5, 0.5), 0 16px 36px rgba(6, 4, 5, 0.4);
  --shadow-4: 0 10px 24px rgba(6, 4, 5, 0.55), 0 28px 64px rgba(6, 4, 5, 0.46);

  /* type */
  --f-display: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  --f-cond: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --step--1: 0.82rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  --h3: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem);
  --h2: clamp(2rem, 1.2rem + 3.4vw, 3.75rem);
  --h1: clamp(2.9rem, 1.2rem + 7.4vw, 6.5rem);

  /* space */
  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4.5rem;
  --s-8: 7rem;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 3px;      /* controls, tags — modest, from one family scale */
  --radius-lg: 6px;   /* cards, art frames — one step up for larger surfaces */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--bone);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

/* ---------- Global texture: film grain + blood vignette ----------
   Two delivery paths, one look:
   1. Dedicated fixed .fx-vignette + .fx-grain DOM layers (Round 3) — GSAP/main.js can
      animate a subtle shimmer + scroll parallax on them (they freeze under reduced-motion).
   2. Fallback body::before/::after for any page that has NOT yet been given the FX divs.
      The :has() guard turns the pseudo layers OFF when the DOM layers are present, so the
      texture never doubles up. */

/* fixed FX layers (present in markup -> no JS needed for the static look).
   Oversized by 8% each side so GSAP scroll-parallax never reveals a bare edge. */
.fx-vignette, .fx-grain { position: fixed; inset: -8%; pointer-events: none; z-index: 1; }
.fx-vignette {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(176, 7, 17, 0.10), transparent 55%),
    radial-gradient(140% 120% at 50% 120%, rgba(0, 0, 0, 0.85), transparent 60%),
    radial-gradient(100% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}
.fx-grain {
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* fallback texture for pages without the FX divs (older chrome) */
body:not(:has(.fx-grain))::before,
body:not(:has(.fx-grain))::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; }
body:not(:has(.fx-grain))::before {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(176, 7, 17, 0.10), transparent 55%),
    radial-gradient(140% 120% at 50% 120%, rgba(0, 0, 0, 0.85), transparent 60%),
    radial-gradient(100% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}
body:not(:has(.fx-grain))::after {
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* keep real content above the overlays */
.site-header, main, .site-footer, .skip-link { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 0.95; letter-spacing: -0.01em; color: var(--chrome-bright); text-transform: uppercase; }
h1 { font-size: var(--h1); letter-spacing: -0.02em; }
h2 { font-size: var(--h2); }
h3 { font-family: var(--f-cond); font-weight: 600; font-size: var(--h3); line-height: 1.05; letter-spacing: 0.02em; }
p { max-width: 68ch; }
strong { color: var(--chrome-bright); font-weight: 600; }

.lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--bone); line-height: 1.6; }
.muted { color: var(--muted); }

/* chrome-sheen heading treatment */
.h-chrome { color: var(--chrome-bright); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .h-chrome {
    background-image: linear-gradient(178deg, #f4f6f7 0%, #cfd2d7 38%, #7f858c 66%, #cfd2d7 82%, #eceef0 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  }
}
/* blood heading — hue + weight carry it (no neon glow) */
.h-blood { color: var(--blood-hot); }

/* eyebrow / kicker label */
.eyebrow {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--blood), transparent);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  --_bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--f-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: var(--radius);
  background: var(--_bg);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
/* primary = stitched leather patch. Solid blood fill (no gradient), dashed thread
   border is the brand signature. Elevation is neutral/tinted — no colored glow. */
.btn-primary {
  --_bg: var(--blood);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.28), var(--shadow-2);
  position: relative;
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 5px;
  border: 1.5px dashed rgba(255, 232, 224, 0.55);
  border-radius: 1px;
  pointer-events: none;
}
.btn-primary:hover { --_bg: var(--blood-hot); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(0, 0, 0, 0.28), var(--shadow-3); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.3), var(--shadow-1); }

/* secondary = chrome ghost. Separated by its ring only (one method), no shadow. */
.btn-ghost {
  color: var(--chrome);
  box-shadow: inset 0 0 0 1.5px var(--hairline-strong);
}
.btn-ghost:hover { color: var(--chrome-bright); box-shadow: inset 0 0 0 1.5px var(--blood); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); box-shadow: inset 0 0 0 1.5px var(--blood-deep); }

.btn-lg { padding: 1.15rem 2.2rem; font-size: 1.02rem; }

/* focus visibility (quality floor) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -3rem;
  background: var(--blood); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { height: 34px; width: auto; flex: none; filter: drop-shadow(0 0 5px var(--blood-glow)); }
.brand-word {
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.11em; font-size: 1.02rem; color: var(--chrome-bright); white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav > a:not(.btn) {
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 500; font-size: 0.9rem; color: var(--chrome); position: relative; padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blood-hot); transition: width 0.25s var(--ease);
}
.site-nav > a:not(.btn):hover { color: var(--chrome-bright); }
.site-nav > a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: 0.72rem 1.25rem; font-size: 0.85rem; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--chrome-bright); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, var(--ink), #060607),
    radial-gradient(80% 120% at 50% 0%, rgba(176, 7, 17, 0.08), transparent 60%);
  padding: var(--s-7) 0 var(--s-5);
  margin-top: var(--s-8);
}
.footer-top { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(120px, 1fr)); gap: 2.5rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-blurb { color: var(--muted); font-size: 0.95rem; max-width: 42ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--f-cond); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.24em; color: var(--ember); text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--chrome); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--blood-hot); }
.footer-bottom { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--hairline); text-align: center; }
.footer-tagline {
  font-family: var(--f-display); text-transform: uppercase; color: var(--chrome-bright);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem); letter-spacing: 0.02em; line-height: 1; margin-bottom: 1rem;
}
.footer-legal { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }
.footer-mark { height: 30px; width: auto; margin: 0 auto 1.1rem; opacity: 0.9; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--s-8); position: relative; }
.section-tight { padding-block: var(--s-7); }
.section--panel { background: var(--panel); border-block: 1px solid var(--hairline); }
.section-head { max-width: 60ch; margin-bottom: var(--s-6); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { color: var(--muted); margin-top: 1.1rem; font-size: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* thin divider mark between sections */
.rule { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--blood); opacity: 0.7; margin: 0 auto; }
.rule::before, .rule::after { content: ""; height: 1px; width: min(120px, 20vw); background: linear-gradient(90deg, transparent, var(--hairline-strong)); }
.rule svg { width: 20px; height: 20px; }

/* ---------- Hero (movie-poster composition, left-anchored rail) ----------
   No badge/crest. The cinematic town-night plate + scrim carry the image; the
   headline, FREE chip and CTAs carry the message. Content is pinned to a rail on
   the left, not centered. */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem) var(--s-8); overflow: hidden; }
.hero-content { position: relative; z-index: 2; max-width: 40rem; }
.hero .release-tag { margin-bottom: var(--s-2); }
.hero h1 { margin: var(--s-3) 0 var(--s-4); }
/* FOUC guard: an inline <head> script adds .hero-hold (only when motion is allowed) so the
   headline never paints before GSAP/SplitText reveals it. main.js clears it on every path. */
.hero-hold .hero h1 { visibility: hidden; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--blood-hot); }
/* SEO comparison line — lives INSIDE the single <h1> (one H1, subordinate second statement)
   so the keyword is in the H1 for crawlers without competing with the title visually. */
.hero h1 .h1-sub {
  display: block;
  font-family: var(--f-cond);
  font-size: clamp(0.88rem, 0.6rem + 0.72vw, 1.2rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--chrome);
  margin-top: 1.1rem;
  max-width: 30ch;
}
.hero-sub { color: var(--bone); max-width: 54ch; margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: var(--s-5); }
.hero-tagline {
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500;
  color: var(--muted); font-size: 0.92rem;
}
.hero-tagline b { color: var(--chrome); font-weight: 600; }

/* urgency / release tag — a status chip, not a maximal pill. Tinted low-saturation
   ember surface, soft inset edge (one separation method: ground + edge, no drop
   shadow — a tag is the lowest elevation), modest radius from the family scale, and
   deliberate positive tracking on the caps so it does not read cramped. */
.release-tag {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700;
  font-size: 0.72rem; color: var(--ember);
  background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none;
}
.release-tag .dot { width: 1.5rem; height: 2px; border-radius: 0; background: var(--blood-hot); flex: none; }

/* ---------- Dossier tiles (feature cards, non-templated) ---------- */
.tiles { display: grid; gap: 1.25rem; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
/* Cards separate by elevation (surface lift + soft tinted shadow), one light source
   and one method — no border, no colored left-stripe. Hover lifts one level. */
.tile {
  position: relative; background: var(--surface-2);
  padding: 1.6rem 1.5rem; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tile:hover { transform: translateY(-3px); background: var(--surface-3); box-shadow: var(--shadow-3); }
.tile .tile-kicker { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; color: var(--ember); margin-bottom: 0.7rem; }
.tile h3 { color: var(--chrome-bright); margin-bottom: 0.6rem; }
.tile p { color: var(--muted); font-size: 0.96rem; max-width: none; }

/* ---------- Numbered game loop (sequence is real -> numbering earned) ---------- */
.loop { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--hairline); }
.loop-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--hairline);
  transition: background-color 0.25s var(--ease);
}
.loop-step:hover { background: linear-gradient(90deg, rgba(176, 7, 17, 0.06), transparent 60%); }
.loop-num {
  counter-increment: step; font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem);
  color: var(--blood); line-height: 0.8; min-width: 2.4ch; text-align: right;
}
.loop-num::before { content: counter(step, decimal-leading-zero); }
.loop-body h3 { color: var(--chrome-bright); margin-bottom: 0.35rem; }
.loop-body p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Location grid (the Sites) ---------- */
.sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
/* dense data grid: a crisp hairline edge IS the point here (one method, no shadow). */
.site-cell {
  border: 1px solid var(--hairline); background: var(--surface-1); padding: 1.15rem 1rem;
  border-radius: var(--radius); transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-cell:hover { border-color: var(--blood); background: var(--surface-2); }
.site-cell .site-yield { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem; color: var(--ember); margin-bottom: 0.35rem; }
.site-cell .site-name { font-family: var(--f-cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--chrome-bright); font-size: 1.02rem; line-height: 1.1; }

/* ---------- Themed image placeholders ---------- */
.placeholder {
  position: relative; border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 9px),
    radial-gradient(120% 140% at 50% 0%, rgba(176, 7, 17, 0.12), transparent 55%),
    linear-gradient(180deg, #111114, #08080a);
  display: grid; place-content: center; text-align: center; padding: 2rem; overflow: hidden; min-height: 260px;
  color: var(--muted);
}
.placeholder::before { content: "TODO IMAGE"; position: absolute; top: 0.8rem; left: 0.9rem; font-family: var(--f-cond); letter-spacing: 0.24em; font-size: 0.62rem; color: var(--blood-hot); text-transform: uppercase; }
.placeholder .ph-mark { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--blood); opacity: 0.7; }
.placeholder .ph-label { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--chrome); font-size: 0.95rem; }
.placeholder .ph-sub { font-size: 0.85rem; margin-top: 0.4rem; max-width: 40ch; margin-inline: auto; }
.placeholder-tall { min-height: 420px; }
.placeholder-wide { min-height: 340px; }

/* honest "coming soon" variant — for slots we will not fake with concept art
   (literal gameplay-UI screenshots). Same frame, swapped corner tag. */
.placeholder--soon::before { content: "Coming soon"; color: var(--ember); }

/* ---------- Cinematic art frames (Round 4: real generated key-art) ----------
   Wraps a generated plate in the same dark frame as .placeholder (border + radius),
   crops with object-fit cover, then grades it toward the blood-red/black palette with
   an overlay + inner shadow so it reads as world art, not raw stock. Token-based. */
.art-frame {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
  background: var(--ink-2); isolation: isolate;
  box-shadow: var(--shadow-4);
}
.art-frame > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* blood-red grade + top-down darkening so plates sit in-palette */
.art-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 120% at 50% 6%, rgba(176, 7, 17, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(176, 7, 17, 0.06), transparent 26%, rgba(10, 10, 11, 0.34) 74%, rgba(6, 6, 7, 0.72));
}
/* inner shadow / vignette bevel */
.art-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 70px rgba(0, 0, 0, 0.55);
}
.art-frame:hover { border-color: var(--blood); }
/* aspect variants (match the placeholder frames they replace; no CLS) */
.art-frame--wide { aspect-ratio: 16 / 9; }
.art-frame--tall { aspect-ratio: 3 / 2; }
.art-frame--tile { aspect-ratio: 16 / 10; }
/* caption bar (keeps the old ph-label / ph-sub copy, AA over its own scrim) */
.art-frame .art-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 1.5rem 1.35rem 1.15rem; text-align: left;
  background: linear-gradient(0deg, rgba(6, 6, 7, 0.94), rgba(6, 6, 7, 0.6) 52%, transparent);
}
.art-frame .art-label {
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 600; color: var(--chrome-bright); font-size: 0.95rem;
}
.art-frame .art-sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; max-width: 48ch; }
.art-frame .art-tag {
  display: inline-block; margin-bottom: 0.55rem;
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.2em;
  font-weight: 600; font-size: 0.66rem; color: var(--ember);
  border: 1px solid rgba(200, 134, 42, 0.4); border-radius: var(--radius); padding: 0.28rem 0.7rem;
  background: rgba(200, 134, 42, 0.07);
}

/* ---------- Hero cinematic backdrop (Round 4) ----------
   Full-bleed plate under the grain/vignette + behind the hero text. Absolute (out of
   flow) so hero height stays content-driven -> no layout shift. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
}
/* Looping hero video: same layer/position/crop as the static plate, painted over it
   (later in DOM, same z-index) so the WebP is the guaranteed base + poster + fallback.
   Hidden under prefers-reduced-motion, where the static .hero-bg shows through instead. */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  pointer-events: none; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
/* darkening scrim (left-to-right + bottom) + a hero-local grain/vignette pass so the
   plate reads UNDER the same texture as the rest of the FX stack, and the H1/subhead/CTA
   keep AA contrast. */
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-scrim::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 7, 0.94) 0%, rgba(6, 6, 7, 0.8) 30%, rgba(6, 6, 7, 0.42) 62%, rgba(6, 6, 7, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 6, 7, 0.9) 0%, rgba(6, 6, 7, 0.2) 34%, transparent 60%),
    radial-gradient(120% 90% at 50% -10%, rgba(176, 7, 17, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(6, 6, 7, 0.22), rgba(6, 6, 7, 0.22));
}
.hero-scrim::after {
  content: ""; position: absolute; inset: 0; opacity: 0.32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- Section art backdrop (Round 4) ----------
   Very low-opacity atmospheric plate behind a text section; strong scrim keeps copy AA. */
.section--art { position: relative; overflow: hidden; }
.section--art > .art-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.14;
}
.section--art > .art-bg-scrim {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--panel) 0%, rgba(20, 20, 22, 0.82) 30%, rgba(20, 20, 22, 0.82) 70%, var(--panel) 100%),
    radial-gradient(90% 120% at 50% 0%, rgba(176, 7, 17, 0.08), transparent 60%);
}
.section--art > .wrap { position: relative; z-index: 1; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-body h2 { margin: 1rem 0 1.2rem; }
.split-body p { color: var(--muted); }
.split-body .btn { margin-top: 1.6rem; }

/* ---------- Closing CTA band ---------- */
.cta-band { position: relative; text-align: center; padding-block: var(--s-8); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 100% at 50% 100%, rgba(176, 7, 17, 0.22), transparent 60%);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { margin-bottom: 1.3rem; }
.cta-band .lede { margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-fine { color: var(--muted); font-size: 0.9rem; margin: 1.6rem auto 0; }

/* ---------- FAQ (shared component for /play) ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; text-align: left; font-family: var(--f-cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.1rem; color: var(--chrome-bright);
}
.faq-q .faq-icon { flex: none; width: 18px; height: 18px; color: var(--blood-hot); transition: transform 0.25s var(--ease); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
/* grid-rows collapse — no magic-number max-height cap, so no answer ever clips */
.faq-a { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 0.3s var(--ease); }
.faq-a > div { min-height: 0; padding: 0 0 1.4rem; color: var(--muted); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

/* ---------- Legal / prose (terms + privacy) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin: 2.4rem 0 1rem; color: var(--chrome-bright); }
.prose h3 { margin: 1.6rem 0 0.6rem; color: var(--chrome); }
.prose p, .prose li { color: var(--bone); margin-bottom: 1rem; max-width: none; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose a { color: var(--blood-link); text-decoration: underline; text-underline-offset: 3px; }
.draft-banner {
  border: 1px solid var(--blood); background: rgba(176, 7, 17, 0.1); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-bottom: 2rem; color: var(--bone);
  font-family: var(--f-cond); letter-spacing: 0.02em;
}
.draft-banner strong { color: var(--blood-hot); text-transform: uppercase; letter-spacing: 0.1em; }
/* unfilled legal placeholder marker (counsel fills before publish) */
.ph-flag { color: var(--ember); font-family: var(--f-cond); font-size: 0.92em; letter-spacing: 0.01em; background: rgba(200, 134, 42, 0.08); border: 1px dashed rgba(200, 134, 42, 0.4); border-radius: 2px; padding: 0.02em 0.4em; }
.prose .ph { color: var(--ember); font-family: var(--f-cond); background: rgba(200, 134, 42, 0.09); border: 1px solid rgba(200, 134, 42, 0.28); border-radius: 3px; padding: 0.02em 0.36em; }

/* ==========================================================================
   Blog post template (/blog/<slug>/) — scoped article chrome + long-form prose
   Additive + token-based. Everything is namespaced under .article-* / .prose--article
   / .post-cta / .related / .post-disclaimer so the legal .prose (terms/privacy) and
   every other page are untouched. Separation is by elevation (surface lift + ONE soft
   tinted shadow), never border+shadow doubling, never a colored left-stripe.
   ========================================================================== */

/* ---------- Post header (breadcrumb reuses .crumbs, kicker reuses .eyebrow) ---------- */
.article-head { max-width: 68ch; margin-bottom: var(--s-5); }
.article-head .eyebrow { margin-bottom: 1.1rem; transition: color 0.2s var(--ease); }
a.eyebrow:hover { color: var(--chrome-bright); }
.article-head h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.02em; margin: 0 0 1.2rem; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.9rem;
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 500; font-size: 0.78rem; color: var(--muted);
}
.article-meta .author { color: var(--chrome); }
.article-meta .sep { color: var(--blood); opacity: 0.9; }

/* ---------- Long-form prose (extends base .prose) ----------
   Reading column ~68ch (do NOT full-bleed). Body at --step-0 (17px), line-height 1.7.
   h2/h3 carry real size+weight+color hierarchy and a spacing rhythm. Links are
   blood-red, underline on hover only. */
.prose--article { max-width: 68ch; }
.prose--article > * { max-width: none; }
.prose--article p { font-size: var(--step-0); line-height: 1.7; color: var(--bone); margin-bottom: 1.35rem; }
.prose--article > p:first-of-type { font-size: 1.2rem; line-height: 1.6; color: var(--chrome); }
.prose--article h2 {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--chrome-bright); margin: 3rem 0 1.1rem;
}
.prose--article h3 {
  font-family: var(--f-cond); font-weight: 600; text-transform: none;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem); line-height: 1.15; letter-spacing: 0.01em;
  color: var(--chrome); margin: 2.2rem 0 0.7rem;
}
.prose--article a { color: var(--blood-link); text-decoration: none; text-underline-offset: 3px; transition: color 0.2s var(--ease); }
.prose--article a:hover { color: var(--chrome-bright); text-decoration: underline; text-decoration-color: var(--blood-hot); }

/* lists — brand diamond bullet (ul) / blood marker (ol) */
.prose--article ul, .prose--article ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.prose--article ul { list-style: none; padding-left: 0; }
.prose--article ul > li { position: relative; padding-left: 1.5rem; }
.prose--article ul > li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--blood); transform: rotate(45deg); }
.prose--article ol { list-style: decimal; }
.prose--article ol > li::marker { color: var(--blood-hot); font-family: var(--f-cond); font-weight: 600; }
.prose--article li { color: var(--bone); margin-bottom: 0.55rem; line-height: 1.6; max-width: none; }
.prose--article li > ul, .prose--article li > ol { margin-top: 0.55rem; margin-bottom: 0; }

/* blockquote — branded, big blood quote glyph as the marker (no left-stripe) */
.prose--article blockquote { position: relative; margin: 2.4rem 0; padding: 0.4rem 0 0.4rem 2.8rem; }
.prose--article blockquote::before {
  content: "\201C"; position: absolute; left: 0; top: 0.12em;
  font-family: var(--f-display); font-size: 3.2rem; line-height: 1; color: var(--blood);
}
.prose--article blockquote p {
  font-family: var(--f-cond); font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); line-height: 1.38; letter-spacing: 0.01em;
  color: var(--chrome-bright); margin: 0;
}
.prose--article blockquote cite {
  display: block; margin-top: 0.8rem; font-family: var(--f-cond); font-style: normal;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; color: var(--ember);
}

/* pull-quote — a display-face statement that breaks the column, framed by hairlines */
.prose--article .pullquote {
  margin: 2.6rem 0; padding: 1.8rem 0; border-block: 1px solid var(--hairline-strong);
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--chrome-bright); max-width: none;
}

/* inline figure + caption (in-body art; reuse .art-frame for the graded cinematic frame) */
.prose--article figure { margin: 2.4rem 0; }
.prose--article figure > img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.prose--article figcaption, .prose--article .art-frame + figcaption {
  margin-top: 0.7rem; font-family: var(--f-cond); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.82rem; color: var(--muted);
}
.prose--article figure.art-frame { margin: 2.4rem 0; }
.prose--article figure.art-frame > img { box-shadow: none; border-radius: 0; }

/* key-takeaway callout — de-slopped panel: surface lift + ONE soft tinted shadow,
   no border, no left-stripe. Ember label reuses the eyebrow tick motif. */
.prose--article .callout { margin: 2.4rem 0; padding: 1.5rem 1.6rem; background: var(--surface-3); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.prose--article .callout-label {
  display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.7rem;
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600;
  font-size: 0.72rem; color: var(--ember);
}
.prose--article .callout-label::before { content: ""; width: 20px; height: 2px; background: linear-gradient(90deg, var(--blood), transparent); }
.prose--article .callout p { color: var(--bone); margin: 0; }
.prose--article .callout p + p { margin-top: 0.8rem; }

/* horizontal rule — a centered fade divider */
.prose--article hr { border: 0; height: 1px; margin: 2.6rem 0; background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent); }

/* ---------- In-article CTA bands (mid + closing) ----------
   Surface lift + a blood radial wash + ONE soft shadow. No border. -> /play */
.post-cta {
  margin: 2.8rem 0; padding: 1.9rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  background: radial-gradient(120% 150% at 0% 0%, rgba(176, 7, 17, 0.18), transparent 58%), var(--surface-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem 2rem;
}
.post-cta-body { max-width: 44ch; }
.post-cta-title { font-family: var(--f-display); text-transform: uppercase; color: var(--chrome-bright); font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.post-cta p { color: var(--muted); font-size: 0.96rem; margin: 0; max-width: none; }
.post-cta .btn { flex: none; }

/* ---------- Related reads (cluster links; cards reuse .tiles/.tile) ---------- */
.related { margin-top: var(--s-6); }
.related-head { display: flex; align-items: center; gap: 0.6em; margin-bottom: 1.3rem; font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; font-size: 0.82rem; color: var(--ember); }
.related-head::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--blood), transparent); }
.related .tile { display: block; }
.related .tile h3 { margin: 0; }

/* ---------- Optional non-affiliation disclaimer (SoA-comparison posts ONLY) ----------
   Small print, lowest elevation (surface-1 + shadow-1). */
.post-disclaimer { margin-top: var(--s-6); padding: 1.1rem 1.3rem; background: var(--surface-1); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.post-disclaimer p { font-size: 0.82rem; line-height: 1.6; color: var(--muted); max-width: none; margin: 0; }
.post-disclaimer strong { color: var(--chrome); font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--chrome); }
.crumbs a:hover { color: var(--blood-hot); }
.crumbs span { color: var(--blood); margin: 0 0.5rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) var(--s-6); position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem); margin: 1rem 0; }
.page-hero .lede { color: var(--bone); max-width: 60ch; }

/* ---------- Cinematic loop overlaid on an art-frame poster (reduced-motion-safe) ----------
   The <img> stays as the poster + no-JS/reduced-motion fallback; the video plays over it,
   under the frame's grade/bevel overlays so it reads as world art, not raw footage. */
.art-frame > .art-vid {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; pointer-events: none; border: 0;
}
@media (prefers-reduced-motion: reduce) { .art-frame > .art-vid { display: none; } }

/* ---------- Page-hero cinematic video background (interior / blog hub pages) ----------
   Full-bleed loop behind the hub header, with a left-weighted scrim so the left-aligned
   eyebrow/H1/lede keep AA contrast while the right side shows the motion. */
.page-hero { overflow: hidden; }
.page-hero-bg, .page-hero-vid {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; border: 0;
}
.page-hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 6, 7, 0.94) 0%, rgba(6, 6, 7, 0.82) 38%, rgba(6, 6, 7, 0.5) 72%, rgba(6, 6, 7, 0.32) 100%),
    linear-gradient(0deg, rgba(6, 6, 7, 0.8) 0%, rgba(6, 6, 7, 0.2) 42%, transparent 72%);
}
.page-hero > .wrap { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .page-hero-vid { display: none; } }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1.1rem; }
.flow-list li { position: relative; padding-left: 1.7rem; margin-bottom: 0.9rem; color: var(--bone); max-width: 62ch; }
.flow-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--blood); transform: rotate(45deg); }
.flow-list li strong { color: var(--chrome-bright); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-max { max-width: 62ch; }

/* reveal-on-scroll (progressive; visible by default if JS/observer off) */
.reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 10, 11, 0.98); border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1.5rem 1.5rem; transform: translateY(-12px); opacity: 0;
    visibility: hidden; pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav > a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--hairline); font-size: 1.05rem; }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1rem; text-align: center; }

  .split, .split--reverse .split-media { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .tiles-3, .tiles-4 { grid-template-columns: 1fr 1fr; }
  .sites { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  :root { --s-8: 4.5rem; --s-7: 3rem; }
  .tiles-2, .tiles-3, .tiles-4 { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .brand-word { font-size: 0.92rem; }
  .brand-mark { height: 30px; }
}

/* ---------- Motion (opt-in; disabled for reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Film grain is static (no infinite drift/breathe loop — that reads as an AI "breathing
     gradient" tell and repaints a full-viewport layer every frame). GSAP still adds a
     subtle one-off scroll parallax on .fx-grain, which is enough life. */

  /* JS scroll reveals: hidden until .is-in */
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* SplitText hero headline: chars start hidden, GSAP reveals them (see main.js).
     Only applies when JS is live; text is fully visible otherwise. */
  .js .hero h1 .char { display: inline-block; will-change: transform, opacity; }
  /* keep the chrome-sheen on the middle line after it is split into per-char spans */
  .hero h1 .h-chrome .char {
    background-image: linear-gradient(178deg, #f4f6f7 0%, #cfd2d7 38%, #7f858c 66%, #cfd2d7 82%, #eceef0 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }

}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
