"use strict";(()=>{document.addEventListener("DOMContentLoaded",()=>{function s(){return window.innerWidth<=767}function l(){return window.innerWidth<=479}let q="back.out",r="elastic.out(1, 1)",c="power2.out",a=document.querySelectorAll('[cta="hero"]'),i=document.querySelectorAll("[hero-num]"),o=document.querySelector("[scroll-container]"),m=document.querySelector("[scroll-trigger]"),u=[...document.querySelectorAll("[text-wrap-sect]")],g=document.querySelector("[story-section]"),d=[...document.querySelectorAll("[s-left]")],p=[...document.querySelectorAll("[s-right]")],h=document.querySelector("[s-imgwrap]"),y=document.querySelector("[cv-sect]"),_=[...document.querySelectorAll("[cv-card]")],T=document.querySelector("[mentor-sect]"),A=[...document.querySelectorAll("[mentor-item]")],E=document.querySelector("[mentor-image]"),f=document.querySelector("[metric-section]"),S=[...document.querySelectorAll("[metric-card]")];gsap.set("[el-hidden]",{visibility:"visible"}),document.fonts.ready.then(()=>{if(gsap.set("[el-hidden]",{visibility:"visible"}),SplitText.create("[text-split]",{type:"words, chars",wordsClass:"text-word",charsClass:"text-char"}),gsap.timeline({}).from("[hero-split]",{autoAlpha:0,yPercent:-50,stagger:.1,duration:1}).from("[hero-paragraph-split]",{autoAlpha:0,y:50},"0.7").from(a,{autoAlpha:0,x:30,stagger:{amount:.5}},"<").from(i,{autoAlpha:0,y:30,stagger:{amount:.5}},"1.25"),gsap.timeline({scrollTrigger:{trigger:g,start:"top 85%",toggleActions:"play none none reverse"}}).from(d,{autoAlpha:0,ease:r,xPercent:-100,duration:2.5,stagger:.3}).from(p,{autoAlpha:0,ease:r,xPercent:100,duration:1.5,stagger:.3},".5").from(h,{clipPath:"inset(50%)",autoAlpha:0,yPercent:100,duration:2,stagger:.3},"<"),gsap.timeline({scrollTrigger:{trigger:y,start:"top 80%",toggleActions:"play none none reverse"}}).from(_,{autoAlpha:0,yPercent:100,stagger:.2,duration:1.25}),!l()){let e=function(){let{scrollWidth:n}=o;return-(n-window.innerWidth/1.3)};var x=e;gsap.timeline({scrollTrigger:{trigger:m,start:s()?"top 25%":"top top",end:()=>`+=${e()*-3}`,pin:!0,pinSpacing:!0,scrub:!0,invalidateOnRefresh:!0}}).fromTo(o,{x:()=>window.innerWidth},{x:e,ease:"none"})}gsap.timeline({scrollTrigger:{trigger:T,start:"top 80%"}}).from(A,{autoAlpha:0,yPercent:60,stagger:.3,duration:.8}).from(E,{clipPath:"inset(50%)",autoAlpha:0,yPercent:100,duration:1.5,stagger:.2},.25),gsap.timeline({scrollTrigger:{trigger:f,start:"top 80%"}}).from(S,{autoAlpha:0,yPercent:100,ease:c,stagger:.35,duration:1}),u.forEach(e=>{let t=e.querySelectorAll(".text-char");t&&gsap.timeline({scrollTrigger:{trigger:e,start:"top 80%",end:"bottom 80%",toggleActions:"play none none reverse"}}).from(t,{yPercent:20,autoAlpha:0,stagger:.05},"<")})})});})();