/* The approved wordmark stays intact; only its container moves. */
html.slice-startup-pending::before {
  content: "";
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: #6f4fff;
  pointer-events: none;
  animation: slice-intro-safety 2s step-end forwards;
}

.slice-startup {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  animation: slice-intro-safety 1.25s step-end forwards;
}

.slice-startup::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #6f4fff;
  animation: slice-intro-curtain 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slice-startup__wordmark {
  display: block;
  width: clamp(180px, 29vw, 390px);
  height: auto;
  max-width: none;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  animation: slice-intro-wordmark 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slice-startup:focus-visible {
  outline: 3px solid white;
  outline-offset: -12px;
}

@keyframes slice-intro-wordmark {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  28% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(0) scale(1.055);
  }
}

@keyframes slice-intro-curtain {
  0%,
  58% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes slice-intro-safety {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.slice-startup-pending::before,
  .slice-startup {
    display: none;
    animation: none;
  }
}
