{"version":3,"file":"Float.mk89TJMo.mjs","names":["useState","useEffect","forwardRef","useRef","useCallback","_jsx","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","_e","J","init_jsx_runtime","ce","de","init_framer_ChujFWHC","RenderTarget","useInView","useTransform","useScroll","useMotionValue","useSpring","useTime","animate","init_framer_motion_1EwlFBEG","useAmpBoost","boost","setBoost","mq","DESKTOP_MIN","apply","DESKTOP_BOOST","makeEnter","Component","range","invert","phase","period","amp","dir","enter","props","ref","Wrapped","local","setRefs","el","isStatic","scrollYProgress","raw","parallax","SPRING","time","opacity","lift","scale","inView","go","ENTER_STATIC_QUERY","REDUCED_MOTION_QUERY","k","tempo","runs","ENTER_EASE","r","y","p","ms","l","sec","ramp","RAMP","a","TAU","wave","K","KNORM","wobble","style","c","make","withAnchor","AMP_BIG","withFloat1","withFloat2","withFloat3","withFloat4","withFloat5","withSoft","AMP_SOFT","withSpark1","AMP_SPARK","withSpark2","withSpark3","withSpark4","withHeroAnchor","HERO_RISE","withPopFloat1","ART_POP","withPopFloat2","withPopFloat3","PAGE_TEMPO","ENTER_BACK","init_Float","path","key","delay"],"sources":["https:/framerusercontent.com/modules/D7C2psCtA6wFIKMaijde/uAgCrD6MvFlNnCzez5gu/Float.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useEffect,useRef,useState}from\"react\";import{RenderTarget}from\"framer\";import{animate,useInView,useMotionValue,useScroll,useTransform,useSpring,useTime}from\"framer-motion\";const AMP_BIG=4// px — the big pieces, same as the Home CTA\n;const AMP_SPARK=3// px — the sparkles are small and sit close together\n;const AMP_SOFT=3// px — a single flat illustration that drifts on its own (Contact)\n;// v3: the bob is a touch more noticeable from the Desktop breakpoint up. Alena wanted the\n// drift readable on a big screen without turning the smaller ones into a bouncing page, and\n// a code override cannot be set per breakpoint — so the amplitude itself watches the width.\nconst DESKTOP_MIN=1440;const DESKTOP_BOOST=1.35;const SPRING={stiffness:90,damping:26,mass:.6};const RAMP=1.2// s for the bob to reach full amplitude\n;const K=.9;const KNORM=Math.asin(K);const TAU=Math.PI*2;const PAGE_TEMPO={\"/use-cases\":.8};const tempo=()=>{if(typeof window===\"undefined\")return 1;const path=window.location.pathname.replace(/\\/+$/,\"\")||\"/\";const key=Object.keys(PAGE_TEMPO).find(k=>path===k||path.endsWith(k));return key?PAGE_TEMPO[key]:1;};function useAmpBoost(){const[boost,setBoost]=useState(1);useEffect(()=>{if(typeof window===\"undefined\"||typeof window.matchMedia!==\"function\")return;const mq=window.matchMedia(`(min-width: ${DESKTOP_MIN}px)`);const apply=()=>setBoost(mq.matches?DESKTOP_BOOST:1);apply();mq.addEventListener(\"change\",apply);return()=>mq.removeEventListener(\"change\",apply);},[]);return boost;}const ENTER_EASE=[.33,1,.68,1];const ENTER_BACK=[.34,1.56,.64,1];const ENTER_STATIC_QUERY=\"(max-width: 767.98px)\";const REDUCED_MOTION_QUERY=\"(prefers-reduced-motion: reduce)\";const HERO_RISE=delay=>({onMount:true,y:18,scale:1,duration:.9,delay,ease:ENTER_EASE});const ART_POP=delay=>({onMount:false,y:8,scale:.8,duration:.6,delay,ease:ENTER_BACK});function makeEnter(Component,range,invert,phase,period,amp,dir,enter){return /*#__PURE__*/forwardRef(function WithEnterFloat(props,ref){const Wrapped=Component;const local=useRef(null);const setRefs=useCallback(el=>{local.current=el;if(typeof ref===\"function\")ref(el);else if(ref)ref.current=el;},[ref]);const isStatic=RenderTarget.current()===RenderTarget.canvas;const boost=useAmpBoost();const{scrollYProgress}=useScroll({target:local,offset:[\"start end\",\"end start\"]});const raw=useTransform(scrollYProgress,[0,1],invert?[-range,range]:[range,-range]);const parallax=useSpring(raw,SPRING);const time=useTime();// hidden until the entrance runs; the canvas always shows the resting state\nconst opacity=useMotionValue(isStatic?1:0);const lift=useMotionValue(isStatic?0:enter.y);const scale=useMotionValue(isStatic?1:enter.scale);const inView=useInView(local,{once:true,amount:.25});const go=enter.onMount||inView;useEffect(()=>{if(isStatic)return;const skip=typeof window===\"undefined\"||typeof window.matchMedia!==\"function\"||window.matchMedia(ENTER_STATIC_QUERY).matches||window.matchMedia(REDUCED_MOTION_QUERY).matches;if(skip){opacity.set(1);lift.set(0);scale.set(1);return;}if(!go)return;const k=tempo();const t={duration:enter.duration*k,delay:enter.delay*k,ease:enter.ease};const runs=[animate(opacity,1,{...t,ease:ENTER_EASE}),animate(lift,0,t),animate(scale,1,t)];return()=>runs.forEach(r=>r.stop());},[go,isStatic]);const y=useTransform([parallax,time,lift],([p,ms,l])=>{if(isStatic)return 0;const sec=ms/1e3+phase;const ramp=Math.min(1,ms/1e3/RAMP);const a=sec*TAU/period;const wave=Math.asin(K*Math.sin(a))/KNORM;const wobble=Math.sin(sec*TAU/(period*1.618)+2.1)*.12;return l+p+dir*(wave*.88+wobble)*amp*boost*ramp;});const style={...props.style||{},y,opacity,scale};return /*#__PURE__*/_jsx(Wrapped,{ref:setRefs,...props,style:style});});}function make(Component,range,invert,phase,period,amp,dir){return /*#__PURE__*/forwardRef(function WithFloat(props,ref){const Wrapped=Component;const local=useRef(null);const setRefs=useCallback(el=>{local.current=el;if(typeof ref===\"function\")ref(el);else if(ref)ref.current=el;},[ref]);const isStatic=RenderTarget.current()===RenderTarget.canvas;const boost=useAmpBoost();const{scrollYProgress}=useScroll({target:local,offset:[\"start end\",\"end start\"]});const raw=useTransform(scrollYProgress,[0,1],invert?[-range,range]:[range,-range]);const parallax=useSpring(raw,SPRING);const time=useTime();const y=useTransform([parallax,time],([p,ms])=>{if(isStatic)return 0;const sec=ms/1e3+phase;const ramp=Math.min(1,ms/1e3/RAMP);const a=sec*TAU/period;const wave=Math.asin(K*Math.sin(a))/KNORM;const wobble=Math.sin(sec*TAU/(period*1.618)+2.1)*.12;return p+dir*(wave*.88+wobble)*amp*boost*ramp;});const style={...props.style||{},y};return /*#__PURE__*/_jsx(Wrapped,{ref:setRefs,...props,style:style});});}// --- the big pieces: every one on its own period, so none of them keep step ------------\n// Anchor is the slowest on purpose — it is the object the composition hangs on.\nexport function withAnchor(Component){return make(Component,10,false,0,5.6,AMP_BIG,1);}export function withFloat1(Component){return make(Component,10,false,.4,3.2,AMP_BIG,1);}// counter-beat — rises while the rest fall. Used for the question mark.\nexport function withFloat2(Component){return make(Component,12,true,.9,4.1,AMP_BIG,-1);}export function withFloat3(Component){return make(Component,10,true,1.4,3.7,AMP_BIG,1);}export function withFloat4(Component){return make(Component,12,false,1.9,5.3,AMP_BIG,-1);}export function withFloat5(Component){return make(Component,11,true,2.4,5.1,AMP_BIG,-1);}// A single flat illustration (no layers to de-sync), so it gets the calmest family:\n// the slowest period, the smallest bob and a shorter scroll range.\nexport function withSoft(Component){return make(Component,8,false,0,5.6,AMP_SOFT,1);}// --- the sparkles ---------------------------------------------------------------------\n// Two sparkles that sit within a few px of each other must share ONE family: identical\n// motion keeps the gap between them constant, so they can never close it.\nexport function withSpark1(Component){return make(Component,12,false,.2,2.6,AMP_SPARK,1);}export function withSpark2(Component){return make(Component,10,true,1.1,3.4,AMP_SPARK,1);}export function withSpark3(Component){return make(Component,12,true,2,2.9,AMP_SPARK,-1);}export function withSpark4(Component){return make(Component,10,false,2.6,3.9,AMP_SPARK,1);}// --- entrance + float on the same layer (v4) --------------------------------------------\n// How It Works hero: the vault rises on load like HeroStep2, the three chips pop in like Art3-5.\nexport function withHeroAnchor(Component){return makeEnter(Component,10,false,0,5.6,AMP_BIG,1,HERO_RISE(.18));}export function withPopFloat1(Component){return makeEnter(Component,10,false,.4,3.2,AMP_BIG,1,ART_POP(.75));}export function withPopFloat2(Component){return makeEnter(Component,12,true,.9,4.1,AMP_BIG,-1,ART_POP(.89));}export function withPopFloat3(Component){return makeEnter(Component,10,true,1.4,3.7,AMP_BIG,1,ART_POP(1.03));}\nexport const __FramerMetadata__ = {\"exports\":{\"withAnchor\":{\"type\":\"reactHoc\",\"name\":\"withAnchor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSpark3\":{\"type\":\"reactHoc\",\"name\":\"withSpark3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloat3\":{\"type\":\"reactHoc\",\"name\":\"withFloat3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloat2\":{\"type\":\"reactHoc\",\"name\":\"withFloat2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPopFloat2\":{\"type\":\"reactHoc\",\"name\":\"withPopFloat2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloat5\":{\"type\":\"reactHoc\",\"name\":\"withFloat5\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloat1\":{\"type\":\"reactHoc\",\"name\":\"withFloat1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPopFloat1\":{\"type\":\"reactHoc\",\"name\":\"withPopFloat1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSpark1\":{\"type\":\"reactHoc\",\"name\":\"withSpark1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSoft\":{\"type\":\"reactHoc\",\"name\":\"withSoft\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFloat4\":{\"type\":\"reactHoc\",\"name\":\"withFloat4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeroAnchor\":{\"type\":\"reactHoc\",\"name\":\"withHeroAnchor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSpark2\":{\"type\":\"reactHoc\",\"name\":\"withSpark2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPopFloat3\":{\"type\":\"reactHoc\",\"name\":\"withPopFloat3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSpark4\":{\"type\":\"reactHoc\",\"name\":\"withSpark4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Float.map"],"mappings":"A,qSAOsT,SAAS0B,GAAa,CAAC,GAAK,CAACC,EAAMC,GAAU5B,EAAS,CAAC,EAAkT,OAAhTC,MAAc,CAAC,GAAUS,IAA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