"use strict";(()=>{function $(m,t,i){return Math.max(m,Math.min(t,i))}var q=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=$(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,h,c){return function(w,y,f){return(1-f)*w+f*y}(o,n,1-Math.exp(-h*c))}(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:h}){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=h}},U=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,h){let c;return function(...d){let w=this;clearTimeout(c),c=setTimeout(()=>{c=void 0,n.apply(w,d)},h)}}(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}}},W=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,E={passive:!1},X=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 W,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,h=-(o-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=s,this.touchStart.y=o,this.lastDelta={x:n,y:h},this.emitter.emit("scroll",{deltaX:n,deltaY:h,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,E),this.element.addEventListener("touchstart",this.onTouchStart,E),this.element.addEventListener("touchmove",this.onTouchMove,E),this.element.addEventListener("touchend",this.onTouchEnd,E)}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,E),this.element.removeEventListener("touchstart",this.onTouchStart,E),this.element.removeEventListener("touchmove",this.onTouchMove,E),this.element.removeEventListener("touchend",this.onTouchEnd,E)}},x=class{constructor({wrapper:t=window,content:i=document.documentElement,eventsTarget:e=t,smoothWheel:s=!0,syncTouch:o=!1,syncTouchLerp:n=.075,touchInertiaMultiplier:h=35,duration:c,easing:d=u=>Math.min(1,1.001-Math.pow(2,-10*u)),lerp:w=.1,infinite:y=!1,orientation:f="vertical",gestureOrientation:p="vertical",touchMultiplier:v=1,wheelMultiplier:T=1,autoResize:b=!0,prevent:z,virtualScroll:_,__experimental__naiveDimensions:g=!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 q,this.emitter=new W,this.onPointerDown=u=>{u.button===1&&this.reset()},this.onVirtualScroll=u=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(u)===!1)return;let{deltaX:l,deltaY:a,event:r}=u;if(this.emitter.emit("virtual-scroll",{deltaX:l,deltaY:a,event:r}),r.ctrlKey)return;let L=r.type.includes("touch"),N=r.type.includes("wheel");if(this.isTouching=r.type==="touchstart"||r.type==="touchmove",this.options.syncTouch&&L&&r.type==="touchstart"&&!this.isStopped&&!this.isLocked)return void this.reset();let H=l===0&&a===0,Y=this.options.gestureOrientation==="vertical"&&a===0||this.options.gestureOrientation==="horizontal"&&l===0;if(H||Y)return;let R=r.composedPath();R=R.slice(0,R.indexOf(this.rootElement));let k=this.options.prevent;if(R.find(S=>{var O,D,A,C,V;return S instanceof HTMLElement&&(typeof k=="function"&&(k==null?void 0:k(S))||((O=S.hasAttribute)===null||O===void 0?void 0:O.call(S,"data-lenis-prevent"))||L&&((D=S.hasAttribute)===null||D===void 0?void 0:D.call(S,"data-lenis-prevent-touch"))||N&&((A=S.hasAttribute)===null||A===void 0?void 0:A.call(S,"data-lenis-prevent-wheel"))||((C=S.classList)===null||C===void 0?void 0:C.contains("lenis"))&&!(!((V=S.classList)===null||V===void 0)&&V.contains("lenis-stopped")))}))return;if(this.isStopped||this.isLocked)return void r.preventDefault();if(!(this.options.syncTouch&&L||this.options.smoothWheel&&N))return this.isScrolling="native",void this.animate.stop();r.preventDefault();let M=a;this.options.gestureOrientation==="both"?M=Math.abs(a)>Math.abs(l)?a:l:this.options.gestureOrientation==="horizontal"&&(M=l);let j=L&&this.options.syncTouch,B=L&&r.type==="touchend"&&Math.abs(M)>5;B&&(M=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+M,Object.assign({programmatic:!1},j?{lerp:B?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 u=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-u,this.direction=Math.sign(this.animatedScroll-u),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:h,duration:c,easing:d,lerp:w,infinite:y,gestureOrientation:p,orientation:f,touchMultiplier:v,wheelMultiplier:T,autoResize:b,prevent:z,virtualScroll:_,__experimental__naiveDimensions:g},this.dimensions=new U(t,i,{autoResize:b}),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 X(e,{touchMultiplier:v,wheelMultiplier:T}),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:h=this.options.lerp,onStart:c,onComplete:d,force:w=!1,programmatic:y=!0,userData:f}={}){if(!this.isStopped&&!this.isLocked||w){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 p;if(typeof t=="string"?p=document.querySelector(t):t instanceof HTMLElement&&(t!=null&&t.nodeType)&&(p=t),p){if(this.options.wrapper!==window){let T=this.rootElement.getBoundingClientRect();i-=this.isHorizontal?T.left:T.top}let v=p.getBoundingClientRect();t=(this.isHorizontal?v.left:v.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=i,t=Math.round(t),this.options.infinite?y&&(this.targetScroll=this.animatedScroll=this.scroll):t=$(0,t,this.limit),t===this.targetScroll)return c==null||c(this),void(d==null||d(this));if(this.userData=f!=null?f:{},e)return this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),d==null||d(this),void(this.userData={});y||(this.targetScroll=t),this.animate.fromTo(this.animatedScroll,t,{duration:o,easing:n,lerp:h,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",c==null||c(this)},onUpdate:(p,v)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=p-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=p,this.setScroll(this.scroll),y&&(this.targetScroll=p),v||this.emit(),v&&(this.reset(),this.emit(),d==null||d(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(m,t){let i=new x({lerp:.1,wheelMultiplier:.8,gestureOrientation:"vertical"});return i.on("scroll",e=>{}),i.on("scroll",m.update),t.ticker.add(e=>{i.raf(e*1e3)}),t.ticker.lagSmoothing(),i}document.addEventListener("DOMContentLoaded",()=>{gsap.registerPlugin(ScrollTrigger);let m=I(ScrollTrigger,gsap);function t(){return window.innerWidth<=767}let i="back.out",e="elastic.out(1, 0.5)",s="power2.out",o=document.getElementById("client-testimonials"),n=o.querySelector("[img-slide]"),h=[...o.querySelectorAll("[slideup]")];gsap.timeline({scrollTrigger:{trigger:o,start:"top 70%"}}).from(h,{yPercent:100,autoAlpha:0,stagger:.1,ease:i,duration:1},.25),_("sect-cta","sect-slide",{}),_("cards-sect","cards-slide",{}),_("team-sect","team-slide",{});function d(){return window.innerWidth-document.documentElement.clientWidth}function w(){let g=d();document.body.style.paddingRight=`${g-1}px`,document.body.style.overflow="hidden"}function y(){document.body.style.paddingRight="",document.body.style.overflow=""}let f=document.querySelector("body"),p=[...document.querySelectorAll("[pop-open]")],v=[...document.querySelectorAll("[pop]")],T=[...document.querySelectorAll("[close-btn]")],b=document.querySelector(".team_info-popup"),z=gsap.timeline({paused:!0});z.set(b,{opacity:0,display:"none"}),z.set(b,{display:"flex"}).to(b,{opacity:1,duration:.2},.2),p.forEach(g=>{g.addEventListener("click",u=>{w();let l=g.getAttribute("pop-open"),[a]=v.filter(r=>r.getAttribute("pop")===l);a.classList.add("active_team"),a.style.display="block",z.play(),gsap.from(a,{yPercent:20,opacity:0,duration:1,ease:"expo.out"}),m.stop()})}),T.forEach((g,u)=>{g.addEventListener("click",()=>{let l=v.find(a=>a.classList.contains("active_team"));m.start(),l==null||l.classList.remove("active_team"),l.style.display="none",z.reverse(),y()})}),_("banner-section","banner-slide",{});function _(g,u,l={}){let{start:a="top 70%",y:r=50,stagger:L=.15,autoAlpha:N=0,markers:H=!1}=l;gsap.timeline({scrollTrigger:{trigger:`[${g}]`,start:a,markers:H}}).from(`[${u}]`,{y:r,stagger:L,autoAlpha:N},0)}});})();