.splash {
  position: relative;
  min-height: 100vh;
  --wash-origin-x: 50%;
  --wash-origin-y: 45%;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background:
    radial-gradient(140% 100% at 50% -20%, rgba(89, 201, 218, 0.12) 0%, rgba(89, 201, 218, 0) 46%),
    linear-gradient(180deg, #04070c 0%, #020409 60%, #010207 100%);
  cursor: pointer;
  overflow: hidden;
}

.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 4, 9, 0) 0%, rgba(2, 4, 9, 0.68) 100%);
  pointer-events: none;
  z-index: 1;
}

.splash-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  display: grid;
  justify-items: center;
  gap: clamp(0.8rem, 2vw, 1.15rem);
  text-align: center;
  opacity: 0;
  transform: translateY(0.5rem);
  animation: splashEnter 900ms cubic-bezier(0.2, 0.8, 0.25, 1) 120ms forwards;
  transition: opacity 320ms ease, transform 320ms ease;
}

.splash-logo-frame {
  position: relative;
  width: clamp(11.5rem, 35vw, 17.5rem);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0.75rem 1.6rem rgba(0, 0, 0, 0.45));
}

.splash-x-layer {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.splash-mark-positioner {
  position: absolute;
  width: 52.77%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}


.splash-mark-shell {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
  transform-box: fill-box;
  overflow: visible;
}

.splash-mark-rotor {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.splash.is-mark-spinning .splash-mark-shell {
  animation: markSpin 820ms cubic-bezier(0.42, 0, 0.58, 1) 1 forwards;
}

.splash-wordline {
  margin: 0;
  min-height: 1.4em;
  display: flex;
  width: clamp(11.5rem, 35vw, 17.5rem);
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.45rem;
  font-size: clamp(1.15rem, 2.2vw, 1.52rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
}

.splash-prefix {
  color: var(--text);
}

.splash-word {
  display: inline-block;
  min-width: 11ch;
  text-align: left;
  color: var(--accent);
  transition: opacity 280ms ease;
}

.splash-word.is-fading {
  opacity: 0.2;
}

.splash-line {
  margin: 0;
  width: clamp(11.5rem, 35vw, 17.5rem);
  text-align: left;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.45vw, 1.08rem);
  letter-spacing: 0.06em;
  text-transform: none;
}

.splash-skip {
  position: fixed;
  right: clamp(0.85rem, 2.8vw, 1.7rem);
  bottom: clamp(0.8rem, 2.8vw, 1.5rem);
  z-index: 4;
  background: transparent;
  border: 1px solid rgba(234, 241, 246, 0.24);
  color: rgba(234, 241, 246, 0.86);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
}

.splash-skip:hover {
  border-color: rgba(89, 201, 218, 0.72);
  color: var(--text);
}

.splash-skip:focus-visible {
  outline: 2px solid rgba(89, 201, 218, 0.9);
  outline-offset: 2px;
}

.splash.is-leaving .splash-inner {
  opacity: 0;
  transform: translateY(-0.3rem);
}

.splash-transition-wash {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform-origin: var(--wash-origin-x) var(--wash-origin-y);
  transform: scale(0.06);
  background:
    radial-gradient(circle at var(--wash-origin-x) var(--wash-origin-y), rgba(160, 243, 255, 0.99) 0%, rgba(114, 226, 243, 0.97) 25%, rgba(69, 184, 204, 0.95) 56%, rgba(46, 122, 142, 0.93) 100%),
    linear-gradient(180deg, rgba(120, 230, 247, 0.94) 0%, rgba(71, 180, 201, 0.96) 60%, rgba(44, 116, 136, 0.98) 100%);
  transition: transform 220ms cubic-bezier(0.16, 0.76, 0.2, 1), opacity 200ms ease;
}

.splash.is-transition-washing .splash-transition-wash {
  opacity: 1;
  transform: scale(2.6);
}

.splash.is-transition-washing .splash-inner {
  opacity: 0 !important;
  transform: translateY(-0.22rem);
  transition: opacity 120ms linear, transform 140ms ease;
}

@keyframes splashEnter {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes markSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .splash {
    min-height: 100svh;
  }

  .splash-inner {
    width: min(100%, 28rem);
    gap: 0.7rem;
  }

  .splash-wordline {
    font-size: clamp(1.02rem, 5.3vw, 1.28rem);
  }

  .splash-word {
    min-width: 10.5ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-inner {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .splash-word {
    transition: none;
  }

  .splash.is-mark-spinning .splash-mark-shell {
    animation: none;
  }

  .splash-transition-wash {
    transition: none;
  }

  .splash.is-transition-washing .splash-transition-wash {
    opacity: 0;
    transform: scale(1);
  }
}
