#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
  will-change: opacity;
}

#intro-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vh;
  background: radial-gradient(circle, rgba(163, 126, 44, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
}

.intro-bg-glow.show {
  opacity: 1;
}

#intro-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Enter Experience Gateway */
.enter-gateway {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
  will-change: opacity;
}

.enter-gateway.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-btn {
  background: transparent;
  border: 1px solid rgba(230, 194, 101, 0.35);
  padding: 1.2rem 3rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(230, 194, 101, 0.05);
  backdrop-filter: blur(10px);
  min-height: auto;
  font-weight: 600;
}

.enter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(230, 194, 101, 0.15) 0%, rgba(230, 194, 101, 0) 70%);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.enter-btn:hover {
  border-color: var(--gold-2);
  box-shadow: 
    0 0 45px rgba(230, 194, 101, 0.25), 
    inset 0 0 20px rgba(230, 194, 101, 0.1);
  letter-spacing: 0.3em;
  transform: translateY(-2px);
  color: #ffffff;
}

.enter-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.enter-btn:active {
  transform: translateY(1px);
}

.intro-container {
  position: relative;
  width: min(90vw, 1000px);
  aspect-ratio: 1000/300;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), visibility 1s;
}

.intro-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  will-change: transform;
}

.signature-text {
  fill: url(#gold-grad);
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgba(230, 194, 101, 0.12));
  letter-spacing: 2px;
}

.signature-outline {
  transition: opacity 1.5s ease;
}

.signature-outline.hide {
  opacity: 0;
}

#reveal-path {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
}

/* Drawing Spark */
#drawing-spark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
  display: none;
  mix-blend-mode: screen;
}

#drawing-spark.active {
  display: block;
}

.spark-core {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 
    0 0 10px #ffffff,
    0 0 20px #ffd000,
    0 0 40px #ff6a00,
    0 0 80px #ff3c00;
}

.spark-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 2px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 0, 0.8) 20%, rgba(255, 110, 0, 0) 70%);
  transform: translate(-50%, -50%) rotate(-12deg);
  border-radius: 50%;
}

.spark-flare::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 0, 0.8) 20%, rgba(255, 110, 0, 0) 70%);
  transform: translate(-50%, -50%) rotate(90deg);
  border-radius: 50%;
}

/* Skip Button */
#skip-intro {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.18s ease, background 0.18s ease;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-color: rgba(245, 240, 232, 0.2);
  padding: 0.6rem 1.2rem;
  min-height: auto;
}

#skip-intro.show {
  opacity: 0.7;
  transform: translateY(0);
}

#skip-intro.show:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--gold-2);
  background: rgba(201, 168, 76, 0.1);
}

/* Header Replay Button Style */
.replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid rgba(245, 240, 232, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.replay-btn:hover {
  color: var(--gold-2);
  border-color: var(--gold-2);
  background: rgba(201, 168, 76, 0.08);
}

.replay-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Body States during Intro */
body.intro-active {
  overflow: hidden !important;
}

body.intro-active .site-header,
body.intro-active main,
body.intro-active .site-footer {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(15px);
}

/* Normal Site Reveal Styles */
.site-header, main, .site-footer {
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Floating Music Toggle Button */
.music-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  background: rgba(18, 18, 18, 0.75);
  border: 1px solid rgba(230, 194, 101, 0.3);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: var(--gold-2);
}

.music-toggle:hover {
  border-color: var(--gold-2);
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(230, 194, 101, 0.25);
  color: #ffffff;
}

.music-toggle.muted .sound-waves {
  display: none;
}

.music-toggle.muted .mute-icon {
  display: block;
}

.music-toggle:not(.muted) .sound-waves {
  display: flex;
}

.music-toggle:not(.muted) .mute-icon {
  display: none;
}

/* Sound Wave Equalizer Animation */
.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.sound-waves span {
  display: block;
  width: 2.5px;
  background-color: currentColor;
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite alternate;
  will-change: height;
}

.sound-waves span:nth-child(1) { height: 6px; animation-delay: -0.4s; }
.sound-waves span:nth-child(2) { height: 16px; animation-delay: -0.8s; }
.sound-waves span:nth-child(3) { height: 10px; animation-delay: -0.2s; }
.sound-waves span:nth-child(4) { height: 12px; animation-delay: -0.6s; }

@keyframes wave {
  0% {
    height: 3px;
  }
  100% {
    height: 18px;
  }
}

.music-toggle.muted svg {
  color: rgba(255, 255, 255, 0.45);
}
