:root {
  --void: #100c0a;
  --ink: #1a1410;
  --steel: #2a211c;
  --cream: #f4e6d0;
  --paper: #efe0c4;
  --orange: #f7931a;
  --orange-hot: #ff6a00;
  --gold: #e8b84a;
  --ginger: #d9783a;
  --line: #3a2c22;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--cream);
  background: var(--void);
  font-family: Figtree, system-ui, sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Titan One", Impact, sans-serif;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}

p {
  margin: 0;
}

/* ---------- world ---------- */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(247, 147, 26, 0.22), transparent 58%),
    radial-gradient(700px 480px at 92% 12%, rgba(232, 184, 74, 0.1), transparent 50%),
    radial-gradient(800px 600px at 70% 100%, rgba(247, 147, 26, 0.08), transparent 55%),
    linear-gradient(180deg, #16100c 0%, #0e0b09 42%, #140f0c 100%);
}

.hex-floor {
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 48vh;
  z-index: -2;
  pointer-events: none;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(247, 147, 26, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 147, 26, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 78%);
}

.rivet-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 4;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 34px,
      #c9a36a 34px 38px,
      transparent 38px 72px
    ),
    linear-gradient(90deg, #2b211b, #1a1410);
}

.rivet-rail--left {
  left: 0;
  border-right: 2px solid #4a382c;
}

.rivet-rail--right {
  right: 0;
  border-left: 2px solid #4a382c;
}

/* ---------- art: never cropped ---------- */

.art-plate,
.art-banner,
.brand-coin {
  background-image: var(--art);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.art-plate {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #1c1612;
  border: 4px solid #1a120c;
  border-radius: 22px;
  box-shadow:
    0 0 0 3px var(--orange),
    8px 10px 0 #0a0706;
}

.art-plate--hero {
  width: min(460px, 78%);
  position: relative;
  z-index: 2;
}

.art-banner {
  width: 100%;
  aspect-ratio: 3 / 1;
  background-color: #0d0a08;
}

.brand-coin {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background-color: #241910;
  border: 2px solid var(--orange);
  box-shadow: 3px 3px 0 #0a0706;
}

.brand-coin--sm {
  width: 38px;
  height: 38px;
}

/* ---------- nav ---------- */

.capbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 42px;
  background: rgba(16, 12, 10, 0.88);
  border-bottom: 3px solid var(--orange);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-txt strong {
  font-family: "Titan One", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-txt em {
  font-style: normal;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.cap-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.cap-links a:hover {
  color: var(--orange);
}

.cap-actions {
  display: flex;
  gap: 8px;
}

.ico,
.btn,
.patch {
  border: 3px solid #120c08;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 #0a0706;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ico:hover,
.btn:hover,
.patch:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0a0706;
}

.ico {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #120c08;
}

.ico-x {
  background: var(--cream);
}

.ico-buy {
  background: var(--orange);
}

.ico-dex {
  background: var(--gold);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid #120c08;
  background: var(--orange);
  color: #120c08;
  font-size: 22px;
  box-shadow: 3px 3px 0 #0a0706;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 48px 64px 72px;
  min-height: calc(100vh - 92px);
}

.mission-tag {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 16px;
  background: var(--orange);
  color: #120c08;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 3px solid #120c08;
  box-shadow: 4px 4px 0 #0a0706;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 92px);
}

.hero-cat {
  display: block;
  color: var(--orange);
  -webkit-text-stroke: 4px #120c08;
  paint-order: stroke fill;
  text-shadow: 8px 8px 0 #0a0706;
}

.ticker-sym {
  margin: 10px 0 18px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.bubble {
  position: relative;
  max-width: 540px;
  padding: 18px 20px 22px;
  background: var(--cream);
  color: #1a120c;
  border: 4px solid #120c08;
  border-radius: 22px 22px 22px 8px;
  box-shadow: 8px 8px 0 #0a0706;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -18px;
  border-width: 18px 14px 0 4px;
  border-style: solid;
  border-color: var(--cream) transparent transparent transparent;
  filter: drop-shadow(4px 4px 0 #120c08);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  color: #120c08;
}

.btn-orange {
  background: var(--orange);
}

.btn-ghost {
  background: var(--gold);
}

.btn-ink {
  background: var(--cream);
}

.ca-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-top: 18px;
  padding: 8px 8px 8px 12px;
  background: #1c1612;
  border: 3px solid var(--orange);
  border-radius: 14px;
}

.ca-chip span {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
}

.ca-chip code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--cream);
}

.ca-chip button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #120c08;
  cursor: pointer;
}

.ca-chip button.copied {
  background: #7dcc5c;
}

.vault-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.vault-halo {
  position: absolute;
  width: min(560px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #c9a36a 0 8deg, #6b5338 8deg 16deg);
  box-shadow:
    inset 0 0 0 18px #1a1410,
    inset 0 0 0 24px #e8b84a,
    0 0 80px rgba(247, 147, 26, 0.28);
  z-index: 0;
}

.sfx {
  position: absolute;
  z-index: 3;
  font-family: "Titan One", sans-serif;
  color: var(--cream);
  -webkit-text-stroke: 4px #120c08;
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--orange);
}

.sfx-ahead {
  top: 8%;
  right: 2%;
  font-size: 34px;
  transform: rotate(12deg);
}

.sfx-btc {
  left: 8%;
  bottom: 12%;
  font-size: 42px;
  color: var(--gold);
  transform: rotate(-12deg);
}

/* ---------- sections ---------- */

.chamber,
.combo,
.mission {
  padding: 72px 64px;
}

.plaque {
  margin-bottom: 28px;
}

.plaque span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: #1c1612;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plaque h2 {
  font-size: clamp(36px, 5vw, 58px);
  max-width: 16ch;
}

.chamber {
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(247, 147, 26, 0.05), transparent 30%),
    rgba(20, 15, 12, 0.55);
  border-block: 3px solid #3a2c22;
}

.chamber-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 22px;
  align-items: start;
  perspective: 1200px;
  overflow: visible;
}

.shot {
  margin: 0;
  overflow: visible;
}

.shot:first-child {
  transform: rotateY(8deg);
}

.shot:last-child {
  transform: rotateY(-8deg);
}

.shot figcaption,
.reel-caption {
  margin-top: 10px;
  font-family: Kalam, cursive;
  color: var(--gold);
  font-size: 16px;
}

.dossier {
  padding: 26px 24px;
  background: var(--paper);
  color: #1a120c;
  border: 4px solid #120c08;
  border-radius: 8px 28px 8px 28px;
  box-shadow: 10px 12px 0 #0a0706;
  transform: rotateX(6deg);
}

.dossier p + p {
  margin-top: 12px;
}

.hand {
  font-family: Kalam, cursive;
  color: var(--orange-hot);
  font-size: 22px;
  margin-bottom: 8px;
}

.moves {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.moves li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.moves i {
  color: var(--orange-hot);
}

/* ---------- cinema reel (banner, uncut) ---------- */

.reel {
  padding: 18px 42px 36px;
  background: #0a0807;
}

.sprockets {
  height: 22px;
  background-image: radial-gradient(circle, #100c0a 7px, transparent 8px);
  background-size: 36px 22px;
  background-repeat: repeat-x;
  background-position: center;
  background-color: #d7c19a;
  border: 3px solid #120c08;
}

.reel-frame {
  margin: 0;
  border-left: 3px solid #120c08;
  border-right: 3px solid #120c08;
  background: #0d0a08;
}

.reel-caption {
  text-align: center;
}

/* ---------- combination lock ---------- */

.combo {
  background:
    radial-gradient(circle at 50% 0%, rgba(247, 147, 26, 0.12), transparent 42%),
    #14100d;
}

.lock-track {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.lock-track::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 6px;
  margin-left: -3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold) 0 16px,
    transparent 16px 28px
  );
  border-radius: 99px;
}

.dial {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dial--right {
  grid-template-columns: 1fr 110px;
  justify-items: end;
}

.dial--right .dial-face {
  order: 2;
}

.dial--right .dial-card {
  order: 1;
  text-align: right;
}

.dial-face {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    repeating-conic-gradient(#c9a36a 0 10deg, #3a2c22 10deg 20deg);
  border: 6px solid #120c08;
  box-shadow: 6px 6px 0 #0a0706;
}

.dial-face span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #120c08;
  font-family: "Titan One", sans-serif;
  font-size: 28px;
  border: 4px solid #120c08;
}

.dial-card {
  padding: 20px 22px;
  background: #1c1612;
  border: 3px solid var(--orange);
  border-radius: 18px;
  box-shadow: 8px 8px 0 #0a0706;
}

.dial-card h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.dial-card p {
  color: #f0e2cc;
  line-height: 1.5;
}

.dial-card .btn {
  margin-top: 14px;
}

/* ---------- community ---------- */

.mission {
  background:
    radial-gradient(600px 400px at 20% 40%, rgba(247, 147, 26, 0.12), transparent 60%),
    #100d0b;
}

.mission-board {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.shot--moon {
  transform: rotate(-2deg);
}

.patches {
  padding: 28px;
  background: rgba(28, 22, 18, 0.92);
  border: 4px solid var(--gold);
  border-radius: 28px 8px 28px 8px;
  box-shadow: 12px 12px 0 #0a0706;
}

.patches p {
  line-height: 1.5;
}

.patch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.patch {
  padding: 12px 16px;
  border-radius: 999px;
  color: #120c08;
  font-size: 13px;
}

.patch-x {
  background: var(--cream);
}

.patch-buy {
  background: var(--orange);
}

.patch-dex {
  background: var(--gold);
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px 36px;
  border-top: 3px solid var(--orange);
  font-weight: 700;
}

/* ---------- mobile ---------- */

@media (max-width: 1080px) {
  .rivet-rail {
    display: none;
  }

  .capbar,
  .hero,
  .chamber,
  .combo,
  .mission,
  .reel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero,
  .chamber-grid,
  .mission-board {
    grid-template-columns: 1fr;
  }

  .shot:first-child,
  .shot:last-child,
  .shot--moon,
  .dossier {
    transform: none;
  }

  .vault-stage {
    min-height: 420px;
    order: -1;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .cap-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 0;
    background: #1c1612;
    border: 3px solid var(--orange);
    border-radius: 16px;
    overflow: hidden;
  }

  .cap-links.is-open {
    display: flex;
  }

  .cap-links a {
    padding: 14px 16px;
    border-bottom: 1px solid #3a2c22;
  }

  .cap-actions {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .lock-track::before {
    left: 55px;
  }

  .dial,
  .dial--right {
    grid-template-columns: 110px 1fr;
    justify-items: stretch;
  }

  .dial--right .dial-face,
  .dial--right .dial-card {
    order: unset;
    text-align: left;
  }

  .hero h1 {
    font-size: 52px;
  }

  .ico span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ico,
  .btn,
  .patch {
    transition: none;
  }
}
