{"version":3,"file":"MeshGradientBackground.CZJElkhC.mjs","names":["React.useId"],"sources":["https:/framerusercontent.com/modules/ZNyiymWMu8OMJigz3DG9/9MVmEDhU7KVlSgmzyk1r/MeshGradientBackground.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * MeshGradientBackground — a fixed, full-viewport layer of soft blurred\n * color blobs that drift slowly (ambient motion) behind all page\n * content. Pair with transparent section backgrounds + a light\n * backdrop-blur on readable content for the glassmorphism effect.\n *\n * Uses zIndex: 0 (not a negative value) — a negative z-index can get\n * stacked BEHIND the page's own background paint if the page root\n * creates a stacking context, making the whole thing invisible. Being\n * first in the DOM is what keeps it behind subsequent content;\n * z-index doesn't need to be negative for that.\n *\n * Add ONE instance per page, placed first (behind everything else).\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function MeshGradientBackground(props){const{baseColor=\"#0A0A0A\",color1=\"#2C3E5C\",color2=\"#EFDFC3\",color3=\"#8C97A8\",color4=\"#1B2740\",blobSize=70,blurAmount=90,animationDuration=40,opacity=.9,motionEnabled=true}=props;const uid=React.useId().replace(/[^a-zA-Z0-9]/g,\"\");const cls=`meshBg_${uid}`;return /*#__PURE__*/_jsxs(\"div\",{className:cls,style:{position:\"fixed\",inset:0,width:\"100vw\",height:\"100vh\",zIndex:0,overflow:\"hidden\",background:baseColor,pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .${cls} .blob {\n                    position: absolute;\n                    width: ${blobSize}vmax;\n                    height: ${blobSize}vmax;\n                    border-radius: 50%;\n                    filter: blur(${blurAmount}px);\n                    opacity: ${opacity};\n                    will-change: transform;\n                    animation-play-state: ${motionEnabled?\"running\":\"paused\"};\n                }\n                .${cls} .b1 {\n                    background: ${color1};\n                    top: -20%;\n                    left: -10%;\n                    animation: ${cls}_move1 ${animationDuration}s ease-in-out infinite;\n                }\n                .${cls} .b2 {\n                    background: ${color2};\n                    bottom: -25%;\n                    right: -15%;\n                    animation: ${cls}_move2 ${animationDuration*1.25}s ease-in-out infinite;\n                }\n                .${cls} .b3 {\n                    background: ${color3};\n                    top: 30%;\n                    right: -10%;\n                    animation: ${cls}_move3 ${animationDuration*.85}s ease-in-out infinite;\n                }\n                .${cls} .b4 {\n                    background: ${color4};\n                    bottom: 10%;\n                    left: -15%;\n                    animation: ${cls}_move4 ${animationDuration*1.1}s ease-in-out infinite;\n                }\n                @keyframes ${cls}_move1 {\n                    0%, 100% { transform: translate(0, 0) scale(1); }\n                    33% { transform: translate(8vw, 6vh) scale(1.08); }\n                    66% { transform: translate(-4vw, 10vh) scale(0.96); }\n                }\n                @keyframes ${cls}_move2 {\n                    0%, 100% { transform: translate(0, 0) scale(1); }\n                    33% { transform: translate(-7vw, -8vh) scale(1.06); }\n                    66% { transform: translate(5vw, -4vh) scale(0.94); }\n                }\n                @keyframes ${cls}_move3 {\n                    0%, 100% { transform: translate(0, 0) scale(1); }\n                    50% { transform: translate(-9vw, 7vh) scale(1.1); }\n                }\n                @keyframes ${cls}_move4 {\n                    0%, 100% { transform: translate(0, 0) scale(1); }\n                    50% { transform: translate(6vw, -9vh) scale(0.92); }\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{className:\"blob b1\"}),/*#__PURE__*/_jsx(\"div\",{className:\"blob b2\"}),/*#__PURE__*/_jsx(\"div\",{className:\"blob b3\"}),/*#__PURE__*/_jsx(\"div\",{className:\"blob b4\"})]});}MeshGradientBackground.displayName=\"Mesh Gradient Background\";addPropertyControls(MeshGradientBackground,{baseColor:{type:ControlType.Color,defaultValue:\"#0A0A0A\",title:\"Base color\"},color1:{type:ControlType.Color,defaultValue:\"#2C3E5C\",title:\"Blob 1 (navy)\"},color2:{type:ControlType.Color,defaultValue:\"#EFDFC3\",title:\"Blob 2 (cream)\"},color3:{type:ControlType.Color,defaultValue:\"#8C97A8\",title:\"Blob 3 (grey-blue)\"},color4:{type:ControlType.Color,defaultValue:\"#1B2740\",title:\"Blob 4 (deep navy)\"},blobSize:{type:ControlType.Number,defaultValue:70,min:30,max:150,title:\"Blob size (vmax)\"},blurAmount:{type:ControlType.Number,defaultValue:90,min:20,max:200,title:\"Blur amount\"},opacity:{type:ControlType.Number,defaultValue:.9,min:.1,max:1,step:.05,title:\"Blob opacity\"},motionEnabled:{type:ControlType.Boolean,defaultValue:true,title:\"Ambient motion\"},animationDuration:{type:ControlType.Number,defaultValue:40,min:10,max:120,title:\"Motion speed (s)\",description:\"Higher = slower, more subtle drift.\",hidden:p=>!p.motionEnabled}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MeshGradientBackground\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MeshGradientBackground.map"],"mappings":"iLAgBG,SAAwB,EAAuB,EAAM,CAAC,GAAK,CAAC,YAAU,UAAU,SAAO,UAAU,SAAO,UAAU,SAAO,UAAU,SAAO,UAAU,WAAS,GAAG,aAAW,GAAG,oBAAkB,GAAG,UAAQ,GAAG,gBAAc,IAAM,EAAgE,EAAI,UAApDA,EAAY,CAAC,CAAC,QAAQ,gBAAgB,EAA0B,IAAI,OAAoB,EAAM,MAAM,CAAC,UAAU,EAAI,MAAM,CAAC,SAAS,QAAQ,MAAM,EAAE,MAAM,QAAQ,OAAO,QAAQ,OAAO,EAAE,SAAS,SAAS,WAAW,EAAU,cAAc,MAAM,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;mBACtgB,EAAI;;6BAEM,EAAS;8BACR,EAAS;;mCAEJ,EAAW;+BACf,EAAQ;;4CAEK,EAAc,UAAU,SAAS;;mBAE1D,EAAI;kCACW,EAAO;;;iCAGR,EAAI,SAAS,EAAkB;;mBAE7C,EAAI;kCACW,EAAO;;;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