:root {
  --intro-logo: #fece00;
  --intro-bg: #0a0a0a;
}

body.has-site-intro {
  overflow: hidden;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(254, 206, 0, .025), transparent 28%),
    linear-gradient(180deg, #050505 0%, var(--intro-bg) 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity .62s cubic-bezier(.4, 0, .2, 1),
    visibility .62s;
}

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

.site-intro__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  transform: translateY(4px);
}

.site-intro__mark {
  width: clamp(112px, 11vw, 154px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  animation: siteIntroMarkIn .78s cubic-bezier(.22, 1, .36, 1) both;
}

.site-intro__glow {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(254, 206, 0, .08);
  filter: blur(34px);
  opacity: 0;
  animation: siteIntroAmbient 1.5s ease .55s forwards;
}

.site-intro__water {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 238%;
  height: 238%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  filter:
    drop-shadow(0 0 10px rgba(254, 206, 0, .24))
    drop-shadow(0 0 24px rgba(254, 206, 0, .10));
  transition: opacity .28s ease;
}

.site-intro__water.is-active {
  opacity: 1;
}

.logo-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trace {
  fill: none;
  stroke: var(--intro-logo);
  stroke-width: 2.15;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .78;
  filter: drop-shadow(0 0 2.5px rgba(254, 206, 0, .12));
}

.trace-1 {
  animation:
    siteIntroDraw .92s cubic-bezier(.65, 0, .35, 1) .08s forwards,
    siteIntroTraceOut .45s ease 1.58s forwards;
}

.trace-2 {
  animation:
    siteIntroDraw 1s cubic-bezier(.65, 0, .35, 1) .28s forwards,
    siteIntroTraceOut .45s ease 1.62s forwards;
}

.trace-3 {
  animation:
    siteIntroDraw .88s cubic-bezier(.65, 0, .35, 1) .50s forwards,
    siteIntroTraceOut .45s ease 1.66s forwards;
}

.logo-fill {
  fill: var(--intro-logo);
  fill-rule: evenodd;
  opacity: 0;
  transform-origin: 150px 150px;
  transform: scale(.992);
  filter: drop-shadow(0 0 8px rgba(254, 206, 0, .035));
  animation: siteIntroFillIn .64s cubic-bezier(.22, 1, .36, 1) 1.30s forwards;
}

.site-intro__name {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .95);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 650;
  letter-spacing: .055em;
  text-shadow: 0 0 18px rgba(254, 206, 0, .035);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity .34s ease,
    transform .52s cubic-bezier(.22, 1, .36, 1);
}

.site-intro__name.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-intro__caret {
  width: 1px;
  height: 1.05em;
  margin-left: 4px;
  background: rgba(254, 206, 0, .88);
  opacity: 0;
  transform: translateY(1px);
}

.site-intro__name.is-typing .site-intro__caret {
  opacity: 1;
  animation: siteIntroCaretBlink .72s step-end infinite;
}

.site-intro__name.is-done .site-intro__caret {
  animation: siteIntroCaretFade .34s ease forwards;
}

.site-intro__message {
  min-height: 18px;
  color: rgba(209, 213, 219, .62);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity .36s ease,
    transform .52s cubic-bezier(.22, 1, .36, 1);
}

.site-intro__message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes siteIntroMarkIn {
  from { opacity: 0; transform: scale(.965); filter: blur(3px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes siteIntroDraw {
  from { stroke-dashoffset: 1; opacity: 0; }
  12% { opacity: .42; }
  to { stroke-dashoffset: 0; opacity: .82; }
}

@keyframes siteIntroTraceOut {
  to { opacity: 0; }
}

@keyframes siteIntroFillIn {
  from { opacity: 0; transform: scale(.992); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes siteIntroAmbient {
  from { opacity: 0; transform: scale(.75); }
  to { opacity: .48; transform: scale(1); }
}

@keyframes siteIntroCaretBlink {
  0%, 48% { opacity: .95; }
  49%, 100% { opacity: .12; }
}

@keyframes siteIntroCaretFade {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.has-site-intro { overflow: auto; }
  .site-intro { transition-duration: .15s; }
  .site-intro__mark,
  .site-intro__glow,
  .trace,
  .logo-fill {
    animation: none !important;
  }
  .trace {
    opacity: 0 !important;
  }
  .logo-fill,
  .site-intro__name,
  .site-intro__message {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-intro__water,
  .site-intro__caret {
    display: none !important;
  }
}
