/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}

.hero-collage-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-title-box {
  position: relative;
  text-align: center;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -1.5rem;
}

.hero-title-heading {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-title-img {
  width: clamp(320px, 58vw, 840px);
  max-width: 92vw;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.hero-title-text {
  font-family: var(--f-righteous), cursive, sans-serif;
  font-size: clamp(5.5rem, 16vw, 13rem);
  line-height: 0.88;
  color: #19191E;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.hero-vol-img {
  width: clamp(150px, 19vw, 290px);
  height: auto;
  display: block;
  margin: -0.4rem auto 1.1rem;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* --- Hero CTA Burn The Blueprint Button (hero-button.webp & Cream Paper Backing) --- */
.hero-cta-container {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.btn-burn-blueprint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.95rem 3.4rem;
  min-width: 300px;
  cursor: pointer;
  outline: none;
  user-select: none;
  overflow: visible;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.22s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.btn-burn-blueprint:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(6px 8px 0px #000000) drop-shadow(0 0 16px rgba(255, 94, 0, 0.5));
}

.btn-burn-blueprint:active {
  transform: translateY(1px) scale(0.98);
  filter: drop-shadow(3px 4px 0px #000000);
}

/* Cream Torn Parchment Backing Layer (Offset Bottom-Right) */
.banner-backing-layer {
  position: absolute;
  inset: 4px -5px -6px 4px;
  background: #F7E7D1;
  clip-path: polygon(2% 8%, 15% 5%, 35% 10%, 60% 6%, 85% 9%, 98% 5%,
      100% 50%, 98% 95%, 80% 92%, 55% 96%, 30% 91%, 5% 96%,
      0% 50%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.2s ease;
}

/* Front Burnt Jagged Ribbon (hero-button.webp) */
.banner-button-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}

/* Glowing Ember Coal Center inside the Button */
.btn-ember-core {
  position: absolute;
  inset: 10px 24px;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 100, 0, 0.28) 0%, rgba(255, 40, 0, 0.08) 55%, transparent 75%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  transform: translateZ(0);
}

.btn-burn-blueprint:hover .btn-ember-core {
  opacity: 1;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 130, 0, 0.45) 0%, rgba(255, 50, 0, 0.18) 55%, transparent 80%);
}

/* Sparks & Embers Floating Layer (Constrained inside the button) */
.btn-burn-blueprint .btn-sparks-layer {
  position: absolute;
  inset: 6px 22px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 4px;
  z-index: 2;
  transform: translateZ(0);
}

.btn-burn-blueprint .spark {
  position: absolute;
  border-radius: 50%;
  background: #FFAA00;
  box-shadow: 0 0 6px #FF4500, 0 0 12px #FF2200;
  opacity: 0;
  animation: emberRiseInside 2.4s infinite ease-out;
  will-change: transform, opacity;
}

.sp-1 {
  left: 16%;
  bottom: 6px;
  animation-delay: 0.1s;
  width: 4px;
  height: 4px;
}

.sp-2 {
  left: 30%;
  bottom: 4px;
  animation-delay: 0.7s;
  width: 5px;
  height: 5px;
  background: #FFD24D;
}

.sp-3 {
  left: 45%;
  bottom: 8px;
  animation-delay: 1.3s;
  width: 4px;
  height: 4px;
}

.sp-4 {
  left: 60%;
  bottom: 5px;
  animation-delay: 0.4s;
  width: 5px;
  height: 5px;
  background: #FF6600;
}

.sp-5 {
  left: 75%;
  bottom: 7px;
  animation-delay: 1.8s;
  width: 4px;
  height: 4px;
  background: #FFE066;
}

.sp-6 {
  left: 86%;
  bottom: 5px;
  animation-delay: 1.0s;
  width: 3px;
  height: 3px;
}

.sp-7 {
  left: 22%;
  bottom: 8px;
  animation-delay: 2.0s;
  width: 3px;
  height: 3px;
  background: #FF9900;
}

.sp-8 {
  left: 68%;
  bottom: 4px;
  animation-delay: 1.5s;
  width: 4px;
  height: 4px;
}

@keyframes emberRiseInside {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  20% {
    opacity: 0.9;
  }

  75% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(-34px) translateX(4px) scale(0.3);
    opacity: 0;
  }
}

.btn-burn-blueprint:hover .spark {
  animation-duration: 1.3s;
}

/* Button Typography: Darker Grotesque */
.btn-burn-text {
  position: relative;
  z-index: 3;
  font-family: var(--f-darker), 'Darker Grotesque', sans-serif;
  font-weight: 900;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

/* Button Ignition Activation Pulse (GPU accelerated, flicker-free) */
.btn-burn-blueprint.is-igniting,
.btn-blaze-read.is-igniting {
  animation: buttonIgniteBlast 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards !important;
  pointer-events: none;
}

@keyframes buttonIgniteBlast {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  30% {
    transform: scale(1.15);
    filter: brightness(1.8) drop-shadow(0 0 35px #FF6600);
  }

  60% {
    transform: scale(0.95);
    filter: brightness(1.4);
  }

  100% {
    transform: scale(1.03);
    filter: brightness(1.2);
  }
}

/* Fullscreen Burning Screen Rumble */
body.is-blazing-scroll {
  animation: screenRumble 0.35s ease-in-out infinite alternate;
}

@keyframes screenRumble {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-2px, 1.5px);
  }

  50% {
    transform: translate(2px, -1.5px);
  }

  75% {
    transform: translate(-1.5px, -1px);
  }

  100% {
    transform: translate(1.5px, 2px);
  }
}

/* Fiery Viewport Edge Vignette (Zero flicker, pure opacity transition) */
.blaze-viewport-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(255, 80, 0, 0.25) 72%, rgba(180, 15, 0, 0.65) 100%);
  will-change: opacity;
  transform: translateZ(0);
}

.blaze-viewport-vignette.active {
  opacity: 1;
}

/* Fire & Blaze Canvas (Hardware Accelerated, Full Viewport) */
#blaze-fire-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: opacity 0.5s ease;
}

/* Arrival Flame Impact on Reader Frame */
.reader-frame-wrapper.blaze-arrival-flash {
  animation: readerArrivalBlaze 2.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes readerArrivalBlaze {
  0% {
    box-shadow:
      12px 14px 0px var(--c-black),
      0 0 0 10px #FF3B00,
      0 0 60px #FF7700,
      0 0 120px rgba(255, 30, 0, 0.8);
    transform: scale(0.97);
  }

  30% {
    box-shadow:
      12px 14px 0px var(--c-black),
      0 0 0 18px #FFD700,
      0 0 90px #FF5500,
      0 0 150px rgba(255, 80, 0, 0.9);
    transform: scale(1.02);
  }

  65% {
    box-shadow:
      12px 14px 0px var(--c-black),
      0 0 0 6px #FF5E00,
      0 0 45px rgba(255, 94, 0, 0.6),
      0 0 80px rgba(255, 30, 0, 0.4);
    transform: scale(1);
  }

  100% {
    box-shadow: 12px 14px 0px var(--c-black);
    transform: scale(1);
  }
}

/* Collage Decorative Elements */
.sticker {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* Top-Left Splatter & Torn Paper */
.sticker-hero-paper-left {
  top: 0;
  left: 0;
  width: clamp(260px, 27vw, 380px);
  height: auto;
  z-index: 3;
  filter: drop-shadow(4px 8px 18px rgba(0, 0, 0, 0.35));
}

.sticker-hero-splatter {
  top: 0;
  left: 0;
  right: 30%;
  width: clamp(200px, 18vw, 270px);
  height: auto;
  z-index: 4;
  /* Above the paper */
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
}

/* Top-Right Pink Torn Paper */
.sticker-hero-paper-right {
  top: 0;
  right: 0;
  width: clamp(240px, 25vw, 360px);
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

/* Mid-Left Spray Paint "X" Marks */
.sticker-hero-x {
  left: 0;
  top: 30%;
  width: clamp(75px, 8vw, 120px);
  height: auto;
  z-index: 5;
}

/* Mid-Left Green Aerosol Spray Droplets (Over & Around X Marks) */
.sticker-hero-spray-left {
  left: clamp(-10px, 0.5vw, 15px);
  top: 35%;
  width: clamp(125px, 13.5vw, 195px);
  height: auto;
  z-index: 5;
  pointer-events: none;
}

/* Bottom-Left Astronaut Helmet Comic Burst (Figma Matched Placement & Size - Static, No Jitter) */
.sticker-hero-helmet {
  left: clamp(-30px, -2vw, -15px);
  bottom: clamp(-35px, -3vh, -15px);
  width: clamp(240px, 30vw, 420px);
  height: auto;
  z-index: 10;
  filter: drop-shadow(4px 6px 18px rgba(0, 0, 0, 0.35));
}

/* Upper-Right Blue Aerosol Spray Mist Droplets (Around Upper Star Spike) */
.sticker-hero-spray-right {
  /* left: 20%; */
  right: 0;
  top: 20%;
  width: clamp(115px, 12.5vw, 185px);
  height: auto;
  z-index: 5;
  pointer-events: none;
}

/* Right Blue Grid Star (Figma Matched Mid-Right Placement - Clear of Bottom Cluster) */
.sticker-hero-star {
  right: 0;
  top: 24%;
  width: clamp(155px, 17vw, 255px);
  height: auto;
  z-index: 6;
  filter: drop-shadow(4px 6px 14px rgba(0, 0, 0, 0.25));
}

/* Bottom-Right Collage Cluster */
.hero-bottom-right-cluster {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(340px, 38vw, 560px);
  height: clamp(240px, 26vw, 390px);
  pointer-events: none;
  user-select: none;
  z-index: 8;
}

.sticker-paper-grid {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  filter: drop-shadow(-4px -4px 12px rgba(0, 0, 0, 0.2));
}

.sticker-cutout-palm {
  position: absolute;
  right: 45%;
  bottom: 0;
  width: 68%;
  height: auto;
  z-index: 2;
}

/* Disco Record: Nested on Torn Notebook Paper & Palm Leaf (Figma Matched) */
.sticker-disco-record {
  position: absolute;
  right: 20%;
  bottom: 12%;
  width: clamp(88px, 9.2vw, 132px);
  height: clamp(88px, 9.2vw, 132px);
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  animation: vinylSpinSlow 5s linear infinite;
  transform-origin: center center;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s ease;
}

.sticker-disco-record .disco-record-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  border-radius: 50%;
}

.sticker-disco-record:hover,
.sticker-disco-record:focus-visible {
  animation-play-state: paused;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px rgba(30, 215, 96, 0.6));
}

.sticker-disco-record.is-active {
  animation-play-state: paused;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(30, 215, 96, 0.85));
}

@keyframes vinylSpinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Hero Spotify Playlist Popover Modal
   ========================================================================== */

.hero-spotify-modal {
  position: absolute;
  right: clamp(130px, 18vw, 280px);
  bottom: clamp(55px, 8vh, 120px);
  width: clamp(320px, 28vw, 390px);
  max-width: calc(100vw - 32px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s ease;
  pointer-events: none;
}

.hero-spotify-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-spotify-card {
  background: #121212;
  border: 3px solid #000000;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.95), 0 12px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* Neo-brutalist pointer arrow pointing towards the vinyl record */
.hero-spotify-card::after {
  content: '';
  position: absolute;
  bottom: 28px;
  right: -13px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #000000;
  display: block;
}

.hero-spotify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
}

.hero-spotify-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotify-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.spotify-eq-bars .bar {
  width: 3px;
  background-color: #1ED760;
  border-radius: 2px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.spotify-eq-bars .bar-1 {
  height: 40%;
  animation-delay: 0.1s;
}

.spotify-eq-bars .bar-2 {
  height: 95%;
  animation-delay: 0.35s;
}

.spotify-eq-bars .bar-3 {
  height: 60%;
  animation-delay: 0.2s;
}

.spotify-eq-bars .bar-4 {
  height: 80%;
  animation-delay: 0.5s;
}

@keyframes eqBounce {
  0% {
    height: 25%;
  }

  100% {
    height: 100%;
  }
}

.hero-spotify-label {
  font-family: var(--f-darker), 'Darker Grotesque', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1;
}

.btn-spotify-close {
  background: #FFE600;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 2px 2px 0px #000000;
}

.btn-spotify-close:hover {
  background: #FF3B00;
  color: #FFFFFF;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.btn-spotify-close:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.hero-spotify-iframe-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #282828;
  line-height: 0;
}

.hero-spotify-iframe-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

@media (max-width: 640px) {
  .hero-spotify-modal {
    right: 16px;
    left: 16px;
    margin: 0 auto;
    bottom: 75px;
    width: auto;
    max-width: 360px;
    transform-origin: bottom center;
  }

  .hero-spotify-card::after {
    display: none;
  }
}