/* myTool.studio — Home opening animation (see public/js/site-intro.js). transform/opacity only.
   28/11/2026: the logo is no longer cut into letters (the cuts showed black seams); it enters whole,
   a light sweeps across it (masked to the logo's own shape), a ring expands, the name types in. */
.site-intro{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;align-content:center;gap:28px;pointer-events:auto;overflow:hidden;
  background:radial-gradient(ellipse 60% 50% at 30% 20%,rgba(105,80,216,.35),transparent 60%),radial-gradient(ellipse 50% 45% at 80% 85%,rgba(67,139,255,.18),transparent 65%),#06070f;
  transition:opacity .5s cubic-bezier(.2,.7,.2,1)}
.site-intro.is-leaving{opacity:0;pointer-events:none}
.site-intro-glow{position:absolute;left:50%;top:50%;width:min(90vw,520px);aspect-ratio:1;margin:calc(min(90vw,520px) / -2) 0 0 calc(min(90vw,520px) / -2);border-radius:50%;
  background:radial-gradient(circle,rgba(150,120,255,.42),rgba(105,80,216,.14) 42%,transparent 68%);opacity:0;animation:site-intro-glow 1.6s ease .35s both}
.site-intro-ring{position:absolute;left:50%;top:50%;width:min(52vw,270px);aspect-ratio:1;margin:calc(min(52vw,270px) / -2) 0 0 calc(min(52vw,270px) / -2);border-radius:50%;
  border:1.5px solid rgba(170,150,255,.55);opacity:0;animation:site-intro-ring 1.3s cubic-bezier(.2,.7,.2,1) .55s both}
/* the wrapper never gets transform/opacity (that would isolate it and show the image's dark halo as a black box):
   motion is on the image and the light themselves, both blended with `screen` so the halo disappears */
.site-intro-logo{position:relative;width:min(40vw,210px);aspect-ratio:1}
.site-intro-logo>*{position:absolute;inset:0;mix-blend-mode:screen;animation:site-intro-logo 1s cubic-bezier(.2,.9,.25,1.15) .05s both}
.site-intro-logo img{display:block;width:100%;height:100%}
.site-intro.is-leaving .site-intro-logo>*{transform:scale(1.08);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
/* the light: a soft band clipped to the logo's alpha, moving across once */
.site-intro-shine{overflow:hidden;clip-path:inset(9% round 22%);
  -webkit-mask:url(/assets/brand/mytool-logo-intro.webp) center/100% 100% no-repeat;mask:url(/assets/brand/mytool-logo-intro.webp) center/100% 100% no-repeat}
.site-intro-shine::before{content:"";position:absolute;top:-20%;bottom:-20%;left:0;width:45%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.5) 50%,transparent);transform:translateX(-120%) skewX(-12deg);opacity:0;
  animation:site-intro-shine .9s cubic-bezier(.45,0,.2,1) .8s both}
.site-intro-word{position:relative;display:flex;font:700 clamp(22px,4.4vw,30px)/1 'Space Grotesk','DM Sans',sans-serif;letter-spacing:-.02em;color:#fff}
.site-intro-word span{display:inline-block;opacity:0;animation:site-intro-char .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(1.05s + var(--i) * 32ms)}
.site-intro-word span.is-dot{color:#a995ff}
@keyframes site-intro-logo{0%{opacity:0;transform:scale(.72) rotate(-8deg)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes site-intro-shine{0%{opacity:1;transform:translateX(-120%) skewX(-12deg)}100%{opacity:1;transform:translateX(260%) skewX(-12deg)}}
@keyframes site-intro-ring{0%{opacity:0;transform:scale(.7)}25%{opacity:.9}100%{opacity:0;transform:scale(1.9)}}
@keyframes site-intro-glow{0%{opacity:0;transform:scale(.6)}50%{opacity:1;transform:scale(1)}100%{opacity:.45;transform:scale(1.12)}}
@keyframes site-intro-char{from{opacity:0;transform:translateY(12px)}to{opacity:.94;transform:none}}
@media (prefers-reduced-motion:reduce){.site-intro{display:none}}
