*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050807;
  --bg-2: #0c1412;
  --mint: #7ef5e8;
  --mint-deep: #3fd4c8;
  --coin: #ffd24a;
  --orange: #ff7a18;
  --cream: #e6fff8;
  --muted: #7aaea3;
  --ink: #050807;
  --display: "Pixelify Sans", "Anton", sans-serif;
  --sans: "Outfit", system-ui, sans-serif;
  --spine: 248px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ── Spine ── */
.spine {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.4rem 1.2rem;
  background: #070d0b;
  border-right: 2px solid var(--mint);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #000;
  border: 2px solid var(--mint);
}

.logo-name {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
  line-height: 1.1;
}

.logo-ticker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--coin);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--mint);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-links a {
  display: block;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  border: 2px solid transparent;
}

.nav-links a:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.spine-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 2px dashed rgba(126, 245, 232, 0.28);
}

.spine-meta span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.spine-meta code {
  display: block;
  font-size: 0.68rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--mint);
}

.spine-social {
  display: flex;
  gap: 0.5rem;
}

.nav-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: var(--ink);
  border: 2px solid var(--mint);
}

.nav-icon:hover {
  background: transparent;
  color: var(--mint);
}

/* ── Page canvas ── */
.page {
  margin-left: var(--spine);
  min-height: 100vh;
}

/* ── Masthead ── */
.mast {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.mast-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.mast-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.15) 0%, rgba(5, 8, 7, 0.82) 78%),
    linear-gradient(90deg, rgba(5, 8, 7, 0.55) 0%, transparent 48%);
}

.mast-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 4rem));
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: end;
}

.mast-stamp {
  width: 100%;
  aspect-ratio: 1;
  background: #000;
  border: 3px solid var(--mint);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.45), 0 0 40px rgba(126, 245, 232, 0.22);
  animation: stamp-bob 4.5s ease-in-out infinite;
}

.mast-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

@keyframes stamp-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.kicker,
.tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.7rem;
}

.mast-copy h1 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.mast-ticker {
  margin: 0.6rem 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--coin);
}

.mast-lead {
  max-width: 420px;
  color: rgba(230, 255, 248, 0.78);
  margin-bottom: 1.5rem;
}

.mast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-mint {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
}

.btn-mint:hover { background: var(--mint-deep); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--mint);
}

.btn-ghost:hover {
  background: var(--mint);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--mint);
  border-color: var(--ink);
}

.btn-ink:hover { background: #101816; }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.78rem; }
.btn-sm.copied { opacity: 0.65; }
.btn-block { width: 100%; }

/* ── Marquee ── */
.marquee {
  overflow: hidden;
  border-top: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  background: #000;
  padding: 0.7rem 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.marquee-track span:nth-child(even) { color: var(--coin); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Shared sections ── */
.album,
.dossier,
.ticket,
.desk,
.footer {
  padding: 4.5rem 2rem;
}

.section-bar {
  margin-bottom: 1.8rem;
  max-width: 560px;
}

.section-bar h2,
.ticket h2,
.desk-buy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-bar p {
  color: var(--muted);
  margin-top: 0.45rem;
}

/* ── Cards / gallery ── */
.card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--mint);
  background: #000;
  cursor: zoom-in;
  box-shadow: 7px 7px 0 rgba(126, 245, 232, 0.14);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.45s ease;
}

.card:hover img { transform: scale(1.05); }

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(5, 8, 7, 0.9), transparent);
  pointer-events: none;
}

.card span {
  position: absolute;
  left: 0.9rem;
  bottom: 0.75rem;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.spread {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.card-xl,
.card-lg {
  min-height: 380px;
}

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.rail .card { aspect-ratio: 1; }

.card-banner {
  min-height: 220px;
}

/* ── Dossier ── */
.dossier {
  background: var(--bg-2);
  border-top: 2px solid rgba(126, 245, 232, 0.18);
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.dossier-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.dossier-copy strong { color: var(--mint); }

.facts {
  list-style: none;
  margin-top: 1.8rem;
  border-top: 2px solid var(--mint);
}

.facts li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 2px solid rgba(126, 245, 232, 0.16);
}

.facts span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.facts h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.facts p { margin: 0; font-size: 0.92rem; }

.dossier-art .card {
  aspect-ratio: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.stats dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--mint);
}

/* ── Ticket / CA ── */
.ticket {
  background: #000;
}

.ticket-body {
  border: 2px solid var(--mint);
  padding: 1.6rem 1.5rem 1.2rem;
  background:
    radial-gradient(circle at left 28px, var(--bg) 8px, transparent 9px),
    radial-gradient(circle at right 28px, var(--bg) 8px, transparent 9px),
    #0a1210;
  background-size: 100% 100%;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  background: #000;
  border: 2px solid var(--mint);
}

.ca-box code {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.04em;
  word-break: break-all;
  color: var(--mint);
}

.toast {
  min-height: 1.2rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--mint);
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show { opacity: 1; }

/* ── Desk: chart + buy ── */
.desk {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  background: var(--bg-2);
  border-top: 2px solid rgba(126, 245, 232, 0.18);
}

.chart-box {
  position: relative;
  width: 100%;
  padding-bottom: 72%;
  border: 2px solid var(--mint);
  background: #000;
  overflow: hidden;
}

.chart-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.chart-iframe.hidden,
.chart-ph.hidden { display: none; }

.chart-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.chart-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--mint);
  font-weight: 700;
  text-decoration: none;
}

.chart-link:hover { text-decoration: underline; }

.desk-buy {
  background: var(--mint);
  color: var(--ink);
  padding: 1.6rem 1.4rem;
  border: 2px solid var(--mint);
}

.desk-buy .tag { color: var(--ink); opacity: 0.65; }
.desk-buy h2 { color: var(--ink); }

.steps {
  list-style: none;
  margin: 1.4rem 0 1.5rem;
}

.steps li {
  padding: 0.85rem 0;
  border-bottom: 2px solid rgba(5, 8, 7, 0.16);
}

.steps span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.steps h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.steps p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ── Footer ── */
.footer {
  display: grid;
  gap: 1.2rem;
  background: #000;
  border-top: 2px solid var(--mint);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 2px solid var(--mint);
  background: #000;
}

.footer-brand strong {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--mint);
}

.footer-brand span,
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--cream);
}

.footer-links a:hover { color: var(--mint); }

.footer-disclaimer {
  font-size: 0.72rem;
  max-width: 640px;
  line-height: 1.65;
  opacity: 0.7;
}

/* ── Lightbox ── */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
}

.lightbox::backdrop { background: rgba(5, 8, 7, 0.92); }

.lightbox img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border: 2px solid var(--mint);
  image-rendering: pixelated;
}

.lightbox-close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  background: none;
  border: none;
  color: var(--mint);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .spread,
  .dossier-grid,
  .desk {
    grid-template-columns: 1fr;
  }

  .card-xl,
  .card-lg { min-height: 280px; }

  .rail { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .spine {
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 2px solid var(--mint);
  }

  .spine-meta { display: none; }

  .spine-social { margin-left: auto; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    padding: 0.8rem 1rem 1rem;
    background: #070d0b;
    border-bottom: 2px solid var(--mint);
  }

  .nav-links.open { display: flex; }

  .page { margin-left: 0; padding-top: 72px; }

  .mast { min-height: calc(100vh - 72px); }

  .mast-inner {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 560px);
    margin-bottom: 2rem;
    text-align: center;
    justify-items: center;
  }

  .mast-stamp { max-width: 240px; }

  .mast-lead { margin-left: auto; margin-right: auto; }

  .mast-actions { justify-content: center; }

  .album,
  .dossier,
  .ticket,
  .desk,
  .footer { padding: 3.2rem 1.1rem; }
}

@media (max-width: 520px) {
  .rail { grid-template-columns: 1fr; }
  .card-banner { min-height: 160px; }
  .ca-box { flex-direction: column; }
  .ca-box .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
}
