{"version":3,"file":"Overlay.D4XAeIgC.mjs","names":["useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/X0qdjbBTTwNIWAuCD3Ye/pMWbG7iVKJ77ALCWK7Zx/Overlay.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function withWindowsOverlay(Component){return props=>{const wrapperRef=useRef(null);useEffect(()=>{const video=wrapperRef.current?.querySelector(\"video\");if(video){video.playbackRate=.5;}},[]);return /*#__PURE__*/_jsx(\"div\",{ref:wrapperRef,style:{mixBlendMode:\"overlay\",width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}// --- Shop pinstripe field -------------------------------------------------\n//\n// The field was a single 1440x702 SVG holding an 8px <pattern>, applied as an\n// image fill. Because an image fill scales to its box, the pitch was not fixed:\n// at the desktop box (1506 x 723) it rendered about 8.3px, but the phone box is\n// 408 x 422, so the SVG scaled to ~0.60 and the stripes compressed to roughly\n// 4.8px — finer than designed, and it reads as shimmer on a high-DPI screen.\n//\n// Painting the stripes as a repeating gradient in absolute pixels fixes the\n// pitch at 8px at every breakpoint, and makes the colours and the reduced\n// contrast variant adjustable here rather than locked inside an uploaded asset.\n//\n// Pattern sensitivity, measured rather than estimated. Spatial frequency works\n// out at roughly 4.8 cycles/degree on desktop at 600mm and 4.1 on a phone at\n// 300mm; peak sensitivity for pattern-induced visual stress sits near 3 c/deg\n// with a band of about 1.5-8, so this is inside it at any pitch we would want\n// aesthetically. The lever that actually helps is contrast. The original pair\n// measured Michelson 0.393, just under the 0.4 figure used in the Harding and\n// Epilepsy Foundation pattern guidance. Darkening the ground one step to\n// #97A373 brings it to 0.307 — clearly outside the guideline — while leaving\n// the brand green #1D8745 exactly as it is. The pattern is also static, which\n// is the single biggest mitigation; drift and flicker are the serious triggers.\nconst STRIPE_COLOR=\"#1D8745\";const GROUND_COLOR=\"#97A373\"// was #A5B280 (Michelson 0.393 -> 0.307)\n;const EDGE_COLOR=\"#DBE4C3\";const PITCH_PX=8;const STRIPE_PX=2;const EDGE_PX=14;const FIELD_BACKGROUND=\"repeating-linear-gradient(to bottom,\"+STRIPE_COLOR+\" 0px,\"+STRIPE_COLOR+\" \"+STRIPE_PX+\"px,\"+GROUND_COLOR+\" \"+STRIPE_PX+\"px,\"+GROUND_COLOR+\" \"+PITCH_PX+\"px)\";// Viewers who have asked their OS for reduced contrast get the ground with no\n// stripes at all. There is no media query for pattern sensitivity specifically,\n// and this is the closest signal the platform offers.\nconst REDUCED_CONTRAST_CSS=\"@media (prefers-contrast: less){\"+\"[data-ecs-pinstripe]{background-image:none !important;\"+\"background-color:\"+GROUND_COLOR+\" !important}}\";export function withPinstripeField(Component){return props=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:REDUCED_CONTRAST_CSS}),/*#__PURE__*/_jsx(Component,{...props,\"data-ecs-pinstripe\":\"\",style:{...props.style,backgroundImage:FIELD_BACKGROUND,backgroundColor:GROUND_COLOR,backgroundRepeat:\"repeat\",boxShadow:\"inset 0 0 0 \"+EDGE_PX+\"px \"+EDGE_COLOR}})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"withPinstripeField\":{\"type\":\"reactHoc\",\"name\":\"withPinstripeField\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withWindowsOverlay\":{\"type\":\"reactHoc\",\"name\":\"withWindowsOverlay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Overlay.map"],"mappings":"uIAAmH,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAWA,EAAO,IAAI,EAA+G,OAA7G,MAAc,CAAC,IAAM,EAAM,EAAW,SAAS,cAAc,OAAO,EAAK,IAAO,EAAM,aAAa,GAAI,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,IAAI,EAAW,MAAM,CAAC,aAAa,UAAU,MAAM,OAAO,OAAO,MAAM,EAAE,SAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,CA0BjT,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAoB,EAAMC,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,CAAoB,CAAC,EAAe,EAAK,EAAU,CAAC,GAAG,EAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,EAAM,MAAM,gBAAgB,EAAiB,gBAAgB,EAAa,iBAAiB,SAAS,UAAU,0BAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,uBA1B7d,IAAoC,EAsB/E,EAAa,UACsC,EAAiB,uFAGjG,EAAqB"}