/* ============================================================
   Echoes of Battle — marketing site
   Shared stylesheet (EN root + /pl/). CSP: served from 'self'.
   Aesthetic: cinematic museum — deep black, aged gold, ember.
   ============================================================ */

:root {
  --bg:          #080808;
  --bg-2:        #0d0b06;
  --bg-3:        #12100a;
  --gold:        #c9a84c;
  --gold-bright: #e6c977;
  --gold-deep:   #9c8236;
  --gold-soft:   rgba(201, 168, 76, 0.12);
  --gold-line:   rgba(201, 168, 76, 0.22);
  --gold-glow:   rgba(201, 168, 76, 0.35);
  --ember:       #e07a3a;
  --ember-soft:  rgba(224, 122, 58, 0.14);
  --text:        #f5edd8;
  --muted:       #9a8e7a;
  --ash:         #8a7f6a;   /* 4.8:1 on --bg (was #5a5040 = 2.5:1, failed WCAG AA) */
  --card:        #100e08;
  --card-2:      #14110a;
  --maxw:        1600px;
  --radius:      16px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --font-display:'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body:   'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-mono:   'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Parchment-grain + vignette atmosphere layered behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201,168,76,0.06), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(224,122,58,0.05), transparent 60%);
}
/* Fine noise texture via SVG data-uri — adds tactile grain, no external req */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Keyboard skip-link — hidden until focused, then reveals top-left */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 300; background: var(--gold); color: #0c0a06;
  padding: 0.6rem 1rem; border-radius: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  text-decoration: none; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; outline: 2px solid var(--text); outline-offset: 2px; }

/* ── Icons (shared inline SVG sprite) ─────────────── */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: middle;
  stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ── Kicker / eyebrow ─────────────────────────────── */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ── Typography ──────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: 0.02em; }
h2.section-title {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  color: var(--text);
  margin: 0.7rem 0 1rem;
}
h2 .em { color: var(--gold); }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-primary {
  color: #17130a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 rgba(201,168,76,0), 0 10px 30px -12px rgba(201,168,76,0.6);
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px -6px var(--gold-glow), 0 16px 34px -14px rgba(201,168,76,0.7); }
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border-color: var(--gold-line);
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8,8,8,0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled { background: rgba(8,8,8,0.86); border-bottom-color: var(--gold-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; color: var(--gold); font-size: 1.02rem; }
.brand .crest {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 5px;
  border: 1px solid var(--gold-line); border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, var(--gold-soft), rgba(201,168,76,0.03));
  box-shadow: 0 0 20px -6px var(--gold-glow), inset 0 0 12px -8px var(--gold);
}
.brand .crest .logo-img { filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6)); }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:1px; background: var(--gold); transition: width 0.25s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Language switch */
.lang {
  display: inline-flex; border: 1px solid var(--gold-line); border-radius: 8px; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
}
.lang a { padding: 0.4rem 0.6rem; color: var(--muted); transition: background 0.2s, color 0.2s; }
.lang a[aria-current] { background: var(--gold-soft); color: var(--gold); }
.lang a:hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 1px solid var(--gold-line); border-radius: 8px; padding: 0.5rem 0.6rem; color: var(--gold); cursor: pointer; }

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero::before { /* ambient glow behind the whole hero */
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(ellipse 55% 60% at 68% 45%, rgba(201,168,76,0.10), transparent 62%);
}
.hero::after { /* bottom fade into page */
  content:''; position:absolute; left:0; right:0; bottom:0; height: 30%;
  background: linear-gradient(180deg, transparent, var(--bg)); z-index: 1; pointer-events: none;
}
.hero .wrap { z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 2.5rem; align-items: center; width: 100%; }
.hero-content { max-width: 620px; padding: 5rem 0; min-width: 0; }

/* Interactive globe */
.hero-globe { position: relative; min-width: 0; }
.hero-globe::before { /* soft halo under the sphere */
  content:''; position:absolute; inset:6% 8%; z-index:0; pointer-events:none; border-radius:50%;
  background: radial-gradient(circle, rgba(201,168,76,0.16), transparent 66%);
  filter: blur(6px);
}
.hero-globe::after { /* slow gilded sunburst radiating behind the sphere */
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 48%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(201,168,76,0.10) 0deg 1.4deg, transparent 1.4deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 26%, #000 42%, transparent 68%);
          mask: radial-gradient(circle, transparent 26%, #000 42%, transparent 68%);
  opacity: 0.55; animation: sunspin 90s linear infinite;
}
@keyframes sunspin { to { transform: translate(-50%, -50%) rotate(360deg); } }
#globe-viz {
  position: relative; z-index: 1; width: 100%; max-width: 100%; overflow: hidden;
  height: min(76vh, 680px); cursor: grab; touch-action: pan-y;
  /* Fade the globe into the page before the container edge, so a deep zoom-in
     never shows a hard square frame where overflow clips the sphere. An ELLIPSE
     (closest-side) hugs the container aspect, so it shows far more of the globe
     than a circle would (fewer edge battle-pins clipped) while still going fully
     transparent before every edge — no hard frame, on desktop or mobile. */
  -webkit-mask: radial-gradient(ellipse closest-side at 50% 50%, #000 58%, transparent 94%);
          mask: radial-gradient(ellipse closest-side at 50% 50%, #000 58%, transparent 94%);
}
#globe-viz:active { cursor: grabbing; }
.globe-hint {
  text-align: center; margin-top: 0.5rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash);
}
/* Auto-tour caption — floats over the globe during the on-load showreel */
.globe-tour-cap {
  position: absolute; left: 50%; bottom: 12%; z-index: 3; pointer-events: none; white-space: nowrap;
  transform: translate(-50%, 8px); opacity: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.02em; color: var(--gold-bright);
  background: rgba(8,8,8,0.62); backdrop-filter: blur(5px);
  border: 1px solid var(--gold-line); border-radius: 100px; padding: 0.42rem 1rem;
  box-shadow: 0 8px 30px -12px #000, 0 0 22px -10px var(--gold-glow);
}
.globe-tour-cap.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .globe-tour-cap { display: none; } }
/* Era filter chips under the globe */
.globe-eras { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 0.9rem; position: relative; z-index: 2; }
.globe-eras button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: rgba(255,255,255,0.02); border: 1px solid var(--gold-line);
  border-radius: 100px; padding: 0.32rem 0.7rem; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.globe-eras button:hover { color: var(--text); border-color: var(--gold); }
.globe-eras button.on { color: var(--gold); background: var(--gold-soft); border-color: var(--gold); }
.globe-eras button i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.scene-tooltip { pointer-events: none; }
/* Battle photo pins on the globe */
.globe-pin { position: relative; }
.globe-pin-head {
  position: absolute; border-radius: 50%; border: 2px solid var(--gold);
  background-size: cover; background-position: center; background-color: #0c0a06;
  cursor: pointer; transform-origin: center; transition: filter 0.18s, box-shadow 0.18s;
}
.globe-pin-head:hover { filter: brightness(1.22); box-shadow: 0 0 14px var(--gold); }
.globe-pin-label {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.03em;
  color: var(--gold-bright); background: rgba(8,8,8,0.92);
  border: 1px solid var(--gold-line); border-radius: 7px; padding: 0.25rem 0.5rem;
  white-space: nowrap; box-shadow: 0 8px 24px -12px rgba(0,0,0,0.9);
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.globe-pin:hover .globe-pin-label { opacity: 1; }

/* Battle detail modal (opens from a globe pin) */
.bmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.5rem; }
.bmodal[hidden] { display: none; }
.bmodal-backdrop { position: absolute; inset: 0; background: rgba(4,4,4,0.74); backdrop-filter: blur(4px); }
.bmodal-card {
  position: relative; z-index: 1; width: min(460px, 94vw); max-height: 90vh; max-height: 90dvh; overflow: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--gold-line);
  border-radius: var(--radius); box-shadow: 0 40px 90px -40px #000; animation: bmodalIn 0.3s var(--ease);
}
@keyframes bmodalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.bmodal-close {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-line); background: rgba(8,8,8,0.6); color: var(--gold); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.bmodal-close:hover { background: var(--gold-soft); border-color: var(--gold); }
.bmodal-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--gold-line); }
.bmodal-img img { width: 100%; height: 100%; object-fit: cover; }
.bmodal-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,8,8,0.65)); }
.bmodal-body { padding: 1.4rem; }
.bmodal-kicker { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.bmodal-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin: 0.4rem 0 0.7rem; }
.bmodal-summary { color: var(--muted); font-size: 1rem; }
.bmodal-sides { display: flex; align-items: center; gap: 0.7rem; margin: 1.1rem 0 0.6rem; flex-wrap: wrap; }
.bmodal-sides span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); border: 1px solid var(--gold-line); border-radius: 8px; padding: 0.35rem 0.6rem; }
.bmodal-sides em { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ash); font-style: normal; text-transform: uppercase; letter-spacing: 0.1em; }
.bmodal-outcome { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--gold-bright); margin-top: 0.4rem; }

/* ── Feature detail modal (opens on feature-card / spotlight click) ── */
.feature, .rt-more { cursor: pointer; }
.feature { -webkit-tap-highlight-color: transparent; }
.feature-more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); opacity: 0.85; transition: gap 0.2s, opacity 0.2s; }
.feature:hover .feature-more { gap: 0.6rem; opacity: 1; }
.feature-more::after { content: '\2192'; font-size: 0.85rem; }

.fmodal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 1.5rem; }
.fmodal[hidden] { display: none; }
body.fmodal-lock { overflow: hidden; }
.fmodal-backdrop { position: absolute; inset: 0; background: rgba(4,4,4,0.78); backdrop-filter: blur(5px); }
.fmodal-card {
  position: relative; z-index: 1; width: min(560px, 94vw); max-height: 90vh; max-height: 90dvh; overflow: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--gold-line);
  border-radius: var(--radius); box-shadow: 0 40px 90px -40px #000; animation: bmodalIn 0.32s var(--ease);
}
.fmodal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-line); background: rgba(8,8,8,0.55); color: var(--gold); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.fmodal-close:hover { background: var(--gold-soft); border-color: var(--gold); }
.fmodal-hero { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid var(--gold-line); }
.fmodal-hero img { width: 100%; height: 100%; object-fit: cover; }
.fmodal-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,0.15) 30%, rgba(8,8,8,0.92)); }
.fmodal-hero .fmodal-ic { position: absolute; left: 20px; bottom: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold-bright); background: rgba(8,8,8,0.72); border: 1px solid var(--gold); box-shadow: 0 0 22px -6px var(--gold); }
.fmodal-hero .fmodal-ic .ic { width: 26px; height: 26px; }
.fmodal-status { position: absolute; right: 16px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; }
.fmodal-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.fmodal-status.live { color: #7fd18b; } .fmodal-status.live .dot { background: #7fd18b; box-shadow: 0 0 8px #7fd18b; }
.fmodal-status.soon { color: var(--ember); } .fmodal-status.soon .dot { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.fmodal-body { padding: 1.5rem 1.5rem 1.7rem; }
.fmodal-kicker { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.fmodal-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); margin: 0.35rem 0 0.7rem; }
.fmodal-lead { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.fmodal-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0.3rem; }
.fmodal-facts span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.03em; color: var(--gold-bright);
  border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: 100px; padding: 0.34rem 0.7rem; }
.fmodal-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.fmodal-list li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.fmodal-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 8px -1px var(--gold); }
.fmodal-list li b { color: var(--text); font-weight: 600; }
.fmodal-note { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--gold-line);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--gold-bright); line-height: 1.5; }
.fmodal-note.soon { color: var(--ember); }

/* On phones, both modals go full-screen with a shorter hero, so the whole list
   scrolls reliably and nothing hides behind the mobile browser's URL bar
   (dvh, not vh). */
@media (max-width: 560px) {
  /* Full-width sheet capped to the VISIBLE viewport (dvh, with a vh fallback) so
     the whole list scrolls and nothing hides behind the mobile browser URL bar. */
  .fmodal, .bmodal { padding: 0; }
  .fmodal-card, .bmodal-card {
    width: 100vw; max-width: 100vw; max-height: 92vh; max-height: 92dvh;
    border-radius: 0; border-left: 0; border-right: 0;
  }
  .fmodal-hero, .bmodal-img { aspect-ratio: auto; height: 28vh; max-height: 200px; flex: none; }
}

/* ── Support: stretch-goal ladder + pledge / patron tiers ── */
.stretch { margin: 2.4rem auto 0; max-width: 740px; display: grid; gap: 0.7rem; }
.stretch-rung { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0.2rem 1rem; align-items: center;
  padding: 1rem 1.1rem; border: 1px solid var(--gold-line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card)); }
.stretch-rung.base { border-color: var(--gold); box-shadow: 0 0 30px -14px var(--gold); }
.stretch-pct { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-bright); line-height: 1; }
.stretch-txt strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 0.12rem; }
.stretch-txt span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.stretch-tag { position: absolute; top: 0; right: 0; font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #0c0a06; background: var(--gold); padding: 0.2rem 0.55rem; border-bottom-left-radius: 9px; }

.tier-head { text-align: center; margin: 3rem 0 1.3rem; }
.tier-head .kicker { justify-content: center; }
.tier-head h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin-top: 0.3rem; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 1rem; align-items: start; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid var(--gold-line);
  border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.tier-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 24px 50px -30px rgba(201,168,76,0.4); }
.tier-card.pop { border-color: var(--gold); box-shadow: 0 0 30px -16px var(--gold); }
.tier-pop { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #0c0a06; background: var(--gold); padding: 0.22rem 0.62rem; border-radius: 100px; }
.tier-name { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tier-tag { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); margin: 0.35rem 0 0; line-height: 1.15; }
.tier-price { font-family: var(--font-display); font-size: 1.95rem; color: var(--text); margin: 0.3rem 0 0.2rem; line-height: 1; }
.tier-price small { font-size: 0.8rem; color: var(--ash); font-family: var(--font-mono); letter-spacing: 0.02em; }
.tier-card ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; flex: 1; }
.tier-card li { position: relative; padding-left: 1.3rem; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.tier-card li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.tier-card li.inherit { color: var(--ash); font-style: italic; }
.tier-card li.inherit::before { background: var(--ash); box-shadow: none; }
.tier-note { text-align: center; margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--ash); }
.tier-cta { display: flex; justify-content: center; margin-top: 1.5rem; }
@media (max-width: 620px) { .stretch-rung { grid-template-columns: 52px 1fr; } .tier-price { font-size: 1.7rem; } }

/* Drifting smoke atmosphere (full page, behind content) */
#smoke { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0.85; }
/* Drifting gold sparks/embers layered in FRONT of the page (subtle, click-through). */
#sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: var(--text);
  margin: 1.1rem 0 1.2rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}
.hero h1 .em { color: var(--gold); display: block; }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: #d9cfb6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-meta { margin-top: 1.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ash); text-transform: uppercase; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-line); border-radius: 100px;
  padding: 0.4rem 0.9rem; background: var(--gold-soft);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

/* ── Section rhythm ──────────────────────────────── */
section { position: relative; padding: 6rem 0; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }

/* ── Stats ───────────────────────────────────────── */
.stats { border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding: 3rem 0; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--gold); line-height: 1; }
.stat .lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

/* ── Kickstarter band ────────────────────────────── */
.ks {
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(224,122,58,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  border-bottom: 1px solid var(--gold-line);
}
.ks-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.ks-card {
  border: 1px solid var(--gold-line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  padding: 2rem; box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.ks-card h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 1rem; }
.founder-list { list-style: none; display: grid; gap: 0.7rem; margin: 1rem 0 1.6rem; }
.founder-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--muted); font-size: 0.98rem; }
.founder-list li::before { content: '✦'; color: var(--gold); flex: none; }
.ks-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ash); text-transform: uppercase; margin-top: 1rem; }

/* ── Feature grid ────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.feature {
  border: 1px solid var(--gold-line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.feature:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 24px 50px -30px rgba(201,168,76,0.4); }
.feature .body { padding: 1.5rem; }
.feature .ficon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); margin-bottom: 1rem; }
.feature .ficon .ic { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.98rem; }
.feature .live { display:inline-flex; align-items:center; gap:0.4rem; font-family: var(--font-mono); font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color:#7fd18b; margin-top:0.9rem; }
.feature .live .dot { width:6px;height:6px;border-radius:50%;background:#7fd18b;box-shadow:0 0 8px #7fd18b; }
.feature .soon { display:inline-flex; align-items:center; gap:0.4rem; font-family: var(--font-mono); font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color: var(--ember); margin-top:0.9rem; }
.feature .soon .dot { width:6px;height:6px;border-radius:50%;background:var(--ember);box-shadow:0 0 8px var(--ember); }

/* Art placeholder frame — swapped for Midjourney key-art */
.art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #1a1509, #0c0a06);
  border-bottom: 1px solid var(--gold-line);
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.art::before { /* legibility + tone gradient */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,8,0.10), rgba(8,8,8,0.58));
}
.art::after { /* inner gold hairline */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.14);
}
.art .art-cap {
  position: absolute; z-index: 3; bottom: 10px; left: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.art .art-play { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; color: var(--gold); }
.art .art-play .ic { width: 60px; height: 60px; padding: 16px; border-radius: 50%;
  background: rgba(8,8,8,0.5); border: 1px solid var(--gold-line); backdrop-filter: blur(2px); transition: transform 0.25s var(--ease); }
.art:hover .art-play .ic { transform: scale(1.08); }

/* ── Real-time spotlight ─────────────────────────── */
.rt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.rt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.rt-points { list-style: none; display: grid; gap: 1rem; margin-top: 1.6rem; }
.rt-points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.rt-points .n { font-family: var(--font-mono); color: var(--gold); font-size: 0.8rem; border: 1px solid var(--gold-line); border-radius: 7px; padding: 0.2rem 0.5rem; flex: none; }
.rt-points strong { color: var(--text); font-weight: 600; }
.rt-points span { color: var(--muted); display: block; font-size: 0.95rem; }

/* ── Eras timeline ───────────────────────────────── */
.eras { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--gold-line); border-radius: var(--radius); overflow: hidden; }
.era { padding: 1.6rem 1.2rem; border-right: 1px solid var(--gold-line); position: relative; transition: background 0.3s; }
.era:last-child { border-right: 0; }
.era:hover { background: var(--gold-soft); }
.era .era-ico { color: var(--gold); margin-bottom: 0.7rem; line-height: 1; }
.era .era-ico .ic { width: 26px; height: 26px; }
.era h4 { font-family: var(--font-display); color: var(--gold); font-size: 1rem; margin-bottom: 0.3rem; }
.era p { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* ── Interactive 3D era carousel ─────────────────── */
.era3d {
  position: relative;
  /* The 3D carousel fans cards far outside this box (~455px past the viewport on a
     phone). Without clipping HERE the whole page becomes horizontally scrollable:
     body{overflow-x:clip} alone is not honoured by older iOS Safari. Clipping on
     this wrapper is safe — the perspective context lives on .era3d-stage inside,
     so the 3D effect is untouched. */
  overflow: hidden;
}
.era3d-stage { position: relative; height: 440px; perspective: 1500px; transform-style: preserve-3d; }
.era-card {
  position: absolute; top: 50%; left: 50%;
  width: 320px; height: 400px; margin: -200px 0 0 -160px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-line);
  background: #0c0a06; cursor: pointer; transform-style: preserve-3d; will-change: transform, opacity;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.era-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.era-card-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,8,8,0.12) 30%, rgba(8,8,8,0.92)); }
.era-card-frame { position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 1px rgba(201,168,76,0.18); }
.era-card-body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 1.3rem; text-align: left; }
.era-card-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.era-card-body h4 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin: 0.35rem 0 0.3rem; }
.era-card-body p { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; color: var(--muted); }
.era-card.active { border-color: var(--gold); box-shadow: 0 0 55px -18px var(--gold-glow), 0 30px 70px -40px #000; }
/* "Details" affordance — only on the centred (active) card, which opens the era modal */
.era-more { display: none; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }
.era-more::after { content: ' \2192'; }
.era-card.active .era-more { display: inline-block; }
.era3d-nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 1.8rem; }
.era3d-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--card); color: var(--gold); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: all 0.2s; }
.era3d-btn:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-1px); }
.era3d-dots { display: flex; gap: 0.55rem; }
.era3d-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--ash); cursor: pointer; padding: 0; transition: all 0.25s; }
.era3d-dots button.on { background: var(--gold); transform: scale(1.3); }

/* ── Teachers / split ────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .art { border: 1px solid var(--gold-line); border-radius: var(--radius); }

/* ── Tiers ───────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.tier { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 1.6rem; background: linear-gradient(180deg, var(--card-2), var(--card)); position: relative; }
.tier.featured { border-color: var(--gold); box-shadow: 0 0 40px -20px var(--gold-glow); }
.tier .flag { position: absolute; top: -1px; right: 16px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: #17130a; background: var(--gold); padding: 0.25rem 0.6rem; border-radius: 0 0 6px 6px; }
.tier h4 { font-family: var(--font-display); color: var(--gold); font-size: 1.3rem; }
.tier .price { font-family: var(--font-mono); color: var(--muted); font-size: 0.8rem; margin: 0.3rem 0 1rem; }
.tier ul { list-style: none; display: grid; gap: 0.5rem; }
.tier li { color: var(--muted); font-size: 0.9rem; display: flex; gap: 0.5rem; }
.tier li::before { content: '✦'; color: var(--gold); }

/* ── Battle timeline ─────────────────────────────── */
.timeline-scroll { overflow-x: auto; overflow-y: hidden; padding: 0.5rem 0 1.2rem; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.timeline-scroll::-webkit-scrollbar { height: 6px; }
.timeline-scroll::-webkit-scrollbar-track { background: transparent; }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 3px; }
.timeline-track { display: flex; gap: 0.9rem; padding: 0 4px; min-width: min-content; position: relative; }
.timeline-track::before { content: ''; position: absolute; left: 0; right: 0; top: 44px; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--gold-line) 8%, var(--gold-line) 92%, transparent); }
.tl-chip { position: relative; z-index: 1; flex: 0 0 auto; width: 128px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; background: none; border: 0; cursor: pointer; padding: 0; }
.tl-thumb { width: 88px; height: 88px; border-radius: 50%; background-size: cover; background-position: center; background-color: #0c0a06; border: 2px solid var(--c, var(--gold)); box-shadow: 0 0 10px -2px var(--c, var(--gold)); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.tl-chip:hover .tl-thumb { transform: scale(1.08); box-shadow: 0 0 18px -2px var(--c, var(--gold)); }
.tl-year { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em; color: var(--gold); }
.tl-name { font-family: var(--font-body); font-size: 0.8rem; line-height: 1.2; color: var(--muted); text-align: center; }
.tl-chip:hover .tl-name { color: var(--text); }

/* ── Roadmap (Shipped / Now / Next) ──────────────── */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1000px; margin: 0 auto; }
.rm-col { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 1.6rem; background: linear-gradient(180deg, var(--card-2), var(--card)); }
.rm-col.now { border-color: var(--gold); box-shadow: 0 0 46px -22px var(--gold-glow); }
.rm-head { margin-bottom: 1rem; }
.rm-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 100px; border: 1px solid var(--gold-line); }
.rm-tag.done { color: #7fd18b; border-color: rgba(127,209,139,0.4); }
.rm-tag.now-t { color: var(--gold); background: var(--gold-soft); }
.rm-tag.next { color: var(--ember); border-color: rgba(224,122,58,0.4); }
.rm-col h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); margin-bottom: 0.5rem; }
.rm-col ul { list-style: none; display: grid; gap: 0.55rem; }
.rm-col li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--muted); font-size: 0.94rem; }
.rm-col li::before { content: '✦'; flex: none; color: var(--gold); }
.rm-col.done li::before { content: '✓'; color: #7fd18b; font-weight: 700; }
.rm-col.next li::before { color: var(--ember); }

/* ── Support (Kickstarter + Patronite) ───────────── */
.support { background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(224,122,58,0.08), transparent 55%), linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }

.countdown { display: flex; justify-content: center; gap: 0.9rem; margin: 0 auto 3rem; flex-wrap: wrap; }
.countdown .cd-lead { width: 100%; text-align: center; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.cd-unit { min-width: 78px; padding: 0.9rem 0.6rem; border: 1px solid var(--gold-line); border-radius: 12px; background: linear-gradient(180deg, var(--card-2), var(--card)); text-align: center; }
.cd-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.45rem; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 940px; margin: 0 auto; }
.support-card { position: relative; border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 1.8rem; background: linear-gradient(180deg, var(--card-2), var(--card)); display: flex; flex-direction: column; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.support-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -34px rgba(201,168,76,0.4); }
.support-card.featured { border-color: var(--gold); box-shadow: 0 0 46px -20px var(--gold-glow); }
.support-badge { display: inline-flex; align-items: center; gap: 0.45rem; align-self: flex-start; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 100px; padding: 0.32rem 0.8rem; background: var(--gold-soft); margin-bottom: 1rem; }
.support-badge.live-badge { color: #7fd18b; border-color: rgba(127,209,139,0.4); }
.support-badge.live-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 8px #7fd18b; animation: pulse 2s infinite; }
.support-card h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); margin-bottom: 0.5rem; }
.support-card > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1rem; }
.support-card ul { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.4rem; }
.support-card li { display: flex; gap: 0.55rem; color: var(--muted); font-size: 0.94rem; }
.support-card li::before { content: '✦'; color: var(--gold); flex: none; }
.support-card .support-stat { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gold-bright); margin-bottom: 1rem; }
.support-card .support-stat b { font-size: 1.05rem; }
.support-card .btn { margin-top: auto; justify-content: center; }

.impact { max-width: 940px; margin: 3rem auto 0; }
.impact h4 { text-align: center; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.impact-item { text-align: center; padding: 1.2rem; border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(255,255,255,0.015); }
.impact-item .ic { width: 26px; height: 26px; color: var(--gold); margin-bottom: 0.6rem; }
.impact-item strong { display: block; font-family: var(--font-display); color: var(--text); font-size: 1.02rem; margin-bottom: 0.25rem; }
.impact-item span { color: var(--muted); font-size: 0.86rem; }

/* Personal "from the developer" note — the emotional backing hook */
.dev-note { max-width: 720px; margin: 2.4rem auto 0; position: relative; padding: 1.8rem 1.9rem 1.6rem;
  border: 1px solid var(--gold-line); border-left: 3px solid var(--gold); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card)); }
.dev-note .kicker { justify-content: flex-start; margin-bottom: 0.9rem; }
.dev-note p { color: var(--muted); font-size: 1.04rem; line-height: 1.72; }
.dev-note p + p { margin-top: 0.8rem; }
.dev-note .sign { display: block; margin-top: 1.15rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-bright); }
.dev-note .sign small { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); margin-top: 0.25rem; }

/* "Recently shipped" devlog — momentum signal (active project = worth backing) */
.devlog { max-width: 760px; margin: 0 auto; position: relative; }
.devlog::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-line) 70%, transparent); }
.dl-item { position: relative; padding: 0 0 1.6rem 2.5rem; }
.dl-item:last-child { padding-bottom: 0; }
.dl-item::before { content: ''; position: absolute; left: 3px; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--gold); box-shadow: 0 0 12px -2px var(--gold); }
.dl-item.fresh::before { background: var(--gold); box-shadow: 0 0 16px -1px var(--gold); animation: dlpulse 2.4s ease-in-out infinite; }
@keyframes dlpulse { 0%,100% { box-shadow: 0 0 12px -2px var(--gold); } 50% { box-shadow: 0 0 22px 1px var(--gold-glow); } }
.dl-date { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.dl-tag { font-size: 0.52rem; color: #0c0a06; background: var(--gold); padding: 0.1rem 0.4rem; border-radius: 100px; letter-spacing: 0.1em; }
.dl-item h4 { font-family: var(--font-display); font-size: 1.14rem; color: var(--text); margin: 0.28rem 0 0.3rem; }
.dl-item p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* Sticky support bar */
.support-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; transform: translateY(120%); transition: transform 0.4s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.7rem 1.2rem; background: rgba(8,8,8,0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--gold-line); }
.support-bar.show { transform: none; }
.support-bar .sb-text { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--text); }
.support-bar .sb-text b { color: var(--gold); }
.support-bar .btn { padding: 0.6rem 1.1rem; font-size: 0.72rem; }
.support-bar .sb-close { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0 0.3rem; }
.support-bar .sb-close:hover { color: var(--gold); }

/* ── FAQ ─────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--gold-line); padding: 1.2rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 1.12rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-family: var(--font-mono); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 0.8rem; }

/* ── Newsletter / final CTA ──────────────────────── */
.cta-final { text-align: center; background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(201,168,76,0.10), transparent 60%); }
.subscribe { display: flex; gap: 0.6rem; max-width: 480px; margin: 1.8rem auto 0; flex-wrap: wrap; justify-content: center; }
.subscribe input {
  flex: 1 1 240px; min-width: 200px;
  background: var(--card); border: 1px solid var(--gold-line); border-radius: 10px;
  padding: 0.9rem 1rem; color: var(--text); font-family: var(--font-body); font-size: 1rem;
}
.subscribe input:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-color: var(--gold); }
.subscribe .hint { flex-basis: 100%; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--ash); text-transform: uppercase; margin-top: 0.6rem; }

/* ── Footer ──────────────────────────────────────── */
footer { border-top: 1px solid var(--gold-line); padding: 3rem 0; background: var(--bg-2); }
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.foot-links a:hover { color: var(--gold); }
.foot-right { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.foot-social { display: flex; gap: 1rem; }
.foot-social a { color: var(--muted); display: inline-flex; transition: color 0.2s, transform 0.2s; }
.foot-social a:hover { color: var(--gold); transform: translateY(-2px); }
.foot-copy { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ash); margin-top: 1.4rem; }
.foot-credit { font-family: var(--font-mono); font-size: 0.62rem; line-height: 1.7; color: var(--ash); margin-top: 0.7rem; max-width: 640px; }
.foot-credit a { color: var(--muted); text-decoration: underline; }
.foot-credit a:hover { color: var(--gold); }

/* Compact footer for blog + secondary pages that have no full footer */
.mini-foot { position: relative; margin-top: 3.5rem; padding: 2rem 0 0.5rem; display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; justify-content: space-between; align-items: center; }
.mini-foot::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; border-top: 1px solid var(--gold-line); }
.mini-foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.mini-foot nav a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.mini-foot nav a:hover { color: var(--gold); }
.mini-foot-copy { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ash); }

/* "Coming soon" reveal for CTAs whose destination isn't live yet (Patronite) */
.soon-note { margin-top: 0.85rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--gold-bright); }
.soon-note:not([hidden]) { display: block; }
.btn.is-soon { opacity: 0.72; cursor: default; }

/* ── Scroll reveal (progressive enhancement) ─────── */
/* Hidden state applies ONLY when JS is active (html.js). No-JS = visible. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ══ Motion & polish ═══════════════════════════════ */
/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); box-shadow: 0 0 10px var(--gold-glow); }

/* Cursor glow (desktop) */
.cursor-glow { position: fixed; top: 0; left: 0; width: 460px; height: 460px; border-radius: 50%; z-index: 0;
  pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,168,76,0.07), transparent 60%); opacity: 0; transition: opacity 0.4s; }

/* Nav logo hover */
.brand .logo-img { transition: transform 0.5s var(--ease), filter 0.3s; }
.brand:hover .logo-img { transform: rotate(8deg) scale(1.06); filter: drop-shadow(0 0 8px var(--gold-glow)); }

/* Primary button shimmer */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-18deg); }
.btn-primary:hover::after { animation: shimmer 0.85s ease; }
@keyframes shimmer { to { left: 150%; } }

/* Headline word stagger */
.hero h1 .w { display: inline-block; }
.js .hero h1 .w { opacity: 0; transform: translateY(26px); animation: wordUp 0.6s var(--ease) forwards; animation-delay: calc(var(--i) * 0.06s + 0.12s); }
@keyframes wordUp { to { opacity: 1; transform: none; } }

/* Ken Burns on imagery */
.art img { transition: transform 6s ease-out; }
.feature:hover .art img, .split:hover .art img, .rt-grid:hover .art img { transform: scale(1.08); }

/* Animated gold gradient text */
.grad-anim { background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--ember), var(--gold));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 7s linear infinite; }
@keyframes gradShift { to { background-position: 300% 0; } }

/* FAQ smooth open */
.faq details[open] p { animation: fadeDown 0.32s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Stat icons */
.stat .stat-ic { color: var(--gold); opacity: 0.82; margin-bottom: 0.5rem; line-height: 1; }
.stat .stat-ic .ic { width: 22px; height: 22px; }

/* Most-popular tier pulse */
.tier.featured { animation: tierPulse 3.2s ease-in-out infinite; }
@keyframes tierPulse { 0%, 100% { box-shadow: 0 0 40px -22px var(--gold-glow); } 50% { box-shadow: 0 0 58px -10px var(--gold-glow); } }

/* Email focus glow */
.subscribe input:focus { box-shadow: 0 0 0 3px var(--gold-soft), 0 0 22px -6px var(--gold-glow); }

/* Ember burst particles (CTA click) */
.ember-p { position: fixed; z-index: 200; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #ffd27a, #e07a3a 70%, transparent); pointer-events: none;
  transform: translate(-50%, -50%); animation: emberFly 0.9s ease-out forwards; }
@keyframes emberFly { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); opacity: 0; } }

/* Global tap/click feedback — a gilded ring that expands + fades at the pointer,
   fired site-wide on every click (see site.js). Subtle, click-through, self-removing. */
.click-ripple { position: fixed; z-index: 999; width: 16px; height: 16px; border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%);
  border: 2px solid var(--gold-bright); box-shadow: 0 0 10px -1px var(--gold-glow);
  animation: clickRipple 0.52s var(--ease) forwards; }
@keyframes clickRipple {
  0%   { opacity: 0.75; transform: translate(-50%, -50%) scale(0.35); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(3.4); }
}

/* Anchor offset so the sticky nav never covers a section's heading */
section[id] { scroll-margin-top: 84px; }

/* Hero scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3;
  color: var(--gold); font-size: 1.4rem; text-decoration: none; opacity: 0.7; line-height: 1;
  animation: cueBounce 1.8s var(--ease) infinite; }
.scroll-cue:hover { opacity: 1; }
@keyframes cueBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ═══ Gilded premium pass ════════════════════════════════
   Gold-foil headlines, framed feature cards, ornamental
   section marks. All motion auto-disabled by the
   reduced-motion rule at the end of this file. */

/* Gold-foil shimmer travelling across section-title gold words —
   like light catching gilded lettering. (Hero H1 is excluded: its
   per-word stagger spans break background-clip:text.) */
h2 .em {
  background-image: linear-gradient(100deg,
    var(--gold-deep) 0%, var(--gold) 26%, #fbecc0 50%, var(--gold) 74%, var(--gold-deep) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gild 7.5s ease-in-out infinite;
}
@keyframes gild { 0%, 100% { background-position: 14% 0; } 50% { background-position: 86% 0; } }
/* Hero gold line keeps its solid fill but gains a gilded glow. */
.hero h1 .em { text-shadow: 0 0 30px rgba(201,168,76,0.3), 0 2px 40px rgba(0,0,0,0.6); }

/* Feature cards read as framed museum plaques — gilded corner
   brackets that ignite on hover. */
.feature { position: relative; }
.feature::before, .feature::after {
  content: ''; position: absolute; width: 20px; height: 20px; z-index: 3;
  pointer-events: none; opacity: 0.28; transition: opacity 0.4s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease);
}
.feature::before { top: 11px; left: 11px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); border-top-left-radius: 5px; }
.feature::after  { right: 11px; bottom: 11px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); border-bottom-right-radius: 5px; }
.feature:hover::before, .feature:hover::after { opacity: 0.9; width: 26px; height: 26px; }

/* Ornamental gilded mark crowning every centred section head. */
.section-head.center::before {
  content: ''; display: block; width: 44px; height: 44px; margin: 0 auto 1.15rem;
  opacity: 0.92;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23c9a84c' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M20 3 L37 20 L20 37 L3 20 Z'/%3E%3Cpath d='M20 11 L29 20 L20 29 L11 20 Z' opacity='0.55'/%3E%3Ccircle cx='20' cy='20' r='1.7' fill='%23c9a84c' stroke='none'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
}

/* Stat numbers — a gold underline draws itself in as the row reveals. */
.stat .num { position: relative; display: inline-block; }
.stat .num::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; height: 2px; width: 34px;
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: transform 0.7s var(--ease) 0.25s;
}
.stat.in .num::after { transform: translateX(-50%) scaleX(1); }

/* ═══ Cinematic quote band ═══════════════════════════════
   Full-bleed battle painting with a parallax scrim and a
   slowly rotating historical quote. */
.cinema {
  position: relative; padding: 0; overflow: hidden;
  min-height: min(56vh, 468px);
  display: grid; place-items: center; text-align: center;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
}
/* Era montage: several period paintings as diagonally-skewed slabs split by
   gold lines. Each slab downscales its own image (vs one image upscaled across
   the whole band), so the background stays crisp — no pixelation. */
.cinema-bg {
  position: absolute; inset: 0; z-index: 0; display: flex;
  width: 124%; left: -12%;                      /* over-wide so skewed edges fully cover the corners */
  filter: saturate(1.05) contrast(1.05) brightness(1.16);
}
.cinema-slab { position: relative; flex: 1 1 0; overflow: hidden; transform: skewX(-6deg); }
.cinema-slab-img {
  position: absolute; inset: -30% -34%;         /* generous overflow so the skew leaves NO empty wedge */
  background-size: cover; background-position: center;
  transform: skewX(6deg);                       /* counter-skew keeps each painting upright */
}
.cinema-slab:not(:last-child)::after {         /* gilded divider line between eras */
  content: ''; position: absolute; top: -6%; right: 0; width: 2px; height: 112%;
  background: linear-gradient(180deg, transparent, rgba(242,217,138,0.9) 18%, rgba(242,217,138,0.9) 82%, transparent);
  box-shadow: 0 0 9px rgba(201,168,76,0.6);
}
.cinema::before {  /* gilded black scrim keeps the quote legible + on-brand */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* soft dark focus ONLY behind the centred quote — keeps text (incl. gold) legible */
    radial-gradient(ellipse 62% 58% at 50% 52%, rgba(8,8,8,0.72), rgba(8,8,8,0.28) 55%, transparent 74%),
    /* fade just the band's top/bottom edges into the black sections around it;
       the middle stays light so the era paintings clearly show through */
    linear-gradient(180deg, rgba(8,8,8,0.6) 0%, rgba(8,8,8,0.06) 26%, rgba(8,8,8,0.06) 74%, rgba(8,8,8,0.64) 100%),
    linear-gradient(90deg, rgba(201,168,76,0.06), transparent 46%, rgba(224,122,58,0.06));
}
.cinema .wrap { position: relative; z-index: 2; max-width: 880px; }
.cinema .kicker { justify-content: center; text-shadow: 0 1px 3px rgba(0,0,0,0.92), 0 2px 14px rgba(0,0,0,0.85); }
.cinema-mark { display: block; font-family: var(--font-display); font-size: 4rem; line-height: 0.4;
  color: var(--gold-bright); opacity: 0.75; margin: 1.5rem 0 0.7rem; text-shadow: 0 2px 16px rgba(0,0,0,0.8); }
.cinema-quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 3rem); line-height: 1.2; color: var(--text);
  margin: 0.2rem auto 1.3rem; max-width: 20ch;
  text-shadow: 0 1px 3px rgba(0,0,0,0.92), 0 3px 16px rgba(0,0,0,0.9), 0 6px 44px rgba(0,0,0,0.6);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.cinema-cite {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-bright);
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 2px 14px rgba(0,0,0,0.9);
  transition: opacity 0.6s var(--ease);
}
.cinema-cite::before { content: '— '; color: var(--ash); }
.cinema.swap .cinema-quote { opacity: 0; transform: translateY(12px); }
.cinema.swap .cinema-cite { opacity: 0; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .cinema-bg { background-attachment: scroll; }   /* fixed is janky/ignored on mobile */
  .cinema { min-height: min(64vh, 460px); }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Free up the cramped mobile top bar: the "Follow the campaign" button was
     overflowing off-screen and the brand wrapped to 3 lines. Drop the button
     on mobile (the CTA lives in the menu + hero) and keep the brand one line. */
  .nav .btn-primary { display: none; }
  .brand { white-space: nowrap; font-size: 0.9rem; letter-spacing: 0.08em; }
  .nav-inner { gap: 0.6rem; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    gap: 1.2rem; padding: 1.5rem 24px; background: rgba(8,8,8,0.97); border-bottom: 1px solid var(--gold-line);
  }
  .hero-grid, .ks-grid, .rt-grid, .split, .support-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .support-bar .sb-text { display: none; }
  .hero-content { padding: 4.5rem 0 1rem; }
  #globe-viz { height: 380px; }
  .hero-globe { order: -1; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1rem; }
  .eras { grid-template-columns: repeat(2, 1fr); }
  .era { border-bottom: 1px solid var(--gold-line); }
  .era:nth-child(2n) { border-right: 0; }
  .era3d-stage { height: 380px; }
  .era-card { width: 244px; height: 330px; margin: -165px 0 0 -122px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .eras { grid-template-columns: 1fr; }
  .era { border-right: 0; }
  .hero-content { padding: 4rem 0; }
}

/* ── Ambient theme-music toggle ──────────────────── */
.music-btn {
  position: fixed; z-index: 60; right: 20px; bottom: 20px;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #14100a;
  border: 1.5px solid var(--gold); color: var(--gold-bright); cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.85), 0 0 16px -4px var(--gold-glow);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.music-btn:hover { border-color: var(--gold); box-shadow: 0 0 24px -4px var(--gold-glow); transform: translateY(-2px); }
.music-btn .note { width: 22px; height: 22px; color: var(--gold-bright); display: block; }
.music-btn.playing .note { animation: notebob 1.15s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes notebob { 0%, 100% { transform: translateY(1px) rotate(-4deg); } 50% { transform: translateY(-2px) rotate(4deg); } }
.music-btn .mlabel {
  position: absolute; right: 60px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: rgba(8,8,8,0.85); border: 1px solid var(--gold-line);
  padding: 0.4rem 0.65rem; border-radius: 8px; opacity: 0; transform: translateX(8px);
  transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.music-btn:hover .mlabel { opacity: 1; transform: translateX(0); }
@media (max-width: 560px) {
  .music-btn { right: 16px; bottom: 76px; width: 48px; height: 48px; }
  .music-btn .mlabel { display: none; }
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* .js .reveal (0,2,0) hides these, so this reset must match that specificity
     or it never fires and the page stays blank for reduced-motion users. */
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge .dot, .feature .live .dot { animation: none; }
  /* Capping duration alone makes `infinite` animations cycle every frame, which
     reads as a strobe. Pin them to a single iteration too. */
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Newsletter success ─────────────────────────────────────────────────────
   After a successful signup the form is replaced by this card. Deliberately
   loud (gold border + glow + tick) because the previous inline hint-text was
   easy to miss, and people re-submit when they aren't sure it worked. */
.nl-success {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  max-width: 540px; margin: 0 auto; padding: 1.7rem 1.5rem;
  border: 1px solid var(--gold); border-radius: 18px;
  background: linear-gradient(180deg, rgba(201,168,76,.13), var(--card));
  box-shadow: 0 0 44px rgba(201,168,76,.2);
  text-align: center;
  animation: nlPop .45s cubic-bezier(.2,.7,.2,1) both;
}
.nl-success .nl-check {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #0b0a07; font-size: 1.5rem; font-weight: 700; line-height: 1;
}
.nl-success h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); margin: .25rem 0 0; }
.nl-success p { color: var(--muted); font-size: .98rem; margin: 0; line-height: 1.6; }
.nl-success .nl-mail { color: var(--gold-bright); font-weight: 600; word-break: break-all; }
.nl-success .nl-small { font-size: .85rem; opacity: .8; }
@keyframes nlPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nl-success { animation: none; } }

/* Newsletter validation message. The resting .hint is deliberately quiet mono;
   an actual error has to be readable, so drop the uppercase/letterspacing and
   switch to --ember. Paired with role="status" on the span so screen readers
   hear it too. */
.subscribe .hint.is-error {
  color: var(--ember);
  text-transform: none;
  letter-spacing: 0;
  font-size: .82rem;
}

/* ── Cookie consent bar ──────────────────────────────────────────────────────
   Shown only until the visitor decides, then never again (choice in localStorage,
   changeable from the footer link). Sits above the support bar, which stays hidden
   while a decision is pending so the two never stack. Accept and decline are the
   same size on purpose: under RODO refusing must be as easy as agreeing. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: linear-gradient(180deg, rgba(12,10,6,0.97), rgba(8,8,8,0.99));
  border-top: 1px solid var(--gold);
  box-shadow: 0 -20px 50px -30px rgba(0,0,0,0.95);
  padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.consent-in {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  max-height: 80dvh; overflow-y: auto;
}
/* Always-reachable dismiss (declines analytics). Pinned to the banner's top-right
   so it stays tappable even when an in-app browser's bottom toolbar (X, Instagram,
   Facebook) overlaps the Accept/Decline row at the very bottom edge. */
.consent-x {
  position: absolute; top: .35rem; right: .5rem; z-index: 1;
  width: 2.1rem; height: 2.1rem; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--muted);
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.consent-x:hover, .consent-x:focus-visible { color: var(--gold); background: rgba(212,175,55,.1); }
.consent-copy { flex: 1 1 420px; min-width: 0; }
.consent-copy strong {
  display: block; font-family: var(--font-display); font-size: 1.02rem;
  color: var(--gold-bright); margin-bottom: .25rem;
}
.consent-copy p { color: var(--muted); font-size: .88rem; line-height: 1.55; margin: 0; }
.consent-copy a { color: var(--gold); }
.consent-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.consent-actions .btn { padding: .62rem 1.15rem; font-size: .74rem; }
.consent-pending .support-bar { display: none !important; }
@media (max-width: 640px) {
  .consent-in { gap: .9rem; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 0; justify-content: center; }
}

/* ── Globe static poster ─────────────────────────────────────────────────────
   A 20 KB WebP of the globe shown instantly in #globe-viz. On desktop it's the
   poster while the 1.75 MB globe.gl parses (site.js swaps in the live canvas),
   so the hero never sits blank. On phones (<760px) the heavy scripts are never
   loaded at all — this image IS the globe, saving ~611 KB + the whole parse. */
.globe-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; z-index: 0; pointer-events: none;
}
#globe-viz.globe-ready .globe-poster { opacity: 0; transition: opacity .5s ease; }

/* Phones: the interactive globe loads here too (one finger spins it, two zoom),
   so the era chips and hint are shown, and the sphere captures its own drags. */
@media (max-width: 759px) {
  #globe-viz { cursor: grab; touch-action: none; }
}

/* Article FAQ (visible, mirrors FAQPage schema) */
.art-faq{max-width:820px;margin:2.6rem auto 0;padding-top:1.8rem;border-top:1px solid var(--gold-line)}
.art-faq>h2{font-family:var(--font-display);font-size:1.5rem;color:var(--text);margin:0 0 .4rem}
.art-faq .faq details:first-of-type{padding-top:1rem}
.art-faq .faq p{color:var(--muted);font-size:1.02rem;line-height:1.7;margin:.7rem 0 0}

/* Article byline + read-next thumbnails */
.art-byline{font-family:var(--font-mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:.35rem 0 0}
.art-byline a{color:var(--gold);text-decoration:none}
.related a.rn{display:flex;align-items:center;gap:.9rem}
.related a.rn .rn-t{flex:0 0 auto;width:66px;height:46px;border-radius:6px;overflow:hidden;border:1px solid var(--gold-line)}
.related a.rn .rn-t img{width:100%;height:100%;object-fit:cover;display:block}
