{"version":3,"file":"FirstLoadVeil.BkejZKVC.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/3th6wSropNBOyTP2gxaT/kjx4cG2eTY0mzJWcpEWF/FirstLoadVeil.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * First Load Veil\n *\n * A cream curtain that covers the viewport on the first visit of a\n * session: the wordmark settles (~1s), then the curtain lifts with an\n * expo ease, revealing the page underneath. Repeat visits in the same\n * session skip it (sessionStorage \"neuma-veil\"), as do reduced-motion\n * users. Renders nothing on the Framer canvas. A hard failsafe unmounts\n * the curtain after 2.6s no matter what.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FirstLoadVeil(props){const{enabled=true,background=\"#F7F6F3\",logoWidth=150,image={src:\"https://framerusercontent.com/images/VpraOuyjs22Y9Q0NNyzrzDxU2f0.png\",alt:\"\"}}=props;const isStatic=useIsStaticRenderer();// null = undecided (SSR / first paint shows the curtain), true = play, false = gone\nconst[play,setPlay]=useState(null);const[phase,setPhase]=useState(\"init\");useEffect(()=>{if(!enabled){setPlay(false);return;}try{if(sessionStorage.getItem(\"neuma-veil\")){setPlay(false);return;}sessionStorage.setItem(\"neuma-veil\",\"1\");}catch(e){setPlay(false);return;}if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches){setPlay(false);return;}setPlay(true);},[enabled]);useEffect(()=>{if(play!==true)return;const timers=[];timers.push(window.setTimeout(()=>setPhase(\"on\"),30));timers.push(window.setTimeout(()=>setPhase(\"off\"),950));timers.push(window.setTimeout(()=>setPlay(false),1900));// hard failsafe: never leave the curtain up\ntimers.push(window.setTimeout(()=>setPlay(false),2600));return()=>timers.forEach(t=>window.clearTimeout(t));},[play]);if(isStatic||!enabled||play===false){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style}});}const lifting=phase===\"off\";return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                /* iOS Safari's floating bottom bar excludes its own zone from vh,\n                   but page content stays visible around the pill. lvh is always the\n                   tallest of the three viewports, so the curtain never falls short. */\n                .neuma-veil { height: 100vh; height: 100lvh; }\n                html[data-neuma-veil=\"off\"] .neuma-veil { display: none !important; }\n                @media (prefers-reduced-motion: reduce) { .neuma-veil { display: none !important; } }\n            `}),/*#__PURE__*/_jsx(\"div\",{className:\"neuma-veil\",\"aria-hidden\":\"true\",style:{position:\"fixed\",top:0,left:0,right:0,// height comes from the .neuma-veil rule above (100vh -> 100lvh)\nzIndex:99999,background:background,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",transform:lifting?\"translateY(-101%)\":\"none\",transition:\"transform 0.72s cubic-bezier(0.83, 0, 0.17, 1)\",pointerEvents:lifting?\"none\":\"auto\",willChange:\"transform\"},children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:\"\",style:{width:logoWidth,opacity:phase===\"on\"?1:0,transform:phase===\"init\"?\"translateY(8px)\":\"none\",transition:lifting?\"opacity 0.4s ease-out\":\"opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)\"}})})]});}addPropertyControls(FirstLoadVeil,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true},background:{type:ControlType.Color,title:\"Curtain\",defaultValue:\"#F7F6F3\"},logoWidth:{type:ControlType.Number,title:\"Logo Width\",defaultValue:150,min:60,max:400,step:2,unit:\"px\"},image:{type:ControlType.ResponsiveImage,title:\"Wordmark\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FirstLoadVeil\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth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