html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0c0e;
  color: #e6e6e6;
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   GATE PAGE
========================= */

body.gate {
  background: #000;
  overflow: hidden;
}

/* Background stack — grain + vignette over pure black void */
#gateBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}

/* Grain layer — animated noise over the void */
.gateBg-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  animation: grainShift 0.14s steps(1) infinite;
  will-change: background-position;
}

@keyframes grainShift {
  0%   { background-position: 0px    0px;   }
  10%  { background-position: -50px -30px;  }
  20%  { background-position:  30px -60px;  }
  30%  { background-position: -70px  20px;  }
  40%  { background-position:  40px  50px;  }
  50%  { background-position: -20px -80px;  }
  60%  { background-position:  60px  10px;  }
  70%  { background-position: -40px  70px;  }
  80%  { background-position:  80px -20px;  }
  90%  { background-position: -10px  40px;  }
  100% { background-position:  50px -50px;  }
}

/* Vignette — subtle edge darkness */
.gateBg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 75% at 50% 50%,
    transparent 35%,
    rgba(0,0,0,0.5) 75%,
    rgba(0,0,0,0.85) 100%
  );
}

/* Stage — centring authority */
#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Logo button */
#enter {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Logo — pulses to signal it wants a click */
#enter .logo {
  display: block;
  width: min(38vw, 520px);
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 200ms linear, transform 200ms linear;
  animation: logoPulse 3s ease-in-out infinite;
  will-change: filter;
}

@keyframes logoPulse {
  0%   { filter: brightness(0.75) drop-shadow(0 0 10px rgba(255,255,255,0.05)); }
  50%  { filter: brightness(1.10) drop-shadow(0 0 32px rgba(255,255,255,0.20)); }
  100% { filter: brightness(0.75) drop-shadow(0 0 10px rgba(255,255,255,0.05)); }
}

#enter:hover .logo {
  animation: none;
  filter: brightness(1.18) drop-shadow(0 0 44px rgba(255,255,255,0.30));
  transform: scale(1.015);
}

#enter:active .logo {
  transform: scale(0.995);
  filter: brightness(0.9);
}

#enter:focus-visible {
  outline: 2px solid rgba(200,200,200,0.35);
  outline-offset: 10px;
  border-radius: 6px;
}

/* =========================
   CONFIRM PAGE — WASTELAND
========================= */

body.confirm {
  overflow: hidden;
  background: #000;
}

#confirmStage {
  position: fixed;
  inset: 0;
  background-image: url("/images/desolate%20wasteland%20city.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.confirmOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.03), transparent 60%),
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.08) 0px,
      rgba(0,0,0,0.08) 2px,
      rgba(0,0,0,0.04) 3px,
      rgba(0,0,0,0.04) 6px
    );
  mix-blend-mode: overlay;
  opacity: 0.35;
  animation: drift 40s linear infinite;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-4%, 3%, 0); }
}

.confirmCopy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: rgba(230,230,230,0.78);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.confirmLine1 {
  font-size: clamp(18px, 2.3vw, 28px);
}

.confirmLine2 {
  font-size: clamp(11px, 1.2vw, 14px);
  opacity: 0.75;
  letter-spacing: 0.18em;
}

.reenter {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(230,230,230,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(230,230,230,0.18);
  padding-bottom: 4px;
}

.reenter:hover {
  color: rgba(230,230,230,0.75);
  border-bottom-color: rgba(230,230,230,0.35);
}

/* =========================
   HOME PAGE — FULL LAYOUT
========================= */

body.home {
  background: #000;
  color: #e6e6e6;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.home-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  grid-template-rows: 40px 1fr 40px;
}

.home-nav {
  grid-column: 1 / 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  z-index: 20;
  background: rgba(0,0,0,0.65);
  padding: 0 20px;
}

.home-nav a {
  color: rgba(230,230,230,0.65);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 140ms;
}

.home-nav a:hover {
  color: rgba(230,230,230,0.95);
}

.hero-image-wrap {
  grid-column: 1 / 4;
  grid-row: 1 / 4;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.strip {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  background: rgba(0,0,0,0.55);
}

.strip-left {
  grid-column: 1;
  grid-row: 1 / 4;
  align-items: flex-end;
  padding-right: 14px;
}

.strip-right {
  grid-column: 3;
  grid-row: 1 / 4;
  align-items: flex-start;
  padding-left: 14px;
}

.strip a {
  color: rgba(230,230,230,0.5);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transition: color 140ms;
}

.strip a:hover {
  color: rgba(230,230,230,0.9);
}

.end-wrap {
  grid-column: 1 / 4;
  grid-row: 3;
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
}

#endBtn {
  background: transparent;
  border: 1px solid rgba(230,230,230,0.2);
  color: rgba(230,230,230,0.45);
  padding: 8px 18px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 140ms, color 140ms;
}

#endBtn:hover {
  border-color: rgba(230,230,230,0.4);
  color: rgba(230,230,230,0.75);
}

/* =========================
   SCREEN OVERLAY SYSTEM
   Maps onto the screen within room view rear.png
   Warehouse image: 1024x1024 square, displayed cover-fill
   Screen position (% of image): left 41.4%, top 13.5%, width 36%, height 47.9%
========================= */

#screenStage {
  position: fixed;
  /* Calibrated from measured screenshot coordinates at 1920x1080 */
  /* +1.5px right, +4px down, +2px all round expansion */
  left:   29.9%;
  top:    14%;
  width:  40.0%;
  height: 60.9%;
  z-index: 5;
  overflow: hidden;
}

/* All zones fill the screen area */
.screen-zone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.screen-zone.hidden {
  display: none;
}

.screen-zone.visible {
  display: flex;
}

/* ── Zone 0 — Logo interstitial ── */
.screen-logo {
  width: 55%;
  opacity: 0.85;
  display: block;
}

/* ── Zone 1 — Narrator ── */
.zone1-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.narrator-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.zone1-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding-top: 3%;
  /* Gradient to ensure text reads over the image */
  background: linear-gradient(to bottom, rgba(0,0,0,0.82) 0%, transparent 100%);
  padding-bottom: 30%;
}

.zone1-heading {
  font-size: clamp(8px, 1.4vw, 16px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(230,230,230,0.9);
  margin-bottom: 10px;
}

.zone1-cta {
  display: inline-block;
  font-size: clamp(7px, 1vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(230,230,230,0.55);
  text-decoration: none;
  border: 1px solid rgba(230,230,230,0.2);
  padding: 5px 14px;
  transition: color 140ms, border-color 140ms;
}

.zone1-cta:hover {
  color: rgba(230,230,230,0.9);
  border-color: rgba(230,230,230,0.5);
}

/* ── Zone 2 — Featured Release ── */
.zone2-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  overflow: hidden;
}

/* Cover art — fills screen, Ken Burns pulse */
.zone2-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: coverPulse 8s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes coverPulse {
  0%   { transform: scale(1.00) translate(0%,    0%);    }
  50%  { transform: scale(1.04) translate(-0.5%, 0.3%);  }
  100% { transform: scale(1.06) translate(-1.0%, 0.6%);  }
}

/* Dark overlay — fades in on hover */
.zone2-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.28);
  transition: background 200ms;
}

.zone2-link:hover .zone2-overlay {
  background: rgba(0,0,0,0.52);
}

/* Play button */
.zone2-play {
  width: clamp(28px, 4vw, 48px);
  height: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(230,230,230,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: border-color 200ms, transform 200ms;
}

.zone2-play svg {
  width: 40%;
  height: 40%;
  margin-left: 10%;
}

.zone2-link:hover .zone2-play {
  border-color: rgba(230,230,230,0.85);
  transform: scale(1.08);
}

/* Meta text below play button */
.zone2-meta {
  text-align: center;
}

.zone2-label {
  font-size: clamp(6px, 0.8vw, 10px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(230,230,230,0.4);
  margin-bottom: 5px;
}

.zone2-title {
  font-size: clamp(7px, 1vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230,230,230,0.85);
}

/* ── Zone 3 — Campaign Visual ── */
.zone3-inner {
  text-align: center;
  padding: 10%;
}

.zone3-text {
  font-size: clamp(9px, 1.4vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230,230,230,0.8);
}

/* =========================
   RELEASES PAGE
========================= */

body.releases {
  background: #000;
  color: #e6e6e6;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.rel-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 40px 1fr 36px;
  overflow: hidden;
}

/* ── Nav ── */
.rel-nav {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  background: rgba(0,0,0,0.65);
  padding: 0 20px;
  z-index: 20;
}

.rel-nav a {
  color: rgba(230,230,230,0.65);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 140ms;
}

.rel-nav a:hover {
  color: rgba(230,230,230,0.95);
}

.rel-nav a.nav-active {
  color: rgba(230,230,230,0.95);
}

/* ── Main ── */
.rel-main {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  padding: 2% 3%;
  gap: 16px;
  overflow: hidden;
}

/* ── Featured Strip ── */
.feat-strip {
  display: flex;
  align-items: stretch;
  width: 92%;
  max-width: 1100px;
  max-height: 62vh;
  background: #0a0a0a;
  border: 1px solid rgba(230,230,230,0.06);
  overflow: hidden;
  margin: 0 auto;
}

.feat-art {
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
  width: 20%;
}

.feat-art-scroll {
  display: flex;
  flex-direction: column;
  animation: artScroll 20s linear infinite;
}

.feat-art-scroll img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes artScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.feat-art-img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* ── Terminal Player ── */
.term-player {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border-left: 1px solid rgba(230,230,230,0.04);
  border-right: 1px solid rgba(230,230,230,0.04);
}

.term-header {
  background: rgba(230,230,230,0.03);
  padding: 5px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(230,230,230,0.04);
}

.term-header-label {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(230,230,230,0.25);
  text-transform: uppercase;
}

.term-header-sig {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(230,230,230,0.15);
}

.term-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.term-info {
  margin-bottom: 8px;
}

.term-feat-label {
  font-size: 7px;
  letter-spacing: 0.35em;
  color: rgba(230,230,230,0.2);
  text-transform: uppercase;
  margin: 0 0 4px 0;
}

.term-title {
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: 0.1em;
  color: rgba(230,230,230,0.88);
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
  margin: 0 0 3px 0;
}

.term-sub {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(230,230,230,0.35);
  text-transform: uppercase;
  margin: 0;
}

.term-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 5px;
}

.term-artist {
  font-size: 8px;
  letter-spacing: 0.25em;
  color: rgba(230,230,230,0.18);
  text-transform: uppercase;
}

.term-specs {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: rgba(230,230,230,0.12);
}

/* ── Waveform ── */
.term-waveform {
  background: rgba(230,230,230,0.015);
  border: 1px solid rgba(230,230,230,0.04);
  height: 56px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 10px 0;
}

.term-wave-bars {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2px;
  gap: 1px;
}

.wave-bar {
  flex: 1;
  background: rgba(230,230,230,0.1);
  min-width: 1px;
  transition: background 80ms linear;
}

.term-playhead {
  position: absolute;
  left: 0%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(230,230,230,0.5);
  transition: left 100ms linear;
}

/* ── Controls ── */
.term-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.term-time {
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.term-time-current {
  font-size: 16px;
  color: rgba(230,230,230,0.65);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.term-time-sep {
  font-size: 9px;
  color: rgba(230,230,230,0.15);
}

.term-time-total {
  font-size: 11px;
  color: rgba(230,230,230,0.22);
  font-variant-numeric: tabular-nums;
}

.term-transport {
  display: flex;
  align-items: center;
  gap: 14px;
}

.term-btn-skip {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(230,230,230,0.25);
  transition: color 140ms;
}

.term-btn-skip:hover {
  color: rgba(230,230,230,0.65);
}

.term-btn-play {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(230,230,230,0.18);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(230,230,230,0.7);
  transition: border-color 140ms;
}

.term-btn-play:hover {
  border-color: rgba(230,230,230,0.45);
}

.term-btn-vol {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(230,230,230,0.2);
  margin-left: 6px;
  transition: color 140ms, opacity 140ms;
}

.term-btn-vol:hover {
  color: rgba(230,230,230,0.45);
}

.term-signal {
  display: flex;
  align-items: center;
  gap: 5px;
}

.term-signal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(230,230,230,0.3);
  animation: sigPulse 2s ease-in-out infinite;
}

@keyframes sigPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.term-signal-text {
  font-size: 7px;
  letter-spacing: 0.25em;
  color: rgba(230,230,230,0.15);
  text-transform: uppercase;
}

/* ── Divider ── */
.term-divider {
  height: 1px;
  background: rgba(230,230,230,0.04);
  margin: 10px 0;
}

/* ── Purchase ── */
.term-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.term-purchase-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.term-price {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(230,230,230,0.6);
  font-family: Arial, Helvetica, sans-serif;
}

.term-direct {
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(230,230,230,0.12);
  text-transform: uppercase;
}

/* Shared buy/cart buttons (reused from earlier definition) */
.btn-buy {
  background: rgba(230,230,230,0.08);
  border: 1px solid rgba(230,230,230,0.2);
  color: rgba(230,230,230,0.7);
  padding: 6px 18px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  transition: background 140ms, border-color 140ms;
}

.btn-buy:hover {
  background: rgba(230,230,230,0.14);
  border-color: rgba(230,230,230,0.4);
}

.btn-cart {
  background: transparent;
  border: 1px solid rgba(230,230,230,0.1);
  color: rgba(230,230,230,0.4);
  padding: 6px 18px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  transition: color 140ms, border-color 140ms;
}

.btn-cart:hover {
  color: rgba(230,230,230,0.7);
  border-color: rgba(230,230,230,0.3);
}

/* ── Catalogue ── */
.catalogue {
  width: 100%;
  max-width: 1200px;
  flex: 1;
  margin: 0 auto;
}

.cat-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(230,230,230,0.25);
  margin: 0 0 10px 0;
  border-top: 1px solid rgba(230,230,230,0.05);
  padding-top: 12px;
}

.cat-empty {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230,230,230,0.15);
  margin: 0;
}

/* ── Footer ── */
.rel-footer {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0,0,0,0.85);
  border-top: 1px solid rgba(230,230,230,0.04);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230,230,230,0.25);
}

.footer-sep {
  opacity: 0.3;
}