.site-intro {
  --intro-pink: #f2308f;
  --intro-blue: #3478ff;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 30% 38%, rgba(52, 120, 255, .16), transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(242, 48, 143, .19), transparent 33%),
    #0b0714;
  opacity: 1;
  transition: opacity .48s ease, visibility .48s ease;
}

body.intro-loading {
  overflow: hidden;
}

.site-intro.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.site-intro-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(68vw, 760px);
  aspect-ratio: 1.7;
  border: 1px solid rgba(98, 160, 255, .2);
  border-radius: 50%;
  box-shadow:
    0 0 55px rgba(52, 120, 255, .14),
    inset 0 0 55px rgba(242, 48, 143, .09);
  transform: translate(-50%, -50%) scale(.72) rotate(-8deg);
  animation: intro-ring 1.75s cubic-bezier(.2, .7, .2, 1) forwards;
}

.site-intro-glow::before,
.site-intro-glow::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(242, 48, 143, .2);
  border-radius: inherit;
  transform: rotate(15deg);
}

.site-intro-glow::after {
  inset: 20%;
  border-color: rgba(255, 255, 255, .08);
  transform: rotate(-19deg);
}

.site-intro-brand {
  position: relative;
  z-index: 2;
  font-family: Montserrat, sans-serif;
  font-size: clamp(48px, 10vw, 112px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: .08em;
  filter: drop-shadow(0 0 24px rgba(242, 48, 143, .2));
  transform: translateX(.04em);
}

.site-intro-outline,
.site-intro-fill {
  display: block;
  white-space: nowrap;
}

.site-intro-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
}

.site-intro-outline span {
  -webkit-text-stroke-color: rgba(242, 48, 143, .5);
}

.site-intro-fill {
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(100deg, #62a0ff 2%, #fff 45%, #ff4da6 83%);
  background-clip: text;
  -webkit-background-clip: text;
  clip-path: inset(100% 0 0 0);
  filter:
    drop-shadow(0 0 8px rgba(98, 160, 255, .75))
    drop-shadow(0 0 18px rgba(242, 48, 143, .7));
  animation: intro-neon-fill 1.3s .18s cubic-bezier(.65, 0, .2, 1) forwards;
}

.site-intro-fill span {
  background: #ff4da6;
  background-clip: text;
  -webkit-background-clip: text;
}

.site-intro-tagline {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  color: #9e96ad;
  font: 700 clamp(8px, 1vw, 11px) Montserrat, sans-serif;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  animation: intro-caption .5s 1.05s ease forwards;
}

.site-intro-progress {
  position: relative;
  z-index: 2;
  width: min(240px, 48vw);
  height: 2px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

.site-intro-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--intro-blue), #9b65ff, var(--intro-pink));
  box-shadow: 0 0 14px rgba(98, 160, 255, .8), 0 0 18px rgba(242, 48, 143, .6);
  transform: translateX(-101%);
  animation: intro-progress 1.45s .12s cubic-bezier(.55, 0, .2, 1) forwards;
}

.site-intro-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes intro-neon-fill {
  0% { clip-path: inset(100% 0 0 0); }
  72% { clip-path: inset(0 0 0 0); }
  82% { opacity: .7; }
  90% { opacity: 1; }
  95% { opacity: .78; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes intro-progress {
  to { transform: translateX(0); }
}

@keyframes intro-caption {
  to { opacity: 1; transform: none; }
}

@keyframes intro-ring {
  55% { opacity: 1; }
  100% { opacity: .75; transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
}

@media (max-width: 600px) {
  .site-intro-glow {
    width: 105vw;
  }

  .site-intro-brand {
    font-size: clamp(46px, 16vw, 72px);
    letter-spacing: .04em;
  }

  .site-intro-tagline {
    letter-spacing: .22em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro-glow,
  .site-intro-fill,
  .site-intro-tagline,
  .site-intro-progress span {
    animation: none;
  }

  .site-intro-fill {
    clip-path: inset(0);
  }

  .site-intro-tagline {
    opacity: 1;
    transform: none;
  }
}
