/* Intro screen (shown before the website). Remove the two intro lines in <head> to turn it off. */
html.intro-on { overflow: hidden; background: #f6f9fd; }

/* hold the page's entrance animations until the intro is over */
html.intro-on body > :not(#intro),
html.intro-on body > :not(#intro) * { animation-play-state: paused !important; }
html.intro-on body > :not(#intro) { visibility: hidden; }
html.intro-leaving body > :not(#intro) { visibility: visible; }

#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #0b2545;
  background: radial-gradient(70% 60% at 50% 50%, #ffffff 0%, #f6f9fd 55%, #eaf1fa 100%);
  font-family: "Janna LT", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: opacity .8s ease;
}
#intro.out { opacity: 0; pointer-events: none; }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro-text { position: relative; padding: 0 20px; max-width: 960px; text-align: center; }

.intro-text > * { opacity: 0; transform: translateY(18px); }

.intro-text h2 {
  margin: 0;
  font-size: clamp(1.375rem, min(6vw, 7vh), 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .06em;
  text-shadow: 0 0 24px #fff, 0 0 48px #fff;
  animation: introUp .9s cubic-bezier(.2, .7, .2, 1) 3s forwards;
}

.intro-text p {
  margin: 14px 0 0;
  color: #86611c;
  text-shadow: 0 0 16px #fff;
  font-size: clamp(.875rem, 2vw, 1.25rem);
  letter-spacing: .34em;
  animation: introUp .9s cubic-bezier(.2, .7, .2, 1) 3.4s forwards;
}

/* the five words are drawn on the globe; this list is for screen readers */
.intro-words {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes introUp { to { opacity: 1; transform: none; } }

.intro-skip {
  position: absolute;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  padding: 10px 22px;
  border: 1px solid rgba(11, 37, 69, .28);
  border-radius: 999px;
  color: #0b2545;
  background: rgba(255, 255, 255, .8);
  font: inherit;
  font-size: .9375rem;
  cursor: pointer;
}
.intro-skip:hover { background: #fff; }
.intro-skip:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

/* short screens (phone held sideways): smaller text so it stays inside the circle */
@media (max-height: 500px) {
  .intro-text h2 { font-size: 1.125rem; }
  .intro-text p { margin-top: 6px; font-size: .625rem; letter-spacing: .22em; }
}
