/* ============================================================
   NIH — landing-page-only CSS (animated comic background)
   Loads on top of styles.css; uses the same tokens.
   ============================================================ */

.lp {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

/* halftone dot overlay (always-on, comic-book feel) */
.lp::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(10,10,10,.10) 1.2px, transparent 1.6px);
  background-size: 10px 10px;
  pointer-events: none;
  z-index: 1;
}

/* top nav */
.lp-nav {
  position: relative;
  z-index: 30;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lp-nav .brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 32px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
}
.lp-nav .brand .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--ink);
  display: inline-block;
}
.lp-nav nav { display: flex; gap: 6px; }
.lp-nav nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 6px;
}
.lp-nav nav a:hover { background: rgba(0,0,0,.05); color: var(--ink); }

/* ───── COMIC STRIP BG ───── */
.comic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px 0 60px;
  overflow: hidden;
}
.strip {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: comic-scroll 60s linear infinite;
  will-change: transform;
}
.strip.reverse {
  animation: comic-scroll-reverse 75s linear infinite;
}
.panel {
  flex: 0 0 auto;
  width: 260px;
  height: 200px;
  background: var(--paper);
  border: 3.5px solid #0A0A0A;
  box-shadow: 6px 6px 0 0 #0A0A0A;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel .label {
  position: absolute;
  top: 8px; left: 10px;
  font-family: "Bangers", "Bungee", sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  color: #0A0A0A;
  background: #FFD32D;
  padding: 2px 8px;
  border: 2px solid #0A0A0A;
  z-index: 2;
}
.panel.tilt-l { transform: rotate(-1.5deg); }
.panel.tilt-r { transform: rotate(1.5deg); }

/* Comic SVG fills */
.panel svg { width: 100%; height: 100%; display: block; }

/* speech bubbles */
.bubble {
  position: absolute;
  background: #FFFFFF;
  border: 2.5px solid #0A0A0A;
  border-radius: 14px;
  padding: 4px 10px;
  font-family: "Bangers", sans-serif;
  font-size: 14px;
  letter-spacing: .03em;
  color: #0A0A0A;
  z-index: 3;
  box-shadow: 2px 2px 0 0 #0A0A0A;
}
.bubble::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: #FFFFFF;
  border: 2.5px solid #0A0A0A;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  bottom: -7px; left: 18px;
}

/* halftone shading inside panels */
.panel .halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.18) 1px, transparent 1.4px);
  background-size: 6px 6px;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* SFX badges */
/* Scoped under .lp so this never collides with the dashboard's own .sfx
   (globals.css) once landing.css is loaded globally in the root <head>. */
.lp .sfx {
  position: absolute;
  font-family: "Bangers", sans-serif;
  color: #0A0A0A;
  background: var(--accent);
  padding: 4px 12px;
  border: 3px solid #0A0A0A;
  z-index: 4;
  letter-spacing: .04em;
  /* clip-path makes it look like a starburst-ish badge */
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 0 #0A0A0A;
  text-transform: uppercase;
  font-size: 16px;
}
.lp .sfx.star {
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  background: #FFD32D;
  border: none;
  padding: 16px 18px;
}

/* ──────────── HERO ──────────── */
.lp-hero {
  position: relative;
  z-index: 20;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 100px;
}
.lp-hero .kicker {
  background: var(--ink);
  color: var(--paper);
  padding: 6px 14px;
  font-family: "Bangers", "Bungee", sans-serif;
  font-size: 15px;
  letter-spacing: .12em;
  margin-bottom: 28px;
  transform: rotate(-2deg);
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--accent);
}
.lp-hero h1 {
  font-family: "Bangers", "Bungee", sans-serif;
  font-size: clamp(72px, 14vw, 220px);
  line-height: .85;
  letter-spacing: .01em;
  margin: 0;
  color: var(--ink);
  position: relative;
  text-shadow:
    4px 4px 0 var(--accent),
    8px 8px 0 var(--ink);
}
.lp-hero h1 .dot-big {
  display: inline-block;
  width: .2em; height: .2em;
  background: var(--accent);
  border: 0.025em solid var(--ink);
  border-radius: 50%;
  margin-left: 0.04em;
  vertical-align: baseline;
  position: relative;
  top: -0.02em;
  box-shadow: 0.04em 0.04em 0 var(--ink);
}
.lp-hero .tagline {
  margin-top: 36px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 30ch;
  line-height: 1.4;
  color: var(--ink-2);
  background: var(--paper);
  padding: 12px 20px;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.lp-hero .ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.lp-cta {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lp-cta:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 0 var(--ink); }
.lp-cta:active { transform: translate(2px,2px); box-shadow: 3px 3px 0 0 var(--ink); }
.lp-cta.primary { background: var(--accent); color: var(--ink); }

/* The "below-fold" 4-up explainer */
.lp-strip {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: 28px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lp-strip .item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lp-strip .num {
  font-family: "Bangers", sans-serif;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  flex: 0 0 auto;
}
.lp-strip .body b { font-size: 16px; display: block; margin-bottom: 4px; }
.lp-strip .body span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* footer */
.lp-foot {
  position: relative;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 64px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.lp-foot h2 {
  font-family: "Bangers", sans-serif;
  font-size: clamp(28px, 4vw, 56px);
  margin: 0;
  letter-spacing: .02em;
  color: var(--paper);
  max-width: 22ch;
  line-height: 1;
}
.lp-foot .mini {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 12px;
}

/* ──────────── ANIMATIONS ──────────── */
@keyframes comic-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* loop by duplicating panels */
}
@keyframes comic-scroll-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* panel inner: floating money */
@keyframes float-up {
  0%   { transform: translateY(20px); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}
.float-up { animation: float-up 3s ease-in-out infinite; }

/* coin spin */
@keyframes coin-spin {
  0%,100% { transform: rotateY(0deg); }
  50%     { transform: rotateY(180deg); }
}
.coin-spin { animation: coin-spin 1.6s ease-in-out infinite; }

/* sparkle */
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: .8; }
  50%      { transform: scale(1.4) rotate(180deg); opacity: 1; }
}
.sparkle { animation: sparkle 1.4s ease-in-out infinite; transform-origin: center; }

/* shake */
@keyframes shake {
  0%, 100% { transform: translate(0,0); }
  25%      { transform: translate(-1px, -1px); }
  50%      { transform: translate(1px, 1px); }
  75%      { transform: translate(-1px, 1px); }
}
.shake { animation: shake .3s linear infinite; }

@keyframes pop-in {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.pop-in { animation: pop-in 2.2s ease-out infinite; }

/* slow drift */
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.drift { animation: drift 3s ease-in-out infinite; }

/* respect reduced motion — keep marquee (it's the headline visual) but tone down decorations */
@media (prefers-reduced-motion: reduce) {
  .float-up, .coin-spin, .sparkle, .shake, .pop-in, .drift {
    animation-duration: 6s !important;
    animation-iteration-count: 1 !important;
  }
}

/* ──────────────── responsive ──────────────── */
@media (max-width: 720px) {
  .lp-strip { grid-template-columns: repeat(2, 1fr); }
  .panel { width: 200px; height: 160px; }
}

/* ════════════════════════════════════════════════════════════
   INTERACTIVE LAYER
   ════════════════════════════════════════════════════════════ */

/* hover effects on panels */
.panel { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.panel:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 10px 10px 0 0 #0A0A0A;
  z-index: 5;
}
.panel:hover .sfx { animation: nih-shake .3s ease-in-out infinite; }
@keyframes nih-shake {
  0%, 100% { transform: rotate(-8deg) translate(0,0); }
  50%      { transform: rotate(-12deg) translate(2px, -2px); }
}

/* ─── panel zoom modal ─── */
.panel-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .2s;
}
.panel-modal.show { opacity: 1; }
.panel-modal .pm-card {
  background: var(--paper);
  border: 4px solid #0A0A0A;
  box-shadow: 12px 12px 0 0 #0A0A0A;
  max-width: 720px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.panel-modal.show .pm-card { transform: scale(1); }
.pm-x {
  position: absolute; top: 14px; right: 18px;
  background: var(--accent); color: #0A0A0A;
  border: 3px solid #0A0A0A;
  width: 36px; height: 36px;
  font-family: "Bangers", sans-serif;
  font-size: 18px;
  z-index: 2;
  box-shadow: 3px 3px 0 0 #0A0A0A;
  cursor: pointer;
}
.pm-art {
  background: #FBF6E8;
  border-right: 4px solid #0A0A0A;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-art svg { width: 100%; height: 100%; }
.pm-halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.18) 1.2px, transparent 1.6px);
  background-size: 8px 8px;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.pm-meta {
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
}
.pm-step {
  font-family: "Bangers", sans-serif;
  font-size: 14px;
  background: #0A0A0A; color: var(--paper);
  padding: 4px 10px;
  border: 2.5px solid #0A0A0A;
  align-self: flex-start;
  letter-spacing: .08em;
  transform: rotate(-3deg);
}
.pm-title {
  font-family: "Bangers", sans-serif;
  font-size: 38px;
  line-height: 1;
  margin: 4px 0 0;
  color: var(--ink);
  letter-spacing: .01em;
}
.pm-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.pm-cta {
  margin-top: auto;
  text-decoration: none;
  background: var(--accent);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.pm-cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--ink); }
@media (max-width: 640px) {
  .panel-modal .pm-card { grid-template-columns: 1fr; }
  .pm-art { min-height: 200px; border-right: none; border-bottom: 4px solid #0A0A0A; }
}

/* ─── cursor sparkle ─── */
.spark {
  position: fixed;
  width: 8px; height: 8px;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  border: 1.5px solid #0A0A0A;
  animation: spark-fly .7s cubic-bezier(.2,.7,.2,1) forwards;
  will-change: transform, opacity;
}
@keyframes spark-fly {
  0%   { transform: translate(0,0) scale(0); opacity: 0; }
  20%  { transform: translate(calc(var(--dx) * .3), calc(var(--dy) * .3)) scale(1.2); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
.pow {
  position: fixed;
  font-family: "Bangers", sans-serif;
  font-size: 32px;
  letter-spacing: .03em;
  pointer-events: none;
  z-index: 9999;
  -webkit-text-stroke: 2px #0A0A0A;
  text-stroke: 2px #0A0A0A;
  text-shadow: 2px 2px 0 #0A0A0A;
  animation: pow-fly .9s cubic-bezier(.2,.7,.2,1) forwards;
  will-change: transform, opacity;
}
@keyframes pow-fly {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(-20deg); opacity: 0; }
  20%  { transform: translate(-50%,-50%) scale(1.3) rotate(-8deg); opacity: 1; }
  100% { transform: translate(-50%, calc(-50% - 40px)) scale(.8) rotate(-12deg); opacity: 0; }
}

/* ─── drift layer (parallax floaters) ─── */
.drift-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}
.drift-spark, .drift-coin, .drift-bubble {
  position: absolute;
  font-family: "Bangers", sans-serif;
  font-weight: 700;
  color: var(--ink);
  opacity: .65;
  animation: drift-up linear infinite;
  will-change: transform;
}
.drift-spark { color: var(--accent); }
.drift-coin {
  background: #F7C700;
  border: 2.5px solid #0A0A0A;
  border-radius: 50%;
  width: 1.6em; height: 1.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0A;
  box-shadow: 2px 2px 0 0 #0A0A0A;
}
.drift-bubble {
  background: #fff;
  border: 2.5px solid #0A0A0A;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 1em;
  color: #0A0A0A;
  box-shadow: 2px 2px 0 0 #0A0A0A;
}
@keyframes drift-up {
  from { transform: translateY(20vh) rotate(-5deg); }
  to   { transform: translateY(-120vh) rotate(20deg); }
}

/* ─── mini tweaks panel ─── */
.twk-mini-toggle {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 80;
  background: var(--ink); color: var(--paper);
  border: 3px solid var(--ink);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 4px 4px 0 0 var(--accent);
  cursor: pointer;
  transition: transform .1s;
}
.twk-mini-toggle:hover { transform: translate(-2px, -2px); }
.twk-mini-toggle span { opacity: .6; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.twk-mini-toggle b { font-family: "Bangers", sans-serif; font-size: 16px; letter-spacing: .04em; }

.twk-mini {
  position: fixed;
  bottom: 80px; right: 24px;
  z-index: 81;
  width: 320px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-body);
}
.twk-mini.open { display: flex; animation: twk-pop .15s ease both; }
@keyframes twk-pop { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.twk-mini-hd { display: flex; justify-content: space-between; align-items: center; }
.twk-mini-hd b { font-family: "Bangers", sans-serif; font-size: 22px; letter-spacing: .03em; }
.twk-mini-x {
  background: transparent; border: 0; cursor: pointer; font-size: 18px;
  color: var(--ink-2); padding: 2px 6px;
}
.twk-mini-x:hover { color: var(--ink); }
.twk-mini-section {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: .65;
  margin-top: 6px;
}
.twk-mini-styles, .twk-mini-palettes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.twk-mini-palettes { grid-template-columns: repeat(3, 1fr); }
.twk-mini-style {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: transform .08s, box-shadow .08s;
}
.twk-mini-style:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 0 var(--ink); }
.twk-mini-style.on { background: var(--accent); }

.twk-mini-palette {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 4px;
  cursor: pointer;
  display: flex;
  gap: 2px;
  align-items: stretch;
  height: 28px;
  transition: transform .08s, box-shadow .08s;
}
.twk-mini-palette:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 0 var(--ink); }
.twk-mini-palette.on { outline: 3px solid var(--accent); outline-offset: 1px; }
.twk-mini-palette i { flex: 1; border-radius: 0; display: block; }
.twk-mini-palette i.auto {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 4px, var(--paper) 4px, var(--paper) 8px);
  color: var(--ink);
  width: 100%;
}
.twk-mini-cta {
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  margin-top: 6px;
  box-shadow: 3px 3px 0 0 var(--accent);
  transition: transform .1s, box-shadow .1s;
}
.twk-mini-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--accent); }

/* ─── live ticker ─── */
.lp-ticker {
  position: relative;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lp-ticker::before {
  content: "● LIVE · MATSNET";
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  padding: 4px 14px;
  border-right: 2px solid rgba(255,255,255,.2);
  flex: 0 0 auto;
  margin-left: 14px;
}
.lp-tk-track {
  display: flex;
  gap: 32px;
  animation: lp-tk-scroll 60s linear infinite;
  white-space: nowrap;
  flex: 0 0 auto;
  width: max-content;
}
.lp-tk-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
}
.lp-tk-arrow { color: var(--accent); }
.lp-tk-plat { color: rgba(255,255,255,.45); font-size: 11px; }
.lp-tk-amt {
  font-family: "Bangers", sans-serif;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: .02em;
}
.lp-tk-when { color: rgba(255,255,255,.35); font-size: 11px; margin-left: 4px; }
@keyframes lp-tk-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════
   STORY COMIC PAGE (below the fold)
   The Alice → Bob → Carol full narrative as a real comic page
   ════════════════════════════════════════════════════════════ */
.story-comic {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: 64px 32px 72px;
  overflow: hidden;
}
.story-comic::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.10) 1.2px, transparent 1.5px);
  background-size: 9px 9px;
  pointer-events: none;
  opacity: .8;
}
.story-comic .sc-head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}
.story-comic .sc-kicker {
  font-family: "Bangers", sans-serif;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 14px;
  letter-spacing: .12em;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 14px;
  transform: rotate(-2deg);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 0 var(--accent);
}
.story-comic .sc-title {
  font-family: "Bangers", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: .02em;
  margin: 0;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--accent);
}
.story-comic .sc-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-style: italic;
}

.story-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}
/* page layout — comic-book panel grid (uneven, dynamic) */
.scp { background: #FBF6E8; border: 3.5px solid #0A0A0A; box-shadow: 5px 5px 0 0 #0A0A0A; position: relative; overflow: hidden; padding: 0; opacity: 0; transform: translateY(20px) rotate(0deg); }
.scp.revealed { animation: scp-reveal .55s cubic-bezier(.2,.7,.2,1) forwards; }
.scp:nth-child(2).revealed { animation-name: scp-reveal-tilt-l; }
.scp:nth-child(4).revealed { animation-name: scp-reveal-tilt-r; }
.scp:nth-child(6).revealed { animation-name: scp-reveal-tilt-l; }

@keyframes scp-reveal {
  from { opacity: 0; transform: translateY(20px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(0deg); }
}
@keyframes scp-reveal-tilt-l {
  from { opacity: 0; transform: translateY(20px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(-.6deg); }
}
@keyframes scp-reveal-tilt-r {
  from { opacity: 0; transform: translateY(20px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(.6deg); }
}
.scp-1  { grid-column: span 4; grid-row: span 2; }
.scp-2  { grid-column: span 2; grid-row: span 1; }
.scp-3  { grid-column: span 2; grid-row: span 1; }
.scp-4  { grid-column: span 3; grid-row: span 2; }
.scp-5  { grid-column: span 3; grid-row: span 2; }
.scp-6  { grid-column: span 6; grid-row: span 1; }

.scp .sc-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-size: cover;
}
.scp .sc-art svg { width: 100%; height: 100%; }
.scp .sc-halftone {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.18) 1.2px, transparent 1.6px);
  background-size: 8px 8px;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.scp .sc-label {
  position: absolute; top: 10px; left: 12px;
  font-family: "Bangers", sans-serif;
  background: #FFD32D; color: #0A0A0A;
  padding: 4px 10px;
  border: 2.5px solid #0A0A0A;
  font-size: 13px;
  letter-spacing: .08em;
  z-index: 4;
}
.scp .sc-caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: #fff;
  border: 2.5px solid #0A0A0A;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #0A0A0A;
  z-index: 4;
  box-shadow: 2px 2px 0 0 #0A0A0A;
  line-height: 1.3;
}
.scp .sc-bubble {
  position: absolute;
  background: #fff;
  border: 2.5px solid #0A0A0A;
  border-radius: 14px;
  padding: 6px 14px;
  font-family: "Bangers", sans-serif;
  font-size: 16px;
  letter-spacing: .04em;
  color: #0A0A0A;
  box-shadow: 2px 2px 0 0 #0A0A0A;
  z-index: 4;
}
.scp .sc-bubble::after {
  content: ""; position: absolute;
  width: 12px; height: 12px;
  background: #fff;
  border: 2.5px solid #0A0A0A;
  border-top: none; border-left: none;
  transform: rotate(45deg);
  bottom: -8px; left: 22px;
}
.scp .sc-sfx {
  position: absolute;
  font-family: "Bangers", sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border: 3px solid #0A0A0A;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 0 #0A0A0A;
  z-index: 5;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(180px, auto);
  }
  .scp-1, .scp-4, .scp-5, .scp-6 { grid-column: span 2; }
  .scp-2, .scp-3 { grid-column: span 1; }
}
@media (max-width: 540px) {
  .story-grid { grid-template-columns: 1fr; }
  .scp { grid-column: span 1 !important; }
}
