/* ============================================================
   GROKBIN HOOD — Cinematic Diorama
   Every section sits on a full-bleed 3D render. No flat blocks.
   Text survives busy art via hard outlines + scrims.
   ============================================================ */

:root {
  --ink: #0a0c09;
  --bone: #f4efe2;
  --sherwood: #2e7d4f;
  --sherwood-deep: #1c5434;
  --lime: #ccff00;
  --cyan: #5fe9ff;
  --leather: #6b4a2f;
  --logo-bg: #d4fa5a;          /* the lime behind the logo mark — matches assets/brand/logo.png */
  --stroke: 3px;
  --radius: 18px;
  --shadow-hard: 7px 7px 0 rgba(6, 8, 5, 0.85);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-type: 'Special Elite', monospace;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--lime); color: var(--ink); }

/* ---------- outlined display text (Cubeman craft) ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--bone);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink),
    -2px  2px 0 var(--ink), 2px  2px 0 var(--ink),
    0 6px 0 rgba(6, 8, 5, 0.9), 0 10px 24px rgba(0, 0, 0, 0.6);
}
.display .accent { color: var(--lime); }
.display .accent-cyan { color: var(--cyan); }

.typewriter { font-family: var(--font-type); letter-spacing: 0.02em; }

.kicker {
  font-family: var(--font-type);
  font-size: 0.95rem;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-shadow: 0 2px 0 var(--ink), 0 0 18px rgba(204, 255, 0, 0.35);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.06rem;
  color: var(--bone);
  text-shadow: 0 1px 0 var(--ink), 0 2px 10px rgba(0, 0, 0, 0.85);
  max-width: 560px;
}

/* ---------- full-bleed diorama sections ---------- */
.scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.bgvid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Do NOT put a CSS/SVG filter on this video. Measured on a 2x display: any
   filter forces the frame to be rasterised at layout resolution (1x) before
   being scaled up, so a "sharpen" pass ends up softer than no filter at all.
   The clip is natively 1284x716; the only real fix is a higher-res source. */
/* Fine grain over the hero video — hides residual softness the way film grain
   does, and reads as deliberate rather than blurry. Its own element, so it does
   not clobber .scene::after (the blend into the next scene). */
.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
}
.scene::before {
  /* readability scrim — direction set per scene */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 8, 5, 0.82) 0%, rgba(6, 8, 5, 0.35) 46%, rgba(6, 8, 5, 0.08) 100%);
  pointer-events: none;
}
.scene::after {
  /* soft horizontal blend into next scene — no hard seams */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 140px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 12, 9, 0) 0%, var(--ink) 100%);
  pointer-events: none;
}
.scene > .inner { position: relative; z-index: 2; width: 100%; }
.scene.scrim-right::before { background: linear-gradient(270deg, rgba(6,8,5,0.82) 0%, rgba(6,8,5,0.35) 46%, rgba(6,8,5,0.08) 100%); }
.scene.scrim-center::before { background: radial-gradient(ellipse at 50% 45%, rgba(6,8,5,0.78) 0%, rgba(6,8,5,0.4) 55%, rgba(6,8,5,0.12) 100%); }
.scene.scrim-top::before { background: linear-gradient(180deg, rgba(6,8,5,0.85) 0%, rgba(6,8,5,0.4) 55%, rgba(6,8,5,0.1) 100%); }
.scene.scrim-heavy::before { background: rgba(6, 8, 5, 0.72); }

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 28px;
}

/* ---------- floating pill navbar ---------- */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1080px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px 10px 18px;
  background: rgba(14, 17, 12, 0.9);
  backdrop-filter: blur(10px);
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.16);
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(6, 8, 5, 0.75), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--logo-bg); }
.nav-logo b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-type);
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(244, 239, 226, 0.82);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(46, 125, 79, 0.35); color: var(--bone); }
.nav-cta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  box-shadow: 4px 4px 0 rgba(6, 8, 5, 0.85);
  white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.12s;
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(6, 8, 5, 0.85); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 14px;
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--shadow-hard);
  transition: transform 0.12s, box-shadow 0.12s;
  color: var(--ink);
  background: var(--bone);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(6, 8, 5, 0.85); }
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(6, 8, 5, 0.85); }
.btn-lime { background: var(--lime); }
.btn-green { background: var(--sherwood); color: var(--bone); }
.btn-dark { background: rgba(14, 17, 12, 0.92); color: var(--bone); }
.btn img.ic { width: 20px; height: 20px; }

/* ---------- sticker cards ---------- */
.sticker {
  background: rgba(16, 20, 14, 0.92);
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 26px 24px;
}
.sticker.tilt-l { transform: rotate(-1.6deg); }
.sticker.tilt-r { transform: rotate(1.4deg); }
.sticker.paper {
  background: var(--bone);
  color: var(--ink);
}

/* ---------- hero ---------- */
#hero { min-height: 108svh; }
#hero .inner { padding-top: 150px; }
.hero-h {
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  max-width: 900px;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 22px;
  font-family: var(--font-type);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--cyan);
  text-shadow: 0 2px 0 var(--ink), 0 0 22px rgba(95, 233, 255, 0.4);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.ca-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  max-width: 640px;
  background: rgba(14, 17, 12, 0.92);
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.16);
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
  padding: 12px 14px 12px 18px;
}
.ca-chip .lab {
  font-family: var(--font-type);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--lime);
  white-space: nowrap;
}
.ca-chip code {
  font-family: var(--font-type);
  font-size: 0.92rem;
  color: var(--bone);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.ca-copy {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 3px 3px 0 rgba(6, 8, 5, 0.85);
}
.ca-copy:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(6, 8, 5, 0.85); }


/* ---------- marquee ---------- */
.marquee-wrap {
  /* clips the rotated strip so it can't widen the page */
  position: relative;
  z-index: 3;
  overflow: hidden;
}
.marquee {
  position: relative;
  z-index: 3;
  background: var(--lime);
  border-top: var(--stroke) solid var(--ink);
  border-bottom: var(--stroke) solid var(--ink);
  overflow: hidden;
  padding: 12px 0;
  transform: rotate(-0.5deg) scale(1.01);
}
.marquee .track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: scroll-x 26s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.marquee span i { font-style: normal; color: var(--sherwood-deep); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- lore ---------- */
.lore-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.lore-log {
  font-family: var(--font-type);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--bone);
}
.lore-log .q { color: var(--cyan); }
.lore-log .dim { color: rgba(244, 239, 226, 0.6); }
.manifesto { margin-top: 26px; display: grid; gap: 6px; }
.manifesto p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--bone);
  text-shadow: 0 2px 0 var(--ink), 0 3px 14px rgba(0, 0, 0, 0.8);
}
.manifesto p b { color: var(--lime); }

.section-h { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 14px; }

/* ---------- arsenal (PFP generator) ---------- */
/* minmax(0,…) everywhere: a bare 1fr lets a wide child blow the column out
   past the viewport and reintroduces horizontal page scroll on mobile. */
.arsenal-wrap { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 34px; align-items: start; }
.arsenal-wrap > * { min-width: 0; }
.pfp-stage {
  position: relative;
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background:
    repeating-conic-gradient(rgba(244,239,226,0.05) 0% 25%, transparent 0% 50%) 0 0 / 28px 28px,
    #101410;
}
.pfp-stage canvas { width: 100%; aspect-ratio: 1; display: block; touch-action: none; }
.pfp-stage canvas.grabbable { cursor: grab; }
.pfp-stage canvas.grabbing { cursor: grabbing; }
.pfp-hint {
  font-family: var(--font-type);
  font-size: 0.76rem;
  color: rgba(244, 239, 226, 0.66);
  margin-top: 10px;
  text-shadow: 0 1px 0 var(--ink);
}

/* ---- size control for the active layer ---- */
.pfp-size {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: rgba(14, 17, 12, 0.92);
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.14);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(6, 8, 5, 0.8);
  padding: 10px 14px;
}
.pfp-size .lab {
  font-family: var(--font-type);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--lime);
}
.pfp-size .who {
  font-family: var(--font-type);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  min-width: 78px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pfp-size .sz {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(6, 8, 5, 0.85);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}
.pfp-size .sz:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(6, 8, 5, 0.85); }
#pfp-scale {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sherwood) 0%, var(--lime) 100%);
  border: 2px solid var(--ink);
}
#pfp-scale::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bone);
  border: 3px solid var(--ink);
  box-shadow: 0 2px 0 rgba(6, 8, 5, 0.7);
  cursor: grab;
}
#pfp-scale::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bone);
  border: 3px solid var(--ink);
  cursor: grab;
}
#pfp-scale:disabled { opacity: 0.4; }
.pfp-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pfp-actions .btn { flex: 1 1 auto; justify-content: center; font-size: 0.86rem; padding: 12px 14px; }

.pfp-cats { display: grid; gap: 22px; max-height: 640px; overflow-y: auto; padding-right: 6px; }
.pfp-cats::-webkit-scrollbar { width: 8px; }
.pfp-cats::-webkit-scrollbar-thumb { background: var(--sherwood); border-radius: 8px; }
.pfp-cat h3 {
  font-family: var(--font-type);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
  border-bottom: 2px solid rgba(204, 255, 0, 0.25);
  padding-bottom: 8px;
  margin-bottom: 12px;
  text-shadow: 0 2px 0 var(--ink);
}
.pfp-cat h3 em {
  font-style: normal;
  float: right;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: rgba(244, 239, 226, 0.5);
}
.pfp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; }
.pfp-item {
  aspect-ratio: 1;
  border: 2px solid rgba(244, 239, 226, 0.2);
  border-radius: 12px;
  background: rgba(14, 17, 12, 0.85);
  overflow: hidden;
  padding: 0;
  transition: transform 0.1s, border-color 0.1s;
}
.pfp-item img { width: 100%; height: 100%; object-fit: cover; }
.pfp-item:hover { transform: translateY(-2px); border-color: rgba(204, 255, 0, 0.6); }
.pfp-item.sel { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.35); }
.pfp-item .none-lab {
  font-family: var(--font-type);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 226, 0.55);
  display: grid;
  place-items: center;
  height: 100%;
}

/* ---------- theater ---------- */
.theater-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.clip-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  background: #101410;
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s;
}
.clip-card:hover { transform: translateY(-4px) rotate(-0.6deg); }
.clip-card video, .clip-card img.poster { width: 100%; height: 100%; object-fit: cover; }
.clip-card::before {
  /* scrim so the label stays legible over a bright poster frame */
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; height: 34%;
  background: linear-gradient(180deg, rgba(6,8,5,0.85) 0%, rgba(6,8,5,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.clip-card .lab {
  position: absolute;
  z-index: 2;
  left: 10px; right: 10px; top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--bone);
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 3px 6px rgba(0,0,0,0.8);
  text-align: center;
}
.clip-card .play-ic {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 5, 0.24);
  opacity: 0.92;
  transition: opacity 0.15s;
}
.clip-card:hover .play-ic { opacity: 1; }
.clip-card .play-ic span {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--lime);
  border: var(--stroke) solid var(--ink);
  box-shadow: 4px 4px 0 rgba(6, 8, 5, 0.85);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.2rem;
}
.theater-empty {
  margin-top: 34px;
  text-align: center;
  font-family: var(--font-type);
  color: rgba(244, 239, 226, 0.75);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 5, 4, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal video {
  max-height: 92svh;
  max-width: min(94vw, 52svh);
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.2);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}
.modal .close {
  position: absolute;
  top: 22px; right: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--lime);
  border: var(--stroke) solid var(--ink);
  box-shadow: 4px 4px 0 rgba(6, 8, 5, 0.85);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- wanted list ---------- */
.wanted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.poster {
  background: var(--bone);
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-hard);
  padding: 18px 16px 16px;
  text-align: center;
  font-family: var(--font-type);
  position: relative;
}
.poster:nth-child(odd) { transform: rotate(-1.6deg); }
.poster:nth-child(even) { transform: rotate(1.3deg); }
.poster .pin {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sherwood);
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 rgba(6, 8, 5, 0.5);
}
.poster h4 { font-size: 1.15rem; letter-spacing: 0.24em; margin-bottom: 8px; }
.poster .mug {
  width: 84px; height: 84px;
  margin: 0 auto 10px;
  border-radius: 8px;
  border: 3px solid var(--ink);
  background: var(--sherwood-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.poster .mug img { width: 100%; height: 100%; object-fit: cover; }
.poster .addr { font-size: 0.8rem; word-break: break-all; color: #3c3a31; }
.poster .pct { font-size: 1.5rem; margin-top: 6px; }
.poster .bounty {
  margin-top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--lime);
  border-radius: 6px;
  padding: 5px 8px;
  display: inline-block;
}
.wanted-note { margin-top: 20px; font-family: var(--font-type); font-size: 0.85rem; color: rgba(244, 239, 226, 0.66); }

/* ---------- heist (tokenomics) ---------- */
.heist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.loot {
  text-align: center;
  padding: 30px 18px 26px;
}
.loot:nth-child(1) { transform: rotate(-2deg); background: var(--lime); color: var(--ink); }
.loot:nth-child(2) { transform: rotate(1.5deg); background: var(--sherwood); color: var(--bone); }
.loot:nth-child(3) { transform: rotate(-1.2deg); background: var(--bone); color: var(--ink); }
.loot:nth-child(4) { transform: rotate(2deg); background: var(--cyan); color: var(--ink); }
.loot .t {
  font-family: var(--font-type);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.85;
}
.loot .v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin-top: 10px;
}
.loot .s { font-family: var(--font-type); font-size: 0.78rem; margin-top: 10px; opacity: 0.8; }

/* ---------- join (how to buy) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}
/* The number used to be absolutely positioned and overlapped the step title.
   It now sits in normal flow, so it can never collide with the text. */
.step { position: relative; }
.step .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--lime);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(6, 8, 5, 0.85);
  margin-bottom: 14px;
}
.step h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.step p { font-size: 0.9rem; color: rgba(244, 239, 226, 0.82); }

/* ---------- gallery (grid, no horizontal scroll) ---------- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.gal-item {
  padding: 0;
  aspect-ratio: 1;
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.16);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: #101410;
  transition: transform 0.14s, box-shadow 0.14s;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-item:nth-child(odd):hover { transform: translateY(-5px) rotate(-1deg); }
.gal-item:nth-child(even):hover { transform: translateY(-5px) rotate(1deg); }
.gal-item:hover { box-shadow: 10px 10px 0 rgba(6, 8, 5, 0.85); }

/* ---------- gallery lightbox ---------- */
.img-box { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: min(92vw, 760px); }
.img-box img {
  max-height: 74svh;
  border: var(--stroke) solid var(--ink);
  outline: 1px solid rgba(244, 239, 226, 0.2);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}
.img-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.img-actions .btn { font-size: 0.92rem; padding: 13px 22px; }

/* ---------- closing camp + footer ---------- */
#camp { text-align: center; }
#camp .inner { padding-bottom: 40px; }
.camp-h { font-size: clamp(2.2rem, 5.4vw, 4rem); }
.socials { display: flex; justify-content: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.footer {
  position: relative;
  z-index: 3;
  padding: 26px 20px 90px;
  text-align: center;
  font-family: var(--font-type);
  font-size: 0.78rem;
  color: rgba(244, 239, 226, 0.55);
}
.footer .chainbadge {
  display: inline-block;
  margin-bottom: 12px;
  border: 2px solid rgba(244, 239, 226, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--cyan);
  letter-spacing: 0.12em;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  border: var(--stroke) solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-hard);
  padding: 12px 22px;
  z-index: 300;
  transition: transform 0.25s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .theater-grid { grid-template-columns: repeat(2, 1fr); }
  .heist-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .lore-grid, .arsenal-wrap { grid-template-columns: minmax(0, 1fr); }
  .pfp-cats { max-height: none; }
}
@media (max-width: 600px) {
  .inner { padding: 84px 18px; }
  #hero .inner { padding-top: 120px; }
  .nav { top: 10px; gap: 10px; }
  .nav-logo b { font-size: 0.9rem; }
  .nav-cta { font-size: 0.8rem; padding: 9px 14px; }
  .heist-grid, .steps-grid, .theater-grid { grid-template-columns: 1fr; }
  .ca-chip { flex-wrap: wrap; }
  .ca-chip code { font-size: 0.78rem; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pfp-actions .btn { flex: 1 1 44%; }
  .scene { min-height: auto; }
  #hero { min-height: 100svh; }
}

/* ============================================================
   OPENING SEQUENCE — "WANTED BROADCAST"
   ============================================================ */
html.intro-lock, html.intro-lock body { overflow: hidden; height: 100%; }

#intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #050704;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.65s ease;
}
#intro.out { opacity: 0; pointer-events: none; }

.intro-stage { position: absolute; inset: 0; }
.intro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  transform: scale(1.06);
}
.intro-bg.on { opacity: 1; }
.intro-bg.kb { animation: kenburns 6s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.19) translate3d(-1.4%, -1.2%, 0); }
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.intro-video.on { opacity: 1; }

.intro-vig {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(5,7,4,0) 34%, rgba(5,7,4,0.86) 100%),
    linear-gradient(180deg, rgba(5,7,4,0.6) 0%, rgba(5,7,4,0.2) 30%, rgba(5,7,4,0.72) 100%);
}
.intro-grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* scanline sweep sells the "broadcast" framing */
#intro.playing::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(95,233,255,0) 0%, rgba(95,233,255,0.045) 50%, rgba(95,233,255,0) 100%);
  animation: sweep 5.5s linear infinite;
}
@keyframes sweep { from { top: -40%; } to { top: 110%; } }

.intro-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
.intro-term { max-width: min(900px, 92vw); }
.intro-term.hide { display: none; }
.tline {
  font-family: var(--font-type);
  font-size: clamp(1.05rem, 2.6vw, 1.85rem);
  line-height: 1.8;
  color: var(--bone);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #050704, 0 0 26px rgba(0,0,0,0.9);
  white-space: pre-wrap;
}
.tline::after {
  content: '_';
  color: var(--cyan);
  animation: caret 0.85s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.intro-final { display: none; }
.intro-final.on { display: block; animation: pop 0.7s cubic-bezier(.2,.9,.25,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.intro-logo {
  width: clamp(84px, 12vw, 132px);
  border-radius: 50%;
  border: 3px solid var(--ink);
  margin: 0 auto 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.7);
}
.intro-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: .95;
  color: var(--bone);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 rgba(6,8,5,.9), 0 16px 40px rgba(0,0,0,.7);
}
.intro-still {
  font-family: var(--font-type);
  font-size: clamp(.95rem, 2.2vw, 1.35rem);
  color: var(--lime);
  margin-top: 10px;
  text-shadow: 0 2px 0 var(--ink), 0 0 20px rgba(204,255,0,.35);
}

/* ---- gate: one click, which is what unlocks audio ---- */
.intro-gate {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 30px; text-align: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(12,16,10,.9) 0%, #050704 78%);
  transition: opacity .5s ease;
}
.intro-gate.gone { opacity: 0; pointer-events: none; }
.gate-logo {
  width: clamp(96px, 15vw, 148px);
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 0 12px 44px rgba(0,0,0,.75);
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translateY(-6px); } }
.gate-kicker {
  font-family: var(--font-type);
  font-size: .85rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(244,239,226,.6);
}
.intro-enter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  padding: 16px 34px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--shadow-hard);
  transition: transform .12s, box-shadow .12s;
}
.intro-enter:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 rgba(6,8,5,.85); }
.intro-enter:active { transform: translate(2px,2px); box-shadow: 3px 3px 0 rgba(6,8,5,.85); }

.intro-skip {
  font-family: var(--font-type);
  letter-spacing: .12em;
  background: transparent;
  border: 2px solid rgba(244,239,226,.28);
  color: rgba(244,239,226,.72);
  border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.intro-skip:hover { border-color: var(--lime); color: var(--lime); }
.gate-skip { font-size: .78rem; padding: 8px 18px; margin-top: 2px; }
.corner-skip {
  position: absolute; top: 20px; right: 20px; z-index: 4;
  font-size: .76rem; padding: 9px 18px;
  background: rgba(5,7,4,.6);
  backdrop-filter: blur(6px);
}

@media (max-width: 600px) {
  .corner-skip { top: 14px; right: 14px; }
  .intro-body { padding: 22px; }
  .tline { line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-bg.kb { animation: none; }
  #intro.playing::after { animation: none; opacity: 0; }
  .gate-logo { animation: none; }
}
/* on wide screens the mascot sits right of centre — keep the wordmark clear of him */
@media (min-width: 900px) {
  .intro-final { transform: translateX(-15%); }
  .intro-final.on { animation: popL 0.7s cubic-bezier(.2,.9,.25,1) both; }
  @keyframes popL {
    from { opacity: 0; transform: translateX(-15%) translateY(16px) scale(.96); }
    to   { opacity: 1; transform: translateX(-15%); }
  }
}

/* CA chip on the opening card — same component, sized for the gate */
.intro-ca {
  margin-top: 26px;
  max-width: min(440px, 92vw);
  width: 100%;
  padding: 10px 12px 10px 16px;
  gap: 10px;
}
.intro-ca .lab { font-size: .66rem; letter-spacing: .18em; }
.intro-ca code { font-size: .84rem; text-align: center; }
.intro-ca .ca-copy { font-size: .74rem; padding: 7px 13px; }
@media (max-width: 600px) {
  .intro-ca { margin-top: 20px; }
  .intro-ca code { font-size: .76rem; }
}
