/* Welcome intro: logo on a short loading screen, then it flies into the header.
   intro-pending: before/while playing. intro-flying: veil fades. intro-landing: header logo returns. */
.intro { position: fixed; inset: 0; z-index: 40; }
.intro-pending .intro[hidden] { display: block !important; }
.intro-veil { position: absolute; inset: 0; background: var(--surface-canvas, #0e0b16); transition: opacity 500ms ease; }
.intro-flying .intro-veil { opacity: 0; pointer-events: none; transition: opacity 400ms 350ms ease; }
.intro-sub { position: absolute; left: 0; right: 0; top: calc(44% + min(9vw, 84px)); text-align: center; color: var(--text-secondary); font-size: 14px; letter-spacing: 0.04em; animation: intro-fade 600ms 700ms ease both; }
.intro-track { position: absolute; left: 50%; bottom: 64px; width: min(320px, 60vw); height: 3px; transform: translateX(-50%); border-radius: 3px; overflow: hidden; background: var(--border-subtle); }
.intro-track span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #7233e8, #f56d9b, #00bce8); animation: intro-progress 2000ms linear forwards; }
.intro-3d .intro-track span { animation-duration: 2900ms; }
.intro-skip { position: absolute; right: 20px; bottom: 20px; }
.intro-fly { position: fixed; z-index: 41; left: 50%; top: 44%; width: min(760px, 80vw); transform: translate(-50%, -50%); pointer-events: none; }
.intro-fly img { display: block; width: 100%; height: 100%; object-fit: contain; animation: intro-logo 1200ms var(--ease-out) both; }
.intro-fly::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background: linear-gradient(105deg, transparent 40%, #ffffffaa 50%, transparent 60%) 120% 0 / 250% 100% no-repeat;
  -webkit-mask: url("../brand/logo-inverse.5c301273c6ef.webp") center / contain no-repeat; mask: url("../brand/logo-inverse.5c301273c6ef.webp") center / contain no-repeat;
  animation: intro-shine 900ms 900ms ease-in-out both; }
.intro-3d .intro-fly img, .intro-3d .intro-fly::after { visibility: hidden; }
.intro-fly.is-flying { transition: top 800ms cubic-bezier(.65, 0, .35, 1), left 800ms cubic-bezier(.65, 0, .35, 1), width 800ms cubic-bezier(.65, 0, .35, 1), height 800ms cubic-bezier(.65, 0, .35, 1); }
.intro-pending .site-header .brand img { opacity: 0; }
.site-header .brand img { transition: opacity 300ms; }
.intro-landing .site-header .brand img { opacity: 1; }
@keyframes intro-logo { from { opacity: 0; transform: scale(0.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes intro-progress { to { transform: scaleX(1); } }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .intro, .intro-pending .intro[hidden] { display: none !important; }
  .intro-pending .site-header .brand img { opacity: 1; }
}
