/* Theistless motion layer */

html.intro-skip #flashIntro,
html.intro-skip .flash-intro {
  display: none !important;
}

body.intro-active {
  overflow: hidden;
}

/* Intro splash */
.flash-intro {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: #050505;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.flash-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.flash-intro-skip {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  padding: 0.45rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.flash-intro-skip:hover {
  color: var(--gold);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 18px var(--gold-glow);
}

.flash-intro-stage {
  position: relative;
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.15),
    0 0 60px rgba(163, 42, 42, 0.25),
    0 0 80px rgba(201, 162, 39, 0.2);
}

.flash-intro-gates {
  position: absolute;
  inset: 0;
  display: flex;
}

.flash-intro-gate {
  flex: 1;
  position: relative;
  overflow: hidden;
  animation: gate-open 2.2s var(--ease-out) 0.35s forwards;
}

.flash-intro-gate--left {
  background: linear-gradient(135deg, #1a1408 0%, #3d3010 40%, #c9a227 100%);
  transform-origin: left center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.flash-intro-gate--right {
  background: linear-gradient(225deg, #1a0808 0%, #3d1010 40%, #a32a2a 100%);
  transform-origin: right center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.flash-intro-gate::after {
  content: '';
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.flash-intro-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 240, 200, 0.35) 0%, transparent 55%);
  opacity: 0;
  animation: intro-light 1.4s ease 1.4s forwards;
}

.flash-intro-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.82);
  animation: intro-title 1.1s var(--ease-out) 1.55s forwards;
}

.flash-intro-title span {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  line-height: 1;
}

.flash-intro-title .line-main {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  color: var(--text);
  text-shadow:
    0 0 12px var(--gold-glow),
    0 0 28px var(--hell-glow),
    0 2px 0 #000;
}

.flash-intro-title .line-sub {
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  color: var(--text-muted);
  letter-spacing: 0.35em;
}

@keyframes gate-open {
  0% { transform: scaleX(1); filter: brightness(0.7); }
  100% { transform: scaleX(0.02); filter: brightness(1.2); }
}

@keyframes intro-light {
  to { opacity: 1; }
}

@keyframes intro-title {
  to { opacity: 1; transform: scale(1); }
}

/* Hero */
.hero--animated {
  isolation: isolate;
}

.hero-flash-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-flash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-flash-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(201, 162, 39, 0.12) 0%, transparent 42%, transparent 58%, rgba(163, 42, 42, 0.14) 100%),
    radial-gradient(ellipse at 25% 50%, rgba(201, 162, 39, 0.18), transparent 50%),
    radial-gradient(ellipse at 75% 50%, rgba(163, 42, 42, 0.2), transparent 50%);
  animation: veil-pulse 6s ease-in-out infinite alternate;
}

.hero-flash-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  opacity: 0.35;
  animation: scan-drift 8s linear infinite;
}

.hero-flash-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(28vw, 180px);
  height: min(28vw, 180px);
  transform: translate(-50%, -50%);
  opacity: 0.55;
  animation: symbol-spin 24s linear infinite;
}

.hero-flash-symbol svg {
  width: 100%;
  height: 100%;
}

@keyframes veil-pulse {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

@keyframes scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(8px); }
}

@keyframes symbol-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero--animated .hero-content {
  z-index: 3;
}

.hero--animated .hero-eyebrow {
  animation: flash-flicker-in 1.2s var(--ease-out) 0.2s both;
}

.hero--animated .hero-tagline {
  animation: flash-rise-in 1s var(--ease-out) 0.45s both;
}

.hero--animated .hero-actions {
  animation: flash-rise-in 1s var(--ease-out) 0.65s both;
}

@keyframes flash-flicker-in {
  0% { opacity: 0; filter: brightness(2); letter-spacing: 0.5em; }
  40% { opacity: 1; filter: brightness(1.4); }
  70% { opacity: 0.7; }
  100% { opacity: 1; filter: brightness(1); letter-spacing: 0.35em; }
}

@keyframes flash-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-flash {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.btn-flash::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #fff3c4, var(--hell));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s;
}

.btn-flash::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.45s, height 0.45s, opacity 0.45s;
  opacity: 0;
}

.btn-flash:hover {
  transform: scale(1.06);
  box-shadow: 0 0 22px var(--gold-glow), 0 0 22px var(--hell-glow);
}

.btn-flash:hover::before {
  opacity: 0.35;
}

.btn-flash:active::after {
  width: 220px;
  height: 220px;
  opacity: 0;
  transition: 0s;
}

/* Album artwork */
.featured-artwork--flash .artwork-glow-gold {
  animation: halo-pulse-gold 3s ease-in-out infinite;
}

.featured-artwork--flash .artwork-glow-hell {
  animation: halo-pulse-hell 3s ease-in-out infinite 1.5s;
}

.featured-artwork--flash .artwork-img {
  animation: artwork-breathe 5s ease-in-out infinite;
}

@keyframes halo-pulse-gold {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.08); }
}

@keyframes halo-pulse-hell {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}

@keyframes artwork-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* About duality meter */
.about-duality-wrap {
  margin: 2rem 0;
}

.about-duality-wrap .about-duality {
  margin: 0;
}

.about-duality-meter {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.about-duality-meter-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: 3.5rem;
}

.about-duality-meter-label--gold {
  color: var(--gold);
  text-align: right;
}

.about-duality-meter-label--hell {
  color: var(--hell);
}

.live-meter {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, #333 50%, var(--hell) 100%);
  position: relative;
  overflow: hidden;
}

.live-meter::after {
  content: '';
  position: absolute;
  top: -4px;
  left: var(--meter-pos, 50%);
  width: 14px;
  height: 18px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  transform: translateX(-50%);
  transition: left 0.35s var(--ease-out);
}

/* Singles bounce mark */
.single-bounce-mark {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 22px;
  height: 22px;
  animation: flash-bounce 1.2s cubic-bezier(0.34, 1.4, 0.64, 1) infinite;
  pointer-events: none;
}

.single-bounce-mark::before,
.single-bounce-mark::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
  box-shadow: 0 0 10px var(--gold-glow);
}

.single-bounce-mark::before {
  width: 100%;
  height: 5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.single-bounce-mark::after {
  width: 5px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

@keyframes flash-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .flash-intro,
  .flash-intro-gate,
  .flash-intro-light,
  .flash-intro-title,
  .hero-flash-veil,
  .hero-flash-scan,
  .hero-flash-symbol,
  .hero--animated .hero-eyebrow,
  .hero--animated .hero-tagline,
  .hero--animated .hero-actions,
  .featured-artwork--flash .artwork-glow-gold,
  .featured-artwork--flash .artwork-glow-hell,
  .featured-artwork--flash .artwork-img,
  .live-meter::after,
  .single-bounce-mark {
    animation: none !important;
  }

  .flash-intro {
    display: none;
  }
}