.site-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #021735;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: transform .75s cubic-bezier(.76, 0, .24, 1), border-radius .75s cubic-bezier(.76, 0, .24, 1), visibility 0s .75s;
}

.site-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(101, 214, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 214, 255, .13) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 48%, #000, transparent 70%);
}

.site-intro::after {
  content: "";
  position: absolute;
  width: min(68vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(101, 214, 255, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(0, 91, 255, .035),
    0 0 0 180px rgba(0, 91, 255, .02),
    0 0 120px rgba(0, 91, 255, .16);
  transform: scale(.72);
  opacity: 0;
}

.intro-frame {
  position: absolute;
  inset: 24px;
  z-index: 1;
  border: 1px solid rgba(101, 214, 255, .14);
  pointer-events: none;
}

.intro-frame::before,
.intro-frame::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: #65d6ff;
  opacity: .68;
}

.intro-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.intro-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.intro-index,
.intro-status {
  position: absolute;
  z-index: 2;
  color: rgba(205, 222, 245, .58);
  font: 600 9px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
}

.intro-index { top: 42px; left: 44px; }
.intro-status { right: 44px; bottom: 42px; }

.intro-core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(88vw, 720px);
  text-align: center;
}

.intro-logo-mark {
  width: 92px;
  height: 92px;
  overflow: visible;
  filter: drop-shadow(0 18px 34px rgba(0, 91, 255, .32));
  opacity: 0;
  transform: scale(.78) rotate(-5deg);
}

.intro-logo-mark .intro-tile {
  fill: #005bff;
  stroke: rgba(255, 255, 255, .22);
  stroke-width: 1;
}

.intro-logo-mark .intro-wave {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}

.intro-wordmark {
  margin-top: 24px;
  overflow: hidden;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(34px, 5.3vw, 66px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}

.intro-wordmark span {
  display: block;
  opacity: 0;
  transform: translateY(105%);
}

.intro-subline {
  margin-top: 13px;
  color: #65d6ff;
  font: 600 10px/1.5 "IBM Plex Mono", monospace;
  letter-spacing: .27em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
}

.intro-progress {
  position: relative;
  width: min(72vw, 390px);
  height: 1px;
  margin-top: 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, .15);
  opacity: 0;
}

.intro-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #005bff, #65d6ff, #fff);
  transform: scaleX(0);
  transform-origin: left;
}

.site-intro.is-playing::after {
  animation: intro-orbit 1.6s cubic-bezier(.16, 1, .3, 1) .15s forwards;
}

.site-intro.is-playing .intro-index,
.site-intro.is-playing .intro-status {
  animation: intro-fade .6s ease .12s forwards;
}

.site-intro.is-playing .intro-logo-mark {
  animation: intro-mark .8s cubic-bezier(.16, 1, .3, 1) .18s forwards;
}

.site-intro.is-playing .intro-wave {
  animation: intro-draw .85s cubic-bezier(.16, 1, .3, 1) .36s forwards;
}

.site-intro.is-playing .intro-wordmark span {
  animation: intro-copy .72s cubic-bezier(.16, 1, .3, 1) .66s forwards;
}

.site-intro.is-playing .intro-subline {
  animation: intro-fade-up .62s cubic-bezier(.16, 1, .3, 1) .93s forwards;
}

.site-intro.is-playing .intro-progress {
  animation: intro-fade .3s ease 1.05s forwards;
}

.site-intro.is-playing .intro-progress::after {
  animation: intro-progress 1.35s cubic-bezier(.65, 0, .35, 1) 1.05s forwards;
}

.site-intro.is-leaving {
  transform: translate3d(0, -102%, 0);
  border-radius: 0 0 48% 48%;
  pointer-events: none;
}

.site-intro.is-skipped {
  display: none;
}

body.intro-active {
  overflow: hidden;
}

body.intro-active .site-header,
body.intro-active main,
body.intro-active .footer {
  opacity: .72;
  filter: blur(5px);
  transform: scale(.992);
}

.site-header,
main,
.footer {
  transition: opacity .75s cubic-bezier(.16, 1, .3, 1), filter .75s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.16, 1, .3, 1);
}

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

@keyframes intro-mark {
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes intro-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes intro-copy {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes intro-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-progress {
  to { transform: scaleX(1); }
}

@media (max-width: 560px) {
  .intro-frame { inset: 12px; }
  .intro-index { top: 25px; left: 26px; }
  .intro-status { right: 26px; bottom: 25px; }
  .intro-logo-mark { width: 76px; height: 76px; }
  .intro-wordmark { margin-top: 20px; font-size: 38px; }
  .intro-subline { font-size: 8px; letter-spacing: .2em; }
}
