{"version":3,"file":"DepthAtmosphere.B9mLAvxV.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","window","de","c","init_jsx_runtime","ce","init_ssg_sandbox_shims","RenderTarget","addPropertyControls","ControlType","init_framer_DymZktPS","compile","s","gl","type","src","DepthAtmosphere","props","hostRef","paramsRef","hexToRgb","rayTint","host","rt","inline","reduced","root","zIndex","placement","glowEl","setLayer","rayCanvas","vig","vignette","grainEl","GRAIN","grain","u","prog","VERT","FRAG","quad","L","n","W","H","resize","dpr","rect","ro","scroller","onAnyScroll","metrics","top","ph","vh","se","start","raf","render","p","scroll","viewFrac","depth","m","glowFade","hexA","glowColor","time","animate","cleanupFns","onScroll","loop","f","lose","style","init_DepthAtmosphere","hex","a","el","z"],"sources":["https:/framerusercontent.com/modules/TF5w0IS1pfvMxLAYaEvR/MakcnaI2WszdNC0hRgyF/DepthAtmosphere.js"],"sourcesContent":["// DepthAtmosphere.tsx\n// Gigablue — surface light for a whole page (god rays + grain + vignette).\n//\n// A single click-through overlay that hangs sunlight over the TOP of the page\n// and lets it fade into the deep as you scroll. Drop it ONCE per page.\n//\n//   layers (back → front of the overlay):\n//   1. Surface glow — a soft top-anchored blue wash, matched to the hero's\n//                     underwater grade (rgba(70,140,205) glow at 50% 2%).\n//   2. God rays     — volumetric light shafts fanning from a source above the\n//                     page top (WebGL, additive / Screen).\n//   3. Vignette     — edges fall off (limited visibility underwater).\n//   4. Film grain   — faint suspended-silt texture; also kills gradient banding.\n//\n// SURFACE-ANCHORED LIGHT: the rays live in PAGE space, not viewport space. The\n// light hangs above the very top of the page; it's brightest across the top\n// ~15% of the page's height and drops away dramatically below, so scrolling\n// down is a descent out of the light into the dark. \"Surface band\" tunes how\n// far down the light reaches. The layer itself is a fixed, full-viewport canvas\n// (cheap), but it reads its scroll position each frame to know how deep it is.\n//\n// WHY AN OVERLAY (not a background): Framer wraps components in a transformed\n// box, which breaks `position: fixed`. So this portals its layers to <body> to\n// escape that box. \"Behind content\" paints under your page (crisp text on top,\n// light shows through transparent section backgrounds); \"Over content\" tints\n// everything.\n//\n// Setup in Framer:\n//   • Add the component anywhere on the page. Position/size don't matter — it\n//     paints the whole viewport itself and is pointer-events:none. ONE per page.\n//   • Placement → \"Behind content\" for crisp text (set page + section\n//     backgrounds transparent), or \"Over content\" to tint everything.\n//   • Leave \"Link to scroll\" on. Test in PREVIEW (play button) with a page\n//     taller than the viewport — the static editor canvas doesn't scroll.\n//   • Publishes a --depth CSS variable (0 top → 1 bottom) on <html> so other\n//     layers can react to the same descent.\n//   • Respects prefers-reduced-motion (freezes drift; scroll fade stays live).\n//\n// @framerSupportedLayoutWidth any\n// @framerSupportedLayoutHeight any\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// ---------------------------------------------------------------------------\n// God-ray shader (volumetric shafts, faded into a page-space surface band)\n// ---------------------------------------------------------------------------\nconst VERT=`\nattribute vec2 aPos;\nvarying vec2 vUv;\nvoid main(){ vUv = aPos*0.5+0.5; gl_Position = vec4(aPos,0.0,1.0); }\n`;const FRAG=`\nprecision highp float;\nvarying vec2 vUv;\nuniform float uTime, uAspect, uIntensity, uShafts, uSpeed;\nuniform float uSurface;   // fraction of PAGE height the light reaches\nuniform float uScroll;    // scrollTop / pageHeight  (page-space top of view)\nuniform float uViewFrac;  // viewportHeight / pageHeight\nuniform vec3  uTint;\nuniform vec2  uLight;\nfloat hash(vec2 p){ return fract(sin(dot(p, vec2(127.1,311.7)))*43758.5453); }\nfloat noise(vec2 p){\n    vec2 i=floor(p), f=fract(p); vec2 u=f*f*(3.0-2.0*f);\n    return mix(mix(hash(i),hash(i+vec2(1,0)),u.x),\n               mix(hash(i+vec2(0,1)),hash(i+vec2(1,1)),u.x),u.y);\n}\nfloat fbm(vec2 p){ float v=0.0,a=0.5; for(int i=0;i<4;i++){v+=a*noise(p);p*=2.0;a*=0.5;} return v; }\nvoid main(){\n    vec2 uv=vUv;\n\n    // Position of this fragment down the whole PAGE (0 = page top, grows down).\n    // uv.y is 1 at the top of the viewport, 0 at the bottom.\n    float pageY = uScroll + (1.0 - uv.y) * uViewFrac;\n\n    // Shafts fanning from a source above the page top.\n    vec2 p=vec2((uv.x-uLight.x)*uAspect, uv.y-uLight.y);\n    float ang=atan(p.x,-p.y); float dist=length(p); float t=uTime*uSpeed;\n    float shaft=fbm(vec2(ang*uShafts, dist*1.5-t));\n    shaft+=0.6*fbm(vec2(ang*uShafts*2.3, dist*2.0-t*1.4));\n    shaft=pow(max(shaft-0.35,0.0)*1.6,2.2);\n    float falloff=smoothstep(1.6,0.1,dist);\n    float sides=smoothstep(0.0,0.25,uv.x)*smoothstep(1.0,0.75,uv.x);\n    float rays=shaft*falloff*(0.5+0.5*sides);\n\n    // Surface band: full strength at the page top, then an exponential drop so\n    // by ~uSurface of the way down the page the light has all but vanished.\n    float band=exp(-pageY / max(uSurface, 0.001) * 3.0);\n\n    float light=rays*uIntensity*band;\n    float a=clamp(light,0.0,1.0);\n    gl_FragColor=vec4(uTint*a, a);\n}\n`;// Faint fractal-noise grain, as a self-contained SVG data URI (no JS cost).\nconst GRAIN=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\";function compile(gl,type,src){const s=gl.createShader(type);gl.shaderSource(s,src);gl.compileShader(s);if(!gl.getShaderParameter(s,gl.COMPILE_STATUS))console.warn(\"DepthAtmosphere shader:\",gl.getShaderInfoLog(s));return s;}const hexToRgb=hex=>{const m=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex||\"\");return m?[parseInt(m[1],16)/255,parseInt(m[2],16)/255,parseInt(m[3],16)/255]:[.85,.95,1];};const hexA=(hex,a)=>{const h=(hex||\"#ffffff\").replace(\"#\",\"\").slice(0,6).padEnd(6,\"0\");const aa=Math.round(Math.max(0,Math.min(1,a))*255).toString(16).padStart(2,\"0\");return`#${h}${aa}`;};const setLayer=(el,z)=>{Object.assign(el.style,{position:\"absolute\",left:\"0\",top:\"0\",width:\"100%\",height:\"100%\",pointerEvents:\"none\",zIndex:String(z)});};// ---------------------------------------------------------------------------\n// Component\n// ---------------------------------------------------------------------------\nexport default function DepthAtmosphere(props){const{// surface glow (matched to the hero's underwater grade)\nglowColor=\"#468ccd\",glow=.5,// god rays\nrayTint=\"#dff2ff\",rayIntensity=.6,rayShafts=7,raySpeed=.06,lightX=.5,surface=.15,// finish\nvignette=.35,grain=.06,// control\nplacement=\"behind\",zIndex=0,linkToScroll=true,depthOverride=0,publishDepthVar=true,style}=props;const hostRef=useRef(null);const paramsRef=useRef({});paramsRef.current={rayTint:hexToRgb(rayTint),rayIntensity,rayShafts,raySpeed,lightX,surface,glow,linkToScroll,depthOverride,publishDepthVar};// Re-create the overlay when a purely-visual static prop changes (blend,\n// colors, z-index). Animated params flow through paramsRef live.\nuseEffect(()=>{const host=hostRef.current;if(!host||typeof document===\"undefined\")return;const rt=RenderTarget.current();if(rt===RenderTarget.thumbnail)return;const inline=rt===RenderTarget.canvas// editor: render in place\n;const reduced=typeof matchMedia!==\"undefined\"&&matchMedia(\"(prefers-reduced-motion: reduce)\").matches;// --- overlay root: portal to <body> live (escapes Framer's transform),\n//     or render inside the component box while editing on the canvas ---\nconst root=document.createElement(\"div\");Object.assign(root.style,{position:inline?\"absolute\":\"fixed\",left:\"0\",top:\"0\",width:\"100%\",height:\"100%\",pointerEvents:\"none\",overflow:\"hidden\",zIndex:inline?\"0\":String(zIndex)});if(inline){host.style.position=\"relative\";host.appendChild(root);}else if(placement===\"behind\"){// Under the page: earliest body child = painted first = beneath\n// Framer's content. Text stays on top; light shows through wherever\n// a section background is transparent.\ndocument.body.insertBefore(root,document.body.firstChild);}else{document.body.appendChild(root)// over everything (tints content)\n;}// 1. surface glow (top-anchored, matched to the hero grade)\nconst glowEl=document.createElement(\"div\");setLayer(glowEl,1);glowEl.style.mixBlendMode=\"screen\";root.appendChild(glowEl);// 2. god rays (WebGL)\nconst rayCanvas=document.createElement(\"canvas\");setLayer(rayCanvas,2);rayCanvas.style.mixBlendMode=\"screen\";root.appendChild(rayCanvas);// 3. vignette\nconst vig=document.createElement(\"div\");setLayer(vig,3);vig.style.background=\"radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0,0,0,1) 100%)\";vig.style.opacity=String(vignette);root.appendChild(vig);// 4. film grain\nconst grainEl=document.createElement(\"div\");setLayer(grainEl,4);grainEl.style.backgroundImage=`url(\"${GRAIN}\")`;grainEl.style.backgroundRepeat=\"repeat\";grainEl.style.opacity=String(grain);grainEl.style.mixBlendMode=\"overlay\";root.appendChild(grainEl);// --- WebGL ---\nconst gl=rayCanvas.getContext(\"webgl\",{alpha:true,premultipliedAlpha:false,antialias:false,depth:false});let u={};if(gl){const prog=gl.createProgram();gl.attachShader(prog,compile(gl,gl.VERTEX_SHADER,VERT));gl.attachShader(prog,compile(gl,gl.FRAGMENT_SHADER,FRAG));gl.bindAttribLocation(prog,0,\"aPos\");gl.linkProgram(prog);gl.useProgram(prog);const quad=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,quad);gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),gl.STATIC_DRAW);gl.enableVertexAttribArray(0);gl.vertexAttribPointer(0,2,gl.FLOAT,false,0,0);const L=n=>gl.getUniformLocation(prog,n);u={time:L(\"uTime\"),aspect:L(\"uAspect\"),tint:L(\"uTint\"),light:L(\"uLight\"),intensity:L(\"uIntensity\"),shafts:L(\"uShafts\"),speed:L(\"uSpeed\"),surface:L(\"uSurface\"),scroll:L(\"uScroll\"),viewFrac:L(\"uViewFrac\")};}let W=1;let H=1;const resize=()=>{const dpr=Math.min(window.devicePixelRatio||1,2);const rect=root.getBoundingClientRect();W=Math.max(1,rect.width);H=Math.max(1,rect.height);rayCanvas.width=Math.round(W*dpr);rayCanvas.height=Math.round(H*dpr);};resize();const ro=new ResizeObserver(resize);ro.observe(root);window.addEventListener(\"resize\",resize);// Framer often scrolls a nested container, not the window — so\n// window.scrollY can stay 0. Listen in the CAPTURE phase (scroll events\n// don't bubble) to learn which element actually scrolls, then read it.\nlet scroller=null;const onAnyScroll=e=>{const t=e.target;if(!t||t===document||t===window||t===document.body||t===document.documentElement){scroller=null// window / document is the scroller\n;}else if(t.scrollHeight&&t.scrollHeight>t.clientHeight){scroller=t;}};window.addEventListener(\"scroll\",onAnyScroll,true);// Page-space metrics: where the top of the view sits down the page\n// (scroll), how tall the view is relative to the page (viewFrac), and\n// the 0..1 descent depth for the published --depth var.\nconst metrics=()=>{let top;let ph;let vh;if(scroller){top=scroller.scrollTop;ph=scroller.scrollHeight;vh=scroller.clientHeight;}else{const se=document.scrollingElement||document.documentElement;top=window.scrollY||se.scrollTop||0;ph=se.scrollHeight||1;vh=window.innerHeight;}ph=Math.max(ph,vh,1);return{scroll:top/ph,viewFrac:vh/ph,depth:ph-vh>0?Math.min(1,Math.max(0,top/(ph-vh))):0};};const start=performance.now();let raf=0;const render=animate=>{const p=paramsRef.current;let scroll;let viewFrac;let depth;if(p.linkToScroll){const m=metrics();scroll=m.scroll;viewFrac=m.viewFrac;depth=m.depth;}else{// Editor / static: let \"Depth\" drive the surface fade so the\n// effect is previewable on the canvas. Assume a ~6-screen page.\ndepth=p.depthOverride;viewFrac=.16;scroll=p.depthOverride*(1-viewFrac);}if(p.publishDepthVar)document.documentElement.style.setProperty(\"--depth\",depth.toFixed(3));// Surface glow fades as the top of the view sinks past the band.\nconst glowFade=Math.exp(-scroll/Math.max(p.surface,.001)*3);glowEl.style.background=`radial-gradient(95% 65% at ${p.lightX*100}% 2%, ${hexA(glowColor,p.glow*glowFade)}, transparent 62%)`;if(gl){const time=animate?(performance.now()-start)/1e3:0;gl.viewport(0,0,rayCanvas.width,rayCanvas.height);gl.uniform1f(u.time,time);gl.uniform1f(u.aspect,W/H);gl.uniform3f(u.tint,p.rayTint[0],p.rayTint[1],p.rayTint[2]);gl.uniform2f(u.light,p.lightX,1.15)// above the top edge\n;gl.uniform1f(u.intensity,p.rayIntensity);gl.uniform1f(u.shafts,p.rayShafts);gl.uniform1f(u.speed,p.raySpeed);gl.uniform1f(u.surface,p.surface);gl.uniform1f(u.scroll,scroll);gl.uniform1f(u.viewFrac,viewFrac);gl.clearColor(0,0,0,0);gl.clear(gl.COLOR_BUFFER_BIT);gl.drawArrays(gl.TRIANGLES,0,3);}};const cleanupFns=[];if(reduced){render(false);const onScroll=()=>render(false);window.addEventListener(\"scroll\",onScroll,{passive:true,capture:true});cleanupFns.push(()=>window.removeEventListener(\"scroll\",onScroll,true));}else{const loop=()=>{render(true);raf=requestAnimationFrame(loop);};raf=requestAnimationFrame(loop);cleanupFns.push(()=>cancelAnimationFrame(raf));}return()=>{cleanupFns.forEach(f=>f());ro.disconnect();window.removeEventListener(\"resize\",resize);window.removeEventListener(\"scroll\",onAnyScroll,true);if(gl){const lose=gl.getExtension(\"WEBGL_lose_context\");if(lose)lose.loseContext();}root.remove();};},[glowColor,vignette,grain,zIndex,placement]);// The component's own box stays empty — all visuals live in the portal.\nreturn /*#__PURE__*/_jsx(\"div\",{ref:hostRef,style:{width:\"100%\",height:\"100%\",pointerEvents:\"none\",...style}});}DepthAtmosphere.displayName=\"Depth Atmosphere\";addPropertyControls(DepthAtmosphere,{glowColor:{type:ControlType.Color,title:\"Glow color\",defaultValue:\"#468ccd\"},glow:{type:ControlType.Number,title:\"Surface glow\",min:0,max:1,step:.05,defaultValue:.5},rayTint:{type:ControlType.Color,title:\"Ray tint\",defaultValue:\"#dff2ff\"},rayIntensity:{type:ControlType.Number,title:\"Ray intensity\",min:0,max:1.5,step:.05,defaultValue:.6},rayShafts:{type:ControlType.Number,title:\"Ray count\",min:2,max:20,step:1,defaultValue:7},raySpeed:{type:ControlType.Number,title:\"Ray drift\",min:0,max:.3,step:.01,defaultValue:.06},lightX:{type:ControlType.Number,title:\"Light X\",min:0,max:1,step:.05,defaultValue:.5},surface:{type:ControlType.Number,title:\"Surface band\",min:.05,max:1,step:.05,defaultValue:.15},vignette:{type:ControlType.Number,title:\"Vignette\",min:0,max:1,step:.05,defaultValue:.35},grain:{type:ControlType.Number,title:\"Grain\",min:0,max:.3,step:.01,defaultValue:.06},placement:{type:ControlType.Enum,title:\"Placement\",options:[\"behind\",\"overlay\"],optionTitles:[\"Behind content\",\"Over content\"],defaultValue:\"behind\",displaySegmentedControl:true},zIndex:{type:ControlType.Number,title:\"Z-index\",min:0,max:9999,step:1,defaultValue:0,displayStepper:true},linkToScroll:{type:ControlType.Boolean,title:\"Link to scroll\",defaultValue:true},depthOverride:{type:ControlType.Number,title:\"Depth\",min:0,max:1,step:.05,defaultValue:0,hidden:p=>!!p.linkToScroll},publishDepthVar:{type:ControlType.Boolean,title:\"Publish --depth\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DepthAtmosphere\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DepthAtmosphere.map"],"mappings":"A,uMAyF8S,SAASa,EAAQ,EAAG,EAAK,EAAI,CAAC,IAAMC,EAAEC,EAAG,aAAaC,CAAI,EAA2J,OAAzJD,EAAG,aAAaD,EAAEG,CAAG,EAAEF,EAAG,cAAcD,CAAC,EAAMC,EAAG,mBAAmBD,EAAEC,EAAG,cAAc,GAAE,QAAQ,KAAK,0BAA0BA,EAAG,iBAAiBD,CAAC,CAAC,EAASA,CAAE,CAG5gB,SAAwBI,EAAgB,EAAM,CAAC,GAAK,CACpD,YAAU,UAAU,OAAK,GACzB,UAAQ,UAAU,eAAa,GAAG,YAAU,EAAE,WAAS,IAAI,SAAO,GAAG,UAAQ,IAC7E,WAAS,IAAI,QAAM,IACnB,YA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