/* ===================================================================
   base.css — reset, tokens, typography, reveal-gating base rules
   =================================================================== */

:root {
  --bg-base: #09090b;
  --bg-surface: #141519;
  --bg-elevated: #1c1e24;
  --border-soft: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);

  --red: #e5171f;
  --red-bright: #ff3b3b;
  --red-deep: #8f0e14;

  --amber: #f5a623;
  --amber-soft: #f5c778;

  --ink: #f6f5f2;
  --ink-dim: #c7c9cf;
  --muted: #9aa0aa;
  --muted-2: #6b7078;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shadow-lg: 0 30px 80px -24px rgba(0,0,0,.65);
  --shadow-sm: 0 10px 30px -14px rgba(0,0,0,.55);
  --radius: 14px;
  --radius-sm: 8px;
  --container-w: 1180px;
}

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

html, body { max-width: 100%; overflow-x: hidden; }

html {
  background: var(--bg-base);
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-dim); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: .9rem;
}
.eyebrow--light { color: var(--amber); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: .8rem 1.2rem;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Reveal gating — HARD RULE: text hidden-for-animation is hidden
   ONLY under html.reveal-armed, added by reveal.js itself. If the
   script never runs, text stays visible by default.
   --------------------------------------------------------------- */
[data-reveal] { display: block; }
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word__in { display: inline-block; will-change: transform; }

html.reveal-armed .word__in {
  transform: translateY(110%);
  opacity: 0;
}
html.reveal-armed .is-revealed .word__in {
  transform: none;
  opacity: 1;
  transition: transform .7s cubic-bezier(.19,1,.22,1), opacity .6s ease;
}

.fade-in-up { opacity: 1; transform: none; }
html.reveal-armed .fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.19,1,.22,1);
}
html.reveal-armed .fade-in-up.is-shown {
  opacity: 1;
  transform: none;
}

/* media placeholder slots — never stock photography */
.media-slot {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px),
    var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 2rem;
}
.media-slot__label {
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--muted);
}

/* utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
