@font-face { font-family: "Montserrat"; font-weight: 300; font-display: swap; src: url("fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
  --night: #070c18;
  --ink: #e9edf5;
  --soft: #b9c2d4;
  --muted: #7f8aa3;
  --line: rgba(170, 192, 235, 0.13);
  --glass: rgba(9, 15, 30, 0.52);
  --glass-strong: rgba(8, 13, 26, 0.78);
  --warm: #ffb46a;
  --cool: #9db8ff;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- fixed 3D background + film treatment ---------- */
#scene {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -3; display: block;
  opacity: 0; transition: opacity 1.6s ease;
}
html.scene-ready #scene { opacity: 1; }
.fallback {
  position: fixed; inset: 0; z-index: -4;
  background: url("covers/playlist-sleep.webp") center / cover no-repeat;
  filter: blur(18px) brightness(.55) saturate(1.1); transform: scale(1.08);
}
html.scene-ready .fallback { opacity: 0; transition: opacity 1.6s ease; }
.vignette {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(3, 6, 14, .7) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 12, 24, .62);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line); padding-block: 12px;
}
.brand img { width: 112px; height: auto; opacity: .95; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.nav a { color: var(--soft); transition: color .2s; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
@media (max-width: 640px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(56px, 12vh, 120px);
}
.hero-logo { width: clamp(230px, 36vw, 470px); height: auto; filter: drop-shadow(0 6px 40px rgba(120, 150, 230, .25)); }
.hero p.tagline {
  margin-top: 18px; max-width: 34ch;
  font-size: clamp(16px, 1.6vw, 21px); font-weight: 300; color: var(--soft); letter-spacing: .01em;
}
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: rgba(20, 30, 56, .7); border-color: rgba(170, 192, 235, .3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: rgba(255, 180, 106, .14); border-color: rgba(255, 180, 106, .45); }
.btn.primary:hover { background: rgba(255, 180, 106, .24); }
.btn svg { width: 18px; height: 18px; flex: none; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 46px; background: linear-gradient(var(--soft), transparent); opacity: .5;
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: .15; } 50% { transform: translate(-50%, 8px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ---------- sections ---------- */
main > section:not(.hero) { padding: clamp(80px, 14vh, 150px) var(--gutter); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cool); opacity: .8; }
h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 400; letter-spacing: -.01em; margin-top: 8px; }
.lede { color: var(--soft); font-weight: 300; max-width: 52ch; margin-top: 10px; }
.text-link { font-size: 14px; color: var(--soft); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.text-link:hover { color: var(--ink); border-color: var(--soft); }

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15);
  padding: clamp(20px, 3.4vw, 40px);
}

/* releases */
.releases {
  display: grid; gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr));
}
.release { display: block; }
.release .art {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #0b1222;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.release img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.92); }
.release .play {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(8, 13, 26, .72); border: 1px solid var(--line);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.release .play svg { width: 14px; height: 14px; margin-left: 2px; }
.release:hover .art, .release:focus-visible .art { transform: translateY(-4px); border-color: rgba(170, 192, 235, .3); box-shadow: 0 26px 50px -22px rgba(80, 110, 200, .55); }
.release:hover img, .release:focus-visible img { transform: scale(1.04); filter: saturate(1.05); }
.release:hover .play, .release:focus-visible .play { opacity: 1; transform: none; }
@media (hover: none) { .release .play { opacity: .9; transform: none; } }
.release .title, .release .artist, h2, .eyebrow, .lede, .tagline, .text-link { text-shadow: 0 1px 14px rgba(3, 6, 14, .75); }
.release .title { margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.release .artist { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cadence { margin-top: 30px; color: var(--muted); font-size: 13px; letter-spacing: .04em; }

/* playlists */
.playlists { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.playlist { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; padding: 16px; }
.playlist img { width: 132px; height: 132px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.playlist h3 { font-size: 19px; font-weight: 500; line-height: 1.25; }
.playlist p { color: var(--soft); font-size: 14px; font-weight: 300; margin-top: 6px; }
.playlist .btn { margin-top: 14px; padding: 9px 14px; font-size: 13px; }
@media (max-width: 420px) { .playlist { grid-template-columns: 96px 1fr; gap: 14px; } .playlist img { width: 96px; height: 96px; } }

/* artists */
.artists { display: flex; flex-wrap: wrap; gap: 10px; }
.artists a {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(12, 20, 40, .45); font-size: 15px; color: var(--soft);
  transition: color .2s, border-color .2s, background .2s;
}
.artists a:hover, .artists a:focus-visible { color: var(--ink); border-color: rgba(255, 180, 106, .5); background: rgba(255, 180, 106, .08); }

/* contact */
.contact { text-align: center; }
.contact .mail {
  display: inline-block; margin-top: 18px;
  font-size: clamp(20px, 3.4vw, 38px); font-weight: 300; letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255, 180, 106, .45); padding-bottom: 4px;
}
.contact .mail:hover { border-color: var(--warm); }
.contact .lede { margin-inline: auto; }

/* footer */
footer {
  padding: 40px var(--gutter) 46px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
  background: linear-gradient(transparent, rgba(5, 8, 16, .6));
}
footer img { width: 90px; opacity: .7; }
footer .legal { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
footer .company { font-size: 11px; letter-spacing: .14em; opacity: .75; }
footer nav { display: flex; gap: 18px; }
footer nav a:hover { color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
