"use strict";(()=>{function U(g,t,i){return Math.max(g,Math.min(t,i))}var C=class{constructor(){this.isRunning=!1,this.value=0,this.from=0,this.to=0,this.currentTime=0}advance(t){var i;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let s=U(0,this.currentTime/this.duration,1);e=s>=1;let o=e?1:this.easing(s);this.value=this.from+(this.to-this.from)*o}else this.lerp?(this.value=function(o,n,a,l){return function(S,w,u){return(1-u)*S+u*w}(o,n,1-Math.exp(-a*l))}(this.value,this.to,60*this.lerp,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(i=this.onUpdate)===null||i===void 0||i.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(t,i,{lerp:e,duration:s,easing:o,onStart:n,onUpdate:a}){this.from=this.value=t,this.to=i,this.lerp=e,this.duration=s,this.easing=o,this.currentTime=0,this.isRunning=!0,n==null||n(),this.onUpdate=a}},V=class{constructor(t,i,{autoResize:e=!0,debounce:s=250}={}){this.wrapper=t,this.content=i,this.width=0,this.height=0,this.scrollHeight=0,this.scrollWidth=0,this.resize=()=>{this.onWrapperResize(),this.onContentResize()},this.onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},this.onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},e&&(this.debouncedResize=function(n,a){let l;return function(...c){let S=this;clearTimeout(l),l=setTimeout(()=>{l=void 0,n.apply(S,c)},a)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var t,i;(t=this.wrapperResizeObserver)===null||t===void 0||t.disconnect(),(i=this.contentResizeObserver)===null||i===void 0||i.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},M=class{constructor(){this.events={}}emit(t,...i){var e;let s=this.events[t]||[];for(let o=0,n=s.length;o{var s;this.events[t]=(s=this.events[t])===null||s===void 0?void 0:s.filter(o=>i!==o)}}off(t,i){var e;this.events[t]=(e=this.events[t])===null||e===void 0?void 0:e.filter(s=>i!==s)}destroy(){this.events={}}},P=100/6,y={passive:!1},q=class{constructor(t,i={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=i,this.touchStart={x:0,y:0},this.lastDelta={x:0,y:0},this.window={width:0,height:0},this.emitter=new M,this.onTouchStart=e=>{let{clientX:s,clientY:o}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=s,this.touchStart.y=o,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})},this.onTouchMove=e=>{let{clientX:s,clientY:o}=e.targetTouches?e.targetTouches[0]:e,n=-(s-this.touchStart.x)*this.options.touchMultiplier,a=-(o-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=s,this.touchStart.y=o,this.lastDelta={x:n,y:a},this.emitter.emit("scroll",{deltaX:n,deltaY:a,event:e})},this.onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})},this.onWheel=e=>{let{deltaX:s,deltaY:o,deltaMode:n}=e;s*=n===1?P:n===2?this.window.width:1,o*=n===1?P:n===2?this.window.height:1,s*=this.options.wheelMultiplier,o*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:s,deltaY:o,event:e})},this.onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}},window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,y),this.element.addEventListener("touchstart",this.onTouchStart,y),this.element.addEventListener("touchmove",this.onTouchMove,y),this.element.addEventListener("touchend",this.onTouchEnd,y)}on(t,i){return this.emitter.on(t,i)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,y),this.element.removeEventListener("touchstart",this.onTouchStart,y),this.element.removeEventListener("touchmove",this.onTouchMove,y),this.element.removeEventListener("touchend",this.onTouchEnd,y)}},N=class{constructor({wrapper:t=window,content:i=document.documentElement,eventsTarget:e=t,smoothWheel:s=!0,syncTouch:o=!1,syncTouchLerp:n=.075,touchInertiaMultiplier:a=35,duration:l,easing:c=d=>Math.min(1,1.001-Math.pow(2,-10*d)),lerp:S=.1,infinite:w=!1,orientation:u="vertical",gestureOrientation:r="vertical",touchMultiplier:h=1,wheelMultiplier:m=1,autoResize:f=!0,prevent:_,virtualScroll:R,__experimental__naiveDimensions:W=!1}={}){this._isScrolling=!1,this._isStopped=!1,this._isLocked=!1,this._preventNextNativeScrollEvent=!1,this._resetVelocityTimeout=null,this.time=0,this.userData={},this.lastVelocity=0,this.velocity=0,this.direction=0,this.animate=new C,this.emitter=new M,this.onPointerDown=d=>{d.button===1&&this.reset()},this.onVirtualScroll=d=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(d)===!1)return;let{deltaX:E,deltaY:T,event:p}=d;if(this.emitter.emit("virtual-scroll",{deltaX:E,deltaY:T,event:p}),p.ctrlKey)return;let L=p.type.includes("touch"),X=p.type.includes("wheel");if(this.isTouching=p.type==="touchstart"||p.type==="touchmove",this.options.syncTouch&&L&&p.type==="touchstart"&&!this.isStopped&&!this.isLocked)return void this.reset();let $=E===0&&T===0,B=this.options.gestureOrientation==="vertical"&&T===0||this.options.gestureOrientation==="horizontal"&&E===0;if($||B)return;let z=p.composedPath();z=z.slice(0,z.indexOf(this.rootElement));let H=this.options.prevent;if(z.find(v=>{var x,O,k,D,A;return v instanceof HTMLElement&&(typeof H=="function"&&(H==null?void 0:H(v))||((x=v.hasAttribute)===null||x===void 0?void 0:x.call(v,"data-lenis-prevent"))||L&&((O=v.hasAttribute)===null||O===void 0?void 0:O.call(v,"data-lenis-prevent-touch"))||X&&((k=v.hasAttribute)===null||k===void 0?void 0:k.call(v,"data-lenis-prevent-wheel"))||((D=v.classList)===null||D===void 0?void 0:D.contains("lenis"))&&!(!((A=v.classList)===null||A===void 0)&&A.contains("lenis-stopped")))}))return;if(this.isStopped||this.isLocked)return void p.preventDefault();if(!(this.options.syncTouch&&L||this.options.smoothWheel&&X))return this.isScrolling="native",void this.animate.stop();p.preventDefault();let b=T;this.options.gestureOrientation==="both"?b=Math.abs(T)>Math.abs(E)?T:E:this.options.gestureOrientation==="horizontal"&&(b=E);let j=L&&this.options.syncTouch,Y=L&&p.type==="touchend"&&Math.abs(b)>5;Y&&(b=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+b,Object.assign({programmatic:!1},j?{lerp:Y?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent)this._preventNextNativeScrollEvent=!1;else if(this.isScrolling===!1||this.isScrolling==="native"){let d=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-d,this.direction=Math.sign(this.animatedScroll-d),this.isScrolling="native",this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}},window.lenisVersion="1.1.13",t&&t!==document.documentElement&&t!==document.body||(t=window),this.options={wrapper:t,content:i,eventsTarget:e,smoothWheel:s,syncTouch:o,syncTouchLerp:n,touchInertiaMultiplier:a,duration:l,easing:c,lerp:S,infinite:w,gestureOrientation:r,orientation:u,touchMultiplier:h,wheelMultiplier:m,autoResize:f,prevent:_,virtualScroll:R,__experimental__naiveDimensions:W},this.dimensions=new V(t,i,{autoResize:f}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new q(e,{touchMultiplier:h,wheelMultiplier:m}),this.virtualScroll.on("scroll",this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName()}on(t,i){return this.emitter.on(t,i)}off(t,i){return this.emitter.off(t,i)}setScroll(t){this.isHorizontal?this.rootElement.scrollLeft=t:this.rootElement.scrollTop=t}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(t){let i=t-(this.time||t);this.time=t,this.animate.advance(.001*i)}scrollTo(t,{offset:i=0,immediate:e=!1,lock:s=!1,duration:o=this.options.duration,easing:n=this.options.easing,lerp:a=this.options.lerp,onStart:l,onComplete:c,force:S=!1,programmatic:w=!0,userData:u}={}){if(!this.isStopped&&!this.isLocked||S){if(typeof t=="string"&&["top","left","start"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let r;if(typeof t=="string"?r=document.querySelector(t):t instanceof HTMLElement&&(t!=null&&t.nodeType)&&(r=t),r){if(this.options.wrapper!==window){let m=this.rootElement.getBoundingClientRect();i-=this.isHorizontal?m.left:m.top}let h=r.getBoundingClientRect();t=(this.isHorizontal?h.left:h.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=i,t=Math.round(t),this.options.infinite?w&&(this.targetScroll=this.animatedScroll=this.scroll):t=U(0,t,this.limit),t===this.targetScroll)return l==null||l(this),void(c==null||c(this));if(this.userData=u!=null?u:{},e)return this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c==null||c(this),void(this.userData={});w||(this.targetScroll=t),this.animate.fromTo(this.animatedScroll,t,{duration:o,easing:n,lerp:a,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",l==null||l(this)},onUpdate:(r,h)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=r-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=r,this.setScroll(this.scroll),w&&(this.targetScroll=r),h||this.emit(),h&&(this.reset(),this.emit(),c==null||c(this),this.userData={},this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){return this.options.infinite?function(i,e){return(i%e+e)%e}(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function I(g,t){let i=new N({lerp:.1,wheelMultiplier:.8,gestureOrientation:"vertical"});return i.on("scroll",e=>{}),i.on("scroll",g.update),t.ticker.add(e=>{i.raf(e*1e3)}),t.ticker.lagSmoothing(),i}document.addEventListener("DOMContentLoaded",()=>{gsap.registerPlugin(ScrollTrigger),I(ScrollTrigger,gsap);function g(){return window.innerWidth<=767}function t(){return window.innerWidth<=479}let i="back.out",e="elastic.out(1, 0.5)",s=document.querySelector("[banner-cta--section]"),o=document.querySelectorAll("[ban-text]"),n=document.querySelectorAll("[ban-cta]"),a=document.querySelector("[hero--section]"),l=document.querySelectorAll("[dot-cover]"),c=document.querySelector("[growth--section]"),S=document.querySelectorAll("[growth-card]");u("logo--section","logo-slide",{}),u("card--section","cards-slide",{}),l.forEach(r=>{let h=r.parentElement,m=h==null?void 0:h.querySelector("[map-hover-reveal]");console.log(m);let f=gsap.timeline({paused:!0});f.from(m,{yPercent:50,duration:.5,ease:i,autoAlpha:0}),r.addEventListener("mouseover",()=>{f.play(),r.addEventListener("mouseout",()=>{f.reverse()})})}),u("media--section","media-slide",{}),gsap.timeline({scrollTrigger:{trigger:s,start:"top 70%",toggleActions:"play none none reverse"}}).from(o,{yPercent:-100,stagger:.5,autoAlpha:0,ease:i,duration:1.6}).from(n,{yPercent:-100,autoAlpha:0},1);function u(r,h,m={}){let{start:f="top 70%",y:_=50,stagger:R=.15,autoAlpha:W=0,markers:d=!1}=m;gsap.timeline({scrollTrigger:{trigger:`[${r}]`,start:f,markers:d}}).from(`[${h}]`,{y:_,stagger:R,autoAlpha:W,ease:e,duration:1.5},0)}});})();