.site-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(24px, 5vw, 72px);
  border: 0;
  background: #101f2a;
  color: #f4faff;
  text-align: center;
}

.site-intro[open] {
  display: grid;
  place-content: center;
  animation: site-intro-in .22s ease-out both;
}

.site-intro::backdrop { background: transparent; }
.site-intro.is-leaving { animation: site-intro-out .4s ease-in both; }
html.site-intro-open { overflow: hidden; }

.site-intro-line {
  max-width: 18ch;
  margin: 0 auto;
  font: 400 clamp(38px, 6vw, 78px)/1.08 var(--serif, Georgia, serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.site-intro-line span {
  display: inline-block;
  opacity: 0;
  animation: site-intro-line .76s cubic-bezier(.16, 1, .3, 1) both;
}

.site-intro-line span:nth-child(2) { animation-delay: .18s; }
.site-intro-line span:nth-child(3) { animation-delay: .36s; }
.site-intro-line span:nth-child(4) { animation-delay: .54s; }

.site-intro-rule {
  display: block;
  width: 1px;
  height: clamp(34px, 5vw, 58px);
  margin: 25px auto 20px;
  background: linear-gradient(#c5e4f1, transparent);
  transform-origin: top;
  animation: site-intro-rule .65s 1s both;
}

.site-intro-place {
  margin: 0;
  color: #c5dbe6;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: site-intro-in .55s 1.15s both;
}

.site-intro-close {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #7996a7;
  border-radius: 999px;
  background: transparent;
  color: #f4faff;
  font: 500 .78rem var(--sans, sans-serif);
  cursor: pointer;
}

.site-intro-close:hover { background: #284558; }
.site-intro-close:focus-visible { outline: 2px solid #c5e4f1; outline-offset: 3px; }

@keyframes site-intro-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes site-intro-out { to { opacity: 0; } }
@keyframes site-intro-rule { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes site-intro-line {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro[open], .site-intro-line span, .site-intro-rule, .site-intro-place { animation: none; opacity: 1; }
}
