/* Little Legions — site styles. Dark only: the game, its logo and its trailer all live on dark. */

@font-face { font-family: 'Tiny5'; src: url('fonts/tiny5.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-500.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-900.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0d100e;
  --bg-raise: #131814;
  --bg-card: #171d18;
  --line: rgba(239, 230, 210, .11);
  --line-strong: rgba(239, 230, 210, .24);
  --bone: #efe6d2;
  --text: #d1cabb;
  --muted: #9a988a;
  --crimson: #c62a3a;
  --crimson-hi: #de3a4c;
  --crimson-lo: #8a1626;
  --gold: #f1c85b;
  --mint: #9debdd;
  --moss: #a3c24a;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 136px);
  --font-pixel: 'Tiny5', ui-monospace, 'Cascadia Mono', monospace;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --n: 6px; /* pixel notch size */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bone); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--bone); font-family: var(--font-pixel); font-weight: 400; line-height: 1.05; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--crimson); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: #111; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Stepped pixel corners. clip-path also clips outlines, so clipped elements use inset focus rings. */
.notch {
  clip-path: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n),
    100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%,
    var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font: 400 .95rem/1 var(--font-pixel); letter-spacing: .08em; text-transform: uppercase;
  color: var(--crimson-hi);
}
.kicker::before { content: ''; width: 10px; height: 10px; background: currentColor; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 20px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --n: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: 0 24px;
  border: 0; cursor: pointer;
  font: 700 1rem/1.1 var(--font-body); color: var(--bone); text-decoration: none; white-space: nowrap;
  background: var(--btn-bg, #222a24);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .1);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn-steam { --btn-bg: linear-gradient(180deg, #d63749, #a71b2c); }
.btn-itch { --btn-bg: linear-gradient(180deg, #2a332c, #1c231e); }
.btn-itch svg { width: 26px; }
.btn-ghost { --btn-bg: rgba(239, 230, 210, .07); box-shadow: inset 0 0 0 2px rgba(239, 230, 210, .32); }
.btn-ghost:hover { --btn-bg: rgba(239, 230, 210, .14); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav.always-solid {
  background: rgba(13, 16, 14, .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; font: 400 1.25rem/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; image-rendering: auto; }
.nav-links { display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font: 400 1rem/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .06em; padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--bone); box-shadow: 0 2px 0 var(--crimson); }
@media (max-width: 860px) {
  .nav-links li:not(.keep) { display: none; }
  .nav-inner { gap: 16px; }
  .nav .brand span { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: grid; place-items: center;
  padding: 110px 0 120px;
  overflow: hidden;
  background: #0b0d0b url('../media/hero-poster.jpg') center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
  filter: saturate(.92);
}
.hero-video.is-playing { opacity: 1; }
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Darken the middle for the logo and fade the trailer's lower-third callouts into the page. */
.hero::before {
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(8, 10, 8, .62), rgba(8, 10, 8, .2) 70%, transparent),
    linear-gradient(180deg, rgba(13, 16, 14, .8) 0%, rgba(13, 16, 14, .15) 15%, rgba(13, 16, 14, .1) 40%, rgba(13, 16, 14, .86) 66%, rgba(13, 16, 14, .94) 84%, var(--bg) 100%);
}
/* Faint scanline grain keeps the 720p loop from looking soft on big screens. */
.hero::after {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .55;
}
.hero-content { position: relative; text-align: center; display: grid; justify-items: center; gap: 0; padding-inline: var(--gutter); }
.hero-logo { width: min(600px, 86vw); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .65)) drop-shadow(0 0 2px rgba(0, 0, 0, .9)); }
.hero h1 { margin: 6px 0 14px; font-size: clamp(1.05rem, 2.2vw, 1.5rem); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 rgba(0,0,0,.85), 0 0 24px rgba(0,0,0,.7); }
.hero .lead { margin: 0 auto 30px; max-width: 46ch; color: #e8e1d1; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.8); }
.hero-meta { margin: 22px 0 0; font: 400 .9rem/1 var(--font-pixel); letter-spacing: .1em; text-transform: uppercase; color: rgba(239, 230, 210, .7); text-shadow: 0 1px 2px #000; }
.hero-meta svg { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; fill: currentColor; }
.hero-tools { position: absolute; right: var(--gutter); bottom: 28px; display: flex; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; cursor: pointer;
  color: var(--bone); background: rgba(13, 16, 14, .55); box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn:hover { background: rgba(13, 16, 14, .8); }
@media (max-width: 760px) {
  /* A tall screen crops deep into the 16:9 trailer, so its callouts get huge; dim it more. */
  .hero::before {
    background:
      linear-gradient(rgba(8, 10, 8, .38), rgba(8, 10, 8, .38)),
      linear-gradient(180deg, rgba(13, 16, 14, .8) 0%, rgba(13, 16, 14, .2) 14%, rgba(13, 16, 14, .35) 40%, rgba(13, 16, 14, .9) 64%, var(--bg) 100%);
  }
  .hero .btn-row { flex-direction: column; align-items: stretch; width: min(340px, 100%); margin-inline: auto; }
}
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; color: rgba(239, 230, 210, .6); animation: bob 2.4s ease-in-out infinite; }
.scroll-cue svg { width: 28px; height: 28px; fill: currentColor; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------------------------------------------------------------- stats */
.stats { position: relative; padding: 8px 0 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: 0; padding: 0; list-style: none;
  border-block: 2px dashed var(--line-strong);
}
.stats-grid li { padding: 30px 12px; text-align: center; }
.stats-grid li + li { border-left: 1px solid var(--line); }
.stat-num { display: block; font: 400 clamp(2.2rem, 4.6vw, 3.4rem)/1 var(--font-pixel); color: var(--gold); text-shadow: 3px 3px 0 rgba(0, 0, 0, .45); }
.stat-label { display: block; margin-top: 10px; font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stats-grid li:first-child { grid-column: 1 / -1; border-top: 0; }
  .stats-grid li:nth-child(2), .stats-grid li:nth-child(4) { border-right: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-raise); border-block: 1px solid var(--line); }
/* The game's preparation board is a checkerboard; echo it behind the placement section. */
.section-board {
  background-color: #111512;
  background-image:
    linear-gradient(180deg, var(--bg) 0, transparent 140px, transparent calc(100% - 140px), var(--bg) 100%),
    conic-gradient(rgba(239, 230, 210, .028) 25%, transparent 0 50%, rgba(239, 230, 210, .028) 0 75%, transparent 0);
  background-size: 100% 100%, 64px 64px;
}

/* How it plays */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.step { background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.step-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0c0a; }
.step-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transition: transform .6s ease; }
.step:hover .step-media img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
.step-num {
  position: absolute; left: 16px; bottom: -1px;
  min-width: 52px; padding: 10px 12px 8px; text-align: center;
  font: 400 1.4rem/1 var(--font-pixel); color: #fff; background: var(--crimson);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25);
}
.step-body { padding: 24px 24px 28px; }
.step-body h3 { margin-bottom: 12px; }
.step-body p { margin: 0; color: var(--text); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Placement clips */
.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); margin: 0; padding: 0; list-style: none; }
.clip { display: flex; flex-direction: column; gap: 16px; }
.clip-frame {
  --n: 8px;
  position: relative; aspect-ratio: 9 / 16; background: #0c0f0d;
  padding: 6px; background-image: linear-gradient(180deg, #3a443c, #232a25);
}
.clip-frame video, .clip-frame img { width: 100%; height: 100%; object-fit: cover; background: #0c0f0d; }
.clip-frame .notch { --n: 4px; }
.clip-play {
  position: absolute; inset: 6px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: rgba(0, 0, 0, .35); color: #fff; opacity: 0; transition: opacity .2s;
}
.clip-play svg { width: 54px; height: 54px; fill: currentColor; filter: drop-shadow(0 2px 8px #000); }
.clip.is-paused .clip-play, .clip-play:focus-visible { opacity: 1; }
.clip-play:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.clip h3 { font-size: 1.25rem; margin-bottom: 6px; }
.clip p { margin: 0; font-size: .97rem; color: var(--muted); }
@media (max-width: 960px) {
  .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(260px, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .clip { scroll-snap-align: start; }
}

/* Feature rows */
.features { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: 5fr 7fr; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { position: relative; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .55)); }
.feature-media::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  background: repeating-linear-gradient(45deg, rgba(198, 42, 58, .5) 0 2px, transparent 2px 9px);
}
.feature:nth-child(even) .feature-media::before { inset: 18px 18px -18px -18px; }
.feature-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-text h3 { margin-bottom: 18px; }
.feature-text p:last-child { margin-bottom: 0; }
.feature-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-text li { position: relative; padding-left: 22px; }
.feature-text li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--crimson-hi); }
@media (max-width: 860px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* Commanders */
.commanders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
.commander { --accent: var(--moss); display: flex; flex-direction: column; background: var(--bg-card); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.commander.necro { --accent: #63d26b; }
.commander-art { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; overflow: hidden; background: #0d1512; }
.commander-art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.commander-art::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--bg-card)); }
.commander-body { padding: 4px 28px 30px; margin-top: -26px; position: relative; }
.commander-body h3 { margin-bottom: 12px; }
.commander-body .flavour { color: var(--text); }
.passive { margin: 18px 0; padding: 14px 16px; background: rgba(0, 0, 0, .25); box-shadow: inset 3px 0 0 var(--accent); }
.passive strong { display: block; margin-bottom: 4px; font: 400 .9rem/1 var(--font-pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.armies { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.armies li { padding: 7px 12px; font: 400 .95rem/1 var(--font-pixel); color: var(--bone); background: rgba(239, 230, 210, .06); box-shadow: inset 0 0 0 1px var(--line); }
.doctrine-note { margin: clamp(28px, 4vw, 40px) auto 0; text-align: center; color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) { .commanders { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 16px); margin: 0; padding: 0; list-style: none; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.shot {
  --n: 5px;
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #0a0c0a; overflow: hidden; aspect-ratio: 16 / 9;
}
.gallery li:first-child .shot { aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.shot:hover img { transform: scale(1.05); }
.shot:focus-visible { outline: none; }
.shot:focus-visible::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--gold); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery li:first-child { grid-row: auto; }
  .gallery li:first-child .shot { aspect-ratio: 16 / 9; }
  .gallery li:last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
  font: 700 1.1rem/1.35 var(--font-body); color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font: 400 1.6rem/1 var(--font-pixel); color: var(--crimson-hi); }
.faq details[open] summary::after { content: '\2212'; }
.faq summary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }
.faq .answer { padding: 0 24px 22px; color: var(--text); }
.faq .answer p:last-child { margin: 0; }

/* Final call to action */
.cta-final {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(96px, 14vw, 180px); text-align: center;
  background: #0b0d0b url('../img/keyart.webp') center 40% / cover no-repeat;
}
.cta-final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(10, 12, 10, .55), rgba(10, 12, 10, .9)), linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.cta-final h2 { font-size: clamp(2.4rem, 7vw, 5rem); text-shadow: 4px 4px 0 rgba(0, 0, 0, .6); }
.cta-final p { margin: 16px auto 36px; font-size: 1.2rem; color: var(--bone); text-shadow: 0 1px 3px #000; }

/* Footer */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); text-decoration: none; font: 400 1rem/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .06em; }
.footer-links a:hover { color: var(--bone); }
.legal { max-width: 80ch; margin: 0; font-size: .82rem; line-height: 1.6; color: #7d7b70; }

/* ---------------------------------------------------------------- dialogs */
dialog { padding: 0; border: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 6, 5, .92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-close { position: fixed; top: 16px; right: 16px; z-index: 2; width: 48px; height: 48px; }
.dialog-close svg { width: 20px; height: 20px; }
.trailer-dialog { width: min(1280px, 94vw); }
.trailer-dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 72px 72px 24px; max-height: 100%; min-height: 0; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100dvh - 170px); width: auto; height: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); image-rendering: auto; }
.lightbox figcaption { max-width: 70ch; text-align: center; color: var(--text); }
.lightbox .count { display: block; margin-bottom: 4px; font: 400 .9rem/1 var(--font-pixel); color: var(--gold); letter-spacing: .1em; }
.lightbox-nav { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
@media (max-width: 760px) {
  .lightbox figure { padding: 70px 12px 90px; }
  .lightbox-nav { top: auto; bottom: 18px; translate: none; }
}

/* Toast for store links that are not live yet */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 20px;
  padding: 14px 20px; max-width: calc(100vw - 32px);
  font-weight: 700; color: var(--bone); background: #222a24; box-shadow: inset 0 0 0 1px var(--line-strong), 0 16px 40px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, translate .2s ease;
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* ---------------------------------------------------------------- press kit */
.press-hero { padding: 140px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 80% 120% at 85% 0%, rgba(198, 42, 58, .16), transparent 60%), var(--bg); }
.press-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.press-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; margin-bottom: 18px; }
.press-hero img { width: min(340px, 40vw); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); }
@media (max-width: 760px) { .press-hero-grid { grid-template-columns: 1fr; } .press-hero img { display: none; } }
.press-layout { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding-block: 56px var(--section); }
@media (max-width: 960px) { .press-layout { grid-template-columns: 1fr; } }
.factsheet { padding: 26px; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); }
/* Only pin it where the whole sheet fits on screen; otherwise its bottom rows would be unreachable. */
@media (min-width: 961px) and (min-height: 960px) { .factsheet { position: sticky; top: 92px; } }
.factsheet h2 { font-size: 1.5rem; margin-bottom: 18px; }
.factsheet dl { margin: 0; display: grid; gap: 14px; }
.factsheet dt { font: 400 .85rem/1 var(--font-pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.factsheet dd { margin: 0; color: var(--bone); font-size: .98rem; line-height: 1.45; }
.press-main section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.press-main section:last-child { border-bottom: 0; margin-bottom: 0; }
.press-main h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 22px; }
.press-main h3 { font-size: 1.3rem; margin: 26px 0 12px; }
.press-main ul.list { padding-left: 1.2em; }
.press-main ul.list li { margin-bottom: 8px; }
.press-main ul.list li::marker { color: var(--crimson-hi); }
.copy-block { position: relative; padding: 22px 24px; background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); }
.copy-block p:last-of-type { margin-bottom: 0; }
.copy-btn { position: absolute; top: 12px; right: 12px; }
.copy-block.has-copy { padding-right: 104px; }
@media (max-width: 600px) { .copy-block.has-copy { padding-right: 24px; padding-top: 60px; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 8px 12px; font: 400 .95rem/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; color: var(--text); background: rgba(239, 230, 210, .05); box-shadow: inset 0 0 0 1px var(--line); }
.toc a:hover { color: var(--bone); background: rgba(239, 230, 210, .1); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dl-card { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.dl-card:hover { color: var(--bone); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dl-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dl-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #0a0c0a; display: grid; place-items: center; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-thumb.contain img { object-fit: contain; padding: 14px; }
.dl-thumb.checker { background: repeating-conic-gradient(#2a2f2b 0 25%, #1d221e 0 50%) 0 0 / 20px 20px; }
.dl-meta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: .9rem; }
.dl-meta strong { display: block; color: var(--bone); font-weight: 700; }
.dl-meta span { color: var(--muted); font-size: .85rem; }
.dl-meta svg { width: 18px; height: 18px; flex: none; margin-left: auto; fill: var(--muted); }
.dl-card:hover .dl-meta svg { fill: var(--gold); }
.video-block video { width: 100%; aspect-ratio: 16 / 9; background: #000; margin-bottom: 18px; }
.todo { padding: 0 4px; color: var(--gold); background: rgba(241, 200, 91, .1); box-shadow: inset 0 0 0 1px rgba(241, 200, 91, .45); font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .step:hover .step-media img { transform: scale(var(--zoom, 1)); }
  .shot:hover img { transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
