:root{
  --bg:#02030a;
  --panel:rgba(10,10,24,.55);
  --border:rgba(255,255,255,.16);
  --text:#e9e9ff;
  --muted:#9aa0b7;
  --neon1:#00e5ff;
  --neon2:#ff4fd8;
  --radius:18px;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  width:100%;
  min-height:100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  overflow-x:hidden;
}

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

/* =========================
   BACKGROUND + CANVAS
========================= */
.bg{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 12%, rgba(0,229,255,.10), transparent 55%),
    radial-gradient(circle at 50% 88%, rgba(255,79,216,.07), transparent 60%),
    var(--bg);
}

#lights{
  width:100%;
  height:100%;
  display:block;              /* prevents canvas inline gaps */
}

/* Cinematic fades */
.cinema-fade{
  position:fixed;
  left:0; right:0;
  height:80px;
  z-index:2;
  pointer-events:none;
}

.cinema-fade--top{
  top:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.78), rgba(0,0,0,0));
}

.cinema-fade--bottom{
  bottom:0;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
}

/* =========================
   BOOT (if used)
========================= */
.boot{
  position:fixed;
  inset:0;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  letter-spacing:.08em;
  line-height:1.7;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size:14px;
  z-index:30;
}
.hidden{ display:none !important; }

/* =========================
   NAV
========================= */
.nav{
  position:sticky;
  top:0;
  z-index:10;
  padding: calc(10px + env(safe-area-inset-top)) 18px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  backdrop-filter: blur(10px);
  background: rgba(2,3,10,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav__left{ display:flex; align-items:center; gap:12px; }

.nav__brand{
  font-weight:700;
  letter-spacing:.12em;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.nav__tag{
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.18em;
  opacity:.8;
}

.nav__right{ display:flex; gap:18px; }

.nav__link{
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.14em;
  font-size:12px;
  opacity:.85;
}
.nav__link:hover{ opacity:1; }

.nav__menu{
  display:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
}

/* =========================
   DRAWER (IMPORTANT FIX)
   - No display:none; (bfcache/back bug safer)
========================= */
.drawer{
  position:fixed;
  inset:0;
  z-index:25;

  /* Always present, but invisible until .show */
  opacity:0;
  visibility:hidden;
  pointer-events:none;

  background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
  transition: opacity .18s ease, visibility .18s ease;
}

.drawer.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.drawer__inner{
  position:absolute;
  right:0; top:0; bottom:0;
  width:min(360px, 86vw);
  padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
  background: rgba(10,10,24,.86);
  border-left: 1px solid rgba(255,255,255,.12);
}

.drawer__link{
  display:block;
  padding:14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  margin-bottom:10px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.14em;
}
.drawer__link--muted{ opacity:.8; }

/* =========================
   PAGE / SECTIONS (tight)
========================= */
.page{
  position:relative;
  z-index:5;
}

/* global section spacing */
.section{
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align:center;
}

.section__head{ margin-bottom: 22px; }
.section__head--center{ text-align:center; }

.section__title{
  font-weight:700;
  font-size: clamp(28px, 4.6vw, 54px);
  margin:0 0 18px;
}

.section__sub{
  margin:0;
  color:var(--muted);
}
.section__sub--center{ margin: 0 auto; }

/* MUSIC closer to HERO */
#music{
  padding-top: 28px;
  margin-top: 0;
}

/* =========================
   HERO (single definition; no conflicts)
========================= */
.hero{
  padding: 70px 18px 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero--center{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
}

.hero__center{
  width:100%;
  max-width: 900px;
  margin: 0 auto;
  text-align:center;
}

.kicker{
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.2em;
  opacity:.8;
  margin-bottom: 12px;
}
.kicker--center{ text-align:center; }

.hero__title{
  width:100%;
  font-weight:700;
  line-height: .95;
  margin: 0 0 14px;
  font-size: clamp(62px, 9vw, 130px);
}
.hero__title--center{ text-align:center; }

.hero__copy{
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto 18px;
  font-size: 16px;
}
.hero__copy--center{ text-align:center; }

.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero__cta--center{ justify-content:center; margin-top: 12px; }

/* STATUS matches hero copy color */
.hero__status{
  margin-top: 22px;
  text-align:center;
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--muted);         /* matches “A new chapter is booting…” */
  font-weight: 500;
}

/* =========================
   GLITCH TITLE (center-safe)
========================= */
.glitch{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}

.glitch .line{
  width:100%;
  position:relative;
  display:inline-block;
  text-align:center;
}

.glitch .line::before{
  content: attr(data-text);
  position:absolute; left:0; top:0; width:100%;
  transform: translate(2px,-1px);
  color: var(--neon1);
  opacity:.62;
  mix-blend-mode: screen;
  pointer-events:none;
}

.glitch .line::after{
  content: attr(data-text);
  position:absolute; left:0; top:0; width:100%;
  transform: translate(-2px,1px);
  color: var(--neon2);
  opacity:.62;
  mix-blend-mode: screen;
  pointer-events:none;
}

/* =========================
   CHROME
========================= */
.chrome{
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(210,220,255,.55), rgba(255,255,255,.9));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}

.chrome--alt{
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.55), rgba(210,220,255,.95));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}

.btn--primary{
  border-color: rgba(0,229,255,.35);
  background:
    radial-gradient(circle at 30% 20%, rgba(0,229,255,.14), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255,79,216,.10), transparent 55%),
    rgba(255,255,255,.03);
}

.btn--ghost{ opacity:.92; }
.btn--small{ padding: 10px 14px; font-size: 13px; }

/* =========================
   CARDS / GRIDS
========================= */
.card, .tile, .press-card, .contact-card, .merch__card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,24,.45);
  padding: 18px;
  text-align:center;
}

.card--center{ margin: 0 auto; max-width: 820px; }

.music-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  margin-top: 18px;
  justify-items:center;
}

.card__k{
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.18em;
  font-size:12px;
  opacity:.85;
}

.card__t{
  font-weight:700;
  margin-top: 8px;
  font-size: 22px;
}

.card__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.card__actions--spaced{ margin-top: 18px; }

.embed{
  margin-top: 18px;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
}

/* =========================
   VISUAL GRID
========================= */
.visuals-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.visuals-grid--center{ justify-items:center; }
.tile--center{ width:100%; }

/* =========================
   MARQUEE
========================= */
.marquee{
  margin-top: 22px;
  overflow:hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.marquee__inner{
  display:flex;
  gap: 26px;
  padding: 14px 0;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.22em;
  opacity:.8;
}
.marquee__inner span{ padding-right: 26px; }

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

/* =========================
   PRESS GRID
========================= */
.press-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.press-grid--center{ justify-items:center; }
.press-card--center{ width:100%; }

/* PRESS LIST — editorial hierarchy */
.press-list{
  display:flex;
  flex-direction:column;
  gap:28px;
  margin-top:18px;
}

.press-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.press-source{
  font-size:18px;
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  opacity:.9;
}

.press-quote{
  max-width:560px;
  width:100%;
  text-align:center;
  font-size:15px;
  line-height:1.35;
  opacity:.75;
  margin:0 auto;
}

.press-read{
  font-size:11px;
  letter-spacing:.25em;
  text-transform:uppercase;
  text-decoration:none;
  opacity:.45;
  padding-bottom:2px;
  border-bottom:1px solid rgba(255,255,255,.15);
  transition: opacity .2s ease, border-color .2s ease;
}

.press-read:hover{
  opacity:1;
  border-color:rgba(255,255,255,.45);
}

@media (max-width:700px){
  .press-quote{ max-width:420px; }
}

/* =========================
   MERCH
========================= */
.merch{ margin-top: 18px; }
.merch--center{ display:flex; justify-content:center; }

.merch__k{
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.18em;
  opacity:.85;
}

.merch__t{
  margin-top: 8px;
  font-weight:700;
  font-size: 22px;
}

.merch__p{
  margin-top: 10px;
  color: var(--muted);
  line-height:1.45;
}

/* =========================
   CONTACT
========================= */
.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.contact-grid--center{ justify-items:center; }
.contact-card--center{ width:100%; }

.contact-card__k{
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.18em;
  opacity:.85;
}

.contact-card__v{
  display:inline-block;
  margin-top: 10px;
  font-weight:600;
}

/* Footer (centered) */
.footer{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap: 12px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  letter-spacing:.08em;
}

/* =========================
   REVEALS
========================= */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.on{
  opacity:1;
  transform: translateY(0);
}

.muted{ color: var(--muted); }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .nav__right{ display:none; }
  .nav__menu{ display:inline-flex; }
  .visuals-grid{ grid-template-columns: 1fr; }
  .press-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ========================
   typing dots animation
======================== */
.dots::after{
  content:'';
  animation: typingDots 1.4s infinite steps(4);
}

@keyframes typingDots{
  0%   { content:''; }
  25%  { content:'.'; }
  50%  { content:'..'; }
  75%  { content:'...'; }
  100% { content:''; }
}
