/* Homepage brand entrance: 1600ms continuous composition + 400ms reveal = 2000ms. */
html { scrollbar-gutter: stable; }
html.home-intro-active { overflow: hidden; }
.home-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #f5f9ff;
  color: #091b35;
  animation: home-intro-exit 400ms cubic-bezier(.4, 0, .2, 1) 1600ms both;
}
.home-intro[hidden] { display: none; }
.home-intro-sky {
  position: absolute;
  inset: -25%;
  z-index: -1;
  background: radial-gradient(ellipse at 30% 35%, #fff 0, transparent 45%), radial-gradient(ellipse at 75% 65%, #dbeeff 0, transparent 50%);
  animation: home-intro-air 2000ms cubic-bezier(.25, 1, .5, 1) both;
}
.home-intro-stage { display: flex; align-items: center; gap: 22px; width: max-content; max-width: calc(100% - 48px); transform: translateY(-18px); }
.home-intro-mark { width: 118px; height: 118px; flex: none; overflow: visible; }
.home-intro-trail {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: home-intro-trail 1600ms linear both;
}
.home-intro-plane {
  /* One uninterrupted glide along the aircraft heading, with no bank or bounce. */
  animation: home-intro-flight 1600ms cubic-bezier(.3, 0, .45, 1) both, home-intro-plane-appear 450ms ease-out both;
}
.home-intro-wordmark { display: flex; font: 800 clamp(40px, 5vw, 64px)/1.05 Manrope, Arial, sans-serif; letter-spacing: -.075em; }
.home-intro-wordmark span {
  display: block;
  animation: home-intro-letter 520ms cubic-bezier(.16, 1, .3, 1) calc(360ms + var(--letter) * 55ms) both;
}
.home-intro-wordmark .is-blue { color: #1677e8; }
.home-intro-caption {
  margin: 12px 0 0;
  color: #617a94;
  font: 600 10px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  animation: home-intro-caption 500ms ease-out 850ms both;
}
.home-intro-accessible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes home-intro-air { from { transform: translate(-4%, 3%) scale(1.04); } to { transform: translate(2%, -2%) scale(1); } }
@keyframes home-intro-trail { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes home-intro-flight {
  from { transform: translate(-36px, 58px); }
  to { transform: translate(0, 0); }
}
@keyframes home-intro-plane-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes home-intro-letter { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: translateY(0); } }
@keyframes home-intro-caption { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
/* CSS also releases the visual overlay if JavaScript is unavailable. */
@keyframes home-intro-exit { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (max-width: 540px) {
  .home-intro-stage { flex-direction: column; gap: 24px; text-align: center; }
  .home-intro-mark { width: 100px; height: 100px; }
  .home-intro-wordmark { justify-content: center; font-size: clamp(38px, 11vw, 50px); }
  .home-intro-caption { margin: 12px 0 0; font-size: 8px; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  .home-intro { animation-duration: 160ms; animation-delay: 1840ms; }
  .home-intro-sky, .home-intro-plane, .home-intro-trail, .home-intro-wordmark span, .home-intro-caption { animation: none; }
  .home-intro-trail { stroke-dashoffset: 0; }
}
@media print { .home-intro { display: none; } }
