{o.remove()}))}}))}))}function initToolTips(){const e=document.querySelectorAll(".tooltip-w");e&&e.forEach((e=>{e.addEventListener("mouseenter",(()=>{const t=e.querySelector(".tooltip");t&&t.classList.add("active")})),e.addEventListener("mouseleave",(()=>{const t=e.querySelector(".tooltip");t&&t.classList.remove("active")}))}))}function initHomeVideo(){let e;e=isMobile?document.querySelector("#hero-vid-mobile"):document.querySelector("#hero-vid-desktop"),e&&setupTextTransitions(e,timestamps)}function setupTextTransitions(e,t){const o=e,r=document.querySelectorAll("[data-home-sub] p");let a=0,n=0;function i(e,t){gsap.fromTo(r[e].querySelectorAll(".word"),{autoAlpha:1,y:"0em"},{autoAlpha:0,y:"-1em",stagger:prefersReducedMotion()?0:.025,duration:.4,ease:"power3.out",onComplete:()=>{gsap.set(r[e].querySelectorAll(".word"),{autoAlpha:0,y:"1em"})}}),gsap.fromTo(r[t].querySelectorAll(".word"),{y:"1em",autoAlpha:0},{y:"0em",autoAlpha:1,stagger:prefersReducedMotion()?0:.025,delay:.1,duration:.4,ease:"back.out(1.5)",onStart:()=>gsap.set(r[t],{autoAlpha:1})})}gsap.set(r,{autoAlpha:0}),gsap.to(r[0].querySelectorAll(".word"),{autoAlpha:1,y:"0em",stagger:.01,duration:.4,ease:"back.out(1)",onComplete:()=>gsap.set(r[0],{autoAlpha:1})}),o.addEventListener("timeupdate",(()=>{const e=o.currentTime;if(ee>=t&&o>n));-1!==o&&o!==n&&(i(n,o),n=o)}a=e}))}function initSaveCalculator(){const e=1e3,t=5,o=[{comparison:"Fruitful",apy:t,highlight:!0},{comparison:"Apple3",apy:4.25},{comparison:"Natl Avg*",apy:.46},{comparison:"Chase3",apy:.01}],r=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),a=new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}),n=document.getElementById("apyTable");o.forEach((e=>{const t=document.createElement("tr");e.highlight&&t.setAttribute("class","yellow"),t.insertAdjacentHTML("beforeend",`${e.comparison} | ${r.format(e.apy/100)} APY | $${a.format(2e4*e.apy/100)} | `),n.appendChild(t)}));const i=document.getElementById("cashEntryInput");function l(e){return e.replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")}function s(o,r){var n=o.value;if(""===n)return;var i=n.length,s=o.selectionStart;if(n.indexOf(".")>=0){var u=n.indexOf("."),p=n.substring(0,u),g=n.substring(u);p=l(p),g=l(g),"blur"===r&&(g+="00"),n="$"+p+"."+(g=g.substring(0,2))}else n="$"+(n=l(n)),"blur"===r&&(n+=".00");o.value=n,s=n.length-i+s,o.setSelectionRange(s,s);const m=parseFloat(n.replaceAll("$","").replaceAll(",",""));!function(e){e||(e=0);for(let t=0;t=e?"visible":"hidden"}(m)}i.onclick=function(){""===i.value&&(i.value="$")},i.onkeyup=function(){s(i)},i.blur=function(){s(i,"blur")};const c=n.querySelectorAll("[data-apy]");const d=document.getElementById("interestCoversMembership")}function initInvestCalculator(){const e=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),t=new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:0}),o=document.getElementById("feeTable");[{comparison:"Fruitful",fee:0,highlight:!0},{comparison:"Robo-Advisors*",fee:.25},{comparison:"Traditional Advisors*",fee:1}].forEach((r=>{const a=document.createElement("tr");r.highlight&&a.setAttribute("class","yellow"),a.insertAdjacentHTML("beforeend",`${r.comparison} | ${e.format(r.fee/100)} | $${t.format(l(75e3,r.fee/100))} | `),o.appendChild(a)}));const r=document.getElementById("investmentInput");function a(e){return e.replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")}function n(e,o){var r=e.value;if(""===r)return;var n=r.length,s=e.selectionStart;if(r.indexOf(".")>=0){var c=r.indexOf("."),d=r.substring(0,c),u=r.substring(c);d=a(d),u=a(u),"blur"===o&&(u+="00"),r="$"+d+"."+(u=u.substring(0,2))}else r="$"+(r=a(r)),"blur"===o&&(r+=".00");e.value=r,s=r.length-n+s,e.setSelectionRange(s,s);!function(e){e||(e=0);for(let o=0;o{t.progress(0),t.pause()}}),ScrollTrigger.create({trigger:e,start:"top 80%",onEnter:()=>{t.play()}})}e||(e=document.querySelector('[data-barba="container"]')),document.querySelectorAll("[lines-slide-up]").forEach((function(e,o){let r=gsap.timeline({paused:!0});r.fromTo(e.querySelectorAll(".line"),{opacity:0,yPercent:50,rotate:3},{opacity:1,rotate:0,yPercent:0,duration:.5,ease:"back.out(3)",stagger:{amount:.25}}),t(e,r)}));let o=e.querySelectorAll(".faq-item");o&&o.forEach((function(e,o){let r=gsap.timeline({paused:!0});r.fromTo(e,{opacity:0,yPercent:50,rotate:3},{opacity:1,rotate:0,yPercent:0,duration:.5,ease:"back.out(3)"}),t(e,r)}))}function initVideoControls(e){e||(e=document.querySelector('[data-barba="container"]'));const t=e.querySelectorAll("[data-video-controls]"),o=e.querySelectorAll(".play-button-icon"),r=e.querySelectorAll(".sound-button-icon");globalPlayState||o.forEach((e=>{e.classList.add("active")})),globalMuteState||r.forEach((e=>{e.classList.add("muted")})),t.forEach((e=>{const t=e.querySelector("video");e.getAttribute("data-video-controls")||t.addEventListener("click",(()=>{t.paused?(t.play(),o.forEach((e=>{e.classList.remove("active")})),globalPlayState=!0):(t.pause(),o.forEach((e=>{e.classList.add("active")})),globalPlayState=!1)})),r.forEach((e=>{e.addEventListener("click",(()=>{t.muted=!t.muted,globalMuteState=t.muted,r.forEach((e=>{e.classList.toggle("muted")}))}))}))}))}function initMobileSliders(){const e=new Swiper(".g-card__wrap.swiper",{slidesPerView:"auto",spaceBetween:0,centeredSlides:!0,speed:800,init:!0,initialSlide:2,breakpoints:{768:{init:!1}}}),t=document.querySelectorAll(".g-nav__item");function o(e,t){gsap.to(e,{opacity:0,duration:.3,ease:"power1.inOut"}),gsap.to(t,{opacity:1,duration:.3,ease:"power1.inOut",onComplete:()=>{t.play()}})}function r(e,t){gsap.to(e,{opacity:1,duration:.3,ease:"power1.inOut"}),gsap.to(t,{opacity:0,duration:.3,ease:"power1.inOut",onComplete:()=>{t.pause()}})}t[2].classList.add("active"),t.forEach(((o,r)=>{o.addEventListener("click",(function(){t.forEach((e=>e.classList.remove("active"))),this.classList.add("active"),e.slideTo(r)}))}));var a=document.querySelector(".g-card.swiper-slide-active");o(a.querySelector("img"),a.querySelector("video")),e.on("beforeSlideChangeStart",(function(){var e=document.querySelector(".g-card.swiper-slide-active");r(e.querySelector("img"),e.querySelector("video"))})),e.on("slideChangeTransitionEnd",(function(){t.forEach((e=>e.classList.remove("active")));const r=e.activeIndex;t[r].classList.add("active");var a=document.querySelector(".g-card.swiper-slide-active");o(a.querySelector("img"),a.querySelector("video"))}));const n=new Swiper(".t-card__wrap",{slidesPerView:"auto",spaceBetween:0,centeredSlides:!0,speed:800,init:!0,initialSlide:2,breakpoints:{768:{init:!1}}});var i=document.querySelector(".t-card.swiper-slide-active");o(i.querySelector("img"),i.querySelector("video")),n.on("beforeSlideChangeStart",(function(){var e=document.querySelector(".t-card.swiper-slide-active");r(e.querySelector("img"),e.querySelector("video"))})),n.on("slideChangeTransitionEnd",(function(){var e=document.querySelector(".t-card.swiper-slide-active");o(e.querySelector("img"),e.querySelector("video"))}))}function initNavToggle(){const e=document.querySelector("[data-nav-toggle]");ScrollTrigger.create({trigger:e,start:"top top",onEnter:()=>{navW.setAttribute("theme","dark")},onLeaveBack:()=>{navW.setAttribute("theme","light")}})}function initHomeHero(e){if(prefersReducedMotion())return;let t,o,r;e||(e=document.querySelector('[data-barba="container"]')),e.querySelector(".full-hero__bg")&&(t=!0);let a=e.querySelector('[data-home-hero="trigger"]'),n=a.querySelector('[data-home-hero="bg"]');t&&(o=e.querySelector(".full-hero__fern"),r=e.querySelector(".full-hero__orange")),gsap.timeline({scrollTrigger:{trigger:a,start:isMobile?"bottom 85%":"bottom bottom",end:"bottom center",scrub:!0}}).to(a,{scale:.95},0).from(n,{borderRadius:"0rem, 0rem, 0rem, 0rem"},0).to(o,{yPercent:-5,xPercent:-5},0).to(r,{yPercent:5},0)}function initGuidesOverlay(e){e||(e=document.querySelector('[data-barba="container"]'));const t=e.querySelectorAll("[data-overlay-open]"),o=e.querySelector(".overlay-w"),r=e.querySelectorAll(".overlay-item"),a=e.querySelectorAll("[data-overlay-close]"),n=(e.querySelector("[data-overlay-cta]"),e.querySelector("[data-overlay-next]")),i=e.querySelector("[data-overlay-prev]"),l=e.querySelectorAll("[data-overlay-fade]"),s=e.querySelectorAll("[data-overlay-tag]");function c(e,t){const o=Array.from(r).findIndex((e=>e.classList.contains("is--active"))),a=r[e],n=r[o],i="next"===t?-1:1;let l=n.querySelector("video"),s=a.querySelector("video");l.pause();const c=gsap.timeline({onComplete:()=>{n&&n.classList.remove("is--active"),a.classList.add("is--active"),function(){globalPlayState&&(s.muted=globalMuteState,s.play());const o="next"===t?"1rem":"-1rem";gsap.timeline({onStart:()=>{a.getAttribute("data-overlay-name");!function(e){const t=0===e?r.length-1:e-1,o=e===r.length-1?0:e+1,a=r[t].getAttribute("data-overlay-name"),n=r[o].getAttribute("data-overlay-name");document.querySelector("[data-overlay-prev-name]").textContent=a,document.querySelector("[data-overlay-next-name]").textContent=n}(e)}}).fromTo(a.querySelectorAll("[data-overlay-fade]"),{opacity:0,y:o},{opacity:1,y:"0rem",stagger:.05,duration:.45}).fromTo(a.querySelectorAll("[data-overlay-tag]"),{opacity:0,y:o},{opacity:1,y:"0rem",stagger:.05,duration:.45,ease:"back.out(2)"},"<")}()}});n&&(c.to(n.querySelectorAll("[data-overlay-fade]"),{opacity:0,y:`${i}rem`,stagger:.05,duration:.3,ease:"power3"},"<"),c.to(n.querySelectorAll("[data-overlay-tag]"),{opacity:0,y:`${i}rem`,stagger:.1,duration:.3,ease:"power3"},"<"))}gsap.set(".overlay-inner",{yPercent:20,opacity:0}),t.forEach(((t,a)=>{t.addEventListener("click",(()=>{gsap.timeline().set(o,{display:"flex"}).fromTo(".overlay-bg",{opacity:0},{opacity:1,duration:.4}).fromTo(".overlay-inner",{yPercent:20,opacity:0},{yPercent:0,opacity:1,duration:.6,ease:"back.out(2)"},"<").fromTo(l,{opacity:0,y:"1rem"},{opacity:1,y:"0rem",stagger:.05,duration:.45},"<+=0.1").fromTo(s,{opacity:0,y:"1rem"},{opacity:1,y:"0rem",stagger:.05,duration:.45,ease:"back.out(2)"},"<"),a>5&&(a-=6);const t=0===a?r.length-1:a-1,n=a===r.length-1?0:a+1,i=r[a],c=r[t].getAttribute("data-overlay-name"),d=r[n].getAttribute("data-overlay-name"),u=e.querySelector("[data-overlay-prev-name]"),p=e.querySelector("[data-overlay-next-name]"),g=i.querySelector("video");globalPlayState&&(g.muted=globalMuteState,g.play()),r.forEach((e=>e.classList.remove("is--active"))),i.classList.add("is--active");i.getAttribute("data-overlay-name");u&&(u.textContent=c),p&&(p.textContent=d)}))})),a.forEach((e=>{e.addEventListener("click",(()=>{r.forEach((e=>{e.querySelector("video").pause()})),gsap.timeline().fromTo(".overlay-bg",{opacity:1},{opacity:0,duration:.3,ease:"power3"}).fromTo(".overlay-inner",{yPercent:0,opacity:1},{yPercent:10,opacity:0,duration:.3,ease:"power3"},0).set(o,{display:"none"}).then((()=>{r.forEach((e=>{e.classList.remove("is--active"),gsap.set(e,{opacity:0,xPercent:0,clearProps:"all"})}))}))}))})),n.addEventListener("click",(()=>{let e=Array.from(r).findIndex((e=>e.classList.contains("is--active")));c(e===r.length-1?0:e+1,"next")})),i.addEventListener("click",(()=>{let e=Array.from(r).findIndex((e=>e.classList.contains("is--active")));c(0===e?r.length-1:e-1,"prev")}))}function initMemberStories(){document.querySelectorAll("[data-modal-open]").forEach((e=>{e.addEventListener("click",(function(){!function(e){gsap.timeline().set(".modal-w",{display:"flex"}).fromTo(".modal-bg",{filter:"blur(0px)",opacity:0},{filter:"blur(4px)",opacity:1,duration:.6,ease:"power3.out"}).fromTo(".modal-inner",{opacity:0,yPercent:5},{opacity:1,yPercent:0,duration:.6,ease:"power3.out"},0);const t=document.querySelector(".modal-w video");t.getAttribute("src")!==e?(t.src=e,t.load(),globalPlayState||(t.oncanplay=()=>{t.pause()})):globalPlayState&&(t.muted=globalMuteState,t.play());globalPlayState&&(t.oncanplay=()=>{t.muted=globalMuteState,t.play()});document.querySelectorAll("[data-modal-close]").forEach((e=>{e.addEventListener("click",(function(){t.pause(),gsap.to(".modal-bg",{filter:"blur(0px)",duration:.5,opacity:0,onComplete:()=>{gsap.set(".modal-w",{display:"none"})}}),gsap.to(".modal-inner",{opacity:0,yPercent:5,duration:.5,ease:"power3.out"})}))}))}(this.getAttribute("data-video-src"))}))}))}function initGoalsScroll(e){if(prefersReducedMotion())return;let t=(e=e||document).querySelector(".goals-wrap"),o=t.querySelectorAll(".goals-card");gsap.timeline({scrollTrigger:{trigger:t,start:"top 80%",toggleActions:"play none none reverse"}}).from(o,{bottom:"40%",left:"42%",ease:"back.out(2.5)",duration:1,stagger:{each:.05,from:"end"},rotate:()=>24*Math.random()-12})}function initGuidesCollage(e){if(prefersReducedMotion())return;let t=(e=e||document).querySelector(".guides-collage");if(!t)return;let o=t.querySelectorAll(".g-card");gsap.timeline({scrollTrigger:{trigger:t,start:"top 80%",toggleActions:"play none none reverse"}}).from(o,{top:"30%",left:"42%",ease:"back.out(2)",duration:.8,stagger:{each:.05,from:"end"},rotate:()=>24*Math.random()-12})}function initHomeIntro(){let e=document.querySelector("[data-intro-text]");if(!e)return;let t=e.querySelector(".intro-spacer.is--top"),o=e.querySelector(".intro-spacer.is--bottom"),r=document.querySelector(".intro-image__top"),a=document.querySelector(".intro-image__bottom"),n=r.querySelector("[data-lottie]"),i=a.querySelector("[data-lottie]"),l=lottie.loadAnimation({container:n,renderer:"svg",loop:!1,autoplay:!1,path:n.getAttribute("data-lottie-path")}),s=lottie.loadAnimation({container:i,renderer:"svg",loop:!1,autoplay:!1,path:i.getAttribute("data-lottie-path")});gsap.timeline({scrollTrigger:{trigger:e,start:"bottom bottom",toggleActions:"play none none reverse"},onReverseComplete:()=>{l.goToAndStop(0,!0),s.goToAndStop(0,!0)},defaults:{ease:"expo.inOut",duration:1}}).fromTo(o,{width:isDesktop?"0.5em":"0em"},{width:isDesktop?"2.8em":"0em",duration:1},0).fromTo(t,{width:isDesktop?"0.5em":"0em"},{width:isDesktop?"2em":"0em",duration:1},0).from(r,{rotate:15,scale:0,onStart:()=>{gsap.delayedCall(.5,(()=>{l.play()}))}},0).from(a,{rotate:-10,scale:0,onStart:()=>{gsap.delayedCall(.5,(()=>{s.play()}))}},.1)}function initBushCTA(e){if(e=e||document,isMobile)return;let t=e.querySelector(".bush-cta");if(!t)return;let o=t.querySelector(".bush-cta__card.is--left"),r=t.querySelector(".bush-cta__card.is--right"),a=t.querySelector(".bush-cta__butterfly.is--left"),n=t.querySelector(".bush-cta__butterfly.is--right"),i=t.querySelector("[data-lottie]"),l=lottie.loadAnimation({container:i,renderer:"svg",loop:!1,autoplay:!1,path:i.getAttribute("data-lottie-path")});gsap.timeline({scrollTrigger:{trigger:t,start:"top bottom",end:"bottom top",scrub:!0},defaults:{ease:"linear",duration:1}}).fromTo(a,{y:"5em",xPercent:-100},{y:"-1em",xPercent:25}).fromTo(n,{y:"10em",xPercent:100},{y:"-4em",xPercent:-100},"<");gsap.timeline({scrollTrigger:{trigger:t,start:"center bottom",toggleActions:"play none none reverse"},defaults:{ease:"back.out(1.8)",duration:.6},onStart:()=>{gsap.delayedCall(.5,(()=>{l.play()}))},onReverseComplete:()=>{l.goToAndStop(0,!0)}}).from(o,{scale:.85,rotate:2,xPercent:10}).from(r,{scale:.85,rotate:-2,xPercent:-10},"<")}function initHomeSliders(e){let t=(e=e||document).querySelector(".swiper.is--intro__cards"),o=e.querySelector(".swiper.is--steps__cards");if(t){const e=new Swiper(t,{spaceBetween:16,slidesPerView:"auto",centeredSlides:!0,slideToClickedSlide:!0,speed:800,pagination:{el:".pagination.is--intro__cards",type:"bullets"}});isMobileLandscape||(e.destroy(!0,!0),lenis.resize(),ScrollTrigger.refresh())}if(o){const e=new Swiper(o,{spaceBetween:16,slidesPerView:"auto",centeredSlides:!0,slideToClickedSlide:!0,speed:800,pagination:{el:".pagination.is--steps__cards",type:"bullets"}});isMobileLandscape||(e.destroy(!0,!0),lenis.resize(),ScrollTrigger.refresh())}}function initVideoOnHover(){if(supportsTouch())return;let e=document.querySelectorAll("[data-video-hover]");e&&e.forEach((e=>{let t=e.querySelector("img"),o=e.querySelector("video");e.addEventListener("mouseenter",(()=>{gsap.to(t,{opacity:0,duration:.2,ease:"power2"}),gsap.to(o,{opacity:1,duration:.2,ease:"power2",onComplete:()=>{o.play()}})})),e.addEventListener("mouseleave",(()=>{gsap.to(t,{opacity:1,duration:.2,ease:"power2"}),gsap.to(o,{opacity:0,duration:.2,ease:"power2",onComplete:()=>{o.pause()}})}))}))}function createCardWrapTimeline(e,t){const o=gsap.timeline({paused:!0,defaults:{ease:CustomEase.create("guides-bounce","M0,0 C0.084,0.61 0.202,0.898 0.327,0.977 0.555,1.121 0.661,0.92 1,1 "),duration:1}});return o.fromTo(e.querySelectorAll("[data-card]"),{yPercent:e=>50+10*e,rotate:e=>2*(e+2)},{yPercent:0,rotate:t?e=>6*Math.random()-3:0,stagger:.075,overwrite:"true",onStart:()=>gsap.set(e.querySelectorAll("[data-card]"),{pointerEvents:"none"}),onComplete:()=>gsap.set(e.querySelectorAll("[data-card]"),{pointerEvents:"auto"})}),o}function initCardsIntro(e){if(prefersReducedMotion())return;(e=e||document).querySelectorAll("[data-cards-wrap]").forEach(((e,t)=>{const o="static"===e.getAttribute("data-cards-wrap"),r=createCardWrapTimeline(e,!o);cardWrapTimelines.set(e,r),ScrollTrigger.create({trigger:e,start:"top bottom-=15%",toggleActions:"play none none reverse",onEnter:()=>r.play(),onLeaveBack:()=>r.reverse()})}))}function initCardsHover(){document.querySelectorAll("[data-card]").forEach((e=>{const t=e.style.zIndex||0;if(!0===("static"===e.getAttribute("data-card")))return;const o=e.querySelector("video"),r=e.querySelector("img");e.addEventListener("mouseenter",(()=>{e.style.zIndex=2,gsap.to(e,{scale:prefersReducedMotion()?1:1.15,rotate:prefersReducedMotion()?0:16*Math.random()-8,duration:.6,ease:CustomEase.create("guides-bounce","M0,0 C0.084,0.61 0.202,0.898 0.327,0.977 0.555,1.121 0.661,0.92 1,1 ")}),supportsTouch()||(gsap.to(r,{opacity:0,duration:.2,ease:"power2"}),gsap.to(o,{opacity:1,duration:.2,ease:"power2",onComplete:()=>{o.play()}}))})),e.addEventListener("mouseleave",(()=>{e.style.zIndex=t,gsap.to(e,{scale:1,rotate:prefersReducedMotion()?0:6*Math.random()-3,duration:.6,ease:CustomEase.create("guides-bounce","M0,0 C0.084,0.61 0.202,0.898 0.327,0.977 0.555,1.121 0.661,0.92 1,1 ")}),supportsTouch()||(gsap.to(r,{opacity:1,duration:.2,ease:"power2"}),gsap.to(o,{opacity:0,duration:.2,ease:"power2",onComplete:()=>{o.pause()}}))}))}))}function initHomeParallax(){const e=document.querySelector('[data-parallax="trigger"]'),t=e.querySelector('[data-parallax="tree-left"]'),o=e.querySelector('[data-parallax="tree-right"]'),r=(e.querySelector('[data-parallax="people"]'),e.querySelector('[data-parallax="b-left"]')),a=document.querySelector('[data-parallax="b-right"]'),n=(e.querySelector('[data-parallax="bg"]'),document.querySelector('[data-parallax="text"]')),i=n.querySelector(".h-med"),l=n.querySelector(".p-med");gsap.timeline({scrollTrigger:{trigger:e,start:"top 85%",end:"bottom center",scrub:!0},defaults:{ease:"linear",duration:1}}).to(o,{yPercent:24,duration:1}).to(t,{yPercent:18,duration:1},0).to(r,{yPercent:-250,xPercent:-60,rotate:-3,duration:1},0).to(a,{yPercent:-250,xPercent:160,rotate:4,duration:1},0).from(n,{y:isMobileLandscape?"-180vw":"-120vw",duration:.7},.3).fromTo(i,{fontSize:isMobile?"4em":"10em"},{fontSize:isMobile?"2em":"3.25em",duration:.7},"<").from(n,{color:"#fff",duration:.2},.8).fromTo(i,{lineHeight:"0.9"},{lineHeight:"1.1",duration:.2},.8).from(l,{opacity:0,yPercent:100,duration:.2},.8)}function initStackingNav(){const e=document.querySelectorAll(".stacking-card");if(!e)return;e.forEach(((e,t)=>{let o=e.previousElementSibling;gsap.timeline({scrollTrigger:{trigger:e,start:"top 65%",end:"top top",scrub:1}}).fromTo(o,{scale:1,filter:(prefersReducedMotion(),"blur(0px)")},{scale:.85,filter:prefersReducedMotion()?"blur(0px)":"blur(8px)"}).fromTo(e,{boxShadow:"0px 0px 0px 0px rgba(0, 0, 0, 0.02)"},{boxShadow:"0px -49px 49px 0px rgba(0, 0, 0, 0.02)"})}));const t=document.querySelectorAll(".stacking-nav__link");function o(e){t.forEach(((t,o)=>{t.classList.toggle("is--active",o===e)}))}t.forEach(((e,t)=>{e.addEventListener("click",(e=>{e.preventDefault();const o=document.querySelector("[data-stack-wrap]");if(!o)return;const r=o.getBoundingClientRect(),a=window.scrollY,n=r.top+a,i=r.height;let l=n;switch(t){case 0:l=n;break;case 1:l=n+i/3;break;case 2:l=n+i-i/3}lenis.scrollTo(l,{duration:1.2})}))})),e.forEach(((e,t)=>{ScrollTrigger.create({trigger:e,start:"top center",end:"bottom center",onEnter:()=>o(t),onLeave:()=>o(t+1),onEnterBack:()=>o(t),onLeaveBack:()=>o(t-1)})}));let r=gsap.timeline({default:{ease:"back.out(3)",duration:.5}}),a=()=>{ScrollTrigger.refresh(),r.clear(0),r.progress(0),r.set(".stacking-cards__nav",{display:"flex"}).to(".stacking-nav__bg",{width:"100%",ease:"back.out(2)",duration:.5}).to(".stacking-nav__link",{opacity:1,y:"0%",stagger:.1,ease:"back.out(3)",duration:.45},0)},n=()=>{r.clear(0),r.progress(0),r.to(".stacking-nav__link",{opacity:0,y:"50%",stagger:.1,duration:.4}).to(".stacking-nav__bg",{width:"0%",duration:.4},.1).set(".stacking-cards__nav",{display:"none"})};n(),ScrollTrigger.create({trigger:"[data-stack-wrap]",start:"top bottom",end:"bottom bottom-=25%",onEnter:a,onEnterBack:a,onLeave:n,onLeaveBack:n})}function initStackGuidanceAnimations(e){e||(e=document.querySelector('[data-barba="container"]'));let t=e.querySelector("[data-stack-guidance]");if(!t)return;let o=t.querySelectorAll("[data-lottie]"),r=[];o.forEach((e=>{let t=lottie.loadAnimation({container:e,renderer:"svg",loop:!1,autoplay:!1,path:e.getAttribute("data-lottie-path")});r.push(t)})),gsap.timeline({scrollTrigger:{trigger:t,start:"top center",end:"top bottom",onEnter:()=>playLottieAnimationsStaggered(r,1)}})}function initStackSaveAnimations(e){e||(e=document.querySelector('[data-barba="container"]'));let t=e.querySelector("[data-stack-save]");if(!t)return;let o=t.querySelectorAll("[data-lottie]"),r=[];o.forEach((e=>{let t=lottie.loadAnimation({container:e,renderer:"svg",loop:!1,autoplay:!1,path:e.getAttribute("data-lottie-path")});r.push(t)})),gsap.timeline({scrollTrigger:{trigger:t,start:"top center",end:"top bottom",onEnter:()=>playLottieAnimationsStaggered(r,.15)}})}function initStackInvestAnimations(e){e||(e=document.querySelector('[data-barba="container"]'));let t=e.querySelector("[data-stack-invest]");if(!t)return;let o=t.querySelectorAll("[data-lottie]"),r=[];o.forEach((e=>{let t=lottie.loadAnimation({container:e,renderer:"svg",loop:!1,autoplay:!1,path:e.getAttribute("data-lottie-path")});r.push(t)})),gsap.timeline({scrollTrigger:{trigger:t,start:"top center",end:"top bottom",onEnter:()=>playLottieAnimationsStaggered(r,.2)}})}function initPricingScroll(){if(prefersReducedMotion()||window.innerWidth<768)return;ScrollTrigger.refresh();const e=document.querySelector("[data-pricing-section]");if(!e)return;const t=e.querySelector("[data-pricing-heading]"),o=t.querySelector("h3"),r=e.querySelector(".eyebrow");gsap.timeline({scrollTrigger:{trigger:e,start:"top 75%",end:"top top",scrub:!0}}).from(t,{y:"-20em",ease:"none"},0).fromTo(o,{fontSize:"7.25em"},{fontSize:"2.5em",ease:"none"},0).fromTo(r,{fontSize:"1.25rem"},{fontSize:"0.75rem",ease:"none"},0)}function initPriceCards(e){ScrollTrigger.refresh(),e||(e=document.querySelector('[data-barba="container"]'));let t=e.querySelector(".p-cards__container"),o=t.querySelector(".p-card.is--left"),r=t.querySelector(".p-card.is--right"),a=t.querySelector(".p-card.is--center"),n=t.querySelector("[data-lottie]"),i=t.querySelectorAll(".p-card"),l=t.querySelectorAll(".p-card__sub"),s=lottie.loadAnimation({container:n,renderer:"svg",loop:!1,autoplay:!1,path:n.getAttribute("data-lottie-path")});gsap.timeline({scrollTrigger:{trigger:t,start:"top bottom",toggleActions:"play none none reverse"},onReverseComplete:()=>{s.goToAndStop(0,!0)}}).from(o,{xPercent:80,yPercent:30,rotate:6,duration:.8,ease:"back.out(1.8)"}).from(r,{xPercent:-80,yPercent:30,rotate:-6,duration:.8,ease:"back.out(1.8)"},0).from(a,{yPercent:10,scale:.85,duration:.8,ease:"back.out(1.5)",onStart:()=>{gsap.delayedCall(.5,(()=>{s.play()}))}},0),i.forEach((e=>{e.addEventListener("mouseenter",(()=>{i.forEach((e=>e.classList.remove("is--active"))),e.classList.add("is--active"),gsap.to(e,{scale:prefersReducedMotion()?1:1.1,duration:.3,ease:"back.out(1.8)",overwrite:"auto"})})),e.addEventListener("mouseleave",(()=>{e.classList.remove("is--active"),a.classList.add("is--active"),gsap.to(e,{scale:1,duration:.3,ease:"back.out(1.5)",overwrite:"auto"})}))}));const c=e.querySelector("[data-price-solo]"),d=e.querySelector("[data-price-joint]"),u=gsap.timeline({paused:!0});u.to(".p-card__heading",{y:"-0.9em",duration:.5,ease:"back.inOut(2)"}).to(".p-card__eyebrow .eyebrow",{yPercent:-100,duration:.5,ease:"back.inOut(2)"},0).to(".p-card__sign.offset",{left:"0em",duration:.5,ease:"back.inOut(2)"},0).to(l,{x:"0em",duration:.5,ease:"back.inOut(2)"},0),c.addEventListener("click",(()=>{c.classList.contains("is--active")||(d.classList.remove("is--active"),c.classList.add("is--active"),u.reverse())})),d.addEventListener("click",(()=>{d.classList.contains("is--active")||(c.classList.remove("is--active"),d.classList.add("is--active"),u.play())})),t=null}function initImgScroll(){if(prefersReducedMotion())return;gsap.timeline({scrollTrigger:{trigger:".img-scroll",start:"top 80%",end:"bottom 20%",scrub:!0}}).to(".img-scroll",{width:"100%",ease:"none"}).to(".img-scroll",{width:"80%",ease:"none"})}function initGuidesSlider(){new Swiper(".swiper.is--guides",{grabCursor:!0,slidesPerView:"auto",spaceBetween:0,speed:600,effect:"creative",keyboard:{enabled:!0,onlyInViewport:!1},mousewheel:{invert:!1},creativeEffect:{prev:{shadow:!1,translate:[0,0,-80],rotate:[0,0,-3]},next:{translate:["105%",0,1]},limitProgress:6,shadowPerProgress:!1}})}function toggleTextBlocks(e){e||(e=document.querySelector('[data-barba="container"]'));const t=e.querySelectorAll(".track-text__item"),o=e.querySelectorAll(".track-dot"),r=e.querySelector("[data-track-wrap]");ScrollTrigger.create({trigger:r,start:"top top",end:"bottom bottom",scrub:!0,onUpdate:e=>{const r=e.progress,a=Math.min(Math.floor(r*t.length),t.length-1);t.forEach((e=>e.classList.remove("active"))),o.forEach((e=>e.classList.remove("active"))),a{ScrollTrigger.create({trigger:e,start:"top 25%",end:"bottom 75%",onEnter:()=>gsap.to(".section",{backgroundColor:"#eff7ff",duration:.5}),onLeave:()=>gsap.to(".section",{backgroundColor:"#fff",duration:.5}),onEnterBack:()=>gsap.to(".section",{backgroundColor:"#eff7ff",duration:.5}),onLeaveBack:()=>gsap.to(".section",{backgroundColor:"#fff",duration:.5})})}))}function initGuideCardsHover(){document.querySelectorAll("[data-card]").forEach((e=>{const t=e.style.zIndex||0,o=e.querySelector(".card-inner");e.addEventListener("mouseenter",(()=>{e.style.zIndex=2,gsap.to(o,{scale:prefersReducedMotion()?1:1.1,rotate:prefersReducedMotion()?0:16*Math.random()-8,duration:.6,ease:CustomEase.create("guides-bounce","M0,0 C0.084,0.61 0.202,0.898 0.327,0.977 0.555,1.121 0.661,0.92 1,1 ")})})),e.addEventListener("mouseleave",(()=>{e.style.zIndex=t,gsap.to(o,{scale:1,rotate:prefersReducedMotion()?0:6*Math.random()-3,duration:.6,ease:CustomEase.create("guides-bounce","M0,0 C0.084,0.61 0.202,0.898 0.327,0.977 0.555,1.121 0.661,0.92 1,1 ")})}))}))}function initColorChanges(){let e=document.querySelectorAll("[data-section-blue]");e.length>0&&e.forEach((e=>{ScrollTrigger.create({trigger:e,start:"top 50%",end:"bottom 50%",onEnter:()=>gsap.to(".section",{backgroundColor:"#eff7ff",duration:.5}),onLeave:()=>gsap.to(".section",{backgroundColor:"#fff",duration:.5}),onEnterBack:()=>gsap.to(".section",{backgroundColor:"#eff7ff",duration:.5}),onLeaveBack:()=>gsap.to(".section",{backgroundColor:"#fff",duration:.5})})}));let t=document.querySelectorAll("[data-section-green]");t.length>0&&t.forEach((e=>{ScrollTrigger.create({trigger:e,start:"top 50%",end:"bottom 60%",onEnter:()=>gsap.to(".section",{backgroundColor:"#f2f7ee",duration:.5}),onLeave:()=>gsap.to(".section",{backgroundColor:"#fff",duration:.5}),onEnterBack:()=>gsap.to(".section",{backgroundColor:"#f2f7ee",duration:.5}),onLeaveBack:()=>gsap.to(".section",{backgroundColor:"#fff",duration:.5})})}));let o=document.querySelectorAll("[data-section-orange]");o.length>0&&o.forEach((e=>{ScrollTrigger.create({trigger:e,start:"top 50%",end:"bottom 60%",onEnter:()=>gsap.to(".section",{backgroundColor:"#f9e1d3",duration:.5}),onLeave:()=>gsap.to(".section",{backgroundColor:"#fff",duration:.5}),onEnterBack:()=>gsap.to(".section",{backgroundColor:"#f9e1d3",duration:.5}),onLeaveBack:()=>gsap.to(".section",{backgroundColor:"#fff",duration:.5})})}))}function initVideoScroll(e){e||(e=document.querySelector('[data-barba="container"]'));let t=e.querySelector(".video-scroll"),o=t.querySelector("img");gsap.timeline({scrollTrigger:{trigger:t,start:"top bottom",end:"top 20%",scrub:1}}).from(t,{scale:.8}).from(o,{scale:1.1},0)}function initInvestCards(){let e=document.querySelector(".card-c");if(!e)return;let t=e.querySelector(".card-w.is--left"),o=e.querySelector(".card-w.is--right"),r=e.querySelector(".card-w.is--center");gsap.delayedCall(2,(()=>{ScrollTrigger.refresh()})),gsap.timeline({scrollTrigger:{trigger:e,start:"top 60%",toggleActions:"play none none reverse"}}).from(t,{xPercent:80,yPercent:20,rotate:6,duration:.8,ease:"back.out(1.8)"}).from(o,{xPercent:-80,yPercent:20,rotate:-6,duration:.8,ease:"back.out(1.8)"},0).from(r,{yPercent:10,scale:.85,duration:.8,ease:"back.out(1.5)"},0)}function initScrollingTitles(e){e||(e=document.querySelector('[data-barba="container"]'));const t=e.querySelector("[data-track-wrap]"),o=t.querySelectorAll(".h-display");ScrollTrigger.create({trigger:t,start:"top top",end:"bottom bottom",scrub:!0,onUpdate:e=>{const t=Math.max(0,e.progress-.1),r=Math.min(Math.floor(t/.9*o.length),o.length-1);o.forEach((e=>e.classList.remove("is--active"))),r{initHeadlines(e)}),1e3))}function initHome(e){initHomeHero(e),initNavToggle(),initHomeSliders(e),isMobile&&initMobileSliders(),initHomeIntro(),initBushCTA(e),initVideoOnHover(),initStackingNav(),initCardsIntro(),initCardsHover(),initGuidesOverlay(e),initGuidesCollage(e),initHomeParallax(),initStackGuidanceAnimations(e),initStackSaveAnimations(e),initStackInvestAnimations(e),initPriceCards(e),initPricingScroll(),initGoalsScroll(e),initMemberStories()}function initGuidesPage(e){initGuidesSlider(),initGuideCardsHover(),initCardsIntro(),initGuidesOverlay(e),initImgScroll(),toggleTextBlocks(e),initStackGuidanceAnimations(e),initGoalsScroll(),initBlueSections()}function initSaveInvest(e){initColorChanges(),initVideoScroll(e),initInvestCards(),initScrollingTitles(e),initStackSaveAnimations(e),setTimeout((()=>{initStackInvestAnimations(e)}),800)}window.addEventListener("resize",handleResize),barba.hooks.after((e=>{$(e.next.container).removeClass("fixed"),$(".is--transitioning").removeClass("is--transitioning"),resetWebflow(e),ScrollTrigger.refresh(),lenis.scrollTo(0,{immediate:!0,force:!0,lock:!0,onComplete:()=>{lenis.start()}}),initGeneral()})),barba.hooks.leave((e=>{lenis.stop()})),barba.hooks.enter((e=>{$(e.next.container).addClass("fixed")})),barba.init({preventRunning:!0,prevent:function({el:e}){return e.hasAttribute("data-barba-prevent")},transitions:[{name:"default",sync:!0,leave:e=>(transitionOut(e.current.container),gsap.fromTo(loadBg,{scaleY:0,borderRadius:"100vw 100vw 0px 0px"},{scaleY:1,borderRadius:"0vw 0vw 0px 0px",duration:1.2,ease:"expo.inOut"}))}],views:[{namespace:"home",afterEnter(e){let t=e.next.container,o=e.next.namespace;!0===ranHomeLoader||localStorage.getItem("loaderShown")||t.hasAttribute("data-no-loader")?transitionIn(t,o):initHomeLoader(),initGeneral(t),initHomeVideo(),initHome(t)}},{namespace:"save",afterEnter(e){let t=e.next.container;transitionIn(t),initGeneral(t),initSaveCalculator(),initSaveInvest(t)}},{namespace:"invest",afterEnter(e){let t=e.next.container;transitionIn(t),initGeneral(t),initInvestCalculator(),initSaveInvest(t)}},{namespace:"pricing",afterEnter(e){let t=e.next.container;transitionIn(t),initGeneral(t),initPriceCards(t)}},{namespace:"guidance",afterEnter(e){let t=e.next.container;transitionIn(t),initGeneral(t),initGuidesPage(t)}}]});
//# sourceMappingURL=/sm/53c264bb1597f36b1b6d5af627a9808b4677ffd02ba1ec402c72c8cb45037b12.map