/* ============================================================
   ED3-Studio
   White frame, gradient bookends, black release console.
   ============================================================ */

/* Eurostile Bold, self-hosted. Used for the wordmark, track titles and the @
   in the contact address; everything else is Helvetica Neue.

   The weight is declared as a 400-700 range on purpose. The file's own
   metadata reports Regular (usWeightClass 400, fsSelection REGULAR, macStyle
   clear) even though the artwork is bold. Chrome trusts the @font-face
   descriptor and matched a flat 700, but Safari also consults the font's
   internal metadata and refused the match, silently falling back to
   Helvetica. A range matches either request against this one face without
   synthesising a second layer of weight on top. */
@font-face {
  font-family: "Eurostile";
  src: url("../fonts/eurostile-bold.woff") format("woff"),
       url("../fonts/eurostile-bold.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white:      #FFFFFF;
  --black:      #000000;
  --ink:        #111111;
  --ink-mute:   #8A8A8A;
  --on-dark:    #FFFFFF;
  --on-dark-mid:rgba(255, 255, 255, 0.62);
  --on-dark-low:rgba(255, 255, 255, 0.30);

  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --logo:    "Eurostile", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* one radius scale for the whole site. --radius is for surfaces (album
     cover, tracklist, menu), --radius-sm for controls and for items nested
     inside an already-rounded surface, where matching the parent reads
     wrong. The portrait circle is a mask, not a corner, so it keeps 50%. */
  --radius:    12px;
  --radius-sm:  8px;

  --nav-h: clamp(56px, 6vw, 74px);
  --dwell: 26svh;
  --rail: clamp(1.25rem, 4.5vw, 3.25rem);
  --max:  1440px;
  --ease: cubic-bezier(.22, .68, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; cursor: pointer; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--rail); }

/* every anchor target clears the sticky masthead */
:target, [id] { scroll-margin-top: var(--nav-h); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--black); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

/* ============================================================
   Grain, laid over every gradient field
   ============================================================ */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
}
.masthead__mark {
  font-family: var(--logo);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.masthead__nav { display: flex; gap: clamp(1.1rem, 3vw, 2.6rem); }
.masthead__nav a {
  font-style: italic;
  font-weight: 700;
  font-size: clamp(.85rem, 1.2vw, .98rem);
  color: var(--ink-mute);
  transition: color .2s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); font-weight: 700; }

/* ============================================================
   Gradient fields (hero + contact)
   ============================================================ */
.field {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.field__mesh {
  position: absolute; inset: -18%;
  z-index: -1;
  filter: blur(48px) saturate(1.28);
  transform: translateZ(0);
}

/* hero palette: magenta, ember, violet, jade */
.field--hero { min-height: 80svh; }
.field--hero .field__mesh {
  background:
    radial-gradient(38% 46% at 16% 22%, #FF2D78 0%, transparent 62%),
    radial-gradient(34% 40% at 40% 10%, #C2185B 0%, transparent 60%),
    radial-gradient(46% 52% at 26% 88%, #FF6A00 0%, transparent 64%),
    radial-gradient(40% 44% at 56% 74%, #FF9E2C 0%, transparent 62%),
    radial-gradient(44% 56% at 62% 34%, #7B2FF7 0%, transparent 62%),
    radial-gradient(46% 62% at 92% 26%, #00D6B4 0%, transparent 62%),
    radial-gradient(40% 52% at 88% 82%, #00A8E8 0%, transparent 60%),
    linear-gradient(115deg, #2B0B3F 0%, #14202E 55%, #063B3A 100%);
}

/* contact palette: rose, violet, cobalt, jade */
.field--contact { min-height: clamp(300px, 34vw, 460px); }
.field--contact .field__mesh {
  background:
    radial-gradient(40% 52% at 12% 26%, #FFB3D9 0%, transparent 64%),
    radial-gradient(38% 46% at 30% 78%, #C13BC9 0%, transparent 62%),
    radial-gradient(42% 50% at 52% 30%, #7A2FF2 0%, transparent 62%),
    radial-gradient(44% 54% at 74% 76%, #2B5BFF 0%, transparent 62%),
    radial-gradient(46% 58% at 94% 30%, #14C7C7 0%, transparent 62%),
    linear-gradient(120deg, #F3E6FF 0%, #8E5BE0 42%, #1E4BD8 72%, #12B5B5 100%);
}

/* ---- hero headline ---- */
.hero__copy {
  position: relative; z-index: 2;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
.hero__line {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 6.6vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -5px;
  color: rgba(255, 255, 255, 0.52);
  max-width: 23.4ch;
  margin-inline: auto;
}
.hero__line em {
  font-style: italic;
  font-weight: 700;
  color: #fff;
}

/* ---- contact ---- */
.contact__inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
/* the address is Helvetica Neue; only the @ is Eurostile. Eurostile has no
   italic face, so the @ stays upright rather than take a synthetic slant. */
.contact__mail {
  font-family: var(--body);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.4rem, 4.2vw, 3rem);
  letter-spacing: -3px;
  color: #fff;
  display: inline-block;
  padding-bottom: .12em;
  border-bottom: 2px solid rgba(255,255,255,0);
  transition: border-color .25s var(--ease);
}
.contact__mail .at { font-family: var(--logo); font-style: normal; font-weight: 700; }
.contact__mail:hover { border-bottom-color: rgba(255,255,255,.85); }
.contact__social {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.5rem; margin-top: 1.75rem;
}
.contact__social a {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-style: italic; font-weight: 700; font-size: .95rem;
  color: rgba(255,255,255,.82);
  transition: color .2s var(--ease);
}
.contact__icon { width: 32px; height: 32px; display: block; }
.contact__social a:hover { color: #fff; }

/* ============================================================
   Releases: a stack of sticky cards.
   Each album has a tall slot in normal flow; the card inside sticks
   under the masthead. The next slot scrolls its card up and over the
   one before, so releases deal themselves over each other.
   ============================================================ */
.releases { background: var(--black); color: var(--on-dark); }

/* the slot: normal flow, defines how long each album holds the screen */
.album {
  position: relative;
  z-index: var(--row, 0);
  min-height: calc(100svh + var(--dwell));
}
.album:last-child { min-height: calc(100svh - var(--nav-h)); }

/* the card: sticks, and is opaque so it covers what came before */
.album__card {
  position: sticky;
  top: var(--nav-h);
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}

/* the artwork, blown up and blurred, lighting its own card */
.album__glow {
  position: absolute; inset: 0;
  z-index: -2;
  background-size: cover; background-position: center;
  filter: blur(80px) saturate(1.8);
  opacity: 0;
  transform: scale(1.16);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
  pointer-events: none;
}
.album.is-active .album__glow { opacity: .4; transform: scale(1.04); }

/* soft sheen so a card is never flat black */
.album__card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 150% at 78% 44%, rgba(255,255,255,.08) 0%, transparent 58%);
}

/* ---- title row ---- */
.album__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.album__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 8.4vw, 6.2rem);
  letter-spacing: -0.06em;
  line-height: .92;
  color: rgba(255,255,255,.5);
  transition: color .65s var(--ease), transform .8s var(--ease);
  transform: translateY(.06em);
}
.album.is-active .album__title { color: #fff; transform: none; }

/* ---- panel: artwork + tracklist, revealed when the card is active ---- */
.album__panel {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .85s var(--ease);
}
.album.is-active .album__panel { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .album__panel {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: start;
    padding-left: clamp(2rem, 10vw, 10rem);
  }
}

/* ---- artwork + platform buttons ---- */
.album__artwrap { max-width: 300px; }
.album__art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.7);
  transform: scale(.94);
  transition: transform 1s var(--ease);
}
.album.is-active .album__art { transform: none; }
.album__art img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.album__meta {
  margin: .5rem 0 0;
  font-style: italic; font-size: .76rem;
  color: var(--on-dark-low);
}

/* equal-width columns spanning the artwrap, so the buttons line up with the
   cover above them. auto-columns rather than a fixed 1fr 1fr, so a release
   with only one platform still gets a full-width button instead of a gap. */
.stores {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: .5rem;
  margin-top: .85rem;
}
.store {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .7rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  line-height: 1.1;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.store:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.store__badge { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.brand { width: 100%; height: 100%; display: block; }
.store__txt { display: flex; flex-direction: column; }
.store__eyebrow { font-size: .56rem; letter-spacing: .04em; color: var(--on-dark-low); }
.store__name { font-size: .78rem; font-weight: 600; color: #fff; }

/* ---- tracklist ---- */
.tracks {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
}
.track {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .5rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.055);
  position: relative;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .5s var(--ease), transform .55s var(--ease);
}
.album.is-active .track {
  opacity: 1; transform: none;
  transition-delay: calc(180ms + var(--i, 1) * 34ms);
}
.track:last-child { border-bottom: 0; }
.track::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.06);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.track:hover::before, .track:focus-within::before { opacity: 1; }
.track > * { position: relative; z-index: 1; }

.track__no  { font-size: .7rem; color: var(--on-dark-low); font-variant-numeric: tabular-nums; }
.track__title {
  font-family: var(--logo);
  font-weight: 700;
  font-size: 17px;
  color: rgba(255,255,255,.92);
}
.track__right { display: flex; align-items: center; gap: .7rem; }
.track__dur { font-size: .72rem; color: var(--on-dark-low); font-variant-numeric: tabular-nums; }

/* per-track listen dropdown */
.listen { position: relative; }
/* Each row is transformed for the stagger, so every row is its own stacking
   context and later rows would paint over an open menu. Lift the open row. */
.track:has(details.listen[open]) { z-index: 40; }
.listen__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .5rem;
  font-size: calc(.68rem + 2px);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .18s var(--ease);
}
.listen__btn:hover { background: rgba(255,255,255,.2); }
.listen__btn svg { width: 9px; height: 9px; }
/* only the chevron flips; the headphones icon is not a state indicator */
.listen__btn .chev { transition: transform .25s var(--ease); }
.listen[open] .listen__btn .chev { transform: rotate(180deg); }
.listen__menu {
  position: absolute; right: 0; top: calc(100% + 5px); z-index: 20;
  min-width: 140px;
  background: #1B1B1B;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.7);
  overflow: hidden;
  padding: .3rem;
}
.listen__menu a {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .55rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  color: rgba(255,255,255,.86);
}
.listen__menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.listen__badge {
  width: 18px; height: 18px;
  flex: none; display: grid; place-items: center;
}

/* ---- long tracklists never overflow their card ---- */
@media (min-width: 900px) {
  .tracks { max-height: calc(100svh - var(--nav-h) - 15rem); overflow-y: auto; }
}

/* ---- below 900px the stack is dropped: cards would not fit a phone
        screen, so releases render as a plain, fully open list ---- */
@media (max-width: 899px) {
  .album { min-height: 0; }
  .album__card {
    position: static;
    min-height: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .album__title { color: #fff; transform: none; }
  .album__panel { opacity: 1; transform: none; }
  .album__glow { opacity: .3; transform: none; }
  .album__art { transform: none; }
  .track { opacity: 1; transform: none; }

  /* below the stack breakpoint the artwork column is centred: title, cover,
     meta line and the platform buttons all share one centre axis. The
     tracklist keeps its own left-aligned rhythm. */
  .album__head { justify-content: center; text-align: center; }
  .album__artwrap { margin-inline: auto; }
  .album__meta { text-align: center; }
  .store { justify-content: center; }
}

/* ============================================================
   About
   ============================================================ */
.about { background: var(--white); padding-block: clamp(3.5rem, 9vw, 7rem); }
.about__grid {
  display: grid; gap: clamp(1.75rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 980px; margin-inline: auto;
}
@media (min-width: 820px) {
  .about__grid { grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); }
}
.about__portrait {
  width: 100%; max-width: 260px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}
.about__body p {
  font-style: italic;
  font-weight: 600;
  letter-spacing: -1px;
  font-size: calc(clamp(.95rem, 1.35vw, 1.06rem) + 2px);
  line-height: 1.62;
  margin: 0 0 1.1rem;
  color: var(--ink);
}
.about__body p:last-child { margin-bottom: 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--white);
  padding-block: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}
.footer p {
  margin: 0;
  font-style: italic; font-size: .88rem; color: var(--ink-mute);
}

/* ============================================================
   Motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .75s var(--ease);
}

.hero__line { opacity: 0; transform: translateY(22px) scale(.985); }
.is-loaded .hero__line {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease) .1s, transform 1s var(--ease) .1s;
}

.masthead__inner > * { opacity: 0; transform: translateY(-8px); }
.is-loaded .masthead__inner > * {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease) calc(var(--step, 0) * 90ms),
              transform .55s var(--ease) calc(var(--step, 0) * 90ms);
}

/* Without JS nothing can be marked active, so every card renders open
   and the stack is dropped: a plain, complete, readable page. */
.no-js .reveal, .no-js .hero__line, .no-js .masthead__inner > * { opacity: 1; transform: none; }
.no-js .album { min-height: 0; }
.no-js .album__card { position: static; min-height: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.no-js .album__title { color: #fff; transform: none; }
.no-js .album__panel { opacity: 1; transform: none; }
.no-js .album__glow { opacity: .3; }
.no-js .album__art { transform: none; }
.no-js .track { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__line, .masthead__inner > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .album__glow, .album__art, .album__title,
  .album__panel, .track { transition: none !important; }
}
