:root {
  --bg: #050505;
  --fg: #f3f3ef;
  --muted: #8a8a84;
  --red: #ff133f;
  --cyan: #00f0ff;
  --x: 50vw;
  --y: 50vh;
  --glitch-x: 0px;
  --glitch-y: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  overflow-x: hidden;
  cursor: none;
  isolation: isolate;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 7px; }
main, footer { position: relative; z-index: 1; }
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#space-effects { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.astronaut { position: fixed; top: 0; left: 0; width: min(35vw, 41svh, 430px); aspect-ratio: 2 / 3; z-index: 0; pointer-events: none; will-change: transform; }
.astronaut-pose { position: absolute; inset: 0; transform-origin: center; will-change: transform; filter: grayscale(1); }
.astronaut .hero-img { filter: grayscale(1) contrast(1.08) brightness(.9); }
.astronaut .hero-red { filter: grayscale(1) sepia(1) saturate(15) hue-rotate(315deg) contrast(1.5) brightness(.5); opacity: .15; }
.astronaut .hero-cyan { filter: grayscale(1) sepia(1) saturate(15) hue-rotate(135deg) contrast(1.6) brightness(.5); opacity: .15; }

.noise,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}
.noise {
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  animation: noiseShift .19s steps(2) infinite;
}
.scanlines {
  opacity: .09;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.18) 4px);
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}
.wordmark { font-size: 14px; font-weight: 800; letter-spacing: .18em; }
.nav { display: flex; gap: 26px; font-size: 11px; letter-spacing: .16em; }
.nav a, .menu-button { opacity: .78; transition: opacity .2s ease; }
.nav a:hover, .menu-button:hover { opacity: 1; }
.menu-button {
  display: none;
  color: inherit;
  background: none;
  border: 0;
  letter-spacing: .16em;
  cursor: none;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 0;
}
.hero-media {
  position: absolute;
  top: 6svh; right: 6vw; bottom: 6svh;
  width: min(56vw, 59svh);
  z-index: -1;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
}
.hero-img {
  position: absolute;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  filter: grayscale(1) contrast(1.1) brightness(.82);
  transform: translate3d(calc(var(--glitch-x) * .18), calc(var(--glitch-y) * .18), 0);
  transition: transform 80ms linear;
}
.hero-red,
.hero-cyan {
  mix-blend-mode: screen;
  opacity: .22;
  will-change: transform, clip-path;
}
.hero-red {
  filter: grayscale(1) sepia(1) saturate(15) hue-rotate(315deg) contrast(1.5) brightness(.55);
  transform: translate3d(calc(-3px + var(--glitch-x) * 1.2), var(--glitch-y), 0);
  clip-path: inset(0 0 0 0);
}
.hero-cyan {
  filter: grayscale(1) sepia(1) saturate(15) hue-rotate(135deg) contrast(1.6) brightness(.55);
  transform: translate3d(calc(3px + var(--glitch-x) * -1.2), calc(var(--glitch-y) * -.8), 0);
  clip-path: inset(0 0 0 0);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.18), transparent 24%);
}
.hero-copy {
  width: calc(100% - 12vw);
  align-self: end;
  padding-bottom: 16svh;
  text-align: left;
}
.slash-mark {
  font-size: clamp(70px, 8vw, 150px);
  line-height: .8;
  font-weight: 200;
  margin-bottom: 28px;
  text-shadow: -5px 0 var(--red), 5px 0 var(--cyan);
}
.giant {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(48px, 7.5vw, 120px);
  line-height: .84;
  letter-spacing: -.07em;
  font-weight: 900;
}
.subline { margin: 30px 0; font-size: 10px; letter-spacing: .25em; opacity: .65; }
.cta {
  display: inline-flex;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.65);
  font-size: 11px;
  letter-spacing: .28em;
  margin-top: 30px;
  min-width: 120px;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  background: rgba(5,5,5,.35);
  color: var(--fg);
  cursor: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cta:hover { background: var(--fg); color: #050505; }
.coordinates,
.scroll-note {
  position: absolute;
  bottom: 24px;
  font-size: 9px;
  letter-spacing: .2em;
  opacity: .5;
}
.coordinates { left: 28px; }
.scroll-note { right: 28px; }

.panel {
  min-height: 78vh;
  padding: clamp(70px, 9vw, 150px) clamp(24px, 6vw, 90px);
  border: 0;
  position: relative;
}
.eyebrow { font-size: 10px; letter-spacing: .25em; color: var(--muted); margin-bottom: 70px; }
.panel h2 { margin: 0; font-size: clamp(55px, 10vw, 170px); line-height: .82; letter-spacing: -.065em; }
.music-panel { display: flex; flex-direction: column; justify-content: center; }
.track-layout { display: grid; grid-template-columns: .65fr 1fr; gap: 8vw; align-items: center; }
.track-symbol { font-size: clamp(200px, 32vw, 520px); line-height: .65; font-weight: 200; text-shadow: -10px 0 rgba(255,19,63,.6), 10px 0 rgba(0,240,255,.6); }
.track-copy h2 { font-size: clamp(50px, 7vw, 110px); }
.track-copy p { max-width: 520px; font-size: 16px; line-height: 1.8; text-transform: none; color: #bcbcb5; }
.signal-player { max-width: 600px; margin-top: 38px; }
.player-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.player-play { border: 0; background: none; color: var(--fg); padding: 12px 0; min-height: 44px; font-size: 14px; letter-spacing: .2em; cursor: none; }
.track-time { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .07em; white-space: nowrap; }
.time-divider, #duration { color: #999; }
.seek-control { position: relative; height: 90px; margin-top: 18px; border-radius: 2px; }
.seek-control:focus-within { outline: 1px solid var(--cyan); outline-offset: 6px; }
.signal-player { --bass: 0; --bass-shift: 0px; --bass-skew: 0deg; }
.waveform { position: absolute; top: 10px; left: 0; width: 100%; height: 70px; overflow: visible; pointer-events: none; transform: translateX(var(--bass-shift)) skewX(var(--bass-skew)); }
body.is-playing .waveform { filter: drop-shadow(calc(var(--bass) * -5px) 0 rgba(255,19,63,calc(var(--bass) * .5))) drop-shadow(calc(var(--bass) * 5px) 0 rgba(0,240,255,calc(var(--bass) * .5))); }
#seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.audio-status { margin-bottom: 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 38px; font-size: 10px; letter-spacing: .18em; }
.platforms a { border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 5px; }

.split-panel { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 8vw; }
.split-panel h2 { font-size: clamp(60px, 9vw, 145px); }
.split-panel p { text-transform: none; font-size: 16px; line-height: 1.7; color: #aaa; max-width: 430px; }

.merch-panel h2 { margin-bottom: 0; }
.coming-soon-panel { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.coming-soon-panel .eyebrow { margin-bottom: 40px; }
.merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #343434; }
.merch-grid article { min-height: 280px; padding: 22px 18px; border-right: 1px solid #343434; display: flex; flex-direction: column; justify-content: space-between; }
.merch-grid article:last-child { border-right: none; }
.merch-grid span, .merch-grid em { font-size: 9px; font-style: normal; letter-spacing: .2em; color: #777; }
.merch-grid strong { font-size: clamp(24px, 3vw, 52px); letter-spacing: -.04em; }

.contact-panel { min-height: 95vh; display: flex; flex-direction: column; justify-content: center; }
.contact-panel h2 { margin-bottom: 65px; }
.email { font-size: clamp(16px, 2.5vw, 38px); letter-spacing: .05em; width: fit-content; border-bottom: 1px solid #555; padding-bottom: 10px; }

footer { display: flex; justify-content: space-between; padding: 24px 28px; font-size: 9px; letter-spacing: .18em; color: #777; }

.glitch-text { position: relative; }
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  white-space: pre-line;
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
body.glitching .glitch-text::before {
  opacity: .55;
  color: var(--red);
  transform: translate(-4px, 0);
  clip-path: inset(8% 0 58% 0);
}
body.glitching .glitch-text::after {
  opacity: .55;
  color: var(--cyan);
  transform: translate(5px, 0);
  clip-path: inset(56% 0 12% 0);
}

.cursor {
  position: fixed;
  z-index: 999;
  width: 9px; height: 9px;
  border-radius: 50%;
  pointer-events: none;
  left: 0; top: 0;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: difference;
}
.cursor-main { background: white; }
.cursor-red { background: var(--red); opacity: .8; width: 7px; height: 7px; }
.cursor-cyan { background: var(--cyan); opacity: .8; width: 7px; height: 7px; }

body.glitching .hero-red { opacity: .55; clip-path: polygon(0 0,100% 0,100% 18%,0 25%,0 42%,100% 36%,100% 61%,0 68%,0 82%,100% 77%,100% 100%,0 100%); }
body.glitching .hero-cyan { opacity: .48; clip-path: polygon(0 0,100% 0,100% 11%,0 17%,0 33%,100% 29%,100% 55%,0 60%,0 74%,100% 70%,100% 100%,0 100%); }
body.glitching main { transform: translateX(var(--glitch-x)); }

@keyframes noiseShift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1.4%, 1%); }
  50% { transform: translate(1.2%, -1.4%); }
  75% { transform: translate(.7%, 1.1%); }
  100% { transform: translate(0,0); }
}

@media (max-width: 760px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .site-header { padding: 18px 18px; }
  .menu-button { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 56px; left: 18px; right: 18px;
    padding: 18px;
    background: rgba(0,0,0,.92);
    border: 1px solid #333;
    flex-direction: column;
    gap: 18px;
  }
  .nav.open { display: flex; }
  .hero-media { top: 60px; right: 18px; bottom: auto; width: calc(100% - 36px); height: 65svh; }
  .astronaut { width: min(40vw, 25svh, 210px); }
  .hero-copy { width: calc(100% - 36px); padding-bottom: 11svh; }
  .slash-mark { font-size: 50px; margin-bottom: 18px; }
  .hero-img { object-position: 50% 50%; }
  .giant { font-size: clamp(38px, 11.8vw, 70px); max-width: 11ch; }
  .cta { margin-top: 22px; }
  .cta, .player-play { cursor: pointer; }
  .subline { max-width: 26ch; line-height: 1.5; }
  .coordinates { left: 18px; }
  .scroll-note { right: 18px; }
  .panel { min-height: auto; padding: 90px 18px; }
  .eyebrow { margin-bottom: 44px; }
  .track-layout, .split-panel { grid-template-columns: 1fr; }
  .track-symbol { font-size: 190px; }
  .split-panel p { margin-top: 65px; }
  .merch-grid { grid-template-columns: 1fr; }
  .merch-grid article { border-right: 0; border-bottom: 1px solid #343434; min-height: 190px; }
  footer { padding: 22px 18px; flex-direction: column; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-red, .hero-cyan { display: none; }
  body { cursor: auto; }
  .cursor { display: none; }
  body.glitching main, .hero-img { transform: none !important; }
  .glitch-text::before, .glitch-text::after { display: none; }
  .waveform { transform: none !important; filter: none !important; }
  .seek-control::before, .seek-control::after { display: none; }
}

.astronaut-mesh { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(1) contrast(1.08) brightness(.9); }
.mesh-ready .hero-img { visibility: hidden; }
body.glitching .astronaut-mesh { filter: grayscale(1) contrast(1.3) brightness(.9) drop-shadow(-3px 0 rgba(255,19,63,.65)) drop-shadow(3px 0 rgba(0,240,255,.65)); }

.astronaut:focus-visible { outline: 1px dashed rgba(255,255,255,.55); outline-offset: 4px; border-radius: 40%; }
