{"version":3,"file":"HomeMotion.D_eGtoEa.mjs","names":["forwardRef","useRef","useCallback","_jsxs","_Fragment","_jsx","useEffect","__esmMin","ne","l","p","c","J","init_jsx_runtime","ce","init_npm_react_18_3_1","de","withClass","className","css","Component","props","ref","node","attach","el","withIndustryCard","Styled","INDUSTRY_CSS","img","withCardLift","LIFT_CSS","init_HomeMotion"],"sources":["https:/framerusercontent.com/modules/XQhgCFF0CSmGK1egVQNy/gtDLFJma7JA0Q60GJfKr/HomeMotion.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useCallback,useEffect,useRef}from\"react\";// Homepage motion overrides. CSS only: the overrides add a class to the layer\n// and render one shared <style>, so nothing re-renders on hover.\n// Industries grid (desktop + laptop). The cards are \"General/Industry Card\"\n// instances: their Hover variant shows the arrow. This CSS adds what a variant\n// can't do: the hovered or focused item grows to twice the width of the others\n// (as in the Figma \"Industries Block\" hover variants) and the other labels fade.\n// Faded labels stay on one line, so a narrow card never makes the row taller.\n// Hooks are layer names: list \"Industries Grid\", item \"Industry Item\", label \"Title\".\n// Framer can wrap items in .ssr-variant divs, so those become display: contents.\nconst INDUSTRY_CSS=`\n@media (min-width: 1024px) {\n  [data-framer-name=\"Industries Grid\"] { display: flex !important; gap: 24px; container-type: inline-size; }\n  [data-framer-name=\"Industries Grid\"] .ssr-variant:has([data-framer-name=\"Industry Item\"]) { display: contents; }\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Industry Item\"] { flex: 1 1 0 !important; min-width: 0; width: auto !important; transition: flex-grow 500ms cubic-bezier(0.32, 0.72, 0, 1); }\n  /* The gap belongs to the cards on either side, so moving between cards never collapses the row. */\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Industry Item\"]::before { content: \"\"; position: absolute; inset: 0 -12px; }\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Industry Item\"]:is(:hover, :focus-visible) { flex-grow: 2 !important; }\n  /* The photo keeps the size it has in a wide card and the card reveals more of it, instead of re-cropping and zooming every frame. */\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Image\"] img { width: calc((100cqw - 96px) / 3) !important; max-width: none !important; margin-left: 50%; transform: translateX(-50%); }\n  /* Room for two label lines in every state (Figma's label area is 55px), so labels that wrap while a\n     card is narrow and unwrap when it is wide never change the row height or move the content below. */\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Industry Item\"] [data-framer-name=\"Text\"] { min-height: 47px; }\n  /* Labels: fade out fast, fade back in once the cards have mostly settled. */\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Industry Item\"] [data-framer-name=\"Title\"] { transition: opacity 200ms ease 200ms; }\n  [data-framer-name=\"Industries Grid\"]:has([data-framer-name=\"Industry Item\"]:is(:hover, :focus-visible)) [data-framer-name=\"Industry Item\"]:not(:hover, :focus-visible) [data-framer-name=\"Title\"] { opacity: 0 !important; white-space: nowrap; transition: opacity 120ms ease-out 0ms; }\n  /* The arrow follows the same :hover as the widths. Framer's hover variant listens to mouseenter, which\n     doesn't fire when a card slides under a still pointer, so it could light up the wrong card. */\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Arrow\"] { opacity: 0 !important; bottom: -24px !important; transform: translateY(4px); transition: opacity 200ms ease-out, transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Industry Item\"]:is(:hover, :focus-visible) [data-framer-name=\"Arrow\"] { opacity: 1 !important; transform: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Industry Item\"] { transition: none !important; }\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Arrow\"] { transform: none; transition: opacity 150ms ease !important; }\n  [data-framer-name=\"Industries Grid\"] [data-framer-name=\"Title\"] { transition: opacity 150ms ease !important; }\n}\n`;// Linked cards: a 6px hover lift (0.2s, strong ease-out), mouse only,\n// plus a focus ring that passes 3:1 on white. Uses `translate` so it does not\n// fight the inline transform that Framer appear effects leave on the layer.\nconst LIFT_CSS=`\n.dyx-lift:focus-visible { outline: 2px solid rgb(0, 106, 166); outline-offset: 2px; }\n@media (hover: hover) and (pointer: fine) {\n  .dyx-lift { transition: translate 200ms cubic-bezier(0.23, 1, 0.32, 1); }\n  .dyx-lift:hover { translate: 0 -6px; }\n}\n@media (prefers-reduced-motion: reduce) { .dyx-lift { transition: none; } .dyx-lift:hover { translate: none; } }\n`;function withClass(className,css){return Component=>/*#__PURE__*/forwardRef(function Styled(props,ref){const node=useRef(null);const attach=useCallback(el=>{node.current=el;el?.classList.add(className);if(typeof ref===\"function\")ref(el);else if(ref&&typeof ref===\"object\")ref.current=el;},[ref]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),/*#__PURE__*/_jsx(Component,{...props,className:[props.className,className].filter(Boolean).join(\" \"),ref:attach})]});});}// Put on the Media layer of the Industry Card component. Injects the CSS above and\n// makes the photo decorative: the card link already reads the industry name, and\n// the CMS alt repeats it (Lighthouse \"image-redundant-alt\").\nexport function withIndustryCard(Component){const Styled=withClass(\"dyx-ind-card\",INDUSTRY_CSS)(Component);return /*#__PURE__*/forwardRef(function IndustryCard(props,ref){const node=useRef(null);const attach=useCallback(el=>{node.current=el;if(typeof ref===\"function\")ref(el);else if(ref&&typeof ref===\"object\")ref.current=el;},[ref]);useEffect(()=>{node.current?.querySelectorAll(\"img\").forEach(img=>img.setAttribute(\"alt\",\"\"));});return /*#__PURE__*/_jsx(Styled,{...props,ref:attach});});}export function withCardLift(Component){return withClass(\"dyx-lift\",LIFT_CSS)(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"withIndustryCard\":{\"type\":\"reactHoc\",\"name\":\"withIndustryCard\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCardLift\":{\"type\":\"reactHoc\",\"name\":\"withCardLift\",\"annotations\":{\"framerContractV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