:root { --intro-duration: 1760ms; }
html.intro-open { overflow: hidden; }
.brand-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, #203454 0%, #121d2b 47%, #0e151f 78%);
  color: #eaf5ff;
}
.brand-intro::backdrop { background: transparent; }
.brand-intro[open] { animation: intro-release var(--intro-duration) cubic-bezier(.47,.04,.22,1) both; }
.intro-perspective { position: absolute; inset: 0; display: grid; place-items: center; perspective: 780px; }
.intro-logo { position: relative; width: clamp(170px, 26vw, 370px); aspect-ratio: 1; transform-style: preserve-3d; animation: logo-arrival var(--intro-duration) cubic-bezier(.18,.74,.24,1) both; }
.intro-logo > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-front { transform: translateZ(1px); }
.logo-edge { fill: #1b3771; transform: translateZ(var(--depth)); }
.intro-glint { animation: logo-glint 590ms ease-in-out 520ms both; }
.intro-skip { position: absolute; z-index: 2; top: 20px; right: var(--gutter); min-height: 44px; padding: 8px 14px; border: 1px solid #9fc2eb78; border-radius: 7px; background: #1a293d; color: #edf6ff; font-size: 14px; font-weight: 710; }
.intro-skip:hover { background: #283e58; }
@keyframes logo-arrival {
  0% { transform: translateZ(-500px) rotateY(-123deg) rotateX(12deg) scale(.34); opacity: .16; }
  36% { transform: translateZ(9px) rotateY(7deg) rotateX(-2deg) scale(1.02); opacity: 1; }
  48%, 62% { transform: translateZ(0) rotateY(0) rotateX(0) scale(1); opacity: 1; }
  95%, 100% { transform: translateZ(140px) rotateY(0) rotateX(0) scale(1.03); opacity: 0; }
}
@keyframes logo-glint {
  0% { transform: translateX(-40px) skewX(-17deg); opacity: 0; }
  22%, 74% { opacity: 1; }
  100% { transform: translateX(575px) skewX(-17deg); opacity: 0; }
}
@keyframes intro-release {
  0%, 60% { clip-path: polygon(0 0, 114% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 0 0, -14% 100%, 0 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-intro[open], .intro-logo, .intro-glint { animation: none; }
}
