/* y99.tech home hero intro — "there is no 100%": loader counts to 99, wipes, hero rises (25 Nov 2026) */
.y-intro{position:fixed;inset:0;z-index:2147483000;background:#050505;display:grid;place-items:center;pointer-events:none;
  animation:yiWipe .6s cubic-bezier(.77,0,.18,1) .95s forwards}
.y-intro .yi-in{text-align:center;transition:opacity .2s}
.y-intro .yi-num{font:700 clamp(84px,18vw,190px)/1 'Space Grotesk','Cairo',system-ui,sans-serif;letter-spacing:-.05em;color:#f5f4f0;font-variant-numeric:tabular-nums;direction:ltr}
.y-intro .yi-num b{color:#39ff88;font-weight:700}
.y-intro .yi-num small{font-size:.28em;color:#39ff88;margin-left:.08em;vertical-align:.95em;letter-spacing:0}
.y-intro .yi-bar{width:min(60vw,420px);height:2px;margin:18px auto 0;background:rgba(255,255,255,.12);overflow:hidden}
.y-intro .yi-bar i{display:block;height:100%;width:99%;background:#39ff88;box-shadow:0 0 18px #39ff88;transform-origin:left;transform:scaleX(0);animation:yiBar .8s cubic-bezier(.3,.7,.2,1) .05s forwards}
.y-intro .yi-tag{margin:16px 0 0;font:600 12px/1.4 'Space Grotesk',system-ui,sans-serif;letter-spacing:.3em;text-transform:uppercase;color:#9a9a94;direction:ltr}
@keyframes yiBar{to{transform:scaleX(1)}}
@keyframes yiWipe{to{clip-path:inset(0 0 100% 0)}}
.y-intro{clip-path:inset(0 0 0 0)}
html.yi-seen .y-intro{display:none}

/* hero */
.hero::after{animation:yiGrid 22s linear infinite}
@keyframes yiGrid{to{background-position:72px 72px,72px 72px}}
.hero .yi-spot{position:absolute;inset:0;pointer-events:none;background:radial-gradient(460px circle at var(--mx,30%) var(--my,20%),rgba(57,255,136,.08),transparent 60%)}
.hero .yi-orb{position:absolute;width:420px;height:420px;border-radius:50%;pointer-events:none;filter:blur(80px);background:rgba(57,255,136,.10);top:-160px;inset-inline-end:-120px;animation:yiOrb 16s ease-in-out infinite}
@keyframes yiOrb{50%{transform:translate(-60px,50px) scale(1.15)}}
.hero-title .ln{display:block;overflow:hidden;padding-bottom:.06em}
.hero-title .ln:nth-child(2){padding-bottom:.2em;margin-bottom:-.14em}
.hero-title .ln>span{display:inline-block;transform:translateY(108%);animation:yiUp 1s cubic-bezier(.2,.75,.15,1) forwards}
.hero-title .ln:nth-child(1)>span{animation-delay:1.15s}
.hero-title .ln:nth-child(2)>span{animation-delay:1.3s;position:relative}
.hero-title .ln:nth-child(2)>span::after{content:"";position:absolute;inset-inline-start:0;bottom:-.1em;height:.045em;width:100%;background:#39ff88;border-radius:99px;transform:scaleX(0);transform-origin:var(--yi-o,left);animation:yiLine .8s cubic-bezier(.2,.75,.15,1) 2s forwards;opacity:.9}
html[dir="rtl"] .hero-title{--yi-o:right}
@keyframes yiUp{to{transform:none}}
@keyframes yiLine{to{transform:scaleX(1)}}
.yi-rise{opacity:0;transform:translateY(18px);animation:yiRise .8s cubic-bezier(.2,.75,.15,1) forwards}
@keyframes yiRise{to{opacity:1;transform:none}}
.hero .kicker.yi-rise{animation-delay:1s}.hero .lead.yi-rise{animation-delay:1.55s}.hero-ctas.yi-rise{animation-delay:1.7s}
.hero-stats.yi-rise{animation:none;opacity:1;transform:none}
.hero-stats>div{opacity:0;transform:translateY(18px);animation:yiRise .7s cubic-bezier(.2,.75,.15,1) forwards}
.hero-stats>div:nth-child(1){animation-delay:1.85s}.hero-stats>div:nth-child(2){animation-delay:1.97s}.hero-stats>div:nth-child(3){animation-delay:2.09s}
.hero-stats>div::before{content:"";display:block;width:22px;height:2px;background:#39ff88;margin-bottom:12px;transform:scaleX(0);transform-origin:var(--yi-o,left);animation:yiLine .6s ease-out 2.2s forwards}
html[dir="rtl"] .hero-stats{--yi-o:right}
/* returning visitor (same tab session): no loader, quick rise */
html.yi-seen .hero-title .ln>span{animation-delay:.05s!important}
html.yi-seen .hero-title .ln:nth-child(2)>span{animation-delay:.15s!important}
html.yi-seen .yi-rise,html.yi-seen .hero-stats>div{animation-delay:.25s!important}
html.yi-seen .hero-title .ln:nth-child(2)>span::after{animation-delay:.8s}
@media (prefers-reduced-motion:reduce){
  .y-intro,.hero .yi-spot,.hero .yi-orb{display:none}
  .hero::after,.hero-title .ln>span,.yi-rise,.hero-stats>div,.hero-stats>div::before,.hero-title .ln:nth-child(2)>span::after{animation:none!important;opacity:1!important;transform:none!important}
}
