{"version":3,"file":"Custom.CRipFgxp.mjs","names":["Children"],"sources":["https:/framerusercontent.com/modules/anDSWkiYfwduTve6Nb6I/ad7Tjp4PTelU5g2o6s0E/Custom.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{Children,cloneElement,useEffect,useRef,useState}from\"react\";/* ---------- existing overrides (kept) ---------- */export function withStaggerChildren(Component){return props=>{const{children}=props;const clonedChildren=Children.map(children,(child,index)=>child?.props?/*#__PURE__*/cloneElement(child,{...child.props,initial:{opacity:0},whileInView:{opacity:1,transition:{duration:.8,easing:[.19,1,.22,1],delay:.1*index}},viewport:{once:false}}):null);return /*#__PURE__*/_jsx(Component,{...props,children:clonedChildren});};}export function withWordSpacing(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{wordSpacing:\"0.4em\"}});};}export function withAspectRatioSquare(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{aspectRatio:\"1 / 1\",width:\"100%\",height:\"auto\"}});};}export function withGrayscaleHoverZoom(Component){return props=>{const[hovered,setHovered]=useState(false);return /*#__PURE__*/_jsx(Component,{...props,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),style:{...props.style,filter:hovered?\"saturate(1)\":\"saturate(0)\",transform:hovered?\"scale(1.05)\":\"scale(1)\",transition:\"filter 0.4s ease-out, transform 0.4s ease-out\",willChange:\"filter, transform\"}});};}/* ---------- 1. Card hover: image zoom + overlay deepen + arrow shift ---------- */export function withCardImageZoom(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transition:\"transform 1200ms cubic-bezier(0.22, 1, 0.36, 1)\",willChange:\"transform\"},className:`${props.className||\"\"} im-card-image`});};}export function withCardOverlayDeepen(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transition:\"opacity 600ms ease-out\",willChange:\"opacity\"},className:`${props.className||\"\"} im-card-overlay`});};}export function withCardArrowShift(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transition:\"transform 400ms cubic-bezier(0.22, 1, 0.36, 1)\",willChange:\"transform\"},className:`${props.className||\"\"} im-card-arrow`});};}export function withCardHoverGroup(Component){return props=>{return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .im-card-root .im-card-image { transform: scale(1); }\n                    .im-card-root:hover .im-card-image { transform: scale(1.06); }\n                    .im-card-root .im-card-overlay { opacity: 0.1; }\n                    .im-card-root:hover .im-card-overlay { opacity: 0.25; }\n                    .im-card-root .im-card-arrow { transform: translate(0, 0); }\n                    .im-card-root:hover .im-card-arrow { transform: translate(4px, -4px); }\n                `}),/*#__PURE__*/_jsx(Component,{...props,className:`${props.className||\"\"} im-card-root`})]});};}/* ---------- 2. Title slide-reveal (clip-mask) ---------- */export function withTitleSlideReveal(Component){return props=>{return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .im-title-mask { overflow: hidden; }\n                    .im-title-mask > * { transition: transform 600ms cubic-bezier(0.65, 0, 0.35, 1); }\n                    .im-title-mask > *:nth-child(1) { transform: translateY(0); }\n                    .im-title-mask > *:nth-child(2) { transform: translateY(100%); }\n                    .im-card-root:hover .im-title-mask > *:nth-child(1) { transform: translateY(-100%); }\n                    .im-card-root:hover .im-title-mask > *:nth-child(2) { transform: translateY(0); }\n                    .im-subtitle-mask { overflow: hidden; }\n                    .im-subtitle-mask > * { transition: transform 600ms cubic-bezier(0.65, 0, 0.35, 1) 80ms; }\n                    .im-subtitle-mask > *:nth-child(1) { transform: translateY(0); }\n                    .im-subtitle-mask > *:nth-child(2) { transform: translateY(100%); }\n                    .im-card-root:hover .im-subtitle-mask > *:nth-child(1) { transform: translateY(-100%); }\n                    .im-card-root:hover .im-subtitle-mask > *:nth-child(2) { transform: translateY(0); }\n                `}),/*#__PURE__*/_jsx(Component,{...props,className:`${props.className||\"\"} im-title-mask`})]});};}export function withSubtitleSlideReveal(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,className:`${props.className||\"\"} im-subtitle-mask`});};}/* ---------- 3. Scroll-reveal: opacity + translateY + scale ---------- */export function withScrollFadeUp(Component){return props=>{const ref=useRef(null);const[shown,setShown]=useState(false);useEffect(()=>{const node=ref.current;if(!node)return;const obs=new IntersectionObserver(entries=>{entries.forEach(e=>{setShown(e.isIntersecting);});},{threshold:.2});obs.observe(node);return()=>obs.disconnect();},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\",opacity:shown?1:0,transform:shown?\"translateY(0) scale(1)\":\"translateY(60px) scale(0.98)\",transition:\"opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1)\",willChange:\"opacity, transform\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}/* ---------- 4. Mask reveal (clip-path) for gallery images ---------- */export function withMaskReveal(Component){return props=>{const ref=useRef(null);const[revealed,setRevealed]=useState(false);useEffect(()=>{const node=ref.current;if(!node)return;const obs=new IntersectionObserver(entries=>{entries.forEach(e=>{setRevealed(e.isIntersecting);});},{threshold:.15,rootMargin:\"0px 0px -10% 0px\"});obs.observe(node);return()=>obs.disconnect();},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\",clipPath:revealed?\"inset(0 0 0 0)\":\"inset(0 0 100% 0)\",transform:revealed?\"scale(1)\":\"scale(1.15)\",transition:\"clip-path 1100ms cubic-bezier(0.16, 1, 0.3, 1), transform 1400ms cubic-bezier(0.16, 1, 0.3, 1)\",willChange:\"clip-path, transform\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}/* ---------- 5. Caption fade-in ---------- */export function withCaptionFade(Component){return props=>{const ref=useRef(null);const[shown,setShown]=useState(false);useEffect(()=>{const node=ref.current;if(!node)return;const obs=new IntersectionObserver(entries=>{entries.forEach(e=>{setShown(e.isIntersecting);});},{threshold:.4});obs.observe(node);return()=>obs.disconnect();},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\",opacity:shown?1:0,transform:shown?\"translateY(0)\":\"translateY(20px)\",transition:\"opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms, transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms\",willChange:\"opacity, transform\"},children:/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,textTransform:\"uppercase\",letterSpacing:\"0.18em\",fontSize:11}})});};}/* ---------- 6. Custom \"VIEW\" cursor ---------- */export function withViewCursor(Component){return props=>{const[pos,setPos]=useState({x:-200,y:-200});const[active,setActive]=useState(false);useEffect(()=>{const move=e=>{setPos({x:e.clientX,y:e.clientY});const target=e.target;if(!target)return;const overImage=target.closest(\"img\")||target.closest('[data-framer-name*=\"Image\" i]')||target.closest('[data-framer-name*=\"Card\" i]')||target.closest('[data-framer-name*=\"Gallery\" i]')||target.closest(\".im-card-root\");setActive(!!overImage);};window.addEventListener(\"mousemove\",move);return()=>window.removeEventListener(\"mousemove\",move);},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{...props}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,transform:`translate(${pos.x}px, ${pos.y}px) translate(-50%, -50%) scale(${active?1:0})`,width:80,height:80,borderRadius:\"50%\",background:\"rgba(17, 17, 17, 0.92)\",color:\"#fff\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:11,letterSpacing:\"0.18em\",textTransform:\"uppercase\",fontFamily:\"'Neue Haas Grotesk Display Pro', sans-serif\",pointerEvents:\"none\",zIndex:9999,mixBlendMode:\"difference\",transition:\"transform 320ms cubic-bezier(0.22, 1, 0.36, 1)\",willChange:\"transform\"},children:\"View\"})]});};}/* ---------- 7. Page transition: fade-to-dark on link click ---------- */export function withPageFadeTransition(Component){return props=>{const[fading,setFading]=useState(false);useEffect(()=>{const onClick=e=>{const a=e.target?.closest(\"a\");if(!a)return;const href=a.getAttribute(\"href\");if(!href||href.startsWith(\"#\"))return;if(a.target===\"_blank\")return;const isInternal=href.startsWith(\"/\")||href.includes(window.location.host);if(!isInternal)return;e.preventDefault();setFading(true);setTimeout(()=>{window.location.href=href;},400);};document.addEventListener(\"click\",onClick);return()=>document.removeEventListener(\"click\",onClick);},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{...props}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",inset:0,background:\"#000\",opacity:fading?1:0,pointerEvents:fading?\"auto\":\"none\",transition:\"opacity 400ms cubic-bezier(0.65, 0, 0.35, 1)\",zIndex:9998}})]});};}/* ---------- 8. Nav link hover: dim the other links, highlight the hovered one ----------\n   (optional helper, not the logo-follow effect — kept for reuse)\n*/export function withNavHover(Component){return props=>{return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .im-nav-hover a {\n                        transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);\n                    }\n                    .im-nav-hover:hover a { opacity: 0.4; }\n                    .im-nav-hover:hover a:hover { opacity: 1; }\n                `}),/*#__PURE__*/_jsx(Component,{...props,className:`${props.className||\"\"} im-nav-hover`})]});};}/* ---------- 9. Logo follows the hovered nav item ----------\n\n   Attach this override to the WHOLE Nav component instance (the one that shows\n   the INFRAME logo + the Home/About/Projects/Contact/Our Story menu). It finds\n   the logo (the largest non-link text inside the nav) and the menu links, then\n   slides the logo vertically to line up with whichever link you hover — for ALL\n   items, including \"Our Story\". No Framer variants required.\n\n   If the original 4 items still have their own per-item hover trigger that also\n   moves the logo, remove those triggers so the two don't fight; this override\n   alone then drives all five.\n*/export function withLogoFollow(Component){return props=>{const ref=useRef(null);useEffect(()=>{const root=ref.current;if(!root)return;const findLogo=()=>{let best=null;let bestSize=0;root.querySelectorAll(\"*\").forEach(el=>{if(el.closest(\"a\"))return;if(el.children.length>0)return;if(!(el.textContent||\"\").trim())return;const size=parseFloat(getComputedStyle(el).fontSize||\"0\");if(size>bestSize){bestSize=size;best=el;}});return best;};const EASE=\"transform 420ms cubic-bezier(0.22, 1, 0.36, 1)\";let ty=0;let cleanups=[];const setup=()=>{const logo=findLogo();const links=Array.from(root.querySelectorAll(\"a\"));if(!logo||links.length===0)return false;logo.style.willChange=\"transform\";logo.style.transition=EASE;logo.style.transform=`translateY(${ty}px)`;const move=link=>{// read the logo's current rendered center (no animation)\nlogo.style.transition=\"none\";logo.style.transform=`translateY(${ty}px)`;const gr=logo.getBoundingClientRect();const lr=link.getBoundingClientRect();const delta=lr.top+lr.height/2-(gr.top+gr.height/2);ty=ty+delta;requestAnimationFrame(()=>{logo.style.transition=EASE;logo.style.transform=`translateY(${ty}px)`;});};const reset=e=>{if(root.contains(e.relatedTarget))return;ty=0;logo.style.transition=EASE;logo.style.transform=\"translateY(0px)\";};links.forEach(link=>{const h=()=>move(link);link.addEventListener(\"mouseenter\",h);cleanups.push(()=>link.removeEventListener(\"mouseenter\",h));});root.addEventListener(\"mouseleave\",reset);cleanups.push(()=>root.removeEventListener(\"mouseleave\",reset));return true;};// The Framer DOM may mount a frame after first paint — retry briefly.\nlet tries=0;const id=setInterval(()=>{tries++;if(setup()||tries>20)clearInterval(id);},100);return()=>{clearInterval(id);cleanups.forEach(fn=>fn());cleanups=[];};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withMaskReveal\":{\"type\":\"reactHoc\",\"name\":\"withMaskReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAspectRatioSquare\":{\"type\":\"reactHoc\",\"name\":\"withAspectRatioSquare\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollFadeUp\":{\"type\":\"reactHoc\",\"name\":\"withScrollFadeUp\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCardImageZoom\":{\"type\":\"reactHoc\",\"name\":\"withCardImageZoom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCardOverlayDeepen\":{\"type\":\"reactHoc\",\"name\":\"withCardOverlayDeepen\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPageFadeTransition\":{\"type\":\"reactHoc\",\"name\":\"withPageFadeTransition\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStaggerChildren\":{\"type\":\"reactHoc\",\"name\":\"withStaggerChildren\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLogoFollow\":{\"type\":\"reactHoc\",\"name\":\"withLogoFollow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCardArrowShift\":{\"type\":\"reactHoc\",\"name\":\"withCardArrowShift\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withViewCursor\":{\"type\":\"reactHoc\",\"name\":\"withViewCursor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withNavHover\":{\"type\":\"reactHoc\",\"name\":\"withNavHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTitleSlideReveal\":{\"type\":\"reactHoc\",\"name\":\"withTitleSlideReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGrayscaleHoverZoom\":{\"type\":\"reactHoc\",\"name\":\"withGrayscaleHoverZoom\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWordSpacing\":{\"type\":\"reactHoc\",\"name\":\"withWordSpacing\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSubtitleSlideReveal\":{\"type\":\"reactHoc\",\"name\":\"withSubtitleSlideReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCaptionFade\":{\"type\":\"reactHoc\",\"name\":\"withCaptionFade\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCardHoverGroup\":{\"type\":\"reactHoc\",\"name\":\"withCardHoverGroup\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Custom.map"],"mappings":"2HAAuM,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,YAAU,EAAY,EAAeA,EAAS,IAAI,GAAU,EAAM,IAAQ,GAAO,MAAmB,EAAa,EAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,EAAM,CAAC,CAAC,SAAS,CAAC,KAAK,GAAM,CAAC,CAAC,CAAC,KAAK,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,SAAS,EAAe,CAAC,EAAI,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,YAAY,QAAQ,CAAC,CAAC,sBAAxpB,IAAmE"}