:root {
  --c-abyss: #050508;
  --c-sand: #e0e0e0;
  --c-gold: #C5A059;
  --c-red: #8b0000;
  --c-blue-deep: #0a1128;
  --c-stone: #888888;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

html {
  background-color: var(--c-abyss);
  color: var(--c-sand);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Background Video */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

#bg-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.4; /* Keep it atmospheric */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--c-abyss) 0%, rgba(5, 5, 8, 0.4) 50%, var(--c-abyss) 100%);
  pointer-events: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  mix-blend-mode: difference;
}

.enter-prompt {
  margin-top: 2rem;
  color: var(--c-gold);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--c-sand);
}

.header-author-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  cursor: pointer;
}

.header-author-link:hover .back-arrow-icon {
  transform: translateX(-5px);
}

/* Layout for Header Buttons */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-link-btn {
  color: var(--c-light);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  background: transparent;
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: none;
  transition: all 0.3s ease;
}

.header-link-btn:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* Research Button */
#research-btn {
  background: #ff6600 !important;
  color: #ffffff !important;
  border: 2px solid #ff6600 !important;
  padding: 0.6rem 1.2rem !important;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

#research-btn:hover {
  background: #ff8533 !important;
  border-color: #ff8533 !important;
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6);
  transform: translateY(-2px);
}

/* Scrollytelling Sections */
.chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.content-wrapper {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--c-sand);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--c-stone);
  letter-spacing: 0.1em;
  margin-bottom: 4rem;
  text-transform: uppercase;
}

.hero .quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--c-gold);
  line-height: 1.5;
  max-width: 600px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--c-sand), transparent);
}

.chapter-number {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--c-red);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--c-gold);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.chapter p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.8;
  color: var(--c-sand);
  max-width: 600px;
}

/* Footer Section */
.footer-section {
  background: linear-gradient(to bottom, transparent, var(--c-abyss) 50%);
}

.closing-reflection {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--c-sand);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.closing-reflection.final {
  color: var(--c-gold);
  font-weight: 600;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--c-stone);
  margin-bottom: 1rem;
}

.back-arrow-icon {
  color: #ff6600;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
}

.author-text-orange {
  color: #ff6600;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

.inspiration-footer {
  font-size: 0.8rem;
  color: var(--c-stone);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Overlay Layer (La Investigación) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow-y: auto;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

#close-research-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--c-sand);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

#close-research-btn:hover {
  color: var(--c-gold);
}

.overlay-content {
  max-width: 900px;
  width: 90%;
  padding: 4rem 0;
}

.overlay-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--c-gold);
  margin-bottom: 1rem;
  text-align: center;
}

.overlay-content .inspiration {
  font-family: var(--font-sans);
  color: var(--c-stone);
  text-align: center;
  margin-bottom: 4rem;
  font-style: italic;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.research-card {
  border-top: 1px solid var(--c-red);
  padding-top: 1.5rem;
}

.research-card h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--c-sand);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.research-card p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-stone);
}

/* SCROLL-DRIVEN ANIMATIONS (Native CSS) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    
    @keyframes fade-out-up {
      from {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
      to {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
      }
    }

    .chapter .content-wrapper {
      animation: 
        fade-in-up auto ease-out backwards,
        fade-out-up auto ease-in forwards;
      animation-timeline: view(block);
      animation-range: entry 10% cover 40%, exit 30% exit 80%;
    }
  }
}

/* -------------------------------------
   BACKGROUND LAYERS & ANIMATIONS
   ------------------------------------- */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
  will-change: transform, opacity;
}

.bg-layer.active {
  opacity: 0.6; /* Keeps it atmospheric, not fully opaque */
}

#bg-estrellas.active {
  animation: starDrift 60s linear infinite;
  transform-origin: center center;
}

#bg-abrazo.active {
  animation: kenBurns 25s ease-in-out forwards;
  transform-origin: 50% 40%;
}

@keyframes starDrift {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* CSS Particles for the Abrazo layer */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #ffddaa, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #ffddaa, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #ffddaa, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: driftParticles 20s linear infinite;
  opacity: 0.4;
  mix-blend-mode: screen;
}

@keyframes driftParticles {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 200px 200px, 150px 250px, -100px -150px, 300px -200px, -200px 100px, 200px -100px; }
}

/* Premium Global Audio Player */
.global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.95), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  box-sizing: border-box;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.global-player.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.player-info {
  display: flex;
  flex-direction: column;
}

.now-playing-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.track-name {
  font-size: 1.1rem;
  color: var(--c-gold);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

/* Audio Analyzer Canvas */
#audio-analyzer {
  width: 60px;
  height: 30px;
  margin-right: auto;
  margin-left: 30px;
}

/* Play Button & Progress Ring */
.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
}

.play-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--c-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.play-btn:hover {
  color: var(--c-gold);
  border-color: transparent;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg); /* Start at 12 o'clock */
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.1s linear;
}

.progress-ring__progress {
  transition: stroke-dashoffset 0.1s linear;
  stroke-dasharray: 113.097; /* 2 * pi * 18 */
  stroke-dashoffset: 113.097;
}

.icon-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn svg:not(.progress-ring) {
  width: 18px;
  height: 18px;
}

.progress-container {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--c-gold);
  transition: width 0.1s linear;
}

/* Podcast Overlay Styles */
.podcast-overlay-container {
  margin: 2rem auto;
  text-align: center;
  background: rgba(10, 17, 40, 0.4);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.podcast-overlay-container h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  margin-bottom: 1rem;
}

.podcast-audio {
  width: 100%;
  outline: none;
}

/* CTA Buttons */
.cta-container {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--c-gold);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@keyframes btnPulseCTA {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  animation: btnPulseCTA 2.5s infinite alternate ease-in-out;
}

.cta-btn.spotify {
  background: #1DB954;
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
}

.cta-btn.spotify:hover {
  background: #1ed760;
  box-shadow: 0 6px 25px rgba(29, 185, 84, 0.7);
  transform: scale(1.08);
  animation-play-state: paused;
}

.cta-btn.apple-music {
  background: #FA243C;
  box-shadow: 0 4px 15px rgba(250, 36, 60, 0.4);
}

.cta-btn.apple-music:hover {
  background: #ff3b50;
  box-shadow: 0 6px 25px rgba(250, 36, 60, 0.7);
  transform: scale(1.08);
  animation-play-state: paused;
}

.cta-btn.youtube {
  background: #FF0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.cta-btn.youtube:hover {
  background: #ff3333;
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.7);
  transform: scale(1.08);
  animation-play-state: paused;
}

/* Text Reveal Animation for JavaScript Spans */
.chapter-title .word {
  display: inline-block;
  white-space: nowrap;
}

.chapter-title .char {
  opacity: 0;
  display: inline-block;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.chapter-title.visible .char {
  opacity: 1;
  transform: translateY(0);
}

/* Legal Disclaimer */
.legal-disclaimer {
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(10, 17, 40, 0.6);
  border-left: 4px solid var(--c-gold);
  border-radius: 0 8px 8px 0;
  text-align: left;
}

.legal-disclaimer p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--c-stone);
  margin: 0;
}

.legal-disclaimer strong {
  color: var(--c-sand);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

/* Premium Custom Interactions */

/* Logo SVG */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  width: 250px;
  height: auto;
  mix-blend-mode: screen; /* Magic trick to make black background disappear! */
  animation: pulseLogo 4s infinite alternate;
}
.brand-logo-small-img {
  width: 120px;
  height: auto;
  mix-blend-mode: screen;
}
.brand-logo-footer-img {
  width: 150px;
  height: auto;
  mix-blend-mode: screen;
  margin: 0 auto 10px auto;
  display: block;
}

/* Custom Cursor */
body {
  cursor: none;
}
a, button {
  cursor: none;
}
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--c-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, mix-blend-mode 0.3s ease;
  mix-blend-mode: difference;
}

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  #custom-cursor {
    display: none !important;
  }
}

#custom-cursor.hover {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: 2px solid var(--c-gold);
  box-shadow: none;
}

/* Subtitles Box */
.subtitles-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  max-height: 40vh;
  background: rgba(5, 5, 8, 0.85);
  border: 1px solid rgba(255, 102, 0, 0.5);
  border-radius: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.subtitles-box.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 40px);
}

.subtitles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 102, 0, 0.1);
  border-bottom: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 12px 12px 0 0;
  color: #ff6600;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
}

#close-subtitles-btn {
  background: none;
  border: none;
  color: #ff6600;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

#close-subtitles-btn:hover {
  color: #ffffff;
}

.subtitles-content {
  padding: 20px;
  overflow-y: auto;
  color: #e0e0e0;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
  font-family: var(--font-sans);
}

.subtitles-content p {
  margin-bottom: 15px;
}

.subtitles-content strong {
  color: var(--c-gold);
  font-weight: 600;
}

/* Intro Screen */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 8, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-in-out;
}
#intro-screen.hidden {
  opacity: 0;
  pointer-events: none;
}
.intro-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: introFadeUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes introFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.intro-content .brand-logo {
  width: 100px;
  height: 100px;
  animation: pulseLogo 3s infinite alternate;
}
@keyframes pulseLogo {
  0% { filter: drop-shadow(0 0 5px var(--c-gold)); }
  100% { filter: drop-shadow(0 0 20px var(--c-gold)); }
}
.intro-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.2em;
  color: var(--c-sand);
}

.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 200px;
  transition: opacity 0.5s ease;
}

#loading-percentage {
  color: var(--c-gold);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 2px;
  opacity: 0.8;
}

.loading-track {
  width: 100%;
  height: 2px;
  background: rgba(197, 160, 89, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

#loading-progress {
  width: 0%;
  height: 100%;
  background: var(--c-gold);
  transition: width 0.3s ease-out;
}

#enter-btn {
  background: transparent;
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  padding: 15px 40px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s ease;
}

#enter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(197, 160, 89, 0.3);
}

#enter-btn:not(:disabled) {
  animation: btnReadyGlow 2s infinite alternate;
}

@keyframes btnReadyGlow {
  0% { box-shadow: 0 0 5px rgba(197, 160, 89, 0.2); }
  100% { box-shadow: 0 0 20px rgba(197, 160, 89, 0.6); }
}

#enter-btn:hover:not(:disabled) {
  background: var(--c-gold);
  color: var(--c-abyss);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.8);
}

/* Audio Visualizer */
.audio-visualizer {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 20px;
  margin: 0 15px;
}
.audio-visualizer span {
  display: block;
  width: 3px;
  height: 5px;
  background-color: var(--c-gold);
  border-radius: 3px;
  animation: equalize 1s infinite ease-in-out;
}
.audio-visualizer.paused span {
  animation-play-state: paused;
  height: 3px;
}
.audio-visualizer span:nth-child(1) { animation-delay: 0.0s; }
.audio-visualizer span:nth-child(2) { animation-delay: 0.3s; }
.audio-visualizer span:nth-child(3) { animation-delay: 0.6s; }
.audio-visualizer span:nth-child(4) { animation-delay: 0.2s; }

@keyframes equalize {
  0%, 100% { height: 5px; }
  50% { height: 20px; }
}

/* Scroll Spy */
#scroll-spy {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}
#scroll-spy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#scroll-spy li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(197, 160, 89, 0.3);
  transition: all 0.3s;
  position: relative;
  cursor: none; /* override pointer to hide default cursor, handled by custom-cursor */
}
#scroll-spy li:hover {
  background-color: rgba(197, 160, 89, 0.7);
  transform: scale(1.5);
}
#scroll-spy li.active {
  background-color: var(--c-gold);
  box-shadow: 0 0 10px var(--c-gold);
  transform: scale(1.3);
}

/* Streaming Services Glassmorphism */
.streaming-services-container {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.streaming-services-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.streaming-services-container p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-sand);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.streaming-logos {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* --- Covers Grid --- */
.covers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
}

.cover-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-title {
  text-align: center;
  font-family: var(--font-cinzel);
  font-size: 1.8rem;
  color: #C5A059;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  min-height: 4rem; /* Ensure symmetry */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Album Cover Interactive (CTA) --- */
.album-cover-interactive {
  position: relative;
  width: 350px;
  max-width: 90%;
  margin: 0 auto 2rem auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.album-cover-interactive:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.8), 0 0 20px rgba(197, 160, 89, 0.4);
}

.album-cover-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.album-cover-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.8);
  color: #C5A059;
  padding: 12px 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

@keyframes blinkHandPremium {
  0% { opacity: 0.5; transform: translateY(0); filter: drop-shadow(0 0 2px rgba(197, 160, 89, 0.3)); }
  50% { opacity: 1; transform: translateY(-3px) scale(1.1); filter: drop-shadow(0 0 8px rgba(197, 160, 89, 1)); }
  100% { opacity: 0.5; transform: translateY(0); filter: drop-shadow(0 0 2px rgba(197, 160, 89, 0.3)); }
}

.album-cover-hint svg {
  animation: blinkHandPremium 1.5s infinite ease-in-out;
  color: #C5A059;
}

.album-cover-interactive:hover .album-cover-hint {
  background: rgba(197, 160, 89, 0.9);
  color: #000;
}

.cta-container.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-20px);
}

.cta-container.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInDown 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Heartbeat Hand Animation --- */
.hand-wrapper {
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  font-size: 3rem; /* Make it significantly bigger */
}

@keyframes heartbeatHand {
  0% { transform: scale(1); }
  15% { transform: scale(1.4) rotate(-5deg); filter: drop-shadow(0 4px 10px rgba(197,160,89,0.8)); }
  30% { transform: scale(1); }
  45% { transform: scale(1.4) rotate(-5deg); filter: drop-shadow(0 4px 10px rgba(197,160,89,0.8)); }
  70% { transform: scale(1); }
  100% { transform: scale(1); }
}

.heartbeat-hand {
  display: inline-block;
  animation: heartbeatHand 1.6s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center center;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8)); /* Adds base 3D depth */
}
