{"version":3,"file":"GlowAnimations.CDHMdCwd.mjs","names":["__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","c","init_jsx_runtime","ce","init_framer_motion_DhsWWWsN","ensureInkHoverStyles","old","INK_HOVER_CSS","style","withInkHover","Component","props","SKIP","init_GlowAnimations"],"sources":["https:/framerusercontent.com/modules/xdhHvmI6931S9fM58Zpr/U07IxU7MOXJg2Y1C5tU0/GlowAnimations.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{useScroll,useTransform,motion}from\"framer-motion\";// GLOW WORKS ANIMATION OVERRIDES\n// Apply these from the properties panel: select a layer, scroll to\n// Code Overrides, choose file GlowAnimations and pick the function.\nconst EASE=[.22,1,.36,1];// INK HOVER for cards: on hover the card fills ink, all text flips\n// to cream and the card lifts slightly. Attach to each concern or\n// treatment card (multi select the cards and apply once).\n// Nov 2026: \"The white is difficult to read.\" Light link cards are\n// already given their own hover by the page helper (GlowPageHover):\n// the card deepens to Paper Deep and the title turns gold. The ink\n// fill lost to that rule, leaving cream text on a light card. Cards\n// the helper marks as light link cards now keep only the lift, so\n// their text stays in its normal ink and muted colours.\nconst SKIP=`:not([data-gw-hover=\"light\"])`;const INK_HOVER_CSS=`\n.gw-ink-hover { display: contents; }\n.gw-ink-hover > * {\n    transition: background-color .45s cubic-bezier(.22,1,.36,1),\n                transform .45s cubic-bezier(.22,1,.36,1) !important;\n}\n.gw-ink-hover > *:hover {\n    transform: translateY(-3px);\n    cursor: pointer;\n}\n.gw-ink-hover > *${SKIP}:hover {\n    background-color: #171512 !important;\n}\n.gw-ink-hover > * p, .gw-ink-hover > * h1, .gw-ink-hover > * h2,\n.gw-ink-hover > * h3, .gw-ink-hover > * h4, .gw-ink-hover > * h5,\n.gw-ink-hover > * h6, .gw-ink-hover > * span, .gw-ink-hover > * div {\n    transition: color .45s cubic-bezier(.22,1,.36,1);\n}\n.gw-ink-hover > *${SKIP}:hover p, .gw-ink-hover > *${SKIP}:hover h1,\n.gw-ink-hover > *${SKIP}:hover h2, .gw-ink-hover > *${SKIP}:hover h3,\n.gw-ink-hover > *${SKIP}:hover h4, .gw-ink-hover > *${SKIP}:hover h5,\n.gw-ink-hover > *${SKIP}:hover h6, .gw-ink-hover > *${SKIP}:hover span,\n.gw-ink-hover > *${SKIP}:hover div {\n    color: #fbf8f2 !important;\n}\n`;function ensureInkHoverStyles(){if(typeof document===\"undefined\")return;// Replace any earlier copy so a changed rule always takes effect.\nconst old=document.getElementById(\"gw-ink-hover-styles\");if(old){if(old.textContent===INK_HOVER_CSS)return;old.remove();}const style=document.createElement(\"style\");style.id=\"gw-ink-hover-styles\";style.textContent=INK_HOVER_CSS;document.head.appendChild(style);}export function withInkHover(Component){return props=>{React.useEffect(()=>{ensureInkHoverStyles();},[]);return /*#__PURE__*/_jsx(\"div\",{className:\"gw-ink-hover\",children:/*#__PURE__*/_jsx(Component,{...props})});};}// Scroll reveal: fade up 34px, once, matching the original .reveal class\nexport function withReveal(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,initial:{opacity:0,y:34},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.14},transition:{duration:1,ease:EASE}});}// Same reveal with the .delay-1 stagger\nexport function withRevealDelay1(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,initial:{opacity:0,y:34},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.14},transition:{duration:1,ease:EASE,delay:.12}});}// Same reveal with the .delay-2 stagger\nexport function withRevealDelay2(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,initial:{opacity:0,y:34},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.14},transition:{duration:1,ease:EASE,delay:.24}});}// Marquee: apply to the Marquee Track inside the gold ribbon.\n// The track content is already duplicated, so a minus 50 percent\n// loop reproduces the original 26s CSS animation exactly.\nexport function withMarquee(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,animate:{x:\"-50%\"},transition:{duration:26,ease:\"linear\",repeat:Infinity}});}// Nav glass: apply to the fixed nav. Transparent over the hero,\n// then a dark glass bar with blur once the page scrolls, so the\n// cream nav text stays readable on every section.\nexport function withNavGlass(Component){return props=>{const[scrolled,setScrolled]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const onScroll=()=>setScrolled(window.scrollY>8);onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,backgroundColor:scrolled?\"rgba(23,21,18,0.86)\":\"rgba(0,0,0,0)\",backdropFilter:scrolled?\"blur(18px)\":\"none\",WebkitBackdropFilter:scrolled?\"blur(18px)\":\"none\",borderBottom:scrolled?\"1px solid rgba(255,255,255,0.14)\":\"1px solid transparent\",transition:\"background-color .5s, border-color .5s, backdrop-filter .5s\"}});};}// Exact original behaviour needs two nav layers stacked: a cream\n// text nav and a paper background ink text nav. Apply withHideOnScroll\n// to the dark hero nav and withShowOnScroll to the paper nav.\nexport function withHideOnScroll(Component){return props=>{const[scrolled,setScrolled]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const onScroll=()=>setScrolled(window.scrollY>8);onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[]);return /*#__PURE__*/_jsx(Component,{...props,animate:{opacity:scrolled?0:1},transition:{duration:.5,ease:EASE},style:{...props.style,pointerEvents:scrolled?\"none\":\"auto\"}});};}export function withShowOnScroll(Component){return props=>{const[scrolled,setScrolled]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const onScroll=()=>setScrolled(window.scrollY>8);onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[]);return /*#__PURE__*/_jsx(Component,{...props,animate:{opacity:scrolled?1:0},transition:{duration:.5,ease:EASE},style:{...props.style,pointerEvents:scrolled?\"auto\":\"none\"}});};}// Hover lift for path cards and buttons\nexport function withHoverLift(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,whileHover:{y:-3},transition:{duration:.35,ease:EASE}});}const HOVER_TEXT_TRANSITION=\"color 0.35s cubic-bezier(0.22, 1, 0.36, 1)\";function getHoverTarget(event){if(!event||!event.currentTarget)return null;if(!(event.currentTarget instanceof HTMLElement))return null;return event.currentTarget;}function applyDescendantTextColor(root,color){const touched=[];const textNodes=root.querySelectorAll(\"p, span, a, strong, em, small, label, li, h1, h2, h3, h4, h5, h6, div, button\");const elements=[root,...Array.from(textNodes)];elements.forEach(el=>{if(el.dataset.gwHoverOrigColor===undefined){el.dataset.gwHoverOrigColor=el.style.color||\"\";el.dataset.gwHoverOrigTransition=el.style.transition||\"\";const previousTransition=el.style.transition||\"\";el.style.transition=previousTransition?`${previousTransition}, ${HOVER_TEXT_TRANSITION}`:HOVER_TEXT_TRANSITION;touched.push(el);}el.style.color=color;});return touched;}function restoreDescendantTextColor(touched){touched.forEach(el=>{const originalColor=el.dataset.gwHoverOrigColor;const originalTransition=el.dataset.gwHoverOrigTransition;if(originalColor!==undefined){el.style.color=originalColor;delete el.dataset.gwHoverOrigColor;}if(originalTransition!==undefined){el.style.transition=originalTransition;delete el.dataset.gwHoverOrigTransition;}});}// Button hover: lift plus ink fill, for the outline buttons on light sections\nexport function withButtonHoverInk(Component){return props=>{const touchedRef=React.useRef([]);React.useEffect(()=>{return()=>restoreDescendantTextColor(touchedRef.current);},[]);const handleHoverStart=React.useCallback(event=>{const target=getHoverTarget(event);if(!target)return;restoreDescendantTextColor(touchedRef.current);touchedRef.current=applyDescendantTextColor(target,\"rgb(251,248,242)\");},[]);const handleHoverEnd=React.useCallback(event=>{restoreDescendantTextColor(touchedRef.current);touchedRef.current=[];if(props.onHoverEnd)props.onHoverEnd(event);},[props]);const chainedHoverStart=React.useCallback(event=>{handleHoverStart(event);if(props.onHoverStart)props.onHoverStart(event);},[handleHoverStart,props]);return /*#__PURE__*/_jsx(Component,{...props,onHoverStart:chainedHoverStart,onHoverEnd:handleHoverEnd,whileHover:{y:-2,backgroundColor:\"rgb(23,21,18)\"},transition:{duration:.35,ease:EASE}});};}// Button hover for buttons on dark sections: fills cream\nexport function withButtonHoverCream(Component){return props=>{const touchedRef=React.useRef([]);React.useEffect(()=>{return()=>restoreDescendantTextColor(touchedRef.current);},[]);const handleHoverStart=React.useCallback(event=>{const target=getHoverTarget(event);if(!target)return;restoreDescendantTextColor(touchedRef.current);touchedRef.current=applyDescendantTextColor(target,\"rgb(23,21,18)\");},[]);const handleHoverEnd=React.useCallback(event=>{restoreDescendantTextColor(touchedRef.current);touchedRef.current=[];if(props.onHoverEnd)props.onHoverEnd(event);},[props]);const chainedHoverStart=React.useCallback(event=>{handleHoverStart(event);if(props.onHoverStart)props.onHoverStart(event);},[handleHoverStart,props]);return /*#__PURE__*/_jsx(Component,{...props,onHoverStart:chainedHoverStart,onHoverEnd:handleHoverEnd,whileHover:{y:-2,backgroundColor:\"rgb(251,248,242)\"},transition:{duration:.35,ease:EASE}});};}// Slow parallax drift for the hero media layer\nexport function withHeroParallax(Component){return props=>{const ref=React.useRef(null);const{scrollY}=useScroll();const y=useTransform(scrollY,[0,900],[0,120]);return /*#__PURE__*/_jsx(motion.div,{ref:ref,style:{width:\"100%\",height:\"100%\",y},children:/*#__PURE__*/_jsx(Component,{...props})});};}// Scroll cue pulse, apply to the small line frame in the hero if you add one\nexport function withPulse(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,animate:{scaleX:[1,.45,1]},transition:{duration:2,repeat:Infinity,ease:\"easeInOut\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"withButtonHoverInk\":{\"type\":\"reactHoc\",\"name\":\"withButtonHoverInk\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withShowOnScroll\":{\"type\":\"reactHoc\",\"name\":\"withShowOnScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHoverLift\":{\"type\":\"reactHoc\",\"name\":\"withHoverLift\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRevealDelay1\":{\"type\":\"reactHoc\",\"name\":\"withRevealDelay1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRevealDelay2\":{\"type\":\"reactHoc\",\"name\":\"withRevealDelay2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHideOnScroll\":{\"type\":\"reactHoc\",\"name\":\"withHideOnScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPulse\":{\"type\":\"reactHoc\",\"name\":\"withPulse\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInkHover\":{\"type\":\"reactHoc\",\"name\":\"withInkHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMarquee\":{\"type\":\"reactHoc\",\"name\":\"withMarquee\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeroParallax\":{\"type\":\"reactHoc\",\"name\":\"withHeroParallax\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNavGlass\":{\"type\":\"reactHoc\",\"name\":\"withNavGlass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withButtonHoverCream\":{\"type\":\"reactHoc\",\"name\":\"withButtonHoverCream\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withReveal\":{\"type\":\"reactHoc\",\"name\":\"withReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlowAnimations.map"],"mappings":"A,mKAqCE,SAASO,GAAsB,CAAC,GAAG,OAAO,SAAW,IAAY,OACnE,IAAMC,EAAI,SAAS,eAAe,qBAAqB,EAAE,GAAGA,EAAI,CAAC,GAAGA,EAAI,cAAcC,EAAc,OAAOD,EAAI,OAAO,CAAE,CAAC,IAAME,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAG,sBAAsB,EAAM,YAAYD,EAAc,SAAS,KAAK,YAAYC,CAAK,CAAE,CAAC,SAAgBC,EAAa,EAAU,CAAC,MAAO,KAAQN,MAAoB,CAACE,EAAqB,CAAE,EAAE,CAAC,CAAC,EAAsB,gBAAK,MAAM,CAAC,UAAU,eAAe,SAAsB,gBAAKK,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,EAAI,C,sDA1Bvd,EAAK,gCAAsC,EAAc;;;;;;;;;;mBAU5CC,EAAK;;;;;;;;mBAQLA,EAAK,6BAA6BA,EAAK;mBACvCA,EAAK,8BAA8BA,EAAK;mBACxCA,EAAK,8BAA8BA,EAAK;mBACxCA,EAAK,8BAA8BA,EAAK;mBACxCA,EAAK"}