"use strict";(()=>{document.addEventListener("DOMContentLoaded",()=>{function T(){return window.innerWidth<=767}function e(){return window.innerWidth<=479}let u=document.querySelectorAll('[cta="hero"]'),p=document.querySelectorAll("[hero-num]"),d=document.querySelector("[hero-scroll-sect]"),m=document.querySelectorAll("[float-card-1]"),o=document.querySelector("[scroll-container]"),h=document.querySelector("[scroll-trigger]"),f=[...document.querySelectorAll("[text-wrap-sect]")],y=document.querySelector("[scroll-section-2]"),a=document.querySelector("[scroll-container-2]");function n(l,t){var g;let r=(g=l==null?void 0:l.scrollWidth)!=null?g:0,s=window.innerWidth/t,c=r-s,i=Math.max(0,c),_=-i;return{distance:i,targetX:_}}document.fonts.ready.then(()=>{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},".5").from(u,{autoAlpha:0,x:30,stagger:{amount:.5}},"<").from(p,{autoAlpha:0,y:30,stagger:{amount:.5}},"1.25"),e()||(gsap.timeline({scrollTrigger:{trigger:d,start:e()?"top 55%":"top 25%",end:e()?"+=250":"+=200%",toggleActions:"play none none reverse",pin:!e(),pinSpacing:!e(),scrub:!e()}}).from(m,{yPercent:500,stagger:{amount:.5}}),gsap.timeline({scrollTrigger:{trigger:o,start:"top 80%"}}).from("[scroll-img-wrap]",{clipPath:"inset(20%)",opacity:0,duration:1,stagger:.5}),gsap.timeline({scrollTrigger:{trigger:h,start:"top -6%",end:()=>{let{distance:c}=n(o,1.3);return`+=${c}`},pin:!0,pinSpacing:!0,scrub:1,invalidateOnRefresh:!0}}).fromTo(o,{x:0},{x:()=>n(o,1.3).targetX,ease:"none"})),e()||gsap.timeline({scrollTrigger:{trigger:y,start:"top 5%",end:()=>{let{distance:r}=n(a,1.5);return`+=${r}`},toggleActions:"play none none reverse",pin:!0,pinSpacing:!0,scrub:!0,invalidateOnRefresh:!0}}).fromTo(a,{x:0},{x:()=>n(a,1.5).targetX,ease:"none"}),f.forEach(t=>{let r=t.querySelectorAll(".text-char"),s=t.querySelectorAll("[text-slide]");r&&gsap.timeline({scrollTrigger:{trigger:t,start:"top 80%",end:"bottom 80%",toggleActions:"play none none reverse"}}).from(r,{yPercent:20,autoAlpha:0,stagger:.05},"<").from(s,{autoAlpha:0,yPercent:50,stagger:.05,duration:.8},"0.1")})})});})();