/* 9A logo intro overlay (live as of Dec 3, 2026, Eric OK).
   Animations live here (not in the inline SVG) so the site CSP (style-src 'self') allows them. */

/* ---- Overlay ---- */
.intro{display:none}
html.has-intro .intro{
  display:block;position:fixed;inset:0;z-index:10000;
  font:inherit;
}
html.has-intro:not(.intro-done){overflow:hidden}
.intro-bg{position:absolute;inset:0;background:#0D1B33;z-index:0}
.intro-stage{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:6vh 6vw;pointer-events:none}
.intro-logo{width:min(82vw,780px);transform-origin:center center;will-change:transform}
.intro-logo svg{width:100%;height:auto;display:block;overflow:visible}
.intro-skip{
  position:absolute;z-index:2;right:max(16px,3vw);bottom:max(16px,3vh);
  font:650 0.9rem/1 Sora,system-ui,sans-serif;letter-spacing:.04em;
  color:#F6F7FC;background:transparent;border:1px solid rgba(246,247,252,.35);
  border-radius:999px;padding:10px 18px;cursor:pointer;
}
.intro-skip:hover,.intro-skip:focus-visible{border-color:#F5B700;color:#F5B700;outline:none}
.intro-skip:focus-visible{box-shadow:0 0 0 3px rgba(245,183,0,.35)}

/* Hide the header logo while the flying mark is in mid-air; keep its box so we can measure it. */
html.has-intro:not(.intro-done) .site-header .wordmark{opacity:0}

/* Fly + wipe */
.intro.wiping .intro-bg{animation:intro-wipe .8s ease forwards}
.intro.wiping .intro-skip{animation:intro-wipe .25s ease forwards;pointer-events:none}
.intro.wiping .intro-logo{
  transition:transform .85s cubic-bezier(.22,.8,.25,1);
  transform:translate(var(--fly-x,0px),var(--fly-y,0px)) scale(var(--fly-s,1));
}
.intro.gone{visibility:hidden;pointer-events:none}
@keyframes intro-wipe{to{opacity:0}}

/* ---- 9A logo sequence (2.4s, once) — same as the standalone animated SVG ---- */
html.has-intro .intro .hex-fill{opacity:0;animation:fadein .45s .4s ease-out forwards}
html.has-intro .intro .hex-trace{fill:none;stroke:#F5B700;stroke-width:2.2;stroke-linejoin:miter;stroke-dasharray:183.8;stroke-dashoffset:183.8;animation:draw .7s ease-out forwards,fadeout .35s 1.05s ease-out forwards}
html.has-intro .intro .hex-edge{opacity:0;animation:edgein .35s 1.0s ease-out forwards}
html.has-intro .intro .hex-inner{opacity:0;stroke-dasharray:129.4;stroke-dashoffset:129.4;animation:innerdraw .5s .55s ease-out forwards}
html.has-intro .intro .tube-glow{opacity:0;fill:none;stroke:#F5B700;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;animation:glowflick .85s .8s linear forwards}
html.has-intro .intro .tube{opacity:0;animation:tubeflick .85s .8s linear forwards}
html.has-intro .intro .lockup{transform:translate(132.3px,0);animation:settle .75s 1.5s ease-out forwards}
html.has-intro .intro .wordmark{opacity:0;transform:translateX(-14px);transform-box:fill-box;transform-origin:left center;clip-path:inset(0 100% 0 0);animation:wordin .75s 1.5s ease-out forwards}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes fadein{to{opacity:1}}
@keyframes fadeout{to{opacity:0}}
@keyframes edgein{to{opacity:1}}
@keyframes innerdraw{to{stroke-dashoffset:0;opacity:.5}}
@keyframes tubeflick{
  0%{opacity:0} 7%{opacity:1} 12%{opacity:0} 18%{opacity:.85} 24%{opacity:.12}
  32%{opacity:1} 38%{opacity:.35} 46%{opacity:1} 58%{opacity:.7} 68%{opacity:1} 100%{opacity:1}
}
@keyframes glowflick{
  0%,8%{opacity:0} 18%{opacity:.4} 24%{opacity:0} 32%{opacity:.55}
  38%{opacity:.08} 46%{opacity:.45} 62%{opacity:.18} 78%,100%{opacity:0}
}
@keyframes wordin{to{opacity:1;transform:none;clip-path:inset(0 0 0 0)}}
@keyframes settle{to{transform:translate(0,0)}}

/* Hero entrance after the overlay leaves */
html.has-intro:not(.intro-done) .hero-copy h1,
html.has-intro:not(.intro-done) .hero-copy .lead,
html.has-intro:not(.intro-done) .hero-copy .ctas,
html.has-intro:not(.intro-done) .hero-copy .crumb,
html.has-intro:not(.intro-done) .hero-grid > :last-child,
html.has-intro:not(.intro-done) .hero .chips,
html.has-intro:not(.intro-done) .page-hero .hero-copy h1,
html.has-intro:not(.intro-done) .page-hero .hero-copy p{
  opacity:0;transform:translateY(18px)
}
html.intro-done .hero-copy h1,
html.intro-done .page-hero .hero-copy h1{animation:heroIn .7s .06s ease forwards}
html.intro-done .hero-copy .lead,
html.intro-done .page-hero .hero-copy p{animation:heroIn .7s .2s ease forwards}
html.intro-done .hero-copy .ctas{animation:heroIn .7s .34s ease forwards}
html.intro-done .hero-copy .crumb{animation:heroIn .55s .02s ease forwards}
html.intro-done .hero-grid > :last-child{animation:heroIn .8s .28s ease forwards}
html.intro-done .hero .chips{animation:heroIn .7s .48s ease forwards}
@keyframes heroIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  .intro{display:none!important}
  html.has-intro:not(.intro-done) .site-header .wordmark,
  html.has-intro:not(.intro-done) .hero-copy h1,
  html.has-intro:not(.intro-done) .hero-copy .lead,
  html.has-intro:not(.intro-done) .hero-copy .ctas,
  html.has-intro:not(.intro-done) .hero-grid > :last-child,
  html.has-intro:not(.intro-done) .hero .chips,
  html.has-intro:not(.intro-done) .page-hero .hero-copy h1,
  html.has-intro:not(.intro-done) .page-hero .hero-copy p{opacity:1;transform:none}
}
