.entrance { display: none; }
.entrance-active { overflow: hidden; }
.entrance-active .entrance {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #141514;
  animation: entrance-backdrop 1.45s cubic-bezier(.22, 1, .36, 1) both;
}
.entrance-logo {
  width: clamp(145px, 24vw, 220px);
  height: auto;
  overflow: visible;
  animation: entrance-mark 1.45s cubic-bezier(.22, 1, .36, 1) both;
}
.entrance-eye { transform-box: fill-box; transform-origin: center; }
.entrance-active .entrance-eye { animation: entrance-blink 1.45s linear both; }
.entrance-skip {
  position: absolute;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #494c44;
  border-radius: 24px;
  padding: 10px 17px;
  color: #c1c5b7;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}
.entrance-active .header { animation: entrance-content .7s 1.02s both; }
.entrance-active .hero .eyebrow { animation-delay: 1.03s; }
.entrance-active .hero h1 { animation-delay: 1.10s; }
.entrance-active .hero-description { animation-delay: 1.18s; }
.entrance-active .hero > .button { animation-delay: 1.26s; }
.entrance-active .hero-art { animation: entrance-content .85s 1.34s both; }
.entrance-active .hero-bottom { animation: entrance-content .7s 1.4s both; }

@keyframes entrance-mark {
  0% { opacity: 0; transform: scale(.96); }
  25%, 66% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.025); }
}
@keyframes entrance-blink {
  0%, 40%, 56%, 100% { transform: scaleY(1); }
  46%, 49% { transform: scaleY(.06); }
}
@keyframes entrance-backdrop {
  0%, 68% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes entrance-content { from { opacity: 0; } to { opacity: 1; } }

/* Cleanup keeps animation names intact so the hero never restarts mid-entry. */
.entrance-complete .header { animation: entrance-content .7s 1.02s both; }
.entrance-complete .hero .eyebrow { animation-delay: 1.03s; }
.entrance-complete .hero h1 { animation-delay: 1.10s; }
.entrance-complete .hero-description { animation-delay: 1.18s; }
.entrance-complete .hero > .button { animation-delay: 1.26s; }
.entrance-complete .hero-art { animation: entrance-content .85s 1.34s both; }
.entrance-complete .hero-bottom { animation: entrance-content .7s 1.4s both; }
.entrance-skipped .intro,
.entrance-skipped .header,
.entrance-skipped .hero-art,
.entrance-skipped .hero-bottom { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .entrance-active { overflow: auto; }
  .entrance-active .entrance { display: none; }
  .entrance-active .header, .entrance-active .intro,
  .entrance-active .hero-art, .entrance-active .hero-bottom { animation: none !important; }
}
