:root {
  --bg: #08060e;
  --glow: #b48cff;
  --select: #c9aeff;
  --idle: #8a8498;
  --text: #ebe6f5;
  --muted: #a39db2;
  --line: rgba(180, 140, 255, 0.18);
  --key-bg: #221d2e;
  --font: "Archivo", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  /* Faint vertical scanlines and a vignette, after the PS2 boot screen. */
  background-image:
    radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--select);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--key-bg);
  z-index: 100;
}
.skip:focus { top: 16px; }

.sound-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--idle);
  background: none;
  border: 0;
  cursor: pointer;
}
.sound-toggle:hover { color: var(--select); }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle[aria-pressed="true"] .icon-off,
.sound-toggle[aria-pressed="false"] .icon-on { display: none; }

/* Background clips: dimmed, grayscale, washed violet, under the scanlines. */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  transition: opacity 600ms var(--ease-out);
}
.bg-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  filter: grayscale(1) contrast(1.15) brightness(0.34);
  transition: opacity 1200ms ease;
}
.bg-video video.is-active { opacity: 1; }
.bg-video::before,
.bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bg-video::before {
  background: #6d45e0;
  mix-blend-mode: color;
  opacity: 0.7;
}
.bg-video::after {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(8, 6, 14, 0.2) 30%, rgba(8, 6, 14, 0.85) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    rgba(8, 6, 14, 0.35);
}
/* Fainter behind section text so it stays easy to read. */
body.in-section .bg-video { opacity: 0.4; }

/* Screens: home and section crossfade in place. */
.screen {
  position: fixed;
  z-index: 1;
  inset: 0 0 64px;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 420ms;
}
body:not(.in-section) .section,
body.in-section .home {
  opacity: 0;
  visibility: hidden;
}
body.in-section .home { transform: scale(1.06); }
body:not(.in-section) .section { transform: translateY(12px); }
body.in-section .section,
body:not(.in-section) .home { transition-delay: 0s; }

/* Home */
.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 0 6vw;
}

.stage {
  position: relative;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  justify-self: end;
  margin-right: 4vw;
}
#orbs { position: absolute; inset: 0; width: 100%; height: 100%; }

.wordmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: #f3ecff;
  pointer-events: none;
}
/* Sized to sit inside the orb ring. */
.logo {
  width: 58%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(180, 140, 255, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: start;
  margin-left: 4vw;
  text-align: center;
}
.menu a {
  display: block;
  padding: 4px 18px;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  color: var(--idle);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.15);
  transition: color 160ms ease, text-shadow 160ms ease;
}
.menu a[aria-current="true"] {
  color: var(--select);
  text-shadow: 0 0 14px rgba(180, 140, 255, 0.7);
}
.menu a:focus-visible { outline-offset: 0; }

/* Footer control hints */
.hints {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  font-size: 1.2rem;
  color: var(--idle);
}
.hints-left { display: flex; gap: 32px; margin-left: auto; margin-right: auto; }
.hint { display: inline-flex; align-items: center; gap: 10px; }
.key {
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.06em;
  color: #d8c76e;
  background: linear-gradient(#3a3546, var(--key-bg));
  border: 1px solid #4a445a;
  border-radius: 3px;
}
.arrows { display: inline-flex; flex-direction: column; gap: 2px; }
.arrows .key { min-width: 1.6em; padding: 0 3px; font-size: 0.5rem; }
body.in-section .hint[data-when="home"],
body:not(.in-section) .hint[data-when="section"] { display: none; }

@media (pointer: coarse) {
  .hints, .back .key { display: none; }
  .screen { bottom: 0; }
}

/* Section screens */
.section {
  overflow-y: auto;
  padding: 7vh 6vw 48px;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 40px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.05rem;
  color: var(--idle);
  text-decoration: none;
}
.back:hover { color: var(--select); }
.section-title {
  margin: 12px 0 0;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.05;
  color: var(--select);
  text-shadow: 0 0 22px rgba(180, 140, 255, 0.45);
}
.section-title:focus { outline: none; }
.section-body { max-width: 760px; margin: 0 auto; }
.section-body p { margin: 0 0 1.1em; max-width: 64ch; }
.muted { color: var(--muted); }

.about-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}

/* Lists shared by Music, Shows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li {
  display: grid;
  gap: 4px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.rows > li:last-child { border-bottom: 1px solid var(--line); }

.release { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
.cover {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}
.cover-tile {
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.2;
  text-align: center;
  color: var(--select);
  background: radial-gradient(circle at 50% 40%, rgba(180, 140, 255, 0.22), transparent 70%);
  overflow-wrap: anywhere;
}
.release h3, .show h3 { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.release .meta { color: var(--muted); font-size: 0.95rem; }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease;
}
.btn:hover { border-color: var(--glow); color: var(--select); }
.btn-primary { border-color: var(--glow); color: var(--select); }

/* Song previews */
.preview-host {
  position: fixed;
  left: -10px;
  top: -10px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.preview-host iframe { width: 300px; height: 166px; border: 0; }
.preview-btn { gap: 8px; cursor: pointer; background: none; font: inherit; font-size: 0.95rem; font-weight: 600; }
.release.no-preview .preview-btn,
.now-playing.no-preview .preview-btn { display: none; }

.now-playing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 32px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.now-playing.is-previewing { border-color: var(--glow); box-shadow: 0 0 22px rgba(180, 140, 255, 0.3); }
.np-title { font-weight: 700; font-stretch: 112%; }
.now-playing.is-previewing .np-title { color: var(--select); }
.np-link { color: var(--muted); font-size: 0.95rem; }
.np-link:hover { color: var(--select); }
.now-playing.is-previewing .eq i { animation: eq 700ms ease-in-out infinite alternate; }
.now-playing.is-previewing .eq i:nth-child(2) { animation-delay: -250ms; }
.now-playing.is-previewing .eq i:nth-child(3) { animation-delay: -500ms; }
@media (prefers-reduced-motion: reduce) {
  .now-playing.is-previewing .eq i { animation: none; height: 80%; }
}
.release .cover { transition: box-shadow 200ms ease, border-color 200ms ease; }
.release.is-previewing .cover {
  border-color: var(--glow);
  box-shadow: 0 0 22px rgba(180, 140, 255, 0.5);
}
.release.is-previewing h3 { color: var(--select); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 12px; height: 12px; }
.eq i { flex: 1; height: 30%; background: currentColor; border-radius: 1px; }
.release.is-previewing .eq i { animation: eq 700ms ease-in-out infinite alternate; }
.release.is-previewing .eq i:nth-child(2) { animation-delay: -250ms; }
.release.is-previewing .eq i:nth-child(3) { animation-delay: -500ms; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .release.is-previewing .eq i { animation: none; height: 80%; }
}

.show { grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; }
.show time { font-weight: 700; font-stretch: 112%; color: var(--select); font-variant-numeric: tabular-nums; }
.show .venue { color: var(--muted); }

.videos { display: grid; gap: 28px; }
.video h3 { margin: 10px 0 0; font-size: 1.15rem; font-weight: 600; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}
.video-frame iframe, .video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.video-play::after {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(8, 6, 14, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23c9aeff'/%3E%3C/svg%3E") center / 32px no-repeat;
  border: 1px solid var(--glow);
  box-shadow: 0 0 24px rgba(180, 140, 255, 0.45);
}

.contact-email {
  display: inline-block;
  margin: 4px 0 32px;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--select);
  overflow-wrap: anywhere;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.empty p:last-child { margin-bottom: 0; }

/* Phones and narrow windows: ring on top, menu below. */
@media (max-width: 760px) {
  .home {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 8px;
    padding: 0 16px;
  }
  .stage { width: min(78vw, 340px); justify-self: center; margin: 0; }
  .menu { justify-self: center; margin: 0; }
  .menu a { font-size: 1.6rem; padding: 6px 18px; }
  .section { padding: 24px 16px 48px; }
  .release { grid-template-columns: 72px minmax(0, 1fr); }
  .cover { width: 72px; }
  .show { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .screen { transition: opacity 150ms linear, visibility 0s linear 150ms; transform: none !important; }
}
