{"version":3,"file":"shared-lib.C6rE--Ut.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ZMiXW2BjDwXRcU9FhwGx/RhG5KM7gB8xGSqX5HpcE/Embers.js","https:/framerusercontent.com/modules/jgHPtPcd05Gham2c5baU/2Y9qjvOfvEucv2RofTs0/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * EMBERS — floating ember / star particle field.\n *\n * Port of the static site's `[data-embers-zone]` behaviour, used on 18 of 19\n * pages. Drop this behind hero / header content as an absolutely-positioned\n * fill layer (it renders nothing but particles and never takes pointer events).\n *\n * Preset values from the shipped build:\n *   Homepage hero    count 36  #f6c86e / #e88a3c  embers\n *   Homepage calm    count 16  #f2c26a / #e08238  embers\n *   Section headers  count 18-22  #f6c86e / #e88a3c  embers\n *   Citadel / star   cool blues                    stars\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Embers(props){const{colorA,colorB,count,mode,style}=props;const hostRef=useRef(null);useEffect(()=>{ensureKeyframes();const host=hostRef.current;if(!host)return;host.innerHTML=\"\";const reduce=typeof window!==\"undefined\"&&typeof window.matchMedia===\"function\"&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;if(reduce)return;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const total=isCanvas?Math.min(count,12):count;const stars=mode===\"stars\";for(let i=0;i<total;i++){const dot=document.createElement(\"div\");const size=Number((stars?.9+Math.random()*1.6:1.2+Math.random()*2.2).toFixed(2));const color=Math.random()>.45?colorA:colorB;const left=(Math.random()*100).toFixed(2);const drift=((Math.random()*2-1)*(stars?60:110)).toFixed(0);const duration=((stars?16:11)+Math.random()*14).toFixed(1);const delay=(-Math.random()*26).toFixed(1);dot.style.cssText=[\"position:absolute\",`left:${left}%`,\"bottom:-24px\",`width:${size}px`,`height:${size}px`,\"border-radius:50%\",`background:${color}`,`box-shadow:0 0 ${(4+size*3).toFixed(0)}px ${(1+size).toFixed(0)}px ${translucent(color)}`,\"opacity:0\",`--dx:${drift}px`,isCanvas?\"opacity:.7\":`animation:emfEmberRise ${duration}s linear ${delay}s infinite`].join(\";\");host.appendChild(dot);}return()=>{host.innerHTML=\"\";};},[colorA,colorB,count,mode]);return /*#__PURE__*/_jsx(\"div\",{ref:hostRef,style:{...style,position:\"relative\",overflow:\"hidden\",pointerEvents:\"none\"}});}Embers.defaultProps={colorA:\"#f6c86e\",colorB:\"#e88a3c\",count:22,mode:\"embers\"};addPropertyControls(Embers,{colorA:{type:ControlType.Color,title:\"Colour A\",defaultValue:\"#f6c86e\"},colorB:{type:ControlType.Color,title:\"Colour B\",defaultValue:\"#e88a3c\"},count:{type:ControlType.Number,title:\"Count\",min:0,max:60,step:1,displayStepper:true,defaultValue:22},mode:{type:ControlType.Enum,title:\"Mode\",options:[\"embers\",\"stars\"],optionTitles:[\"Embers - warm, faster\",\"Stars - small, slow drift\"],defaultValue:\"embers\"}});const KEYFRAMES_ID=\"emf-ember-keyframes\";function ensureKeyframes(){if(typeof document===\"undefined\")return;if(document.getElementById(KEYFRAMES_ID))return;const el=document.createElement(\"style\");el.id=KEYFRAMES_ID;el.textContent=`\n@keyframes emfEmberRise {\n  0%   { transform: translate3d(0,0,0) scale(.5); opacity: 0; }\n  12%  { opacity: .95; }\n  70%  { opacity: .6; }\n  100% { transform: translate3d(var(--dx,40px),-82vh,0) scale(1.15); opacity: 0; }\n}`;document.head.appendChild(el);}function translucent(color){if(color.startsWith(\"#\")&&color.length===7)return`${color}55`;if(color.startsWith(\"rgb(\"))return color.replace(\"rgb(\",\"rgba(\").replace(\")\",\",.33)\");return color;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Embers\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicHeight\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Embers.map","// Generated by Framer (65a4904)\nexport default function metadata(params,activeLocale){return{description:\"Made with Framer\",robots:\"max-image-preview:large\",title:\"My Framer Site\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"sMAiBG,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,QAAM,OAAK,SAAO,EAAY,EAAQA,EAAO,IAAI,EAAktC,OAAhtC,MAAc,CAAC,EAAgB,EAAE,IAAM,EAAK,EAAQ,QAAyL,GAA9K,CAAC,IAAY,EAAK,UAAU,GAAuB,IAAS,QAAa,OAAO,EAAO,YAAa,YAAY,EAAO,WAAW,kCAAkC,CAAC,CAAC,SAAkB,OAAO,IAAM,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAa,EAAM,EAAS,KAAK,IAAI,EAAM,EAAE,EAAE,EAAY,EAAM,IAAO,QAAQ,IAAI,IAAI,EAAE,EAAE,EAAE,EAAM,IAAI,CAAC,IAAM,EAAI,SAAS,cAAc,KAAK,EAAQ,EAAK,QAAQ,EAAM,GAAG,KAAK,OAAO,EAAE,IAAI,IAAI,KAAK,OAAO,EAAE,IAAA,CAAK,QAAQ,CAAC,CAAC,EAAQ,EAAM,KAAK,OAAO,EAAE,IAAI,EAAO,EAAa,GAAM,KAAK,OAAO,EAAE,IAAA,CAAK,QAAQ,CAAC,EAAQ,IAAQ,KAAK,OAAO,EAAE,EAAE,IAAI,EAAM,GAAG,KAAA,CAAM,QAAQ,CAAC,EAAQ,IAAW,EAAM,GAAG,IAAI,KAAK,OAAO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