.mc-intro {
  --mc-intro-target-x: 42px;
  --mc-intro-target-y: 42px;
  --mc-intro-target-shift-x: calc(-50vw + 42px);
  --mc-intro-target-shift-y: calc(-44vh + 42px);
  --mc-intro-target-scale: .36;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f7fbff;
  background:
    radial-gradient(circle at 50% 44%, rgba(35, 214, 165, .2), transparent 29%),
    radial-gradient(circle at 56% 54%, rgba(82, 185, 255, .14), transparent 43%),
    #071525;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
  contain: layout paint style;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
}

.mc-intro[hidden] { display: none; }

.mc-intro.is-booting,
.mc-intro.is-playing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mc-intro.is-playing {
  animation: mc-intro-exit 2.6s cubic-bezier(.72, 0, .22, 1) both;
}

.mc-intro-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.mc-intro-field {
  position: absolute;
  inset: -24%;
  z-index: -2;
  opacity: .22;
  background-image:
    linear-gradient(rgba(117, 175, 221, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 175, 221, .14) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(680px) rotateX(58deg) translateY(24%);
  -webkit-mask-image: radial-gradient(circle, #000 0 35%, transparent 74%);
  mask-image: radial-gradient(circle, #000 0 35%, transparent 74%);
}

.mc-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 34%, rgba(35, 214, 165, .1) 50%, transparent 66%);
  transform: translateX(-100%);
}

.mc-intro.is-playing::after {
  animation: mc-intro-sweep 1.35s .08s ease-out both;
}

.mc-intro-beam {
  position: absolute;
  z-index: 1;
  width: min(680px, 78vw);
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #23d6a5, #5db8ff, transparent);
  box-shadow: 0 0 22px rgba(35, 214, 165, .64);
  opacity: 0;
}

.mc-intro.is-playing .mc-intro-beam {
  animation: mc-intro-beam 1.25s .12s ease-in-out both;
}

.mc-intro-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(93, 183, 255, .44);
  opacity: 0;
}

.mc-intro-ring-one { width: 210px; height: 210px; }
.mc-intro-ring-two { width: 310px; height: 310px; border-color: rgba(35, 214, 165, .34); }

.mc-intro.is-playing .mc-intro-ring-one {
  animation: mc-intro-ring 1.25s .18s ease-out both;
}

.mc-intro.is-playing .mc-intro-ring-two {
  animation: mc-intro-ring 1.35s .32s ease-out both;
}

.mc-intro-dot {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5db8ff;
  box-shadow: 0 0 18px rgba(82, 185, 255, .9);
  opacity: 0;
}

.mc-intro-dot-one { --x: -148px; --y: -88px; }
.mc-intro-dot-two { --x: 146px; --y: -64px; background: #23d6a5; }
.mc-intro-dot-three { --x: -126px; --y: 118px; background: #23d6a5; }
.mc-intro-dot-four { --x: 132px; --y: 106px; }

.mc-intro.is-playing .mc-intro-dot {
  animation: mc-intro-dot .82s .32s ease-out both;
}

.mc-intro-logo-wrap {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 3;
  width: 118px;
  height: 118px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 30px;
  background: #fff;
  box-shadow:
    0 0 0 10px rgba(35, 214, 165, .1),
    0 24px 64px rgba(0, 0, 0, .42);
  opacity: 0;
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.mc-intro.is-playing .mc-intro-logo-wrap {
  animation: mc-intro-logo 2.58s cubic-bezier(.22, .78, .2, 1) both;
}

.mc-intro-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.8);
  transform-origin: center;
}

.mc-intro-scan {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12%;
  height: 2px;
  border-radius: 99px;
  background: #23d6a5;
  box-shadow: 0 0 18px #23d6a5;
  opacity: 0;
}

.mc-intro.is-playing .mc-intro-scan {
  animation: mc-intro-scan .9s .42s ease-in-out both;
}

.mc-intro-wordmark {
  position: absolute;
  top: calc(44% + 78px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
}

.mc-intro-wordmark strong {
  font: 700 clamp(1.25rem, 4vw, 1.8rem)/1.1 'Ubuntu', 'Ubuntu', system-ui, sans-serif;
  letter-spacing: -.035em;
}

.mc-intro-wordmark span {
  color: #8da4bb;
  font: 700 .62rem/1.2 'Ubuntu', system-ui, sans-serif;
  letter-spacing: .24em;
}

.mc-intro.is-playing .mc-intro-wordmark {
  animation: mc-intro-wordmark 1.42s .62s ease-out both;
}

.mc-intro-ready {
  position: absolute;
  top: calc(44% + 136px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(117, 175, 221, .2);
  border-radius: 999px;
  color: #a9bbcc;
  background: rgba(17, 39, 61, .76);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
  opacity: 0;
}

.mc-intro-ready strong {
  font: 700 .72rem/1 'Ubuntu', system-ui, sans-serif;
  letter-spacing: .02em;
}

.mc-intro-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23d6a5;
  box-shadow: 0 0 0 5px rgba(35, 214, 165, .12), 0 0 18px rgba(35, 214, 165, .8);
}

.mc-intro.is-playing .mc-intro-ready {
  animation: mc-intro-ready 1s 1.12s ease-out both;
}

@keyframes mc-intro-exit {
  0%, 76% {
    opacity: 1;
    visibility: visible;
    transform: translateZ(0) scale(1);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateZ(0) scale(1.003);
  }
}

@keyframes mc-intro-logo {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(.66) rotate(-8deg);
    filter: blur(5px);
    animation-timing-function: cubic-bezier(.22, .78, .2, 1);
  }
  18%, 48% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1) rotate(0);
    filter: blur(0);
  }
  48% { animation-timing-function: cubic-bezier(.45, 0, .35, 1); }
  100% {
    opacity: 1;
    transform: translate3d(
        calc(-50% + var(--mc-intro-target-shift-x)),
        calc(-50% + var(--mc-intro-target-shift-y)),
        0
      ) scale(var(--mc-intro-target-scale));
    filter: blur(0);
  }
}

@keyframes mc-intro-scan {
  0% { top: 12%; opacity: 0; }
  18% { opacity: 1; }
  76% { top: 88%; opacity: 1; }
  100% { top: 88%; opacity: 0; }
}

@keyframes mc-intro-ring {
  0% { opacity: 0; transform: scale(.54); }
  38% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes mc-intro-dot {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4); }
  32% { opacity: 1; }
  100% { opacity: 0; transform: translate(0, 0) scale(1.4); }
}

@keyframes mc-intro-wordmark {
  0% { opacity: 0; transform: translateY(14px); }
  34%, 78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes mc-intro-ready {
  0% { opacity: 0; transform: translateY(8px); }
  32%, 72% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes mc-intro-beam {
  0% { opacity: 0; transform: translateY(-132px) scaleX(.42); }
  24%, 72% { opacity: .92; }
  100% { opacity: 0; transform: translateY(132px) scaleX(1); }
}

@keyframes mc-intro-sweep {
  to { transform: translateX(100%); }
}

@media (max-width: 560px) {
  .mc-intro-logo-wrap {
    width: 104px;
    height: 104px;
    border-radius: 27px;
  }

  .mc-intro-ring-one { width: 176px; height: 176px; }
  .mc-intro-ring-two { width: 258px; height: 258px; }
  .mc-intro-wordmark { top: calc(44% + 72px); }
  .mc-intro-ready { top: calc(44% + 128px); }
  .mc-intro-beam { width: 84vw; }
  .mc-intro-dot-one { --x: -118px; --y: -72px; }
  .mc-intro-dot-two { --x: 120px; --y: -54px; }
  .mc-intro-dot-three { --x: -105px; --y: 92px; }
  .mc-intro-dot-four { --x: 108px; --y: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-intro.is-playing {
    animation: mc-intro-reduced-exit .01s .14s linear both;
  }

  .mc-intro.is-playing::after,
  .mc-intro.is-playing .mc-intro-field,
  .mc-intro.is-playing .mc-intro-beam,
  .mc-intro.is-playing .mc-intro-ring,
  .mc-intro.is-playing .mc-intro-dot,
  .mc-intro.is-playing .mc-intro-logo-wrap,
  .mc-intro.is-playing .mc-intro-scan,
  .mc-intro.is-playing .mc-intro-wordmark,
  .mc-intro.is-playing .mc-intro-ready {
    animation-duration: .01s !important;
    animation-delay: 0s !important;
  }
}

@keyframes mc-intro-reduced-exit {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
