/* =============================================================
   arcraiders1337.com — Dark Matter, keyed to the Vanguard 1337
   channel yellow (#FFE500). Recolour the page from :root only.
   ============================================================= */

:root {
  /* ── Colour ── contrast measured on the actual values */
  --color-bg:       #0a0a0f;
  --color-surface:  #14141d;
  --color-surface-2:#1c1c28;
  --color-brand:    #ffe500;  /* CTA fill — --color-on-brand on it ≈ 15.5:1 (dark text, not white) */
  --color-on-brand: #0a0a0f;
  --color-brand-hi: #ffe500;  /* links/icons on bg ≈ 15.5:1              */
  --color-brand-dk: #e6ce00;  /* CTA hover — on-brand text still ≈ 12.4:1 */
  --color-alert:    #ff3333;  /* decorative only (glow, live dot), never text */
  --color-text:     #ece9f5;  /* on bg ≈ 16.5:1 AAA                      */
  --color-muted:    #9a96b0;  /* on bg ≈ 6.9:1 AA                        */
  --color-border:   rgba(255, 255, 255, 0.10);

  /* ── Type ── system stacks only: renders offline, no font download */
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Arial Black', 'Segoe UI Black', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --text-sm:   clamp(0.875rem, 0.80rem + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.30vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1.00rem + 0.60vw, 1.375rem);
  --text-xl:   clamp(1.25rem,  1.05rem + 1.00vw, 1.625rem);
  --text-2xl:  clamp(1.75rem,  1.20rem + 2.80vw, 3rem);
  --text-3xl:  clamp(2.4rem,   1.50rem + 4.60vw, 5.25rem);

  --leading-tight: 1.05;
  --leading-snug:  1.25;
  --leading-body:  1.6;

  /* ── Spacing ── */
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-s:  clamp(0.75rem, 0.5rem + 1vw,   1rem);
  --space-m:  clamp(1.25rem, 0.9rem + 1.6vw, 1.75rem);
  --space-l:  clamp(2rem,    1.5rem + 2.4vw, 3rem);
  --space-xl: clamp(3rem,    2.2rem + 4vw,   5rem);
  --space-2xl:clamp(4.5rem,  3rem + 7vw,     8rem);

  /* ── Shape / layout ── angular, HUD-like: small radii throughout */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --shadow-md: 0 4px 16px rgb(0 0 0 / 0.45);
  --glow: 0 0 0 1px rgb(255 229 0 / 0.5), 0 8px 32px rgb(255 229 0 / 0.25);

  --content-max: 75rem;
  --reading-max: 62ch;

  /* ── Motion gate ── single source of truth for CSS + JS */
  --motion-ok: 1;
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-ok: 0; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything, purely decorative */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, iframe { display: block; max-width: 100%; }
a { color: var(--color-brand-hi); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
ul[role="list"], ol[role="list"], .nav__menu, .facts, .footer__social { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: var(--text-3xl); line-height: var(--leading-tight); font-weight: 900; }
h2 { font-size: var(--text-2xl); line-height: var(--leading-snug); font-weight: 900; }
h3 { font-size: var(--text-xl);  line-height: var(--leading-snug); font-weight: 800; }

:focus-visible { outline: 3px solid var(--color-brand-hi); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: var(--space-2); left: var(--space-2); z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-brand); color: var(--color-on-brand);
  border-radius: var(--radius-md); text-decoration: none; font-weight: 700;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { clip-path: none; }

.container { width: min(100% - 2 * var(--space-m), var(--content-max)); margin-inline: auto; }
.section { padding-block: var(--space-2xl); position: relative; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-m);
  min-height: 2.75rem; min-width: 2.75rem;
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--color-brand); color: var(--color-on-brand); box-shadow: var(--glow); }
.btn--primary:hover { background: var(--color-brand-dk); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: rgb(255 255 255 / 0.25); }
.btn--ghost:hover { border-color: var(--color-brand-hi); color: var(--color-brand-hi); }
.btn--lg { padding: var(--space-4) var(--space-l); font-size: var(--text-base); }
.btn--sm { padding: var(--space-2) var(--space-4); box-shadow: none; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.nav--scrolled {
  border-bottom-color: var(--color-border);
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 4rem; position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-text); text-decoration: none;
  font-family: var(--font-display); font-weight: 900; letter-spacing: 0.06em;
  min-height: 2.75rem;
}
.brand__mark { width: 1.75rem; height: 1.75rem; color: var(--color-brand); }
.brand__num { color: var(--color-brand-hi); margin-left: 0.15em; }

.nav__toggle {
  display: none;
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  width: 2.75rem; height: 2.75rem; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 1.5rem; height: 1.5rem; }

.nav__menu { display: flex; align-items: center; gap: var(--space-m); }
.nav__menu a:not(.btn) {
  color: var(--color-muted); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; min-height: 2.75rem;
}
.nav__menu a:not(.btn):hover { color: var(--color-text); }

@media (max-width: 47.99rem) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none;
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu .btn { width: 100%; }
}

/* ── Hero ─────────────────────────────────────────────────── */
/* The stage fills the whole hero. The bottom padding keeps the lower band (where the fight
   and the crawler are) clear of the content cards; above it the art runs behind the cards. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(40rem, calc(100vh - 4rem));
  padding-top: var(--space-l);
  padding-bottom: 20vw;
  background:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 100% 4px;  /* scanlines */
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Sized from the WIDTH (the art's own 16:9), bottom-anchored: taller content then adds dark
   sky above the stage instead of zooming the fighters up behind the cards. */
.hero__stage { position: absolute; left: 0; bottom: 0; width: 100%; height: min(100%, 56.25vw); }
/* Narrow screens stack the cards, so the full-height stage would crop the fight away: shorten
   it to a bottom band (x 410-1190 of the 1600-wide art stays in view). */
@media (max-width: 63.99rem) {
  .hero { min-height: 0; padding-bottom: 62vw; }
  .hero__stage { top: auto; height: 118vw; }
}
/* Glass cards keep text readable over the art: at .86 alpha even over the yellow sun the
   muted text stays above 4.5:1. */
.hero__copy, .stream {
  background: rgb(10 10 15 / 0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-m);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.hero__glow--a {
  width: 42rem; height: 42rem; right: -12rem; top: -14rem;
  background: radial-gradient(circle, rgb(255 229 0 / 0.55), transparent 65%);
}
.hero__glow--b {
  width: 34rem; height: 34rem; left: -14rem; bottom: -16rem;
  background: radial-gradient(circle, rgb(255 51 51 / 0.45), transparent 65%);
}
/* Cowboy-peanut mascot: sits high on the right so it peeks over the battle scene on
   wide screens; fainter on narrow ones, where it lies behind the text. */
.hero__mascot {
  position: absolute; top: 3%; right: 4%;
  width: clamp(14rem, 34vw, 30rem); height: auto;
  opacity: 0.14;
  transform: rotate(8deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
}
@media (min-width: 64rem) {
  .hero__mascot { opacity: 0.42; right: 9%; top: 1%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__glow--a { animation: drift 14s ease-in-out infinite alternate; }
  .hero__glow--b { animation: drift 18s ease-in-out infinite alternate-reverse; }
}
@keyframes drift {
  to { transform: translate(-3rem, 2.5rem) scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__mascot { animation: mascot-float 7s ease-in-out infinite alternate; }
}
@keyframes mascot-float {
  from { transform: rotate(8deg) translateY(0); }
  to   { transform: rotate(4deg) translateY(-14px); }
}

.hero__inner { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.stream__title {
  font-size: var(--text-lg); letter-spacing: 0.02em; margin-bottom: var(--space-2);
  padding-left: var(--space-s);
}
.stream__note { color: var(--color-muted); font-size: var(--text-sm); padding-left: var(--space-s); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: rgb(20 20 29 / 0.6);
  margin-bottom: var(--space-m);
}
.dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--color-alert); box-shadow: 0 0 0.6rem var(--color-alert);
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.1rem); }
/* Out of the hero, the facts strip opens the "On stream" section instead. */
.section .facts { margin: 0 0 var(--space-l); }
.hl { color: var(--color-brand-hi); display: block; }
/* Keyword line inside the h1: "ARC Raiders live stream" leads the page's one heading. */
.h1-kicker {
  display: block; margin-bottom: var(--space-2);
  font-size: var(--text-xl); letter-spacing: 0.04em; color: var(--color-muted);
}
.hero__sub {
  max-width: var(--reading-max);
  margin-top: var(--space-m);
  font-size: var(--text-lg); color: var(--color-muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-m); }
.hero__ctas .btn { padding-inline: var(--space-s); }

.facts {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  margin-top: var(--space-xl);
  max-width: 48rem;
  background: var(--color-border);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
}
.facts li {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: var(--space-s) var(--space-m);
  background: rgb(10 10 15 / 0.85);
}
.facts__k {
  font-family: var(--font-mono); font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted);
}
.facts__v { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; }

/* ── Battle scene (inline SVG in the hero) ────────────────── */
.bt-hud { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em; }
/* Animated SVG parts transform around their own box, not the SVG origin. Scoped to the
   animated classes only: transform-origin also applies to transform ATTRIBUTES, so a
   blanket rule would shift every positioned group and rotated shape. */
.bt-lunge, .bt-bob, .bt-legs, .bt-arm, .bt-spark, .bt-shake, .bt-mane, .bt-scarf, .bt-tail,
.bt-smoke, .bt-drone, .bt-walker, .bt-dust, .bt-hp, .bt-eye, .bt-blink,
.cr-crawl, .cr-pop, .crw-bob, .crw-leg, .crw-glow, .ex-flash, .ex-ring, .ex-rays, .ex-smoke {
  transform-box: fill-box; transform-origin: center;
}
/* Each crawler leg swings from its shoulder: outer legs hang off the top-inner corner of
   their box, inner legs off the top-outer corner. */
.crw-leg--lo, .crw-leg--ri { transform-origin: 100% 0%; }
.crw-leg--ro, .crw-leg--li { transform-origin: 0% 0%; }
.bt-legs { transform-origin: 50% 0%; }      /* swing from the hip */
.bt-arm { transform-origin: 0% 100%; }      /* swing from the shoulder */
.bt-scarf, .bt-tail { transform-origin: 100% 50%; }
.bt-mane { transform-origin: 50% 100%; }
.bt-hp--late { transform-origin: 100% 50%; }

@media (prefers-reduced-motion: no-preference) {
  /* One 2.4s beat: wind up, charge, clash at ~46%, fall back. Both riders use the same
     keyframes; Hutch's mirrored parent turns his +x lunge into a charge to the left. */
  .bt-lunge { animation: bt-lunge 2.4s ease-in-out infinite; }
  .bt-arm   { animation: bt-swing 2.4s ease-in-out infinite; }
  .bt-spark { animation: bt-spark 2.4s ease-out infinite; }
  .bt-shake { animation: bt-shake 2.4s linear infinite; }
  .bt-hp    { animation: bt-hit 2.4s steps(1) infinite; }
  .bt-bob   { animation: bt-bob .36s ease-in-out infinite alternate; }
  .bt-legs--front { animation: bt-gallop .36s ease-in-out infinite alternate; }
  .bt-legs--back  { animation: bt-gallop .36s ease-in-out infinite alternate-reverse; }
  .bt-mane, .bt-scarf, .bt-tail { animation: bt-flutter .3s ease-in-out infinite alternate; }
  .bt-smoke { animation: bt-smoke 2s ease-out infinite; }
  .bt-smoke--late { animation-delay: 1s; }
  .bt-drone { animation: bt-hover 3s ease-in-out infinite alternate; }
  .bt-drone--late { animation-delay: -1.5s; }
  .bt-walker { animation: bt-sway 9s ease-in-out infinite alternate; }
  .bt-eye { animation: pulse 1.6s ease-in-out infinite; }
  .bt-blink { animation: pulse 1s steps(2) infinite; }
  .bt-dust { animation: bt-drift 6s linear infinite; }
  .bt-dust--2 { animation-delay: -2s; }
  .bt-dust--3 { animation-delay: -4s; }
  /* ARC crawler: one 16s cycle. Explosion at 0-8%, the crawler pops out of it, stalks
     right across the whole hero, and fades at the far edge before the next blast.
     Diagonal leg pairs step together (left-outer + right-inner, then the other two). */
  .ex-flash { animation: ex-flash 16s ease-out infinite; }
  .ex-ring  { animation: ex-ring 16s ease-out infinite; }
  .ex-rays  { animation: ex-rays 16s ease-out infinite; }
  .ex-smoke { animation: ex-smoke 16s ease-out infinite; }
  .cr-crawl { animation: cr-crawl 16s linear infinite; }
  .cr-pop   { animation: cr-pop 16s ease-out infinite; }
  .crw-bob  { animation: bt-bob .3s ease-in-out infinite alternate; }
  .crw-glow { animation: pulse 1.2s ease-in-out infinite; }
  .crw-leg--lo, .crw-leg--ri { animation: crw-step .6s ease-in-out infinite alternate; }
  .crw-leg--ro, .crw-leg--li { animation: crw-step .6s ease-in-out infinite alternate-reverse; }
}
/* Explosion parts are invisible at rest, so the static (reduced-motion) frame shows the
   crawler standing where it spawned, with no frozen blast. */
.ex-flash, .ex-ring, .ex-rays, .ex-smoke { opacity: 0; }
@keyframes ex-flash {
  0%   { opacity: 0; transform: scale(.1); }
  2%   { opacity: 1; transform: scale(1.2); }
  7%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes ex-ring {
  0%   { opacity: 0; transform: scale(.2); }
  1%   { opacity: 1; }
  8%, 100% { opacity: 0; transform: scale(2); }
}
@keyframes ex-rays {
  0%   { opacity: 0; transform: scale(.3) rotate(0); }
  1.5% { opacity: 1; }
  7%, 100% { opacity: 0; transform: scale(1.6) rotate(12deg); }
}
@keyframes ex-smoke {
  0%   { opacity: 0; transform: scale(.3); }
  4%   { opacity: .85; }
  24%, 100% { opacity: 0; transform: scale(1.8) translateY(-20px); }
}
@keyframes cr-pop {
  0%, 2% { opacity: 0; transform: scale(0); }
  5%   { opacity: 1; transform: scale(1.3); }
  8%   { transform: scale(1); }
  90%  { opacity: 1; }
  96%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes cr-crawl {
  0%, 7% { transform: translateX(0); }
  96%, 100% { transform: translateX(1240px); }
}
@keyframes crw-step { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes bt-lunge {
  0%, 18%  { transform: translateX(0); }
  44%      { transform: translateX(62px); }
  52%      { transform: translateX(46px); }
  78%, 100% { transform: translateX(0); }
}
@keyframes bt-swing {
  0%, 18% { transform: rotate(0); }
  36%     { transform: rotate(-30deg); }
  45%     { transform: rotate(14deg); }
  62%, 100% { transform: rotate(0); }
}
@keyframes bt-spark {
  0%, 42% { opacity: 0; transform: scale(.2); }
  47%     { opacity: 1; transform: scale(1.25); }
  60%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes bt-shake {
  0%, 45% { transform: translate(0, 0); }
  46% { transform: translate(-5px, 2px); }
  48% { transform: translate(5px, -2px); }
  50% { transform: translate(-3px, 1px); }
  52%, 100% { transform: translate(0, 0); }
}
@keyframes bt-hit { 0%, 45% { opacity: 1; } 46% { opacity: .2; } 50%, 100% { opacity: 1; } }
@keyframes bt-bob { to { transform: translateY(-7px); } }
@keyframes bt-gallop { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes bt-flutter { from { transform: skewY(-5deg); } to { transform: skewY(6deg); } }
@keyframes bt-smoke {
  0%   { opacity: 0; transform: translateY(0) scale(.6); }
  30%  { opacity: .75; }
  100% { opacity: 0; transform: translateY(-26px) scale(1.3); }
}
@keyframes bt-hover { to { transform: translateY(-12px); } }
@keyframes bt-sway { to { transform: translateX(22px); } }
@keyframes bt-drift {
  0%   { opacity: 0; transform: translateX(0); }
  20%, 80% { opacity: .6; }
  100% { opacity: 0; transform: translateX(-90px); }
}

/* ── Section heads ────────────────────────────────────────── */
.section__head { margin-bottom: var(--space-l); max-width: var(--reading-max); }
.kicker {
  font-family: var(--font-mono); font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-brand-hi); margin-bottom: var(--space-2);
}
.kicker::before { content: "// "; color: var(--color-muted); }
.section__lede { margin-top: var(--space-s); color: var(--color-muted); font-size: var(--text-lg); }

/* ── Player screen with HUD corner brackets ───────────────── */
.screen { position: relative; padding: var(--space-s); }
.screen__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden;
  /* shown behind the iframe while it loads, or offline */
  background:
    radial-gradient(circle at 70% 30%, rgb(255 229 0 / 0.12), transparent 55%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 4px),
    var(--color-surface);
  box-shadow: var(--shadow-md);
}
.screen__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.screen__fallback {
  position: absolute; inset: auto 0 0 0; padding: var(--space-m);
  text-align: center; color: var(--color-muted); font-size: var(--text-sm);
}
.screen__corner {
  position: absolute; width: 1.75rem; height: 1.75rem;
  border: 3px solid var(--color-brand);
}
.screen__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.screen__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.screen__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.screen__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ── Cards ────────────────────────────────────────────────── */
.card-grid {
  display: grid; gap: var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
}
.card {
  position: relative;
  padding: var(--space-l) var(--space-m);
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: border-color .2s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: var(--space-m);
  width: 3px; height: 2.5rem; background: var(--color-brand);
}
.card:hover { border-color: rgb(255 229 0 / 0.4); }
.card__icon { width: 2.25rem; height: 2.25rem; color: var(--color-brand-hi); margin-bottom: var(--space-s); }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p, .step p { color: var(--color-muted); }

/* ── Steps ────────────────────────────────────────────────── */
.steps {
  display: grid; gap: var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
  counter-reset: none;
}
.step { padding-top: var(--space-m); border-top: 2px solid var(--color-border); }
.step__num {
  display: block; margin-bottom: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 700;
  color: var(--color-brand-hi); line-height: 1;
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  display: grid; gap: var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr));
}
.faq__item {
  padding: var(--space-m);
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-left: 3px solid var(--color-brand);
  border-radius: var(--radius-md);
}
.faq__item h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.faq__item p { color: var(--color-muted); }

/* ── Closing CTA band ─────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(ellipse at 50% 120%, rgb(255 229 0 / 0.18), transparent 60%),
    var(--color-surface-2);
  border-block: 1px solid var(--color-border);
  text-align: center;
}
.cta-band__inner { display: grid; justify-items: center; gap: var(--space-s); }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--color-muted); font-size: var(--text-lg); margin-bottom: var(--space-s); }

/* ── Footer ───────────────────────────────────────────────── */
.footer { padding-block: var(--space-l); border-top: 1px solid var(--color-border); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-m);
}
.footer__brand { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.06em; }
.footer__social { display: flex; gap: var(--space-2); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--color-muted);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.footer__social a:hover { color: var(--color-brand-hi); border-color: var(--color-brand-hi); }
.footer__social svg { width: 1.25rem; height: 1.25rem; }
.footer__legal { flex-basis: 100%; font-size: var(--text-sm); color: var(--color-muted); }

/* ── Scroll reveal: visible by default; hidden-then-animated only when
      motion is allowed AND script.js has run (it adds .js to <html>) */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .55s ease, transform .55s ease;
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js [data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
  .js [data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
}
