:root {
  --burgundy: #8c1a0f;
  --burgundy-deep: #632618;
  --amber: #ff9b42;
  --amber-soft: #ffc98a;
  --cream: #f5ebe0;
  --ink: #0d0806;
  --ink-soft: #1a100c;
  --glass: rgba(255, 235, 220, 0.06);
  --glass-border: rgba(255, 155, 66, 0.15);
  --text: #f5ebe0;
  --text-muted: rgba(245, 235, 224, 0.62);
  --radius: 20px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--amber) var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Ambient layers */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.site-header.scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 6, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: -1;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav a:hover { color: var(--amber-soft); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem clamp(1.25rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 60vh;
  background: radial-gradient(ellipse, rgba(140, 26, 15, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.about-portrait {
  position: relative;
  width: clamp(200px, 32vw, 280px);
  margin: 0 auto;
}

.portrait-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  animation: ring-pulse 4s ease-in-out infinite;
}

.portrait-ring::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 155, 66, 0.2);
  animation: ring-spin 30s linear infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--ink-soft),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(255, 155, 66, 0.15);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  margin: 0 0 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--cream);
  text-shadow: 4px 4px 0 var(--amber);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, var(--burgundy), #a82818);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(140, 26, 15, 0.5);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 155, 66, 0.25);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Music section */
.music {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 6rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* Song card grid */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.song-card {
  display: flex;
  flex-direction: column;
  background: #14100e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.song-card.animate-in {
  opacity: 0;
  transform: translateY(20px);
}

.song-card.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.song-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 155, 66, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.song-card.playing {
  border-color: rgba(255, 155, 66, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 155, 66, 0.15), 0 24px 60px rgba(140, 26, 15, 0.25);
}

.song-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.song-card__visual-bg {
  position: absolute;
  inset: 0;
  background: var(--card-art);
  transition: transform 0.6s var(--ease-out);
}

.song-card__visual-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
}

.song-card:hover .song-card__visual-bg {
  transform: scale(1.05);
}

.song-card__visual-text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.song-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.song-card__title-line {
  display: block;
}

.song-card__footer {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #0f0c0a;
}

.song-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.song-card__index {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--amber);
  opacity: 0.7;
  padding-top: 0.15rem;
}

.song-card__name {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 235, 224, 0.85);
  margin: 0;
  line-height: 1.3;
}

.song-card__subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.song-card__subtitle a {
  color: var(--amber-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.song-card__soon {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 155, 66, 0.22);
  border-radius: 999px;
}

/* Inline player pill (preiner-style) */
.song-card__player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  background: #f5f0ea;
  border-radius: 999px;
  color: #1a100c;
}

.player-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.player-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.player-time {
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: #444;
  white-space: nowrap;
  flex-shrink: 0;
}

.time-sep {
  margin: 0 0.1rem;
  opacity: 0.5;
}

.player-scrub {
  flex: 1;
  height: 4px;
  min-width: 40px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-scrub-fill {
  height: 100%;
  width: 0%;
  background: var(--burgundy);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.song-card.playing .player-scrub-fill {
  background: linear-gradient(90deg, var(--burgundy), var(--amber));
}

.player-lyrics {
  position: relative;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-art);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.player-lyrics::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 55%);
  pointer-events: none;
}

.player-lyrics:hover {
  transform: scale(1.05);
  border-color: rgba(255, 155, 66, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.song-card.playing .player-lyrics {
  border-color: rgba(255, 155, 66, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 155, 66, 0.15);
}

/* Lyrics modal */
body.lyrics-open {
  overflow: hidden;
}

.lyrics-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.lyrics-modal[hidden] {
  display: none;
}

.lyrics-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 6, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
}

.lyrics-modal.is-open .lyrics-modal__backdrop {
  opacity: 1;
}

.lyrics-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) * 1.1);
  border: 1px solid var(--glass-border);
  background: var(--ink-soft);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 155, 66, 0.08) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.32s var(--ease-out),
    transform 0.32s var(--ease-out);
}

.lyrics-modal.is-open .lyrics-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lyrics-modal__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  min-height: 7.5rem;
  padding: 1.4rem 3.75rem 1.25rem 2rem;
  background: var(--modal-art, linear-gradient(145deg, var(--burgundy-deep), var(--burgundy)));
}

.lyrics-modal__header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(13, 8, 6, 0.45));
  pointer-events: none;
}

.lyrics-modal__header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.lyrics-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(13, 8, 6, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, color 0.2s;
}

.lyrics-modal__close:hover {
  background: rgba(13, 8, 6, 0.45);
  color: #fff;
}

.lyrics-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.lyrics-modal__credit {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
}

.lyrics-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem 2rem;
  scrollbar-color: var(--amber) transparent;
}

.lyrics-modal__section + .lyrics-modal__section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 155, 66, 0.1);
}

.lyrics-modal__section-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.lyrics-modal__lines {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  line-height: 1.75;
  color: var(--cream);
}

/* About */
.about {
  position: relative;
  z-index: 1;
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 8rem;
}

.about-card {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(145deg, rgba(140, 26, 15, 0.15), var(--glass));
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) * 1.5);
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about-text em { color: var(--amber-soft); font-style: italic; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.site-footer p { margin: 0 0 1rem; }

.footer-contact {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  transition: color 0.25s;
}

.footer-contact:hover { color: var(--amber-soft); }

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 160;
  }

  body.nav-open { overflow: hidden; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    width: min(280px, 85vw);
    z-index: 150;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    padding: 5.5rem 2rem 2rem;
    background: rgba(13, 8, 6, 0.97);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }

  .nav.open::before {
    content: "";
    position: fixed;
    inset: 0;
    right: min(280px, 85vw);
    background: rgba(13, 8, 6, 0.65);
    z-index: -1;
  }

  .nav.open { transform: translateX(0); }

  .about-card { grid-template-columns: 1fr; }

  .about-portrait { margin: 0 auto; }

  .song-grid {
    grid-template-columns: 1fr;
  }

  .song-card__player {
    flex-wrap: wrap;
    border-radius: 14px;
    padding: 0.6rem;
  }

  .player-scrub {
    order: 3;
    flex-basis: 100%;
    margin-top: 0.25rem;
  }

  .player-lyrics {
    margin-left: auto;
  }

  .lyrics-modal__header {
    padding-bottom: calc(1.25rem + 12px);
  }

  .lyrics-modal__title {
    font-size: clamp(1.65rem, 7.5vw, 2.25rem);
  }
}
