/* ============================================================
   Pietro Soddu | BENTO GRID & CINEMATIC REVAMP
   Palette: deep cinematic navy. Type: Instrument Serif + Manrope.
   Theme: High-budget glassmorphism, floating UI, volumetric lighting.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #04060d;
  --bg-elev-1:    rgba(15, 23, 42, 0.4);
  --bg-elev-2:    rgba(20, 30, 55, 0.5);
  --bg-card:      rgba(13, 20, 40, 0.35);
  --bg-glass:     rgba(7, 11, 22, 0.65);
  --bg-header:    rgba(4, 6, 13, 0.5);
  
  /* Text */
  --fg:           #ffffff;
  --fg-soft:      #d1d7e5;
  --fg-mute:      #94a1b8;
  --fg-dim:       #475569;

  /* Accents: Electric Periwinkle */
  --accent:       #7c98ff;
  --accent-2:     #a5b8ff;
  --accent-soft:  #536bce;
  --accent-glow:  rgba(124, 152, 255, 0.35);
  --accent-tint:  rgba(124, 152, 255, 0.08);

  /* Rules & Glass Borders */
  --hairline:     rgba(255, 255, 255, 0.05);
  --hairline-2:   rgba(124, 152, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shine:  inset 0 1px 1px rgba(255, 255, 255, 0.15);

  /* Fonts */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans:    "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --w-page:       1200px;
  --w-text:       62ch;
  --pad-x:        clamp(24px, 5vw, 64px);
  --pad-section:  clamp(120px, 15vw, 200px);

  /* Radii */
  --r-sm:         8px;
  --r-md:         16px;
  --r-lg:         24px;
  --r-xl:         32px;
  --r-pill:       999px;

  /* Motion */
  --ease-cinematic: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast:       250ms var(--ease-cinematic);
  --t-med:        500ms var(--ease-cinematic);
  --t-slow:       800ms var(--ease-cinematic);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg); color: var(--fg);
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans); font-size: 16.5px; font-weight: 400; line-height: 1.6; letter-spacing: -0.01em;
  min-height: 100vh; position: relative; overflow-x: hidden;
  background: 
    radial-gradient(circle at 100% 0%, rgba(124, 152, 255, 0.08), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(83, 107, 206, 0.05), transparent 50%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; transition: all var(--t-fast); }
a:hover { color: var(--accent-2); text-decoration: underline; text-decoration-color: var(--accent-2); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; top: -100px; left: 16px; background: var(--accent); color: var(--bg); padding: 12px 20px; font-weight: 600; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 16px; }

/* ============================================================
   BACKGROUND LAYERS (Deep Atmospheric VFX)
   ============================================================ */
.bg-aurora {
  position: fixed; inset: -50%; pointer-events: none; z-index: 0;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(124, 152, 255, 0.12) 60deg, transparent 140deg,
    rgba(83, 107, 206, 0.08) 220deg, transparent 300deg, rgba(124, 152, 255, 0.08) 360deg);
  filter: blur(140px); opacity: 0.7;
  animation: auroraSpin 90s linear infinite;
}
@keyframes auroraSpin { to { transform: rotate(360deg); } }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 0%, transparent 70%);
}

.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(100px); opacity: 0.6; mix-blend-mode: screen; }
.orb-a {
  width: 600px; height: 600px; top: -200px; right: -150px;
  background: radial-gradient(circle at center, rgba(124, 152, 255, 0.35), transparent 70%);
  animation: orbDrift 25s ease-in-out infinite alternate;
}
.orb-b {
  width: 500px; height: 500px; top: 45vh; left: -200px;
  background: radial-gradient(circle at center, rgba(83, 107, 206, 0.25), transparent 70%);
  animation: orbDrift 30s ease-in-out -10s infinite alternate;
}
@keyframes orbDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, -40px, 0) scale(1.15); }
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-bar-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, transparent, var(--accent) 50%, var(--accent-2));
  box-shadow: 0 0 16px var(--accent-glow); transition: width 100ms linear;
}

.container { width: 100%; max-width: var(--w-page); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); position: relative; z-index: 2; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: var(--bg-header); border-bottom: 1px solid var(--glass-border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 90px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--fg); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-name em { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.25em; margin-left: 3px; }
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(124, 152, 255, 0.2), 0 0 16px var(--accent-glow);
  animation: dotPulse 3s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(124, 152, 255, 0.15), 0 0 12px rgba(124, 152, 255, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(124, 152, 255, 0.1), 0 0 24px rgba(124, 152, 255, 0.8); }
}

.nav { display: flex; gap: clamp(20px, 3vw, 40px); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { color: var(--fg-mute); position: relative; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med); }
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .header-row { min-height: 76px; }
  .nav { gap: 16px; font-size: 12px; }
  .brand { gap: 10px; font-size: 14px; }
  .brand-name em { font-size: 1.15em; margin-left: 2px; }
}

/* ============================================================
   TYPE
   ============================================================ */
.eyebrow {
  margin: 0 0 24px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; font-family: var(--font-mono);
  display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: var(--accent-tint); border: 1px solid var(--hairline-2);
}

.display {
  font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: -0.025em;
  font-size: clamp(64px, 11vw, 150px); margin: 0 0 32px;
  background: linear-gradient(180deg, #ffffff 0%, #aab4c8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.display em {
  font-style: italic; font-weight: 400; background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.section-title { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; font-size: clamp(48px, 7vw, 84px); margin: 0 0 20px; color: var(--fg); }
.section-lede { font-family: var(--font-sans); font-size: 17px; line-height: 1.7; color: var(--fg-mute); max-width: var(--w-text); font-weight: 400; margin: 0; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--fg-soft); max-width: 52ch; margin-bottom: 48px; line-height: 1.6; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(120px, 16vw, 240px) 0 clamp(80px, 14vw, 160px); border-bottom: 1px solid var(--glass-border); overflow: hidden; display: flex; flex-direction: column; }
.hero-spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 800ms var(--ease-cinematic);
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 152, 255, 0.15), transparent 60%); mix-blend-mode: screen;
}

/* MARQUEE BACKGROUND */
.hero-marquee {
  position: absolute; top: 15%; left: 0; width: 100%; z-index: 0; pointer-events: none;
  overflow: hidden; white-space: nowrap; transform: rotate(-2deg) scale(1.1);
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.marquee-track { display: inline-flex; animation: marqueeScroll 60s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-size: 160px; font-weight: 400; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04); padding-right: 40px; letter-spacing: 0.05em;
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.hero-wrap { max-width: 960px; position: relative; z-index: 2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }

/* High-End Primary Button */
.btn-primary {
  --mx: 0px; --my: 0px; --lift: 0px; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border: none; cursor: pointer; text-decoration: none; border-radius: var(--r-pill);
  position: relative; overflow: hidden; isolation: isolate;
  transform: translate3d(var(--mx), calc(var(--my) + var(--lift)), 0); transition: all var(--t-med); will-change: transform;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #040710; box-shadow: 0 16px 40px -12px var(--accent-glow), var(--glass-shine);
}
.btn-primary::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent); z-index: 1; pointer-events: none; }
.btn-primary .btn-label, .btn-primary .btn-arrow { position: relative; z-index: 2; }
.btn-primary .btn-arrow { width: 18px; height: 18px; display: inline-grid; place-items: center; transition: transform var(--t-med); }
.btn-primary .btn-arrow svg { width: 18px; height: 18px; }
.btn-primary:hover { --lift: -3px; box-shadow: 0 24px 50px -10px rgba(124, 152, 255, 0.45), 0 0 0 2px rgba(124, 152, 255, 0.3), var(--glass-shine); color: #040710; text-decoration: none;}
.btn-primary:hover .btn-arrow { transform: translateX(6px); }
.btn-primary:active { --lift: 0px; }
.btn-shine { position: absolute; top: 0; left: -150%; width: 50%; height: 100%; z-index: 2; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); transform: skewX(-25deg); transition: left 800ms var(--ease-cinematic); }
.btn-primary:hover .btn-shine { left: 150%; }

/* GLASS PANEL UTILITY (For featured hero & bento) */
.glass-panel {
  background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), var(--glass-shine); position: relative; overflow: hidden;
}

/* HERO FEATURED TRACK */
.hero-featured {
  margin: clamp(64px, 10vw, 100px) 0 0; max-width: 440px; padding: 20px 24px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.hero-featured:hover { transform: translateY(-3px); border-color: var(--hairline-2); box-shadow: 0 22px 55px rgba(0,0,0,0.45), var(--glass-shine); }
.hero-featured::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); border-radius: 4px 0 0 4px; }
.hf-eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; width: 24px; }
.hf-eq span {
  display: block; width: 3px; background: var(--accent-2); border-radius: 2px;
  transform-origin: bottom; transform: scaleY(0.45);
  animation: eqBounce 1.2s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero-featured.is-active .hf-eq span { animation-play-state: running; }
.hf-eq span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.hf-eq span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.hf-eq span:nth-child(3) { height: 40%; animation-delay: 0.5s; }
.hf-eq span:nth-child(4) { height: 80%; animation-delay: 0.2s; }
@keyframes eqBounce { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }

.hf-info { display: flex; flex-direction: column; gap: 4px; }
.hf-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.hf-title { font-size: 16px; font-weight: 600; color: var(--fg); margin: 0; }
.hf-meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); }

.btn-play-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); background: var(--accent-tint);
  color: var(--accent-2); display: inline-grid; place-items: center; cursor: pointer; transition: all var(--t-fast);
}
.btn-play-icon:hover { background: var(--accent); color: #040710; transform: scale(1.1); box-shadow: 0 0 20px var(--accent-glow); }
.btn-play-icon svg { width: 18px; height: 18px; transform: translateX(1px); }

/* ============================================================
   WORKS / TRACKLIST (Card Layout)
   ============================================================ */
.works { padding: var(--pad-section) 0; }
.section-head { margin-bottom: clamp(56px, 8vw, 80px); max-width: var(--w-text); }

.tracklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tracklist-empty { padding: 40px; color: var(--fg-mute); background: var(--bg-card); border-radius: var(--r-md); font-family: var(--font-mono); text-align: center; }

.track {
  display: grid; grid-template-columns: 40px 1fr auto; gap: clamp(12px, 2vw, 24px); align-items: center;
  padding: 12px 18px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent;
  cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); position: relative;
}
.track:hover { background: var(--bg-card); border-color: var(--glass-border); }
.track.is-playing { background: linear-gradient(90deg, rgba(124, 152, 255, 0.1), rgba(124, 152, 255, 0.02)); border-color: rgba(124, 152, 255, 0.2); box-shadow: 0 12px 30px -10px var(--accent-glow); }
.track.is-playing .track-title { color: var(--accent-2); }
.track-num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--fg-dim); transition: color var(--t-fast); }
.track:hover .track-num, .track.is-playing .track-num { color: var(--accent-2); }
.track-main { min-width: 0; }
.track-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-width: 0; }
.track-title { font-family: var(--font-sans); font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--fg); transition: color var(--t-fast); }
.track-desc { font-size: 14.5px; color: var(--fg-mute); margin: 0; max-width: 70ch; line-height: 1.6; }
.track-meta { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-dim); text-transform: uppercase; }
.track-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-dim); }

/* Number cell doubles as a now-playing equalizer */
.track-num { display: flex; align-items: center; min-height: 20px; }
.track-num-text { transition: color var(--t-fast); }
.track-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; width: 17px; }
.track-eq i {
  display: block; width: 3px; border-radius: 2px;
  background: linear-gradient(var(--accent-2), var(--accent));
  transform-origin: bottom; animation: eqBounce 1.1s ease-in-out infinite alternate;
}
.track-eq i:nth-child(1) { height: 50%;  animation-delay: 0s;    }
.track-eq i:nth-child(2) { height: 100%; animation-delay: 0.25s; }
.track-eq i:nth-child(3) { height: 35%;  animation-delay: 0.5s;  }
.track-eq i:nth-child(4) { height: 75%;  animation-delay: 0.15s; }
.track.is-playing .track-num-text { display: none; }
.track.is-playing .track-eq { display: flex; }
.track.is-playing.is-paused .track-eq i { animation-play-state: paused; }

/* Cursor-tracked spotlight + a vertical accent bar on the playing row */
.track > * { position: relative; z-index: 1; }
.track::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity var(--t-med);
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), var(--accent-tint), transparent 72%);
}
.track:hover::before { opacity: 1; }
.track.is-playing::after {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; z-index: 2;
  border-radius: 0 3px 3px 0; background: linear-gradient(var(--accent-2), var(--accent));
  box-shadow: 0 0 14px var(--accent-glow);
}

/* Live performer billing: always visible, sets real humans apart from VSTi */
.track-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 9px; color: var(--fg-mute); }
.track-live-badge {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); padding: 3px 10px 3px 8px; border-radius: var(--r-pill);
  background: var(--accent-tint); border: 1px solid var(--hairline-2);
}
.track-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-glow); animation: liveDot 2s ease-in-out infinite; }
@keyframes liveDot { 0%, 100% { opacity: 0.4; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
.track-live-group { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; min-width: 0; }
.track-live-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); font-weight: 600; }
.track-live .credit-name { font-size: 13.5px; color: var(--fg-soft); font-weight: 500; }
.track-live a.credit-name { border-bottom: 1px solid transparent; padding-bottom: 1px; transition: color var(--t-fast), border-color var(--t-fast); }
.track-live a.credit-name:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); text-decoration: none; }
.track-live a.credit-name:hover .credit-handle { color: var(--accent-2); }

.track-extras { max-height: 0; overflow: hidden; opacity: 0; transition: max-height var(--t-med), opacity var(--t-fast), margin-top var(--t-fast); margin-top: 0; }
.track.is-expanded .track-extras { max-height: 800px; opacity: 1; margin-top: 14px; }

.track-credits { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--glass-border); display: flex; flex-direction: column; gap: 8px; }
.track-credit-line { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-soft); }
.track-credit-label { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-right: 12px; min-width: 44px; }
.track-credit-line a { color: var(--fg); border-bottom: 1px solid var(--hairline-2); padding-bottom: 1px; transition: color var(--t-fast), border-color var(--t-fast); }
.track-credit-line a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); text-decoration: none; }
.credit-handle { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.04em; margin-left: 6px; text-transform: none; }
.track-credit-line a:hover .credit-handle { color: var(--accent-2); }
.credit-role { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim); letter-spacing: 0.04em; margin-left: 4px; text-transform: none; font-style: normal; }
.track-credit-line.is-instruments { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-mute); letter-spacing: 0.01em; line-height: 1.6; }
.track-credit-line.is-instruments .track-credit-label { color: var(--fg-dim); }

.track-actions { display: flex; align-items: center; gap: 12px; }
.track-duration { font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); letter-spacing: 0.05em; }
.track-expand { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-border); background: transparent; color: var(--fg-mute); cursor: pointer; display: inline-grid; place-items: center; transition: all var(--t-fast); }
.track-expand:hover { color: var(--accent-2); border-color: var(--accent); background: var(--bg-card); }
.track-expand svg { width: 14px; height: 14px; transition: transform var(--t-med); }
.track.is-expanded .track-expand { color: var(--accent-2); border-color: var(--accent); }
.track.is-expanded .track-expand svg { transform: rotate(180deg); }
.track-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--bg-card); color: var(--fg); cursor: pointer; display: inline-grid; place-items: center; transition: all var(--t-fast); }
.track-play:hover { border-color: var(--accent); color: var(--accent-2); background: var(--bg-elev-2); transform: scale(1.08); box-shadow: 0 0 16px var(--accent-glow); }
.track-play svg { width: 14px; height: 14px; transform: translateX(1px); }
.track.is-playing .track-play { border-color: var(--accent); color: var(--accent-2); background: rgba(124, 152, 255, 0.15); box-shadow: 0 0 16px var(--accent-glow); }
.track.is-playing .track-play .ico-play { display: none; }
.track.is-playing .track-play .ico-pause { display: block; transform: translateX(0); }
.track-play .ico-pause { display: none; }

@media (max-width: 768px) {
  .track { grid-template-columns: 28px 1fr auto; padding: 12px 10px; gap: 10px; }
  .track-num { font-size: 11px; } .track-title { font-size: 15.5px; } .track-desc { font-size: 13.5px; } .track-duration { display: none; }
  .track-expand { width: 32px; height: 32px; } .track-play { width: 36px; height: 36px; }
  .track-actions { gap: 8px; }
}

/* ============================================================
   BENTO GRID (ABOUT, SETUP, LISTEN, CONTACT)
   ============================================================ */
.bento-section { padding: var(--pad-section) 0; position: relative; }
.bento-section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border) 50%, transparent); }

.bento-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  grid-auto-rows: minmax(min-content, auto);
}

.bento-card {
  background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 48px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; transition: all var(--t-med);
}
.bento-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: var(--glass-shine); opacity: 0.4; }
.bento-card:hover { border-color: var(--accent); background: var(--bg-elev-2); transform: translateY(-4px); box-shadow: 0 24px 50px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,152,255,0.2); }

.bento-inner { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; justify-content: center; }

/* Grid Placements */
.bento-large   { grid-column: span 8; justify-content: flex-start; }
.bento-setup   { grid-column: span 4; }
.bento-contact { grid-column: span 12; padding: clamp(48px, 6vw, 80px); align-items: center; text-align: center; }

@media (max-width: 1024px) {
  .bento-large  { grid-column: span 12; }
  .bento-setup  { grid-column: span 12; }
}

/* Bento Typo */
.bento-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; margin-bottom: 12px; }
.bento-title { font-family: var(--font-sans); font-size: 24px; font-weight: 600; color: var(--fg); margin: 0 0 12px; letter-spacing: -0.01em; }
.bento-text { font-size: 16px; color: var(--fg-mute); margin: 0; line-height: 1.6; }

/* Specific Content */
.about-lead { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px); line-height: 1.1; color: var(--fg); letter-spacing: -0.015em; margin: 0 0 32px; }
.about-body p { margin: 0 0 20px; color: var(--fg-soft); font-size: 18px; line-height: 1.7; }
.about-sign { margin: 32px 0 0; padding-top: 32px; border-top: 1px solid var(--glass-border); }
.about-sign em { font-family: var(--font-display); font-style: italic; font-size: clamp(28px, 3.5vw, 40px); color: var(--accent-2); letter-spacing: -0.01em; }

.bento-listen .link-card-label { font-family: var(--font-sans); font-size: 28px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); display: block; }
.bento-listen .link-card-handle { color: var(--fg-mute); font-size: 14px; font-family: var(--font-mono); letter-spacing: 0.05em; margin-top: 4px; display: block;}
.bento-listen .bento-arrow { width: 32px; height: 32px; color: var(--accent-2); transition: transform var(--t-med); display: inline-grid; place-items: center; }
.bento-listen .bento-arrow svg { width: 32px; height: 32px; }
.bento-listen:hover .bento-arrow { transform: translateX(12px) scale(1.1); color: var(--accent); }

.bento-contact .bento-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); font-weight: 400; font-style: italic; margin-bottom: 8px; }
.bento-contact .bento-text { font-size: 20px; }
.contact-email { margin: 32px 0 0; font-family: var(--font-mono); font-size: clamp(16px, 2.5vw, 24px); }
.contact-email a { color: var(--fg); border-bottom: 2px solid var(--hairline-2); padding-bottom: 8px; }
.contact-email a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); text-shadow: 0 0 24px var(--accent-glow); text-decoration: none;}

/* ============================================================
   EXTRAS (data-driven, downloadable bonus materials)
   ============================================================ */
.extras { padding: var(--pad-section) 0; position: relative; }
.extras::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border) 50%, transparent); }
.extras[hidden] { display: none; }

.extras-eyebrow {
  margin: 0 0 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); font-weight: 600;
}

.extras-list {
  list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px;
}
.extra-card { margin: 0; padding: 0; list-style: none; }
.extra-card a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px; text-decoration: none; color: inherit;
  background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
  position: relative; overflow: hidden;
}
.extra-card a::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: var(--glass-shine); opacity: 0.4; }
.extra-card a:hover {
  background: var(--bg-elev-2); border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,152,255,0.2);
  text-decoration: none;
}
.extra-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.extra-title {
  font-family: var(--font-sans); font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--fg); margin: 0; line-height: 1.3;
  transition: color var(--t-fast);
}
.extra-card a:hover .extra-title { color: var(--accent-2); }
.extra-desc { font-size: 14px; color: var(--fg-mute); margin: 0; line-height: 1.55; }
.extra-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.extra-meta-item {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-mute); padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.extra-card a:hover .extra-meta-item { border-color: var(--hairline-2); color: var(--fg-soft); }
.extra-download {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--glass-border);
  color: var(--accent-2);
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med);
}
.extra-download svg { width: 18px; height: 18px; transition: transform var(--t-med); }
.extra-card a:hover .extra-download {
  background: var(--accent-tint); border-color: var(--accent); transform: scale(1.05);
}
.extra-card a:hover .extra-download svg { transform: translateY(3px); }

@media (max-width: 640px) {
  .extras-list { grid-template-columns: 1fr; }
  .extra-card a { padding: 20px 22px; }
}

/* ============================================================
   AWESOME PEOPLE (data-driven, eye-candy)
   ============================================================ */
.awesome { padding: var(--pad-section) 0; position: relative; }
.awesome::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border) 50%, transparent); }
.awesome[hidden] { display: none; }

.awesome-eyebrow {
  margin: 0 0 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); font-weight: 600;
}

.awesome-list {
  list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.awesome-card { margin: 0; padding: 0; list-style: none; }
.awesome-card a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 32px; text-decoration: none; color: inherit;
  background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
  position: relative; overflow: hidden;
}
.awesome-card a::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: var(--glass-shine); opacity: 0.4; }
.awesome-card a:hover {
  background: var(--bg-elev-2); border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,152,255,0.2);
  text-decoration: none;
}
.awesome-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.awesome-name {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.01em; line-height: 1.1; color: var(--fg);
  transition: color var(--t-fast);
}
.awesome-card a:hover .awesome-name { color: var(--accent-2); }
.awesome-url {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.awesome-arrow {
  width: 28px; height: 28px; flex-shrink: 0; color: var(--accent-2);
  display: inline-grid; place-items: center; transition: transform var(--t-med), color var(--t-fast);
}
.awesome-arrow svg { width: 28px; height: 28px; }
.awesome-card a:hover .awesome-arrow { transform: translateX(10px); color: var(--accent); }

@media (max-width: 640px) {
  .awesome-list { grid-template-columns: 1fr; }
  .awesome-card a { padding: 22px 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; background: var(--bg); padding: clamp(80px, 10vw, 120px) 0 48px; z-index: 2; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 64px; padding-bottom: 64px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 48px; } .footer-brand { grid-column: 1 / -1; } }

.footer-name { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.footer-name em { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.2em; margin-left: 2px; }
.footer-tag { margin: 12px 0 0; color: var(--fg-mute); font-size: 17px; }
.footer-tag em { font-family: var(--font-display); font-style: italic; color: var(--accent-2); font-size: 1.1em; }
.footer-h { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 24px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-list a { color: var(--fg-mute); font-size: 15px; display: inline-block; }
.footer-list a:hover { color: var(--accent-2); transform: translateX(4px); text-decoration: none;}

.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; border-top: 1px solid var(--glass-border); font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim); }
.footer-meta { color: var(--fg-dim); margin: 0; }
.footer-top { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.footer-top svg { width: 14px; height: 14px; }
.footer-top:hover { color: var(--accent-2); transform: translateY(-4px); text-decoration: none;}

/* ============================================================
   PLAYER (Floating Glass Pill)
   ============================================================ */
.player {
  position: fixed; bottom: 32px; left: 50%; z-index: 100; width: calc(100% - 32px); max-width: 1000px;
  background: var(--bg-glass); backdrop-filter: blur(32px) saturate(200%); -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: 0 24px 60px -12px rgba(0,0,0,0.8), var(--glass-shine);
  transform: translate(-50%, 150%); transition: transform var(--t-slow), opacity var(--t-slow);
}
.player.is-visible { transform: translate(-50%, 0); }
.player[hidden] { display: none; }

.player-inner { padding: 16px 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.5fr) auto auto auto; gap: clamp(16px, 3vw, 32px); align-items: center; }

.player-meta { min-width: 0; padding-right: 12px; border-right: 1px solid var(--glass-border); }
.player-title { font-size: 15.5px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.player-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent-2); margin: 4px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }

.player-controls { display: flex; align-items: center; gap: 8px; }
.ctrl { width: 40px; height: 40px; border: none; background: transparent; color: var(--fg); display: inline-grid; place-items: center; cursor: pointer; border-radius: 50%; transition: all var(--t-fast); }
.ctrl:hover { color: var(--accent-2); background: var(--bg-elev-2); }
.ctrl svg { width: 18px; height: 18px; }
.ctrl-play { width: 52px; height: 52px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #040710; box-shadow: 0 8px 24px -6px var(--accent-glow); }
.ctrl-play:hover { transform: scale(1.08); box-shadow: 0 12px 30px -8px var(--accent-glow); color: #040710; }
.ctrl-play svg { width: 22px; height: 22px; }
.player.is-playing .ctrl-play .ico-play { display: none; }
.player.is-playing .ctrl-play .ico-pause { display: block; }

.player-scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.player-time { font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); min-width: 42px; text-align: center; }
.scrub { position: relative; height: 32px; cursor: pointer; display: flex; align-items: center; }
.scrub-track { position: relative; height: 4px; width: 100%; background: var(--glass-border); border-radius: 2px; overflow: hidden; }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--accent); border-radius: 2px; box-shadow: 0 0 10px var(--accent-glow); }
.scrub-thumb { position: absolute; top: 50%; left: 0%; width: 12px; height: 12px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%) scale(0); transition: transform var(--t-fast); box-shadow: 0 0 0 4px rgba(124, 152, 255, 0.3); }
.scrub:hover .scrub-track { overflow: visible; }
.scrub:hover .scrub-thumb, .scrub:focus-visible .scrub-thumb { transform: translate(-50%, -50%) scale(1); }

/* Real waveform: a canvas that fills the scrub area and replaces the line */
.scrub .wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrub .wave[hidden] { display: none; }
.scrub.has-wave { height: 44px; }
.scrub.has-wave .scrub-track { display: none; }

.player-volume { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--glass-border); padding-left: 16px; }
.vol-slider { -webkit-appearance: none; appearance: none; width: 90px; height: 4px; background: var(--glass-border); outline: none; cursor: pointer; border-radius: 2px; }
.vol-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2); cursor: pointer; border: none; }

/* Keyboard shortcuts hint */
.player-help { position: relative; }
.player-shortcuts {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  min-width: 240px; padding: 16px 18px;
  background: var(--bg-glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border); border-radius: var(--r-md);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6), var(--glass-shine);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 110;
}
.player-shortcuts[hidden] { display: none; }
.player-help.is-open .player-shortcuts,
.player-help:focus-within .player-shortcuts { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ps-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 12px; font-weight: 600; }
.player-shortcuts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; }
.player-shortcuts dt { margin: 0; display: flex; gap: 4px; }
.player-shortcuts dd { margin: 0; font-size: 12px; color: var(--fg-soft); }
.player-shortcuts kbd {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 7px; border-radius: 4px;
  background: var(--bg-elev-2); border: 1px solid var(--glass-border);
  color: var(--fg); min-width: 18px; text-align: center; line-height: 1;
}

.ctrl-close { margin-left: 8px; }

@media (max-width: 920px) {
  .player { border-radius: 20px; bottom: 16px; width: calc(100% - 24px); }
  .player-inner { grid-template-columns: 1fr auto auto; grid-template-rows: auto auto; gap: 12px 16px; padding: 16px; }
  .player-meta { grid-column: 1; grid-row: 1; border-right: none; }
  .player-controls { grid-column: 2; grid-row: 1; }
  .player-volume, .player-help { display: none; }
  .ctrl-close { grid-column: 3; grid-row: 1; margin-left: 0; }
  .player-scrub { grid-column: 1 / -1; grid-row: 2; }
}

/* ============================================================
   ENTRANCE ANIMATIONS (Keeps JS compatibility)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(30px) scale(0.98); transition: all 1s var(--ease-cinematic); }
  .reveal.is-in { opacity: 1; transform: translateY(0) scale(1); }

  .tracklist .track {
    opacity: 0; transform: translateY(18px);
    transition: opacity 600ms var(--ease-cinematic), transform 600ms var(--ease-cinematic), background var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  }
  .tracklist .track.is-in { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCROLL-DRIVEN REVEALS (progressive enhancement)
   Active only where native scroll timelines exist (html.sda, set by
   main.js). Uses the independent `translate`/`scale` properties so that
   element :hover transforms still compose on top. Browsers without
   support fall back to the IntersectionObserver reveals above.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.sda .section-head,
  html.sda .tracklist .track {
    animation: sdaRise both;
    animation-timeline: view();
    animation-range: entry 0% entry 58%;
  }
  html.sda .bento-card,
  html.sda .extra-card,
  html.sda .awesome-card {
    animation: sdaRiseScale both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  /* clear the IO baseline offset so only the scroll animation moves rows */
  html.sda .tracklist .track { opacity: 1; transform: none; }

  @keyframes sdaRise {
    from { opacity: 0; translate: 0 42px; }
    to   { opacity: 1; translate: 0 0; }
  }
  @keyframes sdaRiseScale {
    from { opacity: 0; translate: 0 38px; scale: 0.975; }
    to   { opacity: 1; translate: 0 0;   scale: 1; }
  }
}

/* ============================================================
   REDUCED MOTION: silence heavy ambient VFX
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .bg-aurora, .orb, .orb-a, .orb-b,
  .marquee-track,
  .hf-eq span,
  .track-eq i, .track-live-dot,
  .brand-dot { animation: none !important; }
  .bg-aurora { opacity: 0.4; }
  .scroll-bar-fill { transition: none; }
  html { scroll-behavior: auto; }
}