/* ═══════════════════════════════════════════════════════════════
   MARVEL — THE MULTIVERSE SHOWCASE
   Design system: ink-black cinematic base · hybrid multiverse art
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --ink: #0A0A0F;
  --ink-2: #111118;
  --ink-3: #181822;
  --red: #E62429;
  --red-deep: #B11313;
  --gold: #FFB800;
  --purple: #7B2FBE;
  --paper: #F5F0E6;
  --txt: #EDEDEA;
  --txt-dim: #9A9AA0;
  --line: rgba(245, 240, 230, 0.12);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-comic: 'Bangers', cursive;

  --pad: clamp(1.5rem, 5vw, 5rem);
  --section-gap: clamp(6rem, 14vh, 11rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET / BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: initial; }
body {
  background: var(--ink);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; }

.display-font { font-family: var(--font-display); }

.noscript-note { padding: 4rem; text-align: center; }
.noscript-note h1 { font-size: 4rem; color: var(--red); }

/* ── UTILITIES ──────────────────────────────────────────────── */
.section { padding: var(--section-gap) var(--pad); position: relative; }

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 2000;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

.halftone {
  background-image: radial-gradient(circle, rgba(10, 10, 15, 0.5) 1px, transparent 1.4px);
  background-size: 5px 5px;
}

.panel-border {
  border: 3px solid var(--paper);
  box-shadow: 7px 7px 0 var(--red);
}

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch::before { color: #0ff; z-index: -1; }
.glitch::after { color: var(--red); z-index: -2; }
.glitch:hover::before, .section-multiverse .glitch.is-live::before {
  opacity: 0.8; animation: glitch-a 2.4s steps(2, end) infinite;
}
.glitch:hover::after, .section-multiverse .glitch.is-live::after {
  opacity: 0.8; animation: glitch-b 3.1s steps(2, end) infinite;
}
@keyframes glitch-a {
  0%, 86% { transform: translate(0); clip-path: inset(0 0 0 0); }
  88% { transform: translate(-4px, 2px); clip-path: inset(10% 0 55% 0); }
  92% { transform: translate(4px, -2px); clip-path: inset(60% 0 8% 0); }
  96% { transform: translate(-2px, 1px); clip-path: inset(30% 0 30% 0); }
  100% { transform: translate(0); }
}
@keyframes glitch-b {
  0%, 90% { transform: translate(0); clip-path: inset(0 0 0 0); }
  92% { transform: translate(5px, -3px); clip-path: inset(45% 0 20% 0); }
  95% { transform: translate(-5px, 3px); clip-path: inset(5% 0 75% 0); }
  100% { transform: translate(0); }
}

/* Section headers */
.section-head { max-width: 60rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.section-index {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.1rem;
  letter-spacing: 0.34em;
  display: block;
  margin-bottom: 0.55rem;
  opacity: 1;
}
.section-index::after {
  content: '———';
  color: var(--gold);
  margin-left: 0.6rem;
  letter-spacing: 0;
}
.section-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.section-title em { color: var(--red); font-style: normal; }
.section-blurb { color: var(--txt-dim); max-width: 36rem; margin-top: 1rem; }

/* Comic chip */
.chip {
  display: inline-block;
  font-family: var(--font-comic);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.2em 0.7em 0.12em;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--txt-dim);
  background: rgba(255, 255, 255, 0.03);
}

/* ── CURSOR v2 ──────────────────────────────────────────────── */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9000;
  border-radius: 50%;
  will-change: transform, opacity;
  opacity: 0;
}
.cursor {
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--red);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(245, 240, 230, 0.75);
  transition: border-color 0.25s, background 0.25s, opacity 0.3s;
}
.cursor-ring.is-hover {
  border-color: var(--gold);
  background: rgba(255, 184, 0, 0.08);
}
@media (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}
/* native cursor only hidden once JS confirms fine pointer */
html.js-cursor body,
html.js-cursor a,
html.js-cursor button,
html.js-cursor .char-card,
html.js-cursor .mv-card {
  cursor: none; }
html.js-cursor.cursor-text body,
html.js-cursor.cursor-text a,
html.js-cursor.cursor-text button { cursor: text; }
html.js-cursor.cursor-text .cursor-ring { border-color: var(--gold); }

/* ── LOADER ─────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--ink);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 2.5rem;
}
.loader-panels {
  display: flex; gap: 0.6rem;
  perspective: 800px;
}
.loader-panel {
  width: clamp(3.2rem, 9vw, 7rem);
  height: clamp(4.4rem, 12vw, 9.5rem);
  border: 3px solid var(--paper);
  background: var(--red-deep);
  box-shadow: 6px 6px 0 rgba(230, 36, 41, 0.45);
  display: flex; align-items: flex-end;
  overflow: hidden;
  position: relative;
  transform-origin: center center;
  transform: rotateY(90deg);
  opacity: 0;
}
.loader-panel::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.4) 1px, transparent 1.5px);
  background-size: 5px 5px;
}
.loader-panel span {
  font-family: var(--font-comic);
  font-size: clamp(1rem, 2.6vw, 2rem);
  color: var(--paper);
  padding: 0.35em 0.4em 0.15em;
  line-height: 1;
}
.loader-bottom { width: min(26rem, 70vw); text-align: center; }
.loader-count {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6rem);
  color: var(--red);
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(230, 36, 41, 0.25);
}
.loader-bar {
  height: 6px; margin-top: 0.8rem;
  border: 2px solid var(--paper);
  padding: 2px;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--red-deep) 8px 16px);
}
.loader-tag {
  margin-top: 0.9rem;
  font-size: 0.7rem; letter-spacing: 0.4em;
  color: var(--txt-dim);
}

/* ── WIPE TRANSITION ────────────────────────────────────────── */
#wipe { position: fixed; inset: 0; z-index: 4000; pointer-events: none; }
.wipe-panel {
  position: absolute; top: 0; bottom: 0;
  width: 20.5%; height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  border-left: 2px solid var(--ink);
}
.wipe-panel:nth-child(2n) { background: var(--red-deep); }
.wipe-panel:nth-child(3) { background: #1a1a24; }
.wipe-panel:nth-child(5) { background: #1a1a24; }
.wipe-panel:nth-child(1) { left: 0; }
.wipe-panel:nth-child(2) { left: 20%; }
.wipe-panel:nth-child(3) { left: 40%; }
.wipe-panel:nth-child(4) { left: 60%; }
.wipe-panel:nth-child(5) { left: 80%; width: 20.5%; }

/* ── HERO ───────────────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding-top: 0;
  overflow: hidden;
}
.hero-red-panel {
  position: absolute;
  top: 50%; left: 50%;
  width: min(88vw, 64rem);
  height: clamp(14rem, 38vw, 24rem);
  background: var(--red);
  transform: translate(-50%, -50%) rotate(-2deg);
  box-shadow: 12px 12px 0 var(--red-deep), 24px 24px 0 rgba(230, 36, 41, 0.25);
  z-index: 0;
}
.hero-red-panel::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.28) 1px, transparent 1.5px);
  background-size: 6px 6px;
}
.hero-inner { position: relative; z-index: 1; padding: 0 1rem; }
.hero-kicker {
  font-size: 0.72rem; letter-spacing: 0.5em;
  color: var(--paper);
  opacity: 0.85;
  margin-bottom: 1.6rem;
}
.hero-logo {
  font-size: clamp(4.2rem, 19vw, 17rem);
  color: var(--paper);
  letter-spacing: 0.03em;
  text-shadow: 6px 6px 0 rgba(10, 10, 15, 0.55);
  white-space: nowrap;
}
.hero-logo .chr { display: inline-block; will-change: transform; }
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  letter-spacing: 0.42em;
  color: var(--paper);
  margin-top: 0.8rem;
}
.hero-lede {
  margin-top: 2rem;
  color: rgba(245, 240, 230, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}
.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
}
.hero-scroll-cue {
  position: absolute; bottom: 4.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.5em;
  color: var(--txt-dim);
  z-index: 3;
}
.hero-scroll-cue i {
  width: 1.5px; height: 2.8rem;
  background: linear-gradient(var(--red), transparent);
  display: block;
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-footer-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 2px solid var(--line);
  padding: 0.7rem 0;
  overflow: hidden;
  white-space: nowrap;
  z-index: 3;
}
.hero-footer-strip span {
  display: inline-block;
  font-family: var(--font-comic);
  color: var(--txt-dim);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  animation: strip-scroll 30s linear infinite;
  padding-right: 2rem;
}
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── STATS ──────────────────────────────────────────────────── */
.section-stats {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background:
    radial-gradient(circle, rgba(230, 36, 41, 0.05) 1px, transparent 1.4px) 0 0 / 5px 5px,
    var(--ink-2);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.stats-grid {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; flex-wrap: wrap;
  max-width: 70rem; margin: 0 auto;
}
.stat { text-align: center; flex: 1 1 8rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  color: var(--red);
  line-height: 1;
  display: block;
  text-shadow: 4px 4px 0 rgba(230, 36, 41, 0.22);
}
.stat-label {
  font-size: 0.7rem; letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--txt-dim);
  display: block; margin-top: 0.5rem;
}

/* ── CHARACTERS: filter bar ─────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-bottom: 2.8rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: 0.14em;
  padding: 0.45em 1.2em 0.35em;
  border: 2px solid var(--line);
  color: var(--txt-dim);
  transition: all 0.25s var(--ease-out);
  position: relative;
}
.filter-btn:hover { border-color: var(--red); color: var(--txt); transform: translateY(-2px); }
.filter-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 4px 4px 0 var(--red-deep);
}

/* ── IMAGE FILL: blurred backdrop + contained art (zero cropping) ── */
.img-fill {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--ink-3);
}
.img-fill .img-blur {
  position: absolute; inset: -24px;
  width: calc(100% + 48px); height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(18px) saturate(1.25) brightness(0.55);
}
.img-fill .img-fit {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}

/* ── CHARACTERS: grid + cards (wide comic panels, native 1680×800 art) ── */
.char-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.char-card {
  --accent: var(--red);
  position: relative;
  border: 3px solid var(--paper);
  background: var(--ink-3);
  box-shadow: 7px 7px 0 rgba(245, 240, 230, 0.08);
  overflow: hidden;
  aspect-ratio: 1680 / 800;
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
  text-align: left;
  width: 100%;
  display: block;
}
.char-card .card-img-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.char-card .img-fill .img-fit {
  transition: transform 0.6s var(--ease-out), filter 0.4s var(--ease-out);
  filter: grayscale(0.25) contrast(1.05);
}
.char-card:hover .img-fill .img-fit {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.08);
}
.char-card .card-halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(10,10,15,0.5) 1px, transparent 1.4px);
  background-size: 5px 5px;
  opacity: 0.4;
  mix-blend-mode: multiply;
  transition: opacity 0.35s;
  pointer-events: none;
}
.char-card:hover .card-halftone { opacity: 0.1; }
.char-card .card-accent-glow {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 -6rem 4rem -3rem rgba(10,10,15,0.55);
  pointer-events: none;
  transition: box-shadow 0.3s;
}
.char-card:hover .card-accent-glow {
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 -6rem 4rem -3rem rgba(10,10,15,0.6),
              inset 0 0 4rem rgba(230, 36, 41, 0.12);
}
.char-card .card-emblem {
  position: absolute; top: 1rem; right: 1rem;
  width: 3rem; height: 3rem;
  opacity: 0.95;
  filter: drop-shadow(2px 2px 0 rgba(10,10,15,0.7));
  transition: transform 0.3s var(--ease-bounce);
}
.char-card:hover .card-emblem { transform: scale(1.12) rotate(-4deg); }
.char-card .card-caption {
  position: absolute; left: 0; bottom: 1.1rem;
  max-width: 72%;
  background: var(--ink);
  border: 2.5px solid var(--paper);
  border-left: 6px solid var(--accent);
  padding: 0.55rem 1rem 0.45rem;
  box-shadow: 4px 4px 0 rgba(10, 10, 15, 0.6);
}
.char-card .card-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 0.95;
  color: var(--paper);
  text-transform: uppercase;
  display: block;
  letter-spacing: 0.04em;
}
.char-card .card-real { font-size: 0.72rem; color: var(--txt-dim); display: block; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26rem; }
.char-card .card-team {
  font-family: var(--font-comic);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  position: absolute; top: 0.85rem; left: 1rem;
  text-shadow: 1px 1px 0 rgba(10,10,15,0.9);
}
.char-card.is-filtered { display: none; }
.char-card::after {
  content: 'OPEN FILE →';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: 0.2em;
  color: var(--gold);
  background: rgba(10, 10, 15, 0.88);
  border: 2px solid var(--gold);
  padding: 0.5em 1em 0.4em;
  opacity: 0;
  transition: all 0.3s var(--ease-bounce);
  pointer-events: none;
}
.char-card:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ── CHARACTER OVERLAY (banner art on top, dossier below) ───── */
.char-overlay { position: fixed; inset: 0; z-index: 3500; }
.char-overlay[hidden] { display: none; }
.char-overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(5px);
}
.char-overlay-body {
  position: absolute; inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(0.75rem, 2.5vw, 2.5rem);
}
.char-sheet {
  --accent: var(--red);
  max-width: 78rem;
  margin: 0 auto;
  background: var(--ink);
  border: 4px solid var(--paper);
  box-shadow: 10px 10px 0 var(--accent), 20px 20px 0 rgba(245, 240, 230, 0.05);
  position: relative;
}
.char-sheet-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1680 / 640;
  background: linear-gradient(120deg, var(--accent) -20%, var(--ink-3) 60%), var(--ink-3);
  border-bottom: 4px solid var(--paper);
}
.char-sheet-visual::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(10,10,15,0.35) 1px, transparent 1.4px);
  background-size: 5px 5px;
  pointer-events: none;
}
.char-sheet-visual .sheet-img-fit { filter: saturate(1.1); }
.char-sheet-visual .sheet-emblem {
  position: absolute; bottom: 1.2rem; right: 1.4rem;
  width: clamp(3.4rem, 6vw, 5.5rem); height: auto;
  opacity: 0.95;
  filter: drop-shadow(3px 3px 0 rgba(10,10,15,0.7));
}
.char-sheet-visual .sheet-quote {
  position: absolute; left: 1.6rem; bottom: 1.2rem; right: 30%;
  font-family: var(--font-comic);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  line-height: 1.25;
  color: var(--paper);
  text-shadow: 2px 2px 0 rgba(10,10,15,0.9);
}
.char-sheet-content { padding: clamp(1.5rem, 3vw, 3rem); position: relative; }
.char-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 3rem; height: 3rem;
  border: 2px solid var(--paper);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  z-index: 6;
  transition: all 0.2s var(--ease-out);
}
.char-close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.char-nav {
  position: absolute; top: 1.2rem; right: 4.8rem;
  display: flex; gap: 0.5rem; z-index: 6;
}
.char-nav button {
  width: 3rem; height: 3rem;
  border: 2px solid var(--paper);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  transition: all 0.2s var(--ease-out);
}
.char-nav button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sheet-kicker {
  font-size: 0.68rem; letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.sheet-name {
  font-size: clamp(3rem, 6vw, 5.2rem);
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--paper);
}
.sheet-real { color: var(--txt-dim); margin-top: 0.4rem; font-size: 1.02rem; }
.sheet-aliases { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.sheet-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
  margin: 1.4rem 0 0;
  padding: 0.9rem 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  font-size: 0.8rem; color: var(--txt-dim);
}
.sheet-meta b { color: var(--paper); font-weight: 500; }
.sheet-cols {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
  margin-top: 0.4rem;
}
.sheet-h {
  font-family: var(--font-display);
  font-size: 1.3rem; letter-spacing: 0.18em;
  color: var(--accent);
  margin: 1.7rem 0 0.8rem;
  text-transform: uppercase;
}
.sheet-h:first-child { margin-top: 0; }
.sheet-bio p { color: #C9C9C4; margin-bottom: 0.9rem; font-size: 0.96rem; }
.sheet-powers { columns: 2; column-gap: 2rem; }
.sheet-powers li {
  list-style: none;
  padding: 0.42rem 0 0.42rem 1.4rem;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.sheet-powers li::before {
  content: '▸';
  position: absolute; left: 0.15rem;
  color: var(--accent);
}
.sheet-stats { max-width: 34rem; }
.stat-bar-row { margin-bottom: 0.8rem; }
.stat-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--txt-dim);
  margin-bottom: 0.3rem;
}
.stat-bar-label b { color: var(--paper); font-weight: 500; }
.stat-bar {
  height: 10px;
  border: 2px solid var(--paper);
  padding: 1.5px;
  background: rgba(245, 240, 230, 0.05);
}
.stat-bar-fill {
  height: 100%; width: 0;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 7px, rgba(10,10,15,0.35) 7px 9px);
}
.sheet-appearances { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.appear-chip {
  font-size: 0.78rem;
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem;
  color: #C9C9C4;
  background: var(--ink-2);
}
.appear-chip b { color: var(--gold); font-weight: 500; margin-right: 0.4rem; }
.sheet-rels { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rel-chip { font-size: 0.78rem; border: 1px solid var(--accent); color: var(--paper); padding: 0.3rem 0.7rem; }
.rel-chip span { color: var(--txt-dim); margin-left: 0.45rem; }

/* ── TIMELINE ───────────────────────────────────────────────── */
.section-timeline {
  background: var(--ink-2);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.timeline-toggle {
  display: inline-flex; gap: 0;
  border: 2px solid var(--paper);
  margin-bottom: 3rem;
}
.tl-toggle-btn {
  font-family: var(--font-display);
  font-size: 1rem; letter-spacing: 0.16em;
  padding: 0.55em 1.5em 0.45em;
  color: var(--txt-dim);
  transition: all 0.25s var(--ease-out);
}
.tl-toggle-btn.is-active { background: var(--red); color: #fff; }
.timeline-wrap { position: relative; max-width: 68rem; margin: 0 auto; }
.tl-spine {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: rgba(245, 240, 230, 0.08);
}
.tl-spine-fill {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(var(--red), var(--gold));
  transform: scaleY(0); transform-origin: top;
}
.tl-phase { position: relative; padding: 2.5rem 0; }
.tl-phase-head {
  position: sticky; top: 6.5rem;
  z-index: 3;
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: 2.4rem;
  pointer-events: none;
}
.tl-phase-badge {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--ink);
  padding: 0.35em 0.9em 0.25em;
  box-shadow: 4px 4px 0 rgba(255, 184, 0, 0.3);
  white-space: nowrap;
}
.tl-phase-years { font-size: 0.75rem; letter-spacing: 0.3em; color: var(--txt-dim); }
.tl-phase-head::after {
  content: '';
  flex: 1; height: 2px;
  background: var(--line);
}
.tl-entry {
  position: relative;
  width: calc(50% - 2.6rem);
  margin-bottom: 2rem;
  border: 2px solid var(--line);
  background: var(--ink-3);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.tl-entry:nth-child(odd) { margin-left: auto; }
.tl-entry:hover {
  border-color: var(--red);
  box-shadow: 6px 6px 0 rgba(230, 36, 41, 0.25);
  transform: translateY(-3px);
}
.tl-entry::before {
  content: '';
  position: absolute; top: 2rem;
  width: 12px; height: 12px;
  background: var(--red);
  border: 2px solid var(--paper);
  transform: rotate(45deg);
}
.tl-entry:nth-child(odd)::before { left: -3.35rem; }
.tl-entry:nth-child(even)::before { right: -3.35rem; }
.tl-entry-fill {
  position: relative;
  height: 10.5rem;
  border-bottom: 2px solid var(--line);
}
.tl-entry-img {
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.35s;
}
.tl-entry:hover .tl-entry-img { filter: grayscale(0); }
.tl-entry-body { padding: 1.1rem 1.3rem 1.3rem; }
.tl-entry-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.7rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.tl-entry-type {
  font-family: var(--font-comic);
  font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 0.15em 0.6em 0.05em;
  background: var(--red);
  border-radius: 3px;
  color: #fff;
  align-self: center;
  white-space: nowrap;
}
.tl-entry-title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; color: var(--paper); flex: 1 1 auto; }
.tl-entry-year { font-family: var(--font-display); color: var(--gold); font-size: 1.2rem; white-space: nowrap; }
.tl-entry-blurb { font-size: 0.86rem; color: var(--txt-dim); }
.tl-entry-credits {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin-top: 0.8rem; align-items: center;
}
.tl-dir {
  font-size: 0.62rem; letter-spacing: 0.18em;
  color: var(--gold);
  margin-right: 0.4rem;
}
.tl-lead {
  font-size: 0.7rem;
  border: 1px solid var(--line);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: var(--txt-dim);
}
.tl-entry-order { font-size: 0.68rem; letter-spacing: 0.25em; color: var(--accent, var(--red)); margin-top: 0.6rem; display: block; }
.tl-phase-intro {
  max-width: 46rem;
  color: #C9C9C4;
  font-size: 0.94rem;
  margin-bottom: 2.2rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--gold);
}
.tl-entry.is-upcoming { border-style: dashed; border-color: var(--gold); }
.tl-entry.is-upcoming .tl-entry-type { color: var(--gold); border-color: var(--gold); }

/* ── MULTIVERSE ─────────────────────────────────────────────── */
.section-multiverse {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(123, 47, 190, 0.16), transparent),
    var(--ink);
}
.mv-spine-wrap { max-width: 52rem; margin: 0 auto 3.5rem; }
.mv-spine-wrap svg { width: 100%; height: auto; display: block; }
.mv-branch {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
/* the sacred time-stream: constant, seamless flow on the main line only */
.mv-flow {
  stroke-dasharray: 5 17;
  stroke-dashoffset: 0;
  animation: mv-flow-a 1.15s linear infinite;
  opacity: 0.9;
}
.mv-flow-a { animation-name: mv-flow-a; }
.mv-flow-b {
  stroke-dasharray: 3 21;
  animation: mv-flow-b 1.7s linear infinite;
  opacity: 0.7;
}
@keyframes mv-flow-a { to { stroke-dashoffset: -22; } }
@keyframes mv-flow-b { to { stroke-dashoffset: -24; } }
@keyframes dash-flow {
  to { stroke-dashoffset: -14; }
}
.mv-node {
  transform-box: fill-box;
  transform-origin: center;
}
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}
.mv-card {
  --accent: var(--purple);
  position: relative;
  min-height: 24rem;
  border: 3px solid var(--paper);
  background: var(--ink-3);
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--accent) 26%, var(--ink-2)) 0%,
    var(--ink-3) 55%,
    var(--ink) 100%);
  overflow: hidden;
  padding: 1.6rem;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  transform-style: preserve-3d;
}
.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 8px 0 var(--accent);
}
.mv-card .mv-designation {
  font-family: var(--font-display);
  font-size: 3rem; line-height: 0.9;
  color: var(--accent);
  text-shadow: 2px 2px 0 rgba(10, 10, 15, 0.85);
}
.mv-card .mv-name {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: 0.08em;
  color: var(--paper);
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.mv-card .mv-status {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.22em;
  color: var(--ink);
  background: var(--accent);
  padding: 0.3em 0.7em 0.2em;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 rgba(10, 10, 15, 0.6);
}
.mv-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
}
.mv-card-head .mv-designation {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  word-break: break-word;
}
.mv-card--sketch .mv-status { background: transparent; }
.mv-card .mv-tagline {
  font-family: var(--font-comic);
  font-size: 1.02rem;
  color: var(--gold);
  margin-top: 0.55rem;
  letter-spacing: 0.04em;
}
.mv-card--sketch .mv-tagline { color: #8A6D1E; }
.mv-card .mv-desc { color: var(--txt-dim); font-size: 0.88rem; margin-top: 0.7rem; flex: 1; }
.mv-card .mv-figures {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.9rem; align-items: center;
}
.mv-card .mv-figures-label {
  font-size: 0.6rem; letter-spacing: 0.28em;
  color: var(--accent);
  margin-right: 0.3rem;
}
.mv-card .mv-titles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.mv-card .mv-titles .chip { font-size: 0.72rem; }
.mv-card .mv-deco {
  position: absolute; top: -10%; right: -12%;
  width: 60%; height: 60%;
  opacity: 0.14;
  pointer-events: none;
}
/* per-universe art styles */
.mv-card--vector { background: linear-gradient(150deg, var(--ink-3), rgba(255,255,255,0.03)); }
.mv-card--vector .mv-deco { opacity: 0.22; }
.mv-card--sketch {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.mv-card--sketch .mv-name { color: var(--ink); }
.mv-card--sketch .mv-desc { color: #57534A; }
.mv-card--sketch .mv-designation { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.mv-card--sketch .mv-titles .chip { border-color: rgba(10,10,15,0.3); color: #57534A; background: transparent; }
.mv-card--sketch::after {
  content: '';
  position: absolute; inset: 5px;
  border: 2px dashed rgba(10, 10, 15, 0.25);
  pointer-events: none;
}
.mv-card--glitch { border-color: var(--accent); }
.mv-card--glitch .mv-designation { text-shadow: 3px 0 rgba(0,255,255,0.7), -3px 0 rgba(230,36,41,0.7); }
.mv-card--glitch:hover .mv-designation { animation: mv-glitch-jitter 0.4s steps(2) infinite; }
@keyframes mv-glitch-jitter {
  0% { transform: translate(0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
  100% { transform: translate(0); }
}
.mv-card--halftone::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(230, 36, 41, 0.25) 1.2px, transparent 1.6px);
  background-size: 7px 7px;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0.5;
}
.mv-card--halftone:hover::before { opacity: 1; }
.mv-card--3d { perspective: 700px; }
.mv-card--3d .mv-designation {
  transform: translateZ(30px);
  text-shadow: 4px 4px 0 var(--accent);
}
/* The Void: a dead universe — black hole treatment */
.mv-card--void {
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 115%, rgba(74, 174, 139, 0.35), transparent 55%),
    radial-gradient(circle at 50% 42%, rgba(74, 174, 139, 0.5), rgba(10, 10, 15, 0.2) 34%, #050508 70%);
  border-color: #7FE8C4;
  box-shadow: inset 0 0 5rem rgba(74, 174, 139, 0.18), 7px 7px 0 rgba(245, 240, 230, 0.08);
}
.mv-card--void .mv-designation { color: #7FE8C4; text-shadow: 0 0 18px rgba(74, 174, 139, 0.8), 2px 2px 0 rgba(10,10,15,0.9); }
.mv-card--void .mv-name { color: #DDEFE8; }
.mv-card--void .mv-desc { color: #8FA89E; }
.mv-card--void .mv-status { background: #7FE8C4; color: var(--ink); }
.mv-card--void::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, transparent 26%, rgba(5, 5, 8, 0.9) 45%);
  pointer-events: none;
}
.mv-card--void .mv-card-head,
.mv-card--void h3, .mv-card--void p, .mv-card--void .mv-titles, .mv-card--void .mv-figures { position: relative; z-index: 1; }
.mv-card--void:hover { box-shadow: 8px 8px 0 #4AAE8B, inset 0 0 7rem rgba(74, 174, 139, 0.3); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 3px solid var(--red);
  margin-top: var(--section-gap);
}
.footer-strip {
  background: var(--red);
  color: var(--paper);
  text-align: center;
  font-family: var(--font-comic);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  padding: 0.5rem 0 0.3rem;
}
.footer-inner { text-align: center; padding: 3.5rem var(--pad) 4rem; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--paper);
  line-height: 1;
}
.footer-logo span { color: var(--red); }
.footer-fan {
  color: var(--txt-dim);
  font-size: 0.82rem;
  max-width: 34rem;
  margin: 1.1rem auto 1.6rem;
}
.footer-meta { font-size: 0.68rem; letter-spacing: 0.4em; color: #6A6A70; }

/* ── COMIC DÉCOR (sketch/onomatopoeia layer) ────────────────── */
.comic-word {
  position: absolute;
  z-index: 0;
  font-family: var(--font-comic);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  letter-spacing: 0.06em;
  text-shadow: 3px 3px 0 rgba(10, 10, 15, 0.85), -1.5px -1.5px 0 rgba(10, 10, 15, 0.6);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  filter: saturate(0.9);
}
.section-burst {
  position: absolute;
  top: -2.5rem;
  right: clamp(0rem, 4vw, 3rem);
  width: clamp(4.5rem, 7vw, 7rem);
  height: clamp(4.5rem, 7vw, 7rem);
  z-index: 2;
  filter: drop-shadow(4px 4px 0 rgba(10, 10, 15, 0.7));
  animation: burst-wobble 4s ease-in-out infinite;
}
@keyframes burst-wobble {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.06); }
}
.section-title:not(.glitch):not(.title-comic):not(.title-time)::after {
  content: '';
  display: block;
  width: min(11rem, 40%);
  height: 12px;
  margin-top: 0.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='12'%3E%3Cpath d='M2 8 Q 12 2 22 8 T 42 8 T 62 8 T 82 8 T 102 8 T 122 8 T 142 8 T 158 8' fill='none' stroke='%23E62429' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.section-timeline .tl-phase {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M10 70 Q 25 55 18 40 Q 30 48 34 30 Q 40 46 52 38 Q 50 54 64 52' fill='none' stroke='rgba(245,240,230,0.05)' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.char-sheet {
  box-shadow: 10px 10px 0 var(--accent), 20px 20px 0 rgba(245, 240, 230, 0.06);
}

/* ── SITE NAV ───────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 3800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem var(--pad);
  background: rgba(10, 10, 15, 0.9);
  border-bottom: 2px solid var(--red);
  backdrop-filter: blur(8px);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}
.site-nav.is-visible { transform: translateY(0); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--paper);
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow: 3px 3px 0 var(--red-deep);
  transition: text-shadow 0.25s, transform 0.25s;
}
.nav-logo:hover { text-shadow: 4px 4px 0 var(--red); transform: translateY(-1px); }
.nav-logo-star { color: var(--gold); font-style: normal; font-size: 1.5rem; vertical-align: super; }
.nav-links { display: flex; gap: clamp(1.2rem, 3vw, 2.8rem); }
.nav-links a {
  font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: 0.22em;
  color: var(--txt-dim);
  padding: 0.35em 0.1em 0.25em;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-links a:hover { color: var(--paper); border-color: var(--gold); }
.nav-links a.is-active { color: var(--paper); border-color: var(--red); }
.nav-progress {
  position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
/* sound toggle */
.sound-toggle {
  display: flex; align-items: center; gap: 0.45rem;
  border: 2px solid var(--line);
  padding: 0.32rem 0.75rem 0.28rem;
  font-family: var(--font-display);
  font-size: 0.95rem; letter-spacing: 0.2em;
  color: var(--txt-dim);
  transition: all 0.25s var(--ease-out);
  margin-left: clamp(1rem, 3vw, 2.6rem);
}
.sound-toggle svg { width: 17px; height: 17px; flex-shrink: 0; }
.sound-toggle .snd-wave { opacity: 0; transition: opacity 0.25s; }
.sound-toggle:hover { border-color: var(--gold); color: var(--paper); transform: translateY(-1px); }
.sound-toggle.is-on {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.28);
  background: rgba(255, 184, 0, 0.05);
}
.sound-toggle.is-on .snd-wave { opacity: 1; animation: snd-pulse 1.6s ease-in-out infinite; }
@keyframes snd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.sound-gear {
  display: flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem;
  color: var(--txt-dim);
  transition: color 0.25s, transform 0.4s var(--ease-out);
}
.sound-gear svg { width: 16px; height: 16px; }
.sound-gear:hover { color: var(--gold); transform: rotate(60deg); }
.sound-panel {
  position: fixed; top: 3.4rem; right: 1rem;
  z-index: 3790;
  width: min(21rem, calc(100vw - 2rem));
  background: rgba(12, 12, 18, 0.97);
  border: 2px solid var(--gold);
  box-shadow: 6px 6px 0 rgba(255, 184, 0, 0.2);
  padding: 1.1rem 1.2rem 1.2rem;
}
.sound-panel[hidden] { display: none; }
.sp-title {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.sp-block { margin-bottom: 0.9rem; }
.sp-label {
  font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.24em;
  color: var(--paper);
  margin-bottom: 0.45rem;
}
.sp-label b { color: var(--gold); font-weight: 500; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sp-chips .sp-chip { font-size: 0.85rem; padding: 0.35em 0.8em 0.25em; }
.sp-note { font-size: 0.68rem; color: var(--txt-dim); margin-top: 0.5rem; }
.sp-switches { display: flex; gap: 0.5rem; }
.sp-switch {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.18em;
  padding: 0.4em 0 0.3em;
  border: 2px solid var(--line);
  color: var(--txt-dim);
  transition: all 0.2s;
}
.sp-switch.is-on { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.sp-switch:not(.is-on) { text-decoration: line-through; opacity: 0.6; }
.sound-panel input[type="range"] {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  height: 6px;
  background: var(--line);
  outline: none;
  border: 1px solid rgba(245, 240, 230, 0.2);
}
.sound-panel input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.5);
  cursor: pointer;
}

/* burger + mobile menu */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 0.5rem;
  z-index: 3900;
}
.nav-burger span {
  display: block; width: 26px; height: 3px;
  background: var(--paper);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-menu {
  position: fixed; inset: 0; z-index: 3750;
  background:
    radial-gradient(circle, rgba(10,10,15,0.5) 1px, transparent 1.4px) 0 0 / 6px 6px,
    linear-gradient(160deg, var(--red-deep), var(--ink) 70%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 1.4rem;
  text-align: center;
}
.nav-menu[hidden] { display: none; }
.nav-menu-kicker {
  font-size: 0.7rem; letter-spacing: 0.5em;
  color: var(--txt-dim);
  margin-bottom: 1.4rem;
}
.nav-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  color: var(--paper);
  line-height: 0.95;
  display: flex; flex-direction: column; align-items: center;
  transition: color 0.2s, transform 0.2s;
}
.nav-menu a:hover { color: var(--gold); transform: rotate(-1.5deg) scale(1.03); }
.nav-menu a small {
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--txt-dim);
  margin-top: 0.3rem;
}
.nav-menu-foot {
  margin-top: 2rem;
  font-family: var(--font-comic);
  color: var(--txt-dim);
  font-size: 1rem;
  letter-spacing: 0.12em;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .sound-toggle .snd-label { display: none; }
  .sound-toggle { margin-left: 0; }
}

/* ── POSTER STRIPS: taped comic panels on a velocity crawl ──── */
.poster-strip {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(230, 36, 41, 0.06), transparent),
    var(--ink-2);
  padding: 1.5rem 0 1.7rem;
  transform: rotate(-0.9deg) scale(1.02);
}
#poster-strip-2 { transform: rotate(0.8deg) scale(1.02); }
.poster-strip::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--ink-2), transparent 10%, transparent 90%, var(--ink-2));
  pointer-events: none;
}
.poster-track {
  display: flex; align-items: center;
  gap: 3rem;
  width: max-content;
  will-change: transform;
}
/* taped comic panel frame */
.strip-panel {
  position: relative;
  flex-shrink: 0;
  padding: 7px 7px 16px;
  background: var(--ink-3);
  border: 3px solid var(--paper);
  box-shadow: 6px 8px 0 rgba(230, 36, 41, 0.22), 0 10px 22px rgba(0, 0, 0, 0.45);
}
#poster-strip-2 .strip-panel {
  border-color: #E8E2D2;
  box-shadow: 6px 8px 0 rgba(255, 184, 0, 0.18), 0 10px 22px rgba(0, 0, 0, 0.45);
}
.strip-panel img {
  height: 8.5rem;
  width: auto;
  display: block;
  filter: grayscale(0.45) contrast(1.02) sepia(0.08);
  transition: filter 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  -webkit-user-drag: none;
  user-select: none;
}
.strip-panel:hover {
  box-shadow: 8px 10px 0 var(--red), 0 14px 30px rgba(0, 0, 0, 0.55);
  z-index: 3;
}
#poster-strip-2 .strip-panel:hover {
  box-shadow: 8px 10px 0 var(--gold), 0 14px 30px rgba(0, 0, 0, 0.55);
}
.strip-panel:hover img {
  filter: grayscale(0) contrast(1.06);
  transform: scale(1.05);
}
/* tape corners */
.strip-panel::before, .strip-panel::after {
  content: '';
  position: absolute;
  width: 3.2rem; height: 0.9rem;
  background: rgba(245, 240, 230, 0.26);
  border: 1px solid rgba(245, 240, 230, 0.4);
  z-index: 2;
}
.strip-panel::before { top: -0.5rem; left: 14%; transform: rotate(-7deg); }
.strip-panel::after { top: -0.45rem; right: 12%; transform: rotate(5deg); }
/* comic caption plate */
.panel-cap {
  position: absolute; bottom: -0.85rem; left: 50%;
  transform: translateX(-50%) rotate(0deg);
  white-space: nowrap;
  max-width: 115%;
  overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  padding: 0.14em 0.5em 0.04em;
  box-shadow: 2px 2px 0 rgba(10, 10, 15, 0.55);
  z-index: 2;
}
.strip-panel:hover .panel-cap { background: var(--paper); }
/* hand-placed rhythm */
.poster-track .strip-panel:nth-child(odd) { margin-top: 0.5rem; }
.poster-track .strip-panel:nth-child(3n) { margin-bottom: 0.4rem; }

/* ── TIMELINE PHASE RIBBON ──────────────────────────────────── */
.phase-ribbon {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin: 0 0 2.6rem;
}
.phase-ribbon .ribbon-dot {
  font-family: var(--font-display);
  font-size: 0.95rem; letter-spacing: 0.12em;
  border: 2px solid var(--line);
  color: var(--txt-dim);
  padding: 0.35em 0.9em 0.25em;
  transition: all 0.25s var(--ease-out);
}
.phase-ribbon .ribbon-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(255, 184, 0, 0.3);
  transform: translateY(-2px);
}

/* ── MULTIVERSE: incursions explainer ───────────────────────── */
.incursions {
  max-width: 68rem;
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
}
.inc-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--gold);
  text-transform: uppercase;
}
.inc-title span { color: var(--txt-dim); font-size: 0.55em; letter-spacing: 0.14em; }
.inc-lede {
  color: #C9C9C4;
  max-width: 52rem;
  margin: 0.9rem 0 1.6rem;
  font-size: 0.96rem;
}
.inc-stage {
  position: relative;
  border: 3px solid var(--paper);
  background:
    radial-gradient(circle, rgba(10,10,15,0.5) 1px, transparent 1.4px) 0 0 / 6px 6px,
    var(--ink-2);
  box-shadow: 7px 7px 0 rgba(230, 36, 41, 0.25);
  padding: 1rem;
  margin-bottom: 1.8rem;
  overflow: hidden;
}
.inc-stage svg { width: 100%; height: auto; display: block; }
.inc-hud {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; flex-direction: column; gap: 0.1rem;
  z-index: 2;
  font-family: var(--font-display);
  pointer-events: none;
}
.inc-hud-stage { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.3em; }
.inc-hud-name { color: var(--paper); font-size: 1.7rem; letter-spacing: 0.12em; line-height: 1.05; }
.inc-hud-sub { color: var(--txt-dim); font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.08em; }
.inc-dots {
  position: absolute; top: 1.2rem; right: 1rem;
  display: flex; gap: 0.4rem;
  z-index: 2;
}
.inc-dots i {
  width: 10px; height: 10px;
  border: 2px solid var(--paper);
  background: transparent;
  transform: rotate(45deg);
  transition: background 0.3s, box-shadow 0.3s;
}
.inc-dots i.on { background: var(--gold); box-shadow: 0 0 8px rgba(255, 184, 0, 0.8); }
.inc-knows {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.6rem;
}
.inc-knows-label {
  font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.3em;
  color: var(--gold);
  margin-right: 0.3rem;
}
.inc-knows .chip { border-color: rgba(255, 184, 0, 0.35); color: #C9C9C4; }
.inc-caption {
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.4em;
  color: var(--txt-dim);
  font-size: 0.85rem;
  margin: 0.4rem 0 0.4rem;
}
.inc-hint {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.inc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.inc-card {
  border: 2.5px solid var(--paper);
  background: var(--ink-3);
  padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: 6px 6px 0 rgba(230, 36, 41, 0.2);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s, background 0.3s;
  cursor: pointer;
  outline: none;
}
.inc-card:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: 8px 8px 0 var(--red);
}
.inc-card.is-active {
  border-color: var(--gold);
  background: var(--ink-2);
  box-shadow: 8px 8px 0 var(--gold);
  transform: translateY(-4px);
}
.inc-card.is-active .inc-num { color: var(--red); }
.inc-card .inc-num {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}
.inc-card h4 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--paper);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.inc-card p { color: var(--txt-dim); font-size: 0.88rem; }
.inc-card b { color: var(--gold); font-weight: 500; }
@media (max-width: 860px) {
  .inc-cards { grid-template-columns: 1fr; }
}

/* ── MULTIVERSE: portal rings ───────────────────────────────── */
.mv-portal {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.mv-card:hover .mv-portal { opacity: 1; }
.mv-portal circle { transition: stroke-dashoffset 0.6s var(--ease-out); }
.mv-card:hover .mv-portal circle.spin { stroke-dashoffset: 0; }

/* ── SECTION TITLE CHARACTERS v2 ────────────────────────────── */
/* THE HEROES & VILLAINS — misregistered comic printing + POW slam */
.title-comic { position: relative; animation: comic-slam 6.4s steps(1) infinite; }
.title-comic::before, .title-comic::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}
.title-comic::before { color: #29D9FF; animation: misprint-cyan 5.2s steps(1) infinite; }
.title-comic::after { color: #FF4D4D; animation: misprint-red 6.1s steps(1) infinite; }
@keyframes misprint-cyan {
  0%, 86% { opacity: 0; transform: none; }
  87% { opacity: 0.55; transform: translate(-4px, 2px); }
  90% { opacity: 0.4; transform: translate(3px, -2px); }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes misprint-red {
  0%, 80% { opacity: 0; transform: none; }
  81% { opacity: 0.5; transform: translate(4px, -3px); }
  84% { opacity: 0.35; transform: translate(-3px, 3px); }
  86%, 100% { opacity: 0; transform: none; }
}
@keyframes comic-slam {
  0%, 79% { transform: none; }
  80% { transform: scale(1.05) rotate(-0.7deg); }
  82.5% { transform: scale(0.99) rotate(0.4deg); }
  85% { transform: none; }
  93% { transform: scale(1.03) rotate(0.5deg); }
  95.5% { transform: none; }
  100% { transform: none; }
}
/* THE MCU SAGA — gold projector sweep + film weave */
.title-time {
  background: linear-gradient(100deg,
    var(--paper) 0%, var(--paper) 42%,
    #FFE9B8 47%, var(--gold) 50%, #FFE9B8 53%,
    var(--paper) 58%, var(--paper) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    saga-sweep 6.5s cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite,
    saga-weave 11s steps(1) infinite;
}
@keyframes saga-sweep {
  0%, 48% { background-position: 100% 0; }
  82%, 100% { background-position: 0% 0; }
}
@keyframes saga-weave {
  0%, 70% { transform: none; }
  72% { transform: translate(1.5px, -1px); }
  76% { transform: translate(-1.5px, 1px); }
  80% { transform: translate(0.5px, 0); }
  84%, 100% { transform: none; }
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--red-deep); border: 2px solid var(--ink-2); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sheet-cols { grid-template-columns: 1fr; }
  .char-grid { gap: 1.2rem; }
}
@media (max-width: 768px) {
  .char-grid { grid-template-columns: 1fr; }
  .char-card .card-name { font-size: 1.35rem; }
  .char-card .card-caption { max-width: 85%; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; letter-spacing: 0.14em; }
  .stats-grid { justify-content: center; gap: 2.2rem 1rem; }
  .stat { flex: 0 1 40%; }
  .tl-spine { left: 8px; }
  .tl-entry,
  .tl-entry:nth-child(odd) { width: calc(100% - 2.4rem); margin-left: 2.4rem; }
  .tl-entry:nth-child(odd)::before,
  .tl-entry:nth-child(even)::before { right: auto; left: -2.15rem; }
  .sheet-powers { columns: 1; }
  .hero-footer-strip { display: none; }
  .site-nav { padding: 0.55rem 1rem; }
}
@media (max-width: 480px) {
  .char-card { aspect-ratio: 16 / 10; }
  .char-card .card-name { font-size: 1.2rem; }
  .char-card .card-real { display: none; }
  .mv-grid { grid-template-columns: 1fr; }
  .loader-panels { flex-wrap: wrap; justify-content: center; }
  .sheet-quote { right: 12%; }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero-scroll-cue i { animation: none; }
  .hero-footer-strip span { animation: none; }
  .glitch::before, .glitch::after,
  .mv-card--glitch:hover .mv-designation { animation: none !important; }
  .title-comic::before, .title-comic::after, .title-comic,
  .title-time { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
