/* =====================================================================
   Home: a scroll through each release. Every release has a full-screen
   section in its own look; their backgrounds sit fixed behind the page
   and cross-fade as you scroll (see home.js).
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #0d0b0a; } /* home.js switches this per section (Safari tints its toolbar from it) */
html, body { margin: 0; }
body { min-height: 100vh; color: #1d1a2e; font-family: 'Jost', system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Fixed, cross-fading backgrounds ---------- */
.scenes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; } /* home.js shows only the one or two in view */
.scene::before {
  /* Faint, lettering-free cover art, centered. The faded edges and softer
     color are baked into the *-fade.jpg images (a live CSS mask and filter
     were too heavy for phones). */
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(min(100vh, 100vw) * 1.15);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: center / contain no-repeat;
}
.scene::after { content: ''; position: absolute; inset: 0; }

/* Lost in Outer Space: the tunnel's light glowing out of the dark. The first
   scene is visible before the script runs. Its image edges are faded with a
   gradient layer on the image itself (cheap, unlike a mask). */
.scene-lost-in-outer-space { opacity: 1; visibility: visible; background: #0d0b0a; }
.scene-lost-in-outer-space::before {
  background:
    radial-gradient(closest-side, transparent 55%, #0d0b0a 100%),
    url('/assets/lost-in-outer-space-fade.jpg') center / contain no-repeat;
}
.scene-lost-in-outer-space::after {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(236, 90, 36, .16), transparent 60%),
    rgba(13, 11, 10, .84);
}

.scene-radio-magic { background: #f3e5ca; }
.scene-radio-magic::before { background-image: url('/assets/radio-magic-fade.jpg'); width: calc(min(100vh, 100vw) * 1.604); }
.scene-radio-magic::after {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, .45), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(150, 100, 50, .14), transparent 55%),
    rgba(243, 229, 202, .91);
}

.scene-classic-retrograde { background: #0c1233; }
.scene-classic-retrograde::before { background-image: url('/assets/cover-fade.jpg'); }
.scene-classic-retrograde::after {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(245, 165, 36, .2), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(232, 65, 44, .12), transparent 50%),
    linear-gradient(160deg, rgba(12, 18, 51, .91) 0%, rgba(11, 31, 77, .91) 55%, rgba(13, 58, 110, .91) 100%);
}

.scene-transmissions { background: #0f1013; }
.scene-transmissions::before { background-image: url('/assets/transmissions-fade.jpg'); }
.scene-transmissions::after {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(108, 192, 240, .16), transparent 55%),
    linear-gradient(90deg, rgba(21, 19, 15, .89) 0%, rgba(15, 16, 19, .89) 50%, rgba(11, 28, 46, .89) 100%);
}

/* About: dusk, from the photo's sunset */
.scene-about { background: #2a1a24; }
.scene-about::before { display: none; }
.scene-about::after {
  background:
    radial-gradient(ellipse at 80% 35%, rgba(255, 150, 70, .28), transparent 50%),
    linear-gradient(180deg, #1c1830 0%, #3a2030 55%, #5a2c22 100%);
}

/* ---------- Sections ---------- */
.release {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 16px;
  color: var(--text);
}
.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.cover-link { display: block; }
.cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .3s ease, opacity .8s ease;
}
a.cover-link:hover .cover { transform: translateY(-4px); }
.kicker { margin: 0; font-size: clamp(13px, 1.5vw, 16px); letter-spacing: .45em; text-transform: uppercase; color: var(--accent); }
.release h2 {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--heading, var(--text));
}
.meta { margin: 16px 0 0; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.meta span { white-space: nowrap; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 14px 24px 13px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-text);
  background: var(--accent);
  border-radius: 999px;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.ghost { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Second row: game button and/or a quiet text link to the tracklist */
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 22px; }
.text-link {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  opacity: .85;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity .15s, border-color .15s;
}
.text-link:hover { opacity: 1; border-bottom-color: currentColor; }
.text-link span { display: inline-block; margin-left: 4px; transition: transform .15s; }
.text-link:hover span { transform: translateX(3px); }

/* Radio Magic: cream, red and teal, with the release page's type */
#radio-magic { --text: #2a1d14; --heading: #0a4a58; --accent: #dd4214; font-family: 'Josefin Sans', system-ui, sans-serif; }
#radio-magic h2 { font-weight: 700; letter-spacing: .04em; font-size: clamp(34px, 4.6vw, 54px); white-space: nowrap; } /* one line */
#radio-magic .meta { font-weight: 600; opacity: 1; }

/* Lost in Outer Space: near-black, cream and the cover's signal orange,
   with a squared-off space-age face for the title */
#lost-in-outer-space { --text: #efe6d8; --heading: #efe6d8; --accent: #ec5a24; --btn-text: #0d0b0a; }
#lost-in-outer-space h2 { font-family: 'Orbitron', 'Jost', sans-serif; font-weight: 700; letter-spacing: .06em; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
#lost-in-outer-space .meta { font-weight: 500; opacity: .75; }

/* Classic Retrograde: night sky and sunset orange */
#classic-retrograde { --text: #efe2c6; --accent: #f5a524; --btn-text: #0c1233; }
.game-btn {
  display: inline-block;
  padding: 13px 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  word-spacing: -.4em;
  text-decoration: none;
  color: #fff;
  background: #d8084f;
  box-shadow: 0 4px 0 #8a0c36, 4px 8px 0 rgba(0, 0, 0, .35);
}
.game-btn:hover { background: #ff2a6d; }
.game-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a0c36; }

/* TRANSMISSIONS: smoke into sky blue */
#transmissions { --text: #ece3cf; --accent: #6cc0f0; --btn-text: #0f1013; }
#transmissions h2 { font-size: clamp(32px, 4.4vw, 48px); } /* one long word: keep it inside its column */

/* Covers and the photo fade in once loaded (they'd pop in if they finished
   loading after their section had already eased in) */
.cover.img-wait, .photo.img-wait { opacity: 0; }

/* About the artist */
#about { --text: #f3e6d6; --accent: #ffa65c; --btn-text: #2a1a24; }
#about .release-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  justify-self: center;
  border-radius: 4px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: opacity .8s ease;
}
#about h2 { font-size: clamp(30px, 3.8vw, 46px); }
.bio { margin-top: 22px; font-size: 17px; line-height: 1.7; opacity: .9; max-width: 56ch; }
.bio p { margin: 0 0 14px; }

/* Preview buttons (release.css) in each release's colors */
.home-preview { margin-top: 24px; }
#classic-retrograde {
  --rel-teal: #f5a524; --rel-teal-hover: #ffbb4a;   /* button */
  --rel-cream: #0c1233;                             /* play/pause icon */
  --rel-red: #efe2c6;                               /* progress ring */
  --rel-ink: #efe2c6;                               /* song name + time */
}
#transmissions {
  --rel-teal: #6cc0f0; --rel-teal-hover: #8fd0f5;
  --rel-cream: #0f1013;
  --rel-red: #ece3cf;
  --rel-ink: #ece3cf;
}
#lost-in-outer-space .rel-preview-text, #classic-retrograde .rel-preview-text, #transmissions .rel-preview-text { font-family: 'Jost', system-ui, sans-serif; }
#lost-in-outer-space .rel-preview-text b, #classic-retrograde .rel-preview-text b, #transmissions .rel-preview-text b { font-weight: 500; }

/* ---------- WW logo + name: large at the top, then a slim bar that follows ---------- */
body { --brand-color: #111; --bar-bg: #0d0b0a; }
body[data-theme="dark"] { --brand-color: #efe2c6; }
.brand-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  height: var(--bar-h, 60px);             /* the slim bar's height; the big logo hangs below it */
  padding: 40px 16px 0;
  pointer-events: none;
  transition: background-color .25s linear, box-shadow .8s ease; /* short: the color follows scrolling */
}
.brand-bar h1 { margin: 0; font-size: inherit; }
.brand {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--brand-color);
  transform-origin: 50% 0;
  transition: color .2s linear, transform .8s cubic-bezier(.45, 0, .25, 1);
}
.ww-mark {
  display: block;
  width: clamp(72px, 9vw, 108px);
  height: auto;
  margin-bottom: 18px;
  overflow: visible;
}
.name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1;
  letter-spacing: .34em;
  padding-left: .34em;
  text-transform: uppercase;
}
/* Once you scroll: a slim bar in the color of the release you're on. Solid,
   not see-through: Safari colors the strip behind the iPhone status bar (and
   its toolbar) from a solid bar at the top, and ignores a see-through one. */
body.compact .brand-bar {
  background-color: var(--bar-bg);
  box-shadow: 0 1px 0 rgba(127, 127, 127, .18);
}
/* Shrinking is one transform (sizes measured by home.js), so it glides
   instead of re-laying out the text on every frame */
body.compact .brand { transform: translate(var(--brand-x, 0), var(--brand-y, 0)) scale(var(--brand-s, 1)); }

/* Room for the large logo above the featured release */
main > .release:first-child { padding-top: calc(40px + clamp(72px, 9vw, 108px) * .48 + 18px + clamp(26px, 5vw, 48px) + 36px); }

.scroll-cue {
  align-self: center;
  margin-top: clamp(28px, 6vh, 56px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heading);
  opacity: .75;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue span { display: inline-block; margin-left: 6px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ---------- Section dots ---------- */
.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--brand-color);
  transition: color .2s linear;
}
.dots a {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background .3s, transform .3s;
}
.dots a[aria-current="true"] { background: currentColor; transform: scale(1.15); }
/* Keep content clear of the dots (right: 22px) where the window is too narrow
   for the side margin to do it; eases back to 16px by about 1120px wide */
@media (min-width: 761px) {
  .release { padding-left: clamp(16px, calc(56px - (100vw - 1040px) / 2), 56px); padding-right: clamp(16px, calc(56px - (100vw - 1040px) / 2), 56px); }
}
.dots span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }

/* ---------- Content eases in as each release arrives ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

footer {
  padding: 24px 16px 48px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #ece3cf;
}
footer p { margin: 14px 0 0; opacity: .6; }
.to-top { color: #6cc0f0; text-decoration: none; }

@media (max-width: 760px) {
  .release { padding: 40px 16px; }
  .release-grid, #about .release-grid { grid-template-columns: 1fr; text-align: center; }
  .photo { max-width: 320px; }
  .bio { text-align: left; margin-left: auto; margin-right: auto; }
  .cover-link { max-width: 380px; margin: 0 auto; }
  .links, .more, .release .rel-countdown, .release .rel-links, .release .rel-preview { justify-content: center; }
  .release .rel-preview-text { text-align: left; }
  .dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s; }
  .scroll-cue span { animation: none; }
  .cover { transition: none; }
}

/* ---------- Follow on Spotify / Apple Music ---------- */
.sp-icon { width: 20px; height: 20px; flex: none; display: block; }
.brand-bar .follow {
  position: absolute;
  --follow-top: 28px;
  top: var(--follow-top);
  right: 28px;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--brand-color);
  transition: color .2s linear, transform .8s cubic-bezier(.45, 0, .25, 1);
}
.brand-bar .follow a { color: inherit; opacity: .85; transition: opacity .2s, transform .2s; }
.brand-bar .follow a:hover { opacity: 1; transform: translateY(-1px); }
body.compact .brand-bar .follow { transform: translateY(calc(var(--bar-h, 60px) / 2 - 50% - var(--follow-top))); }
.follow-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 12px;
  border-radius: 999px;
  background: #1db954;
  color: #0b0b0b;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .2em;
  text-decoration: none;
  transition: filter .15s, transform .15s;
}
.follow-btn.apple { background: linear-gradient(135deg, #fa5c75, #fa233b); color: #fff; }
.follow-btn.insta { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); color: #fff; }
.follow-btn.tiktok { background: #111; color: #fff; }
.follow-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.follow-btn .sp-icon { width: 22px; height: 22px; }
footer .to-top { display: block; }
@media (max-width: 760px) {
  .brand-bar .follow { --follow-top: 18px; right: 16px; gap: 12px; }
  .brand-bar .follow > span { display: none; }   /* icons only on phones */
  .brand-bar .follow .sp-icon { width: 22px; height: 22px; }
  .follow-btn { font-size: 11px; letter-spacing: .14em; padding: 12px 18px; }
}
