/* =========================================================
   AYANDA JIYA
   SPOTLIGHT PRELOADER
========================================================= */

.spotlight-preloader {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100dvh;

  background: #000;

  z-index: 999999;

  overflow: hidden;

  color: #fff;

  opacity: 1;
  visibility: visible;

  isolation: isolate;

  font-family: "Inter", sans-serif;
}

/* =========================================================
   ATMOSPHERIC HAZE
========================================================= */

.stage-haze {
  position: absolute;
  inset: -20%;

  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(255, 255, 255, 0.055),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 50% 75%,
      rgba(120, 70, 130, 0.035),
      transparent 45%
    );

  opacity: 0;

  pointer-events: none;

  z-index: 1;
}

/* =========================================================
   STAGE GRAIN
========================================================= */

.stage-grain {
  position: absolute;
  inset: 0;

  background-image: url("https://grainy-gradients.vercel.app/noise.svg");

  background-repeat: repeat;

  opacity: 0.045;

  pointer-events: none;

  z-index: 50;
}

/* =========================================================
   SPOTLIGHT BEAMS
========================================================= */

.spotlight-beam {
  position: absolute;

  top: -25%;

  width: 42vw;
  height: 150%;

  pointer-events: none;

  opacity: 0;

  filter: blur(20px);

  z-index: 2;

  transform-origin: top center;
}

/* LEFT */

.spotlight-beam-left {
  left: 8%;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.018) 35%,
    rgba(255, 255, 255, 0.085) 50%,
    rgba(255, 255, 255, 0.018) 65%,
    transparent 100%
  );

  transform: rotate(-10deg) scaleY(0.8);
}

/* RIGHT */

.spotlight-beam-right {
  right: 8%;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.018) 35%,
    rgba(255, 255, 255, 0.085) 50%,
    rgba(255, 255, 255, 0.018) 65%,
    transparent 100%
  );

  transform: rotate(10deg) scaleY(0.8);
}

/* =========================================================
   CENTER STAGE LIGHT
========================================================= */

.spotlight-preloader::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 48%;

  width: 70vw;
  height: 100vh;

  transform: translate(-50%, -50%) scale(0.75);

  background: radial-gradient(
    ellipse at center,

    rgba(255, 255, 255, 0.1) 0%,

    rgba(255, 255, 255, 0.055) 20%,

    rgba(255, 255, 255, 0.025) 40%,

    rgba(255, 255, 255, 0.008) 58%,

    transparent 74%
  );

  filter: blur(18px);

  opacity: 0;

  pointer-events: none;

  z-index: 3;
}

/* =========================================================
   CONTENT
========================================================= */

.spotlight-content {
  position: relative;

  z-index: 10;

  width: 100%;
  height: 100%;

  padding: clamp(28px, 5vw, 70px) clamp(24px, 6vw, 90px);

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  pointer-events: none;
}

/* =========================================================
   TOP INFORMATION
========================================================= */

.spotlight-top,
.spotlight-bottom {
  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 0.58rem;

  letter-spacing: 0.25em;

  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.5);

  opacity: 0;
}

/* small lines */

.spotlight-top span:first-child,
.spotlight-bottom span:first-child {
  position: relative;
}

.spotlight-top span:first-child::after {
  content: "";

  display: inline-block;

  width: 35px;
  height: 1px;

  background: rgba(255, 255, 255, 0.35);

  margin-left: 15px;

  vertical-align: middle;
}

/* =========================================================
   CENTER STAGE
========================================================= */

.spotlight-stage {
  position: absolute;

  left: 50%;
  top: 50%;

  width: min(90vw, 1100px);

  transform: translate(-50%, -50%) translateY(30px);

  text-align: center;
}

/* =========================================================
   KICKER
========================================================= */

.spotlight-kicker {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 15px;

  margin-bottom: 28px;

  font-size: 0.58rem;

  letter-spacing: 0.4em;

  color: rgba(255, 255, 255, 0.55);

  opacity: 0;
}

.spotlight-kicker span {
  display: block;

  width: 45px;
  height: 1px;

  background: rgba(255, 255, 255, 0.3);
}

/* =========================================================
   ARTIST NAME
========================================================= */

.spotlight-name {
  display: flex;

  flex-direction: column;

  align-items: center;

  font-family: "Playfair Display", serif;

  font-size: clamp(5rem, 13vw, 12rem);

  line-height: 0.78;

  letter-spacing: -0.055em;

  color: #fff;

  overflow: visible;

  opacity: 0;
}

/* Make JIYA slightly offset */

.spotlight-name span:last-child {
  margin-left: 0.18em;
}

/* =========================================================
   SUBTITLE
========================================================= */

.spotlight-subtitle {
  margin-top: 38px;

  font-size: 0.65rem;

  letter-spacing: 0.4em;

  color: rgba(255, 255, 255, 0.6);

  text-transform: uppercase;

  opacity: 0;
}

/* =========================================================
   PROGRESS
========================================================= */

.spotlight-progress {
  width: min(360px, 70vw);

  margin: 55px auto 0;

  opacity: 0;
}

/* line */

.progress-line {
  width: 100%;

  height: 1px;

  background: rgba(255, 255, 255, 0.16);

  overflow: hidden;
}

.progress-fill {
  width: 0%;

  height: 100%;

  background: rgba(255, 255, 255, 0.85);

  transform-origin: left center;
}

/* progress information */

.progress-meta {
  display: flex;

  justify-content: space-between;

  margin-top: 10px;

  font-size: 0.52rem;

  letter-spacing: 0.22em;

  color: rgba(255, 255, 255, 0.42);
}

/* =========================================================
   PARTICLES
========================================================= */

.stage-particles {
  position: absolute;

  inset: 0;

  z-index: 5;

  pointer-events: none;
}

.stage-particles span {
  position: absolute;

  width: 2px;
  height: 2px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.55);

  opacity: 0;
}

/* individual particle positions */

.stage-particles span:nth-child(1) {
  left: 12%;
  top: 30%;
}

.stage-particles span:nth-child(2) {
  left: 23%;
  top: 65%;
}

.stage-particles span:nth-child(3) {
  left: 34%;
  top: 25%;
}

.stage-particles span:nth-child(4) {
  left: 44%;
  top: 72%;
}

.stage-particles span:nth-child(5) {
  left: 56%;
  top: 30%;
}

.stage-particles span:nth-child(6) {
  left: 67%;
  top: 62%;
}

.stage-particles span:nth-child(7) {
  left: 78%;
  top: 24%;
}

.stage-particles span:nth-child(8) {
  left: 87%;
  top: 70%;
}

.stage-particles span:nth-child(9) {
  left: 18%;
  top: 48%;
}

.stage-particles span:nth-child(10) {
  left: 81%;
  top: 44%;
}

.stage-particles span:nth-child(11) {
  left: 40%;
  top: 18%;
}

.stage-particles span:nth-child(12) {
  left: 61%;
  top: 78%;
}

/* =========================================================
   FINAL FLASH
========================================================= */

.spotlight-flash {
  position: absolute;

  inset: 0;

  background: #fff;

  opacity: 0;

  pointer-events: none;

  z-index: 100;
}

/* =========================================================
   BODY LOCK
========================================================= */

body.preloader-active {
  overflow: hidden !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {
  .spotlight-content {
    padding: 30px 28px;
  }

  .spotlight-name {
    font-size: clamp(4.2rem, 17vw, 8rem);

    line-height: 0.8;
  }

  .spotlight-subtitle {
    font-size: 0.52rem;

    letter-spacing: 0.25em;

    margin-top: 28px;
  }

  .spotlight-kicker {
    font-size: 0.5rem;

    letter-spacing: 0.3em;
  }

  .spotlight-progress {
    margin-top: 40px;
  }

  .spotlight-top,
  .spotlight-bottom {
    font-size: 0.48rem;

    letter-spacing: 0.18em;
  }

  .spotlight-beam {
    width: 70vw;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 430px) {
  .spotlight-content {
    padding: 24px 18px;
  }

  .spotlight-stage {
    width: 100%;
  }

  .spotlight-name {
    font-size: clamp(3.8rem, 20vw, 5.8rem);

    line-height: 0.82;
  }

  .spotlight-name span:last-child {
    margin-left: 0.12em;
  }

  .spotlight-kicker {
    gap: 8px;

    font-size: 0.43rem;

    letter-spacing: 0.22em;

    margin-bottom: 22px;
  }

  .spotlight-kicker span {
    width: 25px;
  }

  .spotlight-subtitle {
    margin-top: 22px;

    font-size: 0.43rem;

    letter-spacing: 0.16em;
  }

  .spotlight-progress {
    width: 75vw;

    margin-top: 35px;
  }

  .progress-meta {
    font-size: 0.42rem;

    letter-spacing: 0.14em;
  }

  .spotlight-top,
  .spotlight-bottom {
    font-size: 0.39rem;

    letter-spacing: 0.12em;
  }

  .spotlight-top span:first-child::after {
    width: 20px;

    margin-left: 8px;
  }

  .spotlight-beam {
    width: 100vw;

    filter: blur(25px);
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .spotlight-preloader *,
  .spotlight-preloader {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}
