/* =========================================================
   LORDS — Modern tech · deep crimson editorial
   Display: Bricolage Grotesque · Body: Manrope · Mono: Geist Mono
   ========================================================= */

:root {
  /* Surfaces */
  --ink:        #0A0A0F;
  --ink-2:      #12121A;
  --ink-3:      #1A1A24;
  --ink-4:      #232331;
  --ink-glass:  rgba(18, 18, 26, 0.78);

  /* Bone text */
  --bone:       #F4F2EE;
  --bone-dim:   #B0ADA8;
  --bone-faded: #6E6B66;
  --mute:       #45433F;

  /* Crimson (hero / brand red) */
  --crimson:        #DC2626;
  --crimson-bright: #F43F5E;
  --crimson-deep:   #6B0B0B;
  --crimson-dark:   #2A0808;
  --crimson-glow:   rgba(220, 38, 38, 0.55);

  /* Gold (logo accent) */
  --gold:    #D4A437;
  --gold-hi: #F2C95D;
  --gold-deep: #8A6B2A;

  /* Map HUD-only */
  --hud:       #4FE6FF;
  --hud-dim:   #2A8FA8;
  --hud-amber: #FFB347;
  --hud-bg:    #03101A;

  /* Type */
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --f-mono:    'Geist Mono', 'JetBrains Mono', monospace;
  --f-script:  'Caveat', cursive;

  /* Easing */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -------- RESET -------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body { min-height: 100vh; position: relative; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--crimson); color: var(--bone); }

/* -------- GLOBAL TEXTURE -------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.14 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================================================
   LOGO INTRO — tech boot sequence (no clipping artifacts)
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: intro-fade 0.6s ease 3.0s forwards;
}
.intro.done { display: none; }

.intro::before {
  /* faint grid */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.intro-stage {
  position: relative;
  width: min(560px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* progress bar above logo */
.intro-bar-wrap {
  width: 100%;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--bone-faded);
  text-transform: uppercase;
  opacity: 0;
  animation: intro-fadein 0.4s ease 0.1s forwards;
}
.intro-bar-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.intro-bar-row .right { color: var(--crimson-bright); }
.intro-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.intro-bar > i {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson-bright));
  box-shadow: 0 0 10px var(--crimson-glow);
  animation: intro-bar-fill 1.6s var(--ease-out) 0.3s forwards;
}
@keyframes intro-bar-fill {
  to { width: 100%; }
}

/* logo wrapper with glow halo behind */
.intro-logo-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-logo-wrap::before {
  /* glow halo expands then settles */
  content: '';
  position: absolute;
  width: 80%;
  aspect-ratio: 3 / 1;
  background:
    radial-gradient(ellipse at center, rgba(220, 38, 38, 0.45), transparent 60%),
    radial-gradient(ellipse at center, rgba(232, 199, 93, 0.25), transparent 70%);
  filter: blur(40px);
  opacity: 0;
  animation: intro-halo 2s var(--ease-out) 1.8s forwards;
  z-index: 0;
}
.intro-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  opacity: 0;
  transform: scale(0.92);
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.8));
  animation: intro-logo-in 1.0s var(--ease-out) 1.85s forwards;
}
@keyframes intro-logo-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes intro-halo {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

.intro-caption {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--bone-dim);
  text-transform: uppercase;
  opacity: 0;
  animation: intro-fadein 0.6s ease 2.4s forwards;
}
@keyframes intro-fadein { to { opacity: 1; } }
@keyframes intro-fade   { to { opacity: 0; visibility: hidden; } }

/* site reveal */
.site {
  opacity: 0;
  animation: site-reveal 0.9s ease 2.9s forwards;
}
@keyframes site-reveal { to { opacity: 1; } }

/* =========================================================
   TOP STATUS BAR
   ========================================================= */
.status-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--bone-dim);
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.92), rgba(10, 10, 15, 0.55) 80%, transparent);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.status-bar-left, .status-bar-right { display: flex; align-items: center; gap: 1rem; }
.status-bar .divider { color: var(--bone-faded); opacity: 0.6; }
.status-bar .clock { color: var(--bone); }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 10px var(--crimson);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.78); }
}
@media (max-width: 768px) {
  .status-bar { font-size: 9px; padding: 10px 14px; letter-spacing: 0.18em; }
  .status-bar > .status-bar-right > *:nth-child(n+3) { display: none; }
}

/* =========================================================
   HERO  (per inspiration ref — deep crimson, big centered)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  overflow: hidden;
  background: #0F0606;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.7) contrast(1.1) hue-rotate(-12deg);
}
.hero-bg::after {
  /* deep crimson tint over video + heavy vignette */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%,
      rgba(150, 22, 22, 0.55) 0%,
      rgba(70, 8, 8, 0.85) 45%,
      rgba(20, 2, 2, 0.95) 80%,
      #050202 100%
    ),
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.85) 100%);
  mix-blend-mode: multiply;
}

/* extra inner vignette ring for the inspiration look */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 95% 80% at 50% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

/* corner labels (per inspiration) */
.hero-corner {
  position: absolute;
  z-index: 4;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--bone-dim);
  text-transform: uppercase;
  line-height: 1.5;
}
.hero-corner.tl { top: 70px; left: 28px; }
.hero-corner.tr { top: 70px; right: 28px; text-align: right; }
.hero-corner.bl { bottom: 28px; left: 28px; }
.hero-corner.br { bottom: 28px; right: 28px; text-align: right; }
.hero-corner .accent { color: var(--crimson-bright); }
@media (max-width: 640px) {
  .hero-corner { font-size: 8px; letter-spacing: 0.22em; }
  .hero-corner.tl, .hero-corner.tr { top: 56px; }
}

/* tiny eyebrow at top center */
.hero-eyebrow {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--bone-dim);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}
.hero-eyebrow > .small { color: var(--bone-faded); font-size: 9px; }

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

/* mission tag above logo (small) */
.mission-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--bone-dim);
  text-transform: uppercase;
}
.mission-tag::before, .mission-tag::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--bone-faded);
  opacity: 0.5;
}

/* the BIG logo image */
.hero-logo-img {
  width: clamp(280px, 70vw, 780px);
  height: auto;
  filter:
    drop-shadow(0 14px 36px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 50px rgba(220, 38, 38, 0.4));
}

/* tagline */
.hero-tagline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.32em;
  color: var(--bone);
  text-transform: uppercase;
  margin-top: -0.6rem;
}
.hero-tagline em {
  font-style: normal;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.32em;
  color: var(--bone);
  text-transform: uppercase;
  padding: 0;
  display: inline;
  transform: none;
}

/* CTA — watch trailer (per inspiration, sits below logo) */
.cta-mission {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  background: var(--bone);
  border: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.cta-mission .triangle {
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  transition: transform 0.25s;
}
.cta-mission:hover {
  background: var(--crimson);
  color: var(--bone);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--crimson-glow);
}
.cta-mission:hover .triangle { transform: translateX(3px); }

/* CA panel — minimal, beneath the CTA */
.ca-panel {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  max-width: 95vw;
  transition: border-color 0.2s;
}
.ca-panel:hover { border-color: rgba(255, 255, 255, 0.35); }
.ca-panel-label {
  padding: 12px 14px;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--bone-dim);
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center;
}
.ca-panel-value {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(200px, 38vw, 520px);
  letter-spacing: 0.05em;
}
.ca-panel-copy {
  padding: 12px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bone);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.ca-panel-copy:hover { background: var(--crimson); color: var(--bone); }

/* socials — the only action row now, so larger and more prominent */
.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 0.6rem;
}
.social-tile {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  color: var(--bone-dim);
  transition: all 0.22s var(--ease-out);
}
.social-tile:hover {
  border-color: var(--bone);
  color: var(--bone);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.social-tile svg { width: 24px; height: 24px; }

/* DexScreener owl — raster mask so it inherits currentColor just like the
   inline SVGs above. The PNG's black silhouette becomes the mask; the
   solid color comes from background-color: currentColor. */
.dex-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("../public/images/social/dexscreener.webp") center / contain no-repeat;
          mask: url("../public/images/social/dexscreener.webp") center / contain no-repeat;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.45em;
  color: var(--bone-dim);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.6;
  animation: float-cue 2.4s ease-in-out infinite;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 26px;
  background: linear-gradient(to bottom, var(--bone-dim), transparent);
}
@keyframes float-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%      { transform: translate(-50%, 6px); opacity: 0.85; }
}

/* =========================================================
   TICKER MARQUEE between hero and operatives
   ========================================================= */
.marquee {
  position: relative;
  background: var(--crimson);
  color: var(--bone);
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  padding: 12px 0;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--crimson), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--crimson), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  /* animation continues regardless of pointer state */
}
/* Each item carries its own trailing space so the half-translate loop wraps
   seamlessly regardless of item count (no gap → no boundary discontinuity). */
.marquee-track span {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-track span::after {
  content: '✦';
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--f-display);
  margin: 0 38px 0 38px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* secondary marquee (gold thin variant) */
.marquee.alt {
  background: var(--ink);
  color: var(--gold-hi);
  border-color: var(--gold-deep);
  padding: 10px 0;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.32em;
}
.marquee.alt::before { background: linear-gradient(90deg, var(--ink), transparent); }
.marquee.alt::after { background: linear-gradient(-90deg, var(--ink), transparent); }
.marquee.alt .marquee-track { animation-duration: 32s; }

/* =========================================================
   GENERIC SECTION
   ========================================================= */
.section {
  position: relative;
  padding: 140px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--crimson-bright);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 0.95;
  text-transform: uppercase;
}
.section-title em {
  font-style: normal;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1em;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-transform: uppercase;
  display: inline;
  padding: 0;
  transform: none;
}
.section-sub {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--bone-dim);
  max-width: 580px;
  line-height: 1.7;
  margin-top: 0.8rem;
}

/* scroll-reveal helpers */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].in { transition-delay: 0.1s; }
[data-reveal-delay="2"].in { transition-delay: 0.2s; }
[data-reveal-delay="3"].in { transition-delay: 0.3s; }
[data-reveal-delay="4"].in { transition-delay: 0.4s; }
[data-reveal-delay="5"].in { transition-delay: 0.5s; }

/* split text — letters animate in on scroll */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-letter {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}
.split-word.in .split-letter {
  transform: translateY(0);
  opacity: 1;
}

/* =========================================================
   OPERATIVES — folder browser (interactive)
   ========================================================= */
.dossier-os {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* mock window chrome */
.dossier-titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1F1F2A, #14141C);
  border-bottom: 1px solid var(--ink-4);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--bone-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dossier-titlebar .lights { display: flex; gap: 6px; }
.dossier-titlebar .lights > span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #555;
}
.dossier-titlebar .lights .red    { background: #FF5F57; }
.dossier-titlebar .lights .yellow { background: #FEBC2E; }
.dossier-titlebar .lights .green  { background: #28C840; }
.dossier-titlebar .path {
  flex: 1;
  text-align: center;
  letter-spacing: 0.2em;
}
.dossier-titlebar .path .dim { color: var(--bone-faded); }
.dossier-titlebar .meta { color: var(--bone-faded); font-size: 10px; }

.dossier-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 620px;
}

/* sidebar — file list */
.dossier-sidebar {
  background: #0E0E16;
  border-right: 1px solid var(--ink-4);
  display: flex;
  flex-direction: column;
}
.dossier-section-label {
  padding: 18px 18px 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--bone-faded);
  text-transform: uppercase;
  border-top: 1px dashed transparent;
  margin-top: 0;
}
.dossier-section-label.hostile,
.dossier-section-label.civilian {
  border-top-color: var(--ink-4);
  margin-top: 12px;
}
.dossier-section-label.hostile { color: #FF7A82; }
.dossier-section-label.civilian { color: #8FD6A5; }
.dossier-file .file-icon.hostile { border-color: rgba(220, 38, 38, 0.5); }
.dossier-file .file-icon.civilian { border-color: rgba(80, 180, 110, 0.5); }
.dossier-file.active .file-icon.hostile { border-color: var(--crimson-bright); }
.dossier-file.active .file-icon.civilian { border-color: #6FCC8C; }
.dossier-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--bone-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, padding-left 0.2s;
  border-left: 2px solid transparent;
  position: relative;
}
.dossier-file:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone);
  padding-left: 22px;
}
.dossier-file.active {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.18), transparent);
  color: var(--bone);
  border-left-color: var(--crimson-bright);
}
.dossier-file.active::after {
  content: '→';
  position: absolute;
  right: 18px;
  color: var(--crimson-bright);
  font-family: var(--f-mono);
}
.dossier-file .file-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--ink-3);
  border: 1px solid var(--ink-4);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.dossier-file.active .file-icon { border-color: var(--crimson); }
.dossier-file .file-icon img {
  width: 92%; height: 92%; object-fit: contain;
}
.dossier-file .file-name {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.dossier-file .name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.dossier-file .name-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--bone-faded);
  text-transform: uppercase;
  margin-top: 2px;
}

/* sidebar bottom — system stats */
.dossier-sysinfo {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--ink-4);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--bone-faded);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.9;
}
.dossier-sysinfo .v { color: var(--bone-dim); }
.dossier-sysinfo .bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 6px;
  position: relative;
}
.dossier-sysinfo .bar > i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson-bright));
  width: 73%;
}

/* main — selected dossier */
.dossier-main {
  position: relative;
  padding: 32px 36px 36px;
  overflow: hidden;
}
.dossier-main::before {
  /* faint vertical scan stripes */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}
.dossier-breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bone-faded);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.dossier-breadcrumb .arrow { color: var(--bone-faded); margin: 0 8px; }
.dossier-breadcrumb .current { color: var(--crimson-bright); }

.dossier-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  position: relative;
  opacity: 0;
  animation: dossier-pop 0.4s var(--ease-out) forwards;
}
@keyframes dossier-pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Swipe entry animations (mobile) — direction matches the gesture:
   swipe LEFT (next char) → new content slides in from the RIGHT;
   swipe RIGHT (prev char) → new content slides in from the LEFT. */
@keyframes dossier-swipe-from-right {
  0%   { opacity: 0; transform: translateX(60px)  scale(0.97); filter: blur(2px); }
  100% { opacity: 1; transform: translateX(0)     scale(1);    filter: blur(0); }
}
@keyframes dossier-swipe-from-left {
  0%   { opacity: 0; transform: translateX(-60px) scale(0.97); filter: blur(2px); }
  100% { opacity: 1; transform: translateX(0)     scale(1);    filter: blur(0); }
}
/* Tiny pulse on the newly-active chip after a swipe — confirms the change */
@keyframes chip-swipe-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.dossier-file.swipe-flash { animation: chip-swipe-pulse 0.5s ease-out; }

.dossier-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(ellipse 80% 70% at 50% 60%, rgba(220, 38, 38, 0.18), transparent 70%),
    linear-gradient(180deg, #0F0F18, #07070C);
  border: 1px solid var(--ink-4);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.dossier-portrait::before {
  content: '';
  position: absolute;
  inset: 8px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}
.dossier-portrait::after {
  /* corner brackets */
  content: '';
  position: absolute;
  inset: 6px;
  background:
    linear-gradient(to right, var(--crimson-bright) 14px, transparent 14px) top left/14px 1px no-repeat,
    linear-gradient(to bottom, var(--crimson-bright) 14px, transparent 14px) top left/1px 14px no-repeat,
    linear-gradient(to left, var(--crimson-bright) 14px, transparent 14px) top right/14px 1px no-repeat,
    linear-gradient(to bottom, var(--crimson-bright) 14px, transparent 14px) top right/1px 14px no-repeat,
    linear-gradient(to right, var(--crimson-bright) 14px, transparent 14px) bottom left/14px 1px no-repeat,
    linear-gradient(to top, var(--crimson-bright) 14px, transparent 14px) bottom left/1px 14px no-repeat,
    linear-gradient(to left, var(--crimson-bright) 14px, transparent 14px) bottom right/14px 1px no-repeat,
    linear-gradient(to top, var(--crimson-bright) 14px, transparent 14px) bottom right/1px 14px no-repeat;
  pointer-events: none;
}
.dossier-portrait img {
  width: 94%; height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
  position: relative; z-index: 1;
}

.dossier-info { position: relative; z-index: 1; }

.dossier-codename {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--crimson-bright);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.dossier-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--bone);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.dossier-class {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--bone-dim);
  margin-bottom: 1.4rem;
}

.dossier-bio {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--bone-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-left: 14px;
  border-left: 2px solid var(--crimson);
}

.dossier-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-bottom: 1.5rem;
}
.dossier-stat {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--bone-faded);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.dossier-stat .stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.dossier-stat .stat-val {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.dossier-stat .stat-val.neg {
  color: var(--crimson-bright);
}
.dossier-stat .stat-val.classified {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--crimson-bright);
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.45);
  padding: 4px 9px;
  font-weight: 700;
}
.dossier-stat .stat-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.dossier-stat .stat-bar > i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson-bright));
  width: var(--w, 0%);
  transform-origin: left;
  transform: scaleX(0);
  animation: bar-fill 0.7s var(--ease-out) 0.1s forwards;
}
@keyframes bar-fill { to { transform: scaleX(1); } }
.dossier-stat .stat-bar.neg > i {
  background: linear-gradient(90deg, #4a0a0a, #DC2626);
  width: 8%;
}
.dossier-stat .stat-bar.classified {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(220, 38, 38, 0.18) 0,
      rgba(220, 38, 38, 0.18) 4px,
      rgba(220, 38, 38, 0.05) 4px,
      rgba(220, 38, 38, 0.05) 8px
    );
  border-top: 1px dashed rgba(220, 38, 38, 0.4);
  border-bottom: 1px dashed rgba(220, 38, 38, 0.4);
}
.dossier-stat .stat-bar.classified > i { display: none; }

.dossier-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--ink-4);
}
.dossier-meta .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--bone-faded);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dossier-meta .value {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--bone);
  line-height: 1.4;
}
.dossier-meta .value.threat {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--crimson-bright);
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .dossier-body { grid-template-columns: 1fr; min-height: 0; }
  .dossier-sidebar { border-right: none; border-bottom: 1px solid var(--ink-4); }
  .dossier-content { grid-template-columns: 1fr; gap: 24px; }
  .dossier-portrait { max-width: 280px; margin: 0 auto; aspect-ratio: 1; }
  .dossier-main { padding: 24px 22px; }
}

/* =========================================================
   STORY — normal vertical scroll, one act per viewport
   Each act is a wide cinematic spread: image-left, centered text,
   image-right, with a unique accent color per act.
   ========================================================= */
.story {
  position: relative;
  background: var(--ink);
}

.act {
  position: relative;
  width: 100%;
  min-height: 58vh;
  padding: 36px 24px;
  overflow: hidden;
  isolation: isolate;
}
/* Inner frame caps at laptop-width so on huge monitors the images and
   the centered text don't drift apart. Background stays on .act (full vw). */
.act-frame {
  position: relative;
  width: 100%;
  max-width: 1500px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(58vh - 72px);
}

/* per-act accent washes (different mood for each scene) */
.act-1 { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(220, 175, 60, 0.10), transparent 65%), var(--ink); }
.act-2 { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(220, 38, 38, 0.22), transparent 60%), #0c0303; }
.act-3 { background: radial-gradient(ellipse 80% 60% at 50% 60%, rgba(220, 38, 38, 0.18), transparent 65%), #0a0404; }
.act-4 { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(60, 130, 220, 0.12), transparent 60%), #050714; }
.act-5 { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(120, 60, 200, 0.12), transparent 65%), #0a0612; }
.act-6 { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(220, 38, 38, 0.18), transparent 65%), #0a0606; }

/* fine grain on top, only for story acts (already global, but a slight extra wash) */
.act::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}

/* eyebrow top center */
.act-eyebrow {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--bone);
  text-transform: uppercase;
  white-space: nowrap;
}
.act-eyebrow .dim { color: var(--bone-faded); }

/* center text block */
.act-center {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 560px;
  padding: 28px 22px;
}
.act-center::before {
  /* soft dark mat behind the text so it reads against busy art */
  content: '';
  position: absolute;
  inset: -10px -40px;
  background: radial-gradient(ellipse 65% 65% at 50% 50%, rgba(8, 4, 4, 0.85) 0%, rgba(8, 4, 4, 0.55) 50%, transparent 90%);
  z-index: -1;
  filter: blur(8px);
}
.act-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--crimson-bright);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.act-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--bone);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.act-body {
  font-family: var(--f-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--bone-dim);
  line-height: 1.7;
}

/* side images — bleed off the edges, fade into the background.
   Each image has its own aspect/composition; the per-act tuning blocks below
   (--y, --w, --bleed) adjust position + size so the layout reads symmetric
   despite the source images differing. */
.act-img {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.6));
  user-select: none;
  /* per-image tuning vars (defaults below; overridden per act) */
  --y: 50%;
  --w: clamp(300px, 34vw, 560px);
  --bleed: -3%;
  width: var(--w);
  top: var(--y);
}
.act-img.left {
  left: var(--bleed);
  /* base transform combines centering Y with reveal X */
  transform: translateY(-50%);
  mask-image: linear-gradient(90deg, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, black 70%, transparent 100%);
}
.act-img.right {
  right: var(--bleed);
  transform: translateY(-50%);
  mask-image: linear-gradient(-90deg, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(-90deg, black 70%, transparent 100%);
}

/* ===== PER-ACT POSITIONAL TUNING =====
   Vertical anchor (--y), width (--w), and edge bleed (--bleed) tuned per
   image so all six acts feel balanced despite the source PNGs varying. */

/* Act 1 — wide crowd on left, taller throne scene on right.
   Right scene is naturally taller; let it bleed more so heights match visually. */
.act-1 .act-img.left  { --y: 52%; --w: clamp(320px, 36vw, 600px); --bleed: -4%; }
.act-1 .act-img.right { --y: 52%; --w: clamp(300px, 34vw, 560px); --bleed: -3%; }

/* Act 2 — vertical red candle left, small Trump-on-platform right.
   Both fairly centered, smaller widths since subjects are vertical. */
.act-2 .act-img.left  { --y: 50%; --w: clamp(280px, 30vw, 500px); --bleed: -2%; }
.act-2 .act-img.right { --y: 52%; --w: clamp(280px, 30vw, 500px); --bleed: -2%; }

/* Act 3 — bear army wide-low left, battle scene right. */
.act-3 .act-img.left  { --y: 56%; --w: clamp(320px, 36vw, 600px); --bleed: -4%; }
.act-3 .act-img.right { --y: 52%; --w: clamp(300px, 34vw, 560px); --bleed: -3%; }

/* Act 4 — UFO ship left (vertical column of light), four bodies right (aerial). */
.act-4 .act-img.left  { --y: 50%; --w: clamp(280px, 32vw, 520px); --bleed: -3%; }
.act-4 .act-img.right { --y: 54%; --w: clamp(300px, 34vw, 560px); --bleed: -3%; }

/* Act 5 — paired alien scenes, similar weight, both centered. */
.act-5 .act-img.left  { --y: 52%; --w: clamp(320px, 36vw, 580px); --bleed: -3%; }
.act-5 .act-img.right { --y: 52%; --w: clamp(320px, 36vw, 580px); --bleed: -3%; }

/* Act 6 — Trump charges from LOW-LEFT, WIF descends from HIGH-RIGHT.
   Vertical offsets here are intentional (matches the reference composition). */
.act-6 .act-img.left  { --y: 62%; --w: clamp(260px, 28vw, 460px); --bleed: -2%; }
.act-6 .act-img.right { --y: 36%; --w: clamp(240px, 26vw, 420px); --bleed: -2%; }

/* small Buy pill bottom-right (per ref) */
.act-buy {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 5;
  padding: 10px 22px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--crimson);
  box-shadow: 0 6px 22px var(--crimson-glow);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.act-buy:hover {
  background: var(--crimson-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.7);
}

/* SCROLL REVEAL — image rules use higher specificity to beat `.act-img.left` (0,2,0).
   Text rises with fade, images slide in from their respective sides. */
.act-img[data-reveal="left"] {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.4s var(--ease-out);
}
.act-img[data-reveal="right"] {
  opacity: 0;
  transform: translate(50%, -50%) scale(0.9);
  transition:
    opacity 1.1s var(--ease-out) 0.08s,
    transform 1.4s var(--ease-out) 0.08s;
}
.act-img[data-reveal="left"].in,
.act-img[data-reveal="right"].in {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

/* Text-block reveal (acts and elsewhere) */
[data-reveal="up"] {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 1s var(--ease-out) 0.18s,
    transform 1.1s var(--ease-out) 0.18s,
    filter 1s var(--ease-out) 0.18s;
  filter: blur(4px);
}
[data-reveal="up"].in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.act-img { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }

/* MOBILE — stack images above/below the text */
@media (max-width: 880px) {
  .act { padding: 120px 18px 80px; }
  .act-center { max-width: 520px; padding: 24px 16px; }
  .act-img {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 88vw;
    max-width: 420px;
    margin: 16px auto;
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 0.85;
  }
  .act-img.left, .act-img.right { transform: none; }
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(30px); }
  [data-reveal="left"].in, [data-reveal="right"].in { transform: translateY(0); }
  .act-eyebrow { font-size: 9px; letter-spacing: 0.3em; gap: 8px; top: 36px; }
}

/* =========================================================
   ENLIST — per ref_section_4
   Trump looms in crimson smoke behind; the six characters
   stand in formation in front; CTA stack below.
   ========================================================= */
.enlist {
  position: relative;
  padding: 90px 24px 120px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(40, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(20, 0, 0, 0.65), transparent 60%),
    var(--ink);
}

/* Trump + group composition — poster layout per ref.
   Trump is raised so his face + raised hands clear the top of the group;
   the group covers only his lower body. */
.enlist-scene {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 620px;
}

.enlist-trump {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(560px, 90vw, 1040px);
  height: auto;
  z-index: 1;
  opacity: 0.95;
  filter:
    drop-shadow(0 0 60px rgba(220, 38, 38, 0.55))
    drop-shadow(0 0 130px rgba(150, 0, 0, 0.45));
  pointer-events: none;
  /* multi-stop radial mask — much softer falloff so edges blend into the bg */
  mask-image: radial-gradient(
    ellipse 70% 80% at 50% 45%,
    black 15%,
    rgba(0, 0, 0, 0.9) 35%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.2) 82%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 80% at 50% 45%,
    black 15%,
    rgba(0, 0, 0, 0.9) 35%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.2) 82%,
    transparent 100%
  );
}

.enlist-group {
  position: relative;
  z-index: 2;
  width: clamp(360px, 62vw, 720px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

@media (max-width: 760px) {
  .enlist-scene { min-height: 460px; }
  .enlist-trump  { width: 110vw; }
  .enlist-group  { width: 80vw; }
}

.enlist-inner {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: -60px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}

.enlist-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--crimson-bright);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.enlist-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 0.95;
}
.enlist-title em {
  font-style: normal;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1em;
  letter-spacing: -0.02em;
  color: var(--bone);
  text-transform: uppercase;
  padding: 0;
  display: inline;
  transform: none;
}

.enlist-body {
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--bone-dim);
  line-height: 1.8;
  max-width: 620px;
  margin: 0.6rem auto 0;
}

.enlist-ctas {
  display: flex;
  gap: 18px;
  margin-top: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-gold,
.cta-crimson {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s, background 0.22s;
  border: none;
  position: relative;
  min-width: 280px;
  justify-content: center;
}
.cta-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 36px rgba(232, 199, 93, 0.35);
}
/* Subtle breathing stroke — a thin outer outline that gently expands and
   contracts. Just enough motion to draw the eye. No shimmer, no scale. */
.cta-gold::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(255, 230, 130, 0.55);
  pointer-events: none;
  animation: cta-stroke-breathe 2.6s ease-in-out infinite;
}
@keyframes cta-stroke-breathe {
  0%, 100% { inset: -3px; opacity: 0.45; }
  50%      { inset: -7px; opacity: 0.85; }
}
.cta-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 0 56px rgba(232, 199, 93, 0.6);
}
.cta-crimson {
  background: var(--crimson);
  color: var(--bone);
  box-shadow: 0 8px 30px var(--crimson-glow);
}
.cta-crimson:hover {
  transform: translateY(-3px);
  background: var(--crimson-bright);
  box-shadow: 0 14px 44px rgba(244, 63, 94, 0.7);
}

.enlist-closing {
  margin-top: 2rem;
  font-family: var(--f-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--bone);
  letter-spacing: 0.02em;
  max-width: 560px;
  line-height: 1.55;
}
.enlist-closing::before,
.enlist-closing::after {
  content: '—';
  color: var(--bone-faded);
  margin: 0 12px;
  opacity: 0.6;
  font-style: normal;
}


/* =========================================================
   STICKY BUY · FOOTER · MODAL · TOAST  (restored)
   ========================================================= */
.sticky-buy {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--crimson);
  border: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 30px var(--crimson-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sticky-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 50px rgba(220, 38, 38, 0.8);
}
@media (max-width: 600px) {
  .sticky-buy { bottom: 14px; right: 14px; padding: 10px 16px; font-size: 11px; }
}

.footer {
  border-top: 1px solid var(--ink-4);
  padding: 40px 24px 70px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--bone-faded);
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.28em;
  color: var(--bone);
  margin-bottom: 4px;
}
.footer .ca { color: var(--bone-dim); word-break: break-all; font-size: 11px; }
.footer .disclaimer {
  font-family: var(--f-body);
  font-size: 0.82rem;
  color: var(--bone-faded);
  max-width: 720px;
  margin: 12px auto 0;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0.01em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 30px;
  backdrop-filter: blur(8px);
}
.modal.open { opacity: 1; visibility: visible; }
.modal-frame {
  position: relative;
  max-width: 1100px;
  width: 100%;
  border: 1px solid var(--crimson);
  background: var(--ink-2);
  padding: 12px;
  box-shadow: 0 0 60px var(--crimson-glow);
}
.modal-frame::before, .modal-frame::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--crimson-bright);
}
.modal-frame::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.modal-frame::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }
.modal-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--crimson-bright);
  text-transform: uppercase;
  border-bottom: 1px dashed var(--ink-4);
  margin-bottom: 12px;
}
.modal-close {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  padding: 5px 12px;
  border: 1px solid var(--ink-4);
  cursor: pointer;
}
.modal-close:hover { color: var(--bone); border-color: var(--crimson); }
.modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.modal-video video {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.modal-x {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 210;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--ink-2);
  border: 1px solid var(--crimson);
  cursor: pointer;
  box-shadow: 0 0 24px var(--crimson-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}
.modal-x svg { width: 14px; height: 14px; color: var(--crimson-bright); }
.modal-x:hover { background: var(--crimson); color: var(--bone); }
.modal-x:hover svg { color: var(--bone); }
.modal.open .modal-x { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0.1s; }
@media (max-width: 600px) {
  .modal-x { top: 12px; right: 12px; padding: 8px 12px; }
  .modal-x .label { display: none; }
}

.toast {
  position: fixed;
  bottom: 100px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  background: var(--ink-2);
  border: 1px solid var(--crimson);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 12px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  box-shadow: 0 0 26px var(--crimson-glow);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* =========================================================
   MOBILE — consolidated overrides for ≤ 760px viewports.
   Desktop layout untouched; everything in here applies only
   to small screens.
   ========================================================= */
@media (max-width: 760px) {

  /* ---- GLOBAL ---- */
  .section { padding: 70px 18px; }
  .section-head { margin-bottom: 2.4rem; }
  .section-title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .section-sub { font-size: 0.92rem; padding: 0 6px; }

  .status-bar {
    padding: 10px 14px;
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  /* Marquees: smaller type, tighter spacing */
  .marquee {
    padding: 10px 0;
    font-size: 12px;
    letter-spacing: 0.16em;
  }
  .marquee.alt {
    padding: 8px 0;
    font-size: 10px;
    letter-spacing: 0.24em;
  }
  .marquee-track span::after { margin: 0 22px; }

  /* Footer */
  .footer { padding: 30px 18px 60px; gap: 6px; }
  .footer .disclaimer { font-size: 0.78rem; padding: 0 8px; }
  .footer-mark { font-size: 1.05rem; letter-spacing: 0.24em; }

  /* Sticky buy — small */
  .sticky-buy {
    bottom: 14px; right: 14px;
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  /* Intro */
  .intro-stage { width: 82vw; gap: 24px; }
  .intro-caption { font-size: 8px; letter-spacing: 0.4em; }
  .intro-bar-wrap { font-size: 9px; letter-spacing: 0.22em; }

  /* ---- HERO (Section 1) ---- */
  .hero { padding: 88px 18px 72px; min-height: 100vh; }
  /* Video stays visible on mobile — the new background file is ~15MB,
     and `muted` + `playsinline` lets iOS Safari autoplay it. */

  /* All small corner labels + center eyebrow hidden on mobile — too cramped */
  .hero-corner,
  .hero-eyebrow { display: none; }

  .hero-logo-img { width: 80vw; }
  .hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
  }

  .cta-mission {
    padding: 14px 28px;
    font-size: 12px;
    letter-spacing: 0.22em;
    gap: 10px;
  }

  .ca-panel-label { padding: 10px 11px; font-size: 9px; letter-spacing: 0.22em; }
  .ca-panel-value { padding: 10px 12px; font-size: 11px; max-width: 180px; }
  .ca-panel-copy  { padding: 10px 14px; font-size: 9px; letter-spacing: 0.22em; }

  /* .hero-actions row removed from HTML */

  .scroll-cue {
    bottom: 16px;
    font-size: 8px;
    letter-spacing: 0.32em;
  }
  .scroll-cue::after { height: 20px; }

  /* ---- OPERATIVES (Section 2): dossier as horizontal scroll chips ---- */
  .dossier-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dossier-titlebar { padding: 10px 12px; }
  .dossier-titlebar .lights > span { width: 9px; height: 9px; }
  .dossier-titlebar .path { font-size: 9px; letter-spacing: 0.16em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .dossier-titlebar .meta { display: none; }

  /* Sidebar → horizontal scrollable chip strip */
  .dossier-sidebar {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: 1px solid var(--ink-4);
    padding: 10px 12px;
    gap: 8px;
    scrollbar-width: none;
  }
  .dossier-sidebar::-webkit-scrollbar { display: none; }

  /* Hide section labels + sysinfo to give chips full width */
  .dossier-section-label,
  .dossier-sysinfo { display: none; }

  /* Each file → compact vertical chip (portrait above name) */
  .dossier-file {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 8px 6px;
    gap: 6px;
    border-left: none;
    border-bottom: 2px solid transparent;
    min-width: 76px;
  }
  .dossier-file:hover {
    padding-left: 8px; /* kill the slide-on-hover effect */
  }
  .dossier-file.active {
    background: rgba(220, 38, 38, 0.15);
    border-left-color: transparent;
    border-bottom-color: var(--crimson-bright);
    padding-left: 8px;
  }
  .dossier-file.active::after { content: none; }
  .dossier-file .file-icon { width: 48px; height: 48px; flex-shrink: 0; }
  .dossier-file .file-name { align-items: center; }
  .dossier-file .name { font-size: 11px; line-height: 1.2; letter-spacing: 0.02em; }
  .dossier-file .name-sub { font-size: 8px; letter-spacing: 0.14em; }

  /* Dossier main content stacks: portrait above info */
  .dossier-main { padding: 18px 16px 24px; }
  .dossier-breadcrumb { font-size: 9px; letter-spacing: 0.16em; margin-bottom: 12px; }
  .dossier-content { grid-template-columns: 1fr; gap: 18px; }
  .dossier-portrait {
    max-width: 220px;
    margin: 0 auto;
    aspect-ratio: 1;
  }
  .dossier-name { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .dossier-class { font-size: 0.92rem; }
  .dossier-bio { font-size: 0.88rem; line-height: 1.65; }
  .dossier-stats { grid-template-columns: 1fr; gap: 12px; }
  .dossier-stat .stat-val { font-size: 16px; }
  .dossier-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }

  /* ---- STORY (Section 3): side-by-side diptych + text below ----
     Two images share the top row like a film storyboard pair, scene caption
     underneath. Cropped to a uniform aspect so the diptych reads as a single
     composition rather than two awkward stacked pictures. */
  .act {
    min-height: auto;
    padding: 56px 16px 60px;
  }
  .act::after {
    /* lighten the section-edge fade so it doesn't darken short content */
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.35) 100%);
  }
  .act-frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 22px;
    align-items: stretch;
    min-height: 0;
  }

  /* Both images: full cell, uniform cinematic aspect, soft border + shadow */
  .act-img {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    mask-image: none;
    -webkit-mask-image: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  }
  .act-img.left  { grid-column: 1; grid-row: 1; }
  .act-img.right { grid-column: 2; grid-row: 1; }

  /* Per-act overrides for object-position so the most important part of
     each image survives the 5:3 crop (avoids cutting faces / key subjects) */
  .act-1 .act-img.left  { object-position: 50% 60%; } /* pepe legions */
  .act-1 .act-img.right { object-position: 50% 60%; } /* kings on thrones */
  .act-2 .act-img.left  { object-position: 50% 40%; } /* tall red candle */
  .act-2 .act-img.right { object-position: 50% 50%; }
  .act-3 .act-img.left  { object-position: 50% 60%; } /* bear charge */
  .act-3 .act-img.right { object-position: 50% 50%; }
  .act-4 .act-img.left  { object-position: 50% 50%; } /* UFO column */
  .act-4 .act-img.right { object-position: 50% 50%; }
  .act-5 .act-img.left  { object-position: 50% 50%; }
  .act-5 .act-img.right { object-position: 50% 50%; }
  .act-6 .act-img.left  { object-position: 50% 30%; } /* Trump face top */
  .act-6 .act-img.right { object-position: 50% 30%; } /* WIF face top */

  /* Text: span both columns, centered below the diptych */
  .act-center {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 4px 6px 0;
    max-width: 100%;
    text-align: center;
  }
  .act-center::before { display: none; } /* no dark mat needed */

  .act-num {
    font-size: 10px;
    letter-spacing: 0.36em;
    margin-bottom: 10px;
  }
  .act-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 14px;
  }
  .act-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bone-dim);
  }

  /* Reveal anim: each image slides in from its own side (mirrors desktop) */
  .act-img[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-30%);
    transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  }
  .act-img[data-reveal="right"] {
    opacity: 0;
    transform: translateX(30%);
    transition: opacity 0.7s var(--ease-out) 0.08s, transform 0.8s var(--ease-out) 0.08s;
  }
  .act-img[data-reveal="left"].in,
  .act-img[data-reveal="right"].in {
    opacity: 1;
    transform: translateX(0);
  }

  /* ---- ENLIST (Section 4): tighten dead space above the scene ---- */
  .enlist { padding: 18px 18px 80px; }
  .enlist-scene { min-height: 300px; }
  .enlist-trump { width: 120vw; max-width: 620px; }
  .enlist-group { width: 88vw; max-width: 480px; }
  .enlist-eyebrow { font-size: 9px; letter-spacing: 0.32em; margin-bottom: 0; }
  .enlist-title { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1; }
  .enlist-inner { margin-top: -40px; gap: 1rem; }

  /* CTAs stack vertically full-width */
  .enlist-ctas {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 1.4rem auto 0;
  }
  .cta-gold,
  .cta-crimson {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  /* Modal close X smaller */
  .modal-x { top: 12px; right: 12px; padding: 8px 12px; font-size: 10px; }
  .modal-x .label { display: none; }
}

/* ---- EXTRA-TIGHT phones (≤ 380px) ---- */
@media (max-width: 380px) {
  /* .hero-corner + .hero-eyebrow already hidden in the 760px block */
  .ca-panel-value { max-width: 130px; font-size: 10px; }
  .marquee { font-size: 10px; }
  .dossier-file { min-width: 68px; }
  .dossier-file .name { font-size: 10px; }
}
