{"version":3,"file":"HeroThreeJSV2.BAhZKZbr.mjs","names":["useRef","THREE.TextureLoader","useMemo","THREE.Scene","THREE.Object3D","THREE.PerspectiveCamera","THREE.Vector3","THREE.Vector4","THREE.DataTexture","THREE.RGBAFormat","THREE.FloatType","THREE.NearestFilter","THREE.BufferGeometry","THREE.BufferAttribute","THREE.WebGLRenderTarget","THREE.HalfFloatType","THREE.OrthographicCamera","THREE.PlaneGeometry","THREE.ShaderMaterial","THREE.Mesh","THREE.Vector2","THREE.RepeatWrapping","THREE.LinearMipmapLinearFilter","THREE.LinearFilter"],"sources":["https:/framerusercontent.com/modules/ZWpqBRkbAtaT2V7VyOPM/HUcGQi8gvK484ZGF50EE/HeroThreeJSV2.js"],"sourcesContent":["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useSpring,useMotionValue}from\"framer-motion\";import{useRef,useEffect,useMemo}from\"react\";import*as THREE from\"three\";import{useWebGLGuards,createGuardedRenderer,WebGLFallbackFrame,fallbackPropertyControls}from\"https://framer.com/m/WebGLGuard-XiTZOn.js@EpoSZrLQNfZYaMsptJAQ#WebGLFallbackFrame\";const DEG2RAD=Math.PI/180;/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function HeroThreeJSV2({// --- Geometry group: changing any of these rebuilds the mesh ---\npoints,threshold=.5,scale=1,extrudeScale=.9,extrudeOffset={x:0,y:.1,z:.1},randomOffset={x:.6,y:.2,z:.2},steps=16,tubeRadius=.0012,tipLayers=8,tipRadius=.0024,// --- Spring settings shared by every animatable property below ---\nspringSettings={duration:300,bounce:.2},// --- Animatable group: springed, read per-frame, never rebuild the mesh ---\nnoiseStrength=.15,noiseScale=3.6,cameraFov=34,cameraPosition={x:0,y:0,z:1.8},cameraRotationX=0,cameraRotationY=0,sizeVariance=.5,dispersionOffset=.05,dispersionBand=.9,dispersion=.8,simRadius=.15,simStrength=1,simSpring=40,simDamping=12,simMaxVelocity=5,opacitySpeed=2,maxDelay=.6,highlightRadius=.15,highlightStrength=.3,highlightSpeed=4,strandOpacity=.15,pulseStrength=.8,pulseSpeedBase=.05,pulseSpeedRandomMax=.1,// --- Resources, not animatable ---\ntipTexture,fallbackImage,fallbackFit=\"cover\",fallbackAlt=\"\"}){const mountRef=useRef(null);const materialRef=useRef(null);const loaderRef=useRef(new THREE.TextureLoader);const tipTextureRef=useRef(null);const{webglAvailable,gpuEpoch,beginSession}=useWebGLGuards(\"HeroThreeJS\");const{positions,numStrands}=useMemo(()=>parseSVGPoints(points,threshold),[points,threshold]);// Shared spring config used by every useSpring below. Framer re-renders\n// the whole tree when a property control changes, so this object is\n// fresh each render but its values are only read at spring creation.\nconst springOptions={duration:springSettings.duration,bounce:springSettings.bounce};// --- tipRadius ---\nconst tipRadiusMV=useMotionValue(tipRadius);const tipRadiusS=useSpring(tipRadiusMV,springOptions);useEffect(()=>{tipRadiusMV.set(tipRadius);},[tipRadius]);// --- noiseStrength ---\nconst noiseStrengthMV=useMotionValue(noiseStrength);const noiseStrengthS=useSpring(noiseStrengthMV,springOptions);useEffect(()=>{noiseStrengthMV.set(noiseStrength);},[noiseStrength]);// --- noiseScale ---\nconst noiseScaleMV=useMotionValue(noiseScale);const noiseScaleS=useSpring(noiseScaleMV,springOptions);useEffect(()=>{noiseScaleMV.set(noiseScale);},[noiseScale]);// --- cameraFov ---\nconst cameraFovMV=useMotionValue(cameraFov);const cameraFovS=useSpring(cameraFovMV,springOptions);useEffect(()=>{cameraFovMV.set(cameraFov);},[cameraFov]);// --- cameraPosition (x, y, z springed independently) ---\nconst cameraPositionXMV=useMotionValue(cameraPosition.x);const cameraPositionXS=useSpring(cameraPositionXMV,springOptions);useEffect(()=>{cameraPositionXMV.set(cameraPosition.x);},[cameraPosition.x]);const cameraPositionYMV=useMotionValue(cameraPosition.y);const cameraPositionYS=useSpring(cameraPositionYMV,springOptions);useEffect(()=>{cameraPositionYMV.set(cameraPosition.y);},[cameraPosition.y]);const cameraPositionZMV=useMotionValue(cameraPosition.z);const cameraPositionZS=useSpring(cameraPositionZMV,springOptions);useEffect(()=>{cameraPositionZMV.set(cameraPosition.z);},[cameraPosition.z]);// --- cameraRotationX / cameraRotationY ---\nconst cameraRotationXMV=useMotionValue(cameraRotationX);const cameraRotationXS=useSpring(cameraRotationXMV,springOptions);useEffect(()=>{cameraRotationXMV.set(cameraRotationX);},[cameraRotationX]);const cameraRotationYMV=useMotionValue(cameraRotationY);const cameraRotationYS=useSpring(cameraRotationYMV,springOptions);useEffect(()=>{cameraRotationYMV.set(cameraRotationY);},[cameraRotationY]);// --- sizeVariance ---\nconst sizeVarianceMV=useMotionValue(sizeVariance);const sizeVarianceS=useSpring(sizeVarianceMV,springOptions);useEffect(()=>{sizeVarianceMV.set(sizeVariance);},[sizeVariance]);// --- dispersionOffset ---\nconst dispersionOffsetMV=useMotionValue(dispersionOffset);const dispersionOffsetS=useSpring(dispersionOffsetMV,springOptions);useEffect(()=>{dispersionOffsetMV.set(dispersionOffset);},[dispersionOffset]);// --- dispersionBand ---\nconst dispersionBandMV=useMotionValue(dispersionBand);const dispersionBandS=useSpring(dispersionBandMV,springOptions);useEffect(()=>{dispersionBandMV.set(dispersionBand);},[dispersionBand]);// --- dispersion ---\nconst dispersionMV=useMotionValue(dispersion);const dispersionS=useSpring(dispersionMV,springOptions);useEffect(()=>{dispersionMV.set(dispersion);},[dispersion]);// --- simRadius ---\nconst simRadiusMV=useMotionValue(simRadius);const simRadiusS=useSpring(simRadiusMV,springOptions);useEffect(()=>{simRadiusMV.set(simRadius);},[simRadius]);// --- simStrength ---\nconst simStrengthMV=useMotionValue(simStrength);const simStrengthS=useSpring(simStrengthMV,springOptions);useEffect(()=>{simStrengthMV.set(simStrength);},[simStrength]);// --- simSpring (physics spring constant, unrelated to useSpring itself) ---\nconst simSpringMV=useMotionValue(simSpring);const simSpringS=useSpring(simSpringMV,springOptions);useEffect(()=>{simSpringMV.set(simSpring);},[simSpring]);// --- simDamping ---\nconst simDampingMV=useMotionValue(simDamping);const simDampingS=useSpring(simDampingMV,springOptions);useEffect(()=>{simDampingMV.set(simDamping);},[simDamping]);// --- simMaxVelocity ---\nconst simMaxVelocityMV=useMotionValue(simMaxVelocity);const simMaxVelocityS=useSpring(simMaxVelocityMV,springOptions);useEffect(()=>{simMaxVelocityMV.set(simMaxVelocity);},[simMaxVelocity]);// --- opacitySpeed ---\nconst opacitySpeedMV=useMotionValue(opacitySpeed);const opacitySpeedS=useSpring(opacitySpeedMV,springOptions);useEffect(()=>{opacitySpeedMV.set(opacitySpeed);},[opacitySpeed]);// --- maxDelay ---\nconst maxDelayMV=useMotionValue(maxDelay);const maxDelayS=useSpring(maxDelayMV,springOptions);useEffect(()=>{maxDelayMV.set(maxDelay);},[maxDelay]);// --- highlightRadius ---\nconst highlightRadiusMV=useMotionValue(highlightRadius);const highlightRadiusS=useSpring(highlightRadiusMV,springOptions);useEffect(()=>{highlightRadiusMV.set(highlightRadius);},[highlightRadius]);// --- highlightStrength ---\nconst highlightStrengthMV=useMotionValue(highlightStrength);const highlightStrengthS=useSpring(highlightStrengthMV,springOptions);useEffect(()=>{highlightStrengthMV.set(highlightStrength);},[highlightStrength]);// --- highlightSpeed ---\nconst highlightSpeedMV=useMotionValue(highlightSpeed);const highlightSpeedS=useSpring(highlightSpeedMV,springOptions);useEffect(()=>{highlightSpeedMV.set(highlightSpeed);},[highlightSpeed]);// --- strandOpacity ---\nconst strandOpacityMV=useMotionValue(strandOpacity);const strandOpacityS=useSpring(strandOpacityMV,springOptions);useEffect(()=>{strandOpacityMV.set(strandOpacity);},[strandOpacity]);// --- pulseStrength ---\nconst pulseStrengthMV=useMotionValue(pulseStrength);const pulseStrengthS=useSpring(pulseStrengthMV,springOptions);useEffect(()=>{pulseStrengthMV.set(pulseStrength);},[pulseStrength]);// --- pulseSpeedBase ---\nconst pulseSpeedBaseMV=useMotionValue(pulseSpeedBase);const pulseSpeedBaseS=useSpring(pulseSpeedBaseMV,springOptions);useEffect(()=>{pulseSpeedBaseMV.set(pulseSpeedBase);},[pulseSpeedBase]);// --- pulseSpeedRandomMax ---\nconst pulseSpeedRandomMaxMV=useMotionValue(pulseSpeedRandomMax);const pulseSpeedRandomMaxS=useSpring(pulseSpeedRandomMaxMV,springOptions);useEffect(()=>{pulseSpeedRandomMaxMV.set(pulseSpeedRandomMax);},[pulseSpeedRandomMax]);useEffect(()=>{const el=mountRef.current;if(!el||!positions)return;const session=beginSession();// ---------------------------------------------------------------\n// Sim atlas sizing is computed up front so the capability check can\n// validate it against MAX_TEXTURE_SIZE before we commit to a canvas.\n// ---------------------------------------------------------------\nconst VERTS_PER_RING=3;const QUAD_VERTS=4;const ringsPerStrand=steps+1;const cellsPerStrand=ringsPerStrand+tipLayers;const totalSimCells=numStrands*cellsPerStrand;const simSize=Math.ceil(Math.sqrt(totalSimCells));const simAtlasHeight=simSize*2;const dataAtlasHeight=simSize*3;const gpu=createGuardedRenderer(session,{params:{antialias:true,alpha:true},requirements:{// tSim is sampled in the vertex shader.\nvertexTextures:true,// tData is a FloatType DataTexture.\nfloatDataTextures:true,// The ping-pong targets are HalfFloatType.\nfloatRenderTargets:true,maxTextureSize:Math.max(simSize,simAtlasHeight,dataAtlasHeight)}});if(!gpu)return;const renderer=gpu.renderer;renderer.setPixelRatio(Math.min(window.devicePixelRatio,2));renderer.setSize(el.clientWidth,el.clientHeight);el.appendChild(renderer.domElement);const domElement=renderer.domElement;const scene=new THREE.Scene;const cameraParent=new THREE.Object3D;scene.add(cameraParent);const camera=new THREE.PerspectiveCamera(cameraFovS.get(),el.clientWidth/el.clientHeight,.1,100);camera.position.set(cameraPositionXS.get(),cameraPositionYS.get(),cameraPositionZS.get());cameraParent.add(camera);cameraParent.rotation.x=cameraRotationXS.get()*DEG2RAD;cameraParent.rotation.y=cameraRotationYS.get()*DEG2RAD;const config={scale,extrudeScale,extrudeOffset:new THREE.Vector3(extrudeOffset.x,extrudeOffset.y,extrudeOffset.z),randomOffset:new THREE.Vector3(randomOffset.x,randomOffset.y,randomOffset.z),steps,tubeRadius,tipRadius,noiseCurve:customCurve,tipLayers};// --- Buffer size constants ---\nconst vertsPerStrand=ringsPerStrand*VERTS_PER_RING+QUAD_VERTS*config.tipLayers;const totalVerts=numStrands*vertsPerStrand;const segsPerStrand=ringsPerStrand-1;const tubeIndicesPerStrand=segsPerStrand*VERTS_PER_RING*2*3;const quadIndicesPerStrand=6*config.tipLayers;const totalIndices=numStrands*(tubeIndicesPerStrand+quadIndicesPerStrand);// ---------------------------------------------------------------\n// ATLAS LAYOUT\n//\n// Sim texture (tSim) — ping-pong render targets, simSize × (simSize*2):\n//   section 0 (uAtlasPos): rgb = live world position, a = opacity (0→1)\n//   section 1 (uAtlasVel): rgb = live velocity,       a = highlight (0→1)\n//\n// Data texture (tData) — static upload, simSize × (simSize*3):\n//   section 0 (uDataTarget):       rgb = final resting world position, a = factor (tip=1 root=0)\n//   section 1 (uDataStart):        rgb = shared extrude-origin point (_end), a = per-strand stagger random [0,1]\n//   section 2 (uDataHighlightRef): rgb = strand reference point (_start), same for every cell in a strand\n//     Sections 1 and 2 are constant per-strand so the whole strand\n//     springs from the same launch point, highlights uniformly, and\n//     starts its reveal on its own delay (rStagger * uMaxDelay).\n//\n// aSimCell holds raw cell UV [0,1]×[0,1].\n// atlasUV(cellUv, region) = cellUv * region.xy + region.zw\n//\n// Every vertex's `position` attribute is baked to the strand's shared\n// extrude-origin point (_end) — it is never read for displacement math,\n// only kept for Three.js's bounding-sphere calculation. The rendered\n// world position always comes from tSim.\n// ---------------------------------------------------------------\nconst ATLAS_POS=new THREE.Vector4(1,.5,0,0);const ATLAS_VEL=new THREE.Vector4(1,.5,0,.5);const DATA_TARGET=new THREE.Vector4(1,1/3,0,0);const DATA_START=new THREE.Vector4(1,1/3,0,1/3);const DATA_HIGHLIGHT_REF=new THREE.Vector4(1,1/3,0,2/3);function cellToUV(cellIdx){const x=(cellIdx%simSize+.5)/simSize;const y=(Math.floor(cellIdx/simSize)+.5)/simSize;return[x,y];}// --- Allocate geometry buffers ---\nconst posAttr=new Float32Array(totalVerts*3);const aDir=new Float32Array(totalVerts*3);const aSide=new Uint8Array(totalVerts);const aRandom=new Float32Array(totalVerts*2);const aUV=new Float32Array(totalVerts*3);const aTip=new Uint8Array(totalVerts);const aAdvect=new Float32Array(totalVerts);const aSimCell=new Float32Array(totalVerts*2);const indices=new Uint32Array(totalIndices);// Data texture — simSize × dataAtlasHeight, 3 datasets:\n// Section 0: final resting world position + factor\n// Section 1: shared extrude-origin (_end) — same for every cell in a strand\n// Section 2: strand reference point (_start) — same for every cell in a strand\nconst dataTexData=new Float32Array(simSize*dataAtlasHeight*4);const cellsPerSection=simSize*simSize// cell count of one section\n;const TARGET_OFFSET=0;const START_OFFSET=cellsPerSection;const HREF_OFFSET=cellsPerSection*2;const _center=new THREE.Vector3;const _start=new THREE.Vector3;const _end=new THREE.Vector3;const _tangent=new THREE.Vector3;let pointCursor=0;let indexCursor=0;function writeStrand(si){const strandStart=si*3;const r0=Math.random();const r1=Math.random();const rStagger=Math.random();const vertBase=si*vertsPerStrand;_start.set(positions[strandStart],positions[strandStart+1],positions[strandStart+2]).multiplyScalar(config.scale);_end.copy(_start).multiplyScalar(config.extrudeScale).add(config.extrudeOffset);_tangent.subVectors(_end,_start).normalize();// --- Pass 2 — rings ---\nfor(let ri=0;ri<ringsPerStrand;ri++){const t=ri/(ringsPerStrand-1);_center.lerpVectors(_start,_end,t);const cx=_center.x;const cy=_center.y;const cz=_center.z;const factor=1-t;const ringCellIdx=si*cellsPerStrand+ri;const[ruvX,ruvY]=cellToUV(ringCellIdx);// Section 0: final resting position + factor\ndataTexData[(TARGET_OFFSET+ringCellIdx)*4]=cx;dataTexData[(TARGET_OFFSET+ringCellIdx)*4+1]=cy;dataTexData[(TARGET_OFFSET+ringCellIdx)*4+2]=cz;dataTexData[(TARGET_OFFSET+ringCellIdx)*4+3]=factor;// Section 1: shared extrude-origin (_end) for the whole strand,\n// plus the strand's stagger-delay random in the spare alpha channel\ndataTexData[(START_OFFSET+ringCellIdx)*4]=_end.x;dataTexData[(START_OFFSET+ringCellIdx)*4+1]=_end.y;dataTexData[(START_OFFSET+ringCellIdx)*4+2]=_end.z;dataTexData[(START_OFFSET+ringCellIdx)*4+3]=rStagger;// Section 2: strand reference point (_start) for highlight distance\ndataTexData[(HREF_OFFSET+ringCellIdx)*4]=_start.x;dataTexData[(HREF_OFFSET+ringCellIdx)*4+1]=_start.y;dataTexData[(HREF_OFFSET+ringCellIdx)*4+2]=_start.z;dataTexData[(HREF_OFFSET+ringCellIdx)*4+3]=0;for(let s=0;s<VERTS_PER_RING;s++){const v=pointCursor*3;const a=pointCursor*2;const u=pointCursor*3;const sc=pointCursor*2;// Baked to the strand's shared extrude-origin — never\n// read for displacement, only for the bounding sphere.\nposAttr[v]=_end.x;posAttr[v+1]=_end.y;posAttr[v+2]=_end.z;aDir[v]=_tangent.x;aDir[v+1]=_tangent.y;aDir[v+2]=_tangent.z;aSide[pointCursor]=s;aRandom[a]=r0;aRandom[a+1]=r1;aUV[u]=factor;aUV[u+1]=s/VERTS_PER_RING;aUV[u+2]=0;aAdvect[pointCursor]=config.noiseCurve(1-factor);aSimCell[sc]=ruvX;aSimCell[sc+1]=ruvY;pointCursor++;}if(ri<ringsPerStrand-1){for(let f=0;f<VERTS_PER_RING;f++){const A0=vertBase+ri*VERTS_PER_RING+f;const A1=vertBase+ri*VERTS_PER_RING+(f+1)%VERTS_PER_RING;const B0=vertBase+(ri+1)*VERTS_PER_RING+f;const B1=vertBase+(ri+1)*VERTS_PER_RING+(f+1)%VERTS_PER_RING;indices[indexCursor++]=A0;indices[indexCursor++]=B0;indices[indexCursor++]=A1;indices[indexCursor++]=B0;indices[indexCursor++]=B1;indices[indexCursor++]=A1;}}}// --- Pass 3 — tip quad verts ---\nconst quadUVCorners=[0,0,1,0,0,1,1,1];for(let layer=0;layer<config.tipLayers;layer++){const layerFactor=config.tipLayers>1?layer/(config.tipLayers-1):0;const quadVertBase=vertBase+ringsPerStrand*VERTS_PER_RING+layer*QUAD_VERTS;const tipCellIdx=si*cellsPerStrand+ringsPerStrand+layer;const[tuvX,tuvY]=cellToUV(tipCellIdx);// Section 0: tip target position (root, _start) + factor=1\ndataTexData[(TARGET_OFFSET+tipCellIdx)*4]=_start.x;dataTexData[(TARGET_OFFSET+tipCellIdx)*4+1]=_start.y;dataTexData[(TARGET_OFFSET+tipCellIdx)*4+2]=_start.z;dataTexData[(TARGET_OFFSET+tipCellIdx)*4+3]=1;// Section 1: shared extrude-origin (_end), same stagger random as the strand's rings\ndataTexData[(START_OFFSET+tipCellIdx)*4]=_end.x;dataTexData[(START_OFFSET+tipCellIdx)*4+1]=_end.y;dataTexData[(START_OFFSET+tipCellIdx)*4+2]=_end.z;dataTexData[(START_OFFSET+tipCellIdx)*4+3]=rStagger;// Section 2: strand reference point (_start)\ndataTexData[(HREF_OFFSET+tipCellIdx)*4]=_start.x;dataTexData[(HREF_OFFSET+tipCellIdx)*4+1]=_start.y;dataTexData[(HREF_OFFSET+tipCellIdx)*4+2]=_start.z;dataTexData[(HREF_OFFSET+tipCellIdx)*4+3]=0;for(let q=0;q<QUAD_VERTS;q++){const v=pointCursor*3;const a=pointCursor*2;const u=pointCursor*3;const sc=pointCursor*2;posAttr[v]=_end.x;posAttr[v+1]=_end.y;posAttr[v+2]=_end.z;aDir[v]=_tangent.x;aDir[v+1]=_tangent.y;aDir[v+2]=_tangent.z;aSide[pointCursor]=0;aRandom[a]=r0;aRandom[a+1]=r1;aUV[u]=quadUVCorners[q*2];aUV[u+1]=quadUVCorners[q*2+1];aUV[u+2]=layerFactor;aAdvect[pointCursor]=config.noiseCurve(0);aTip[pointCursor]=255;aSimCell[sc]=tuvX;aSimCell[sc+1]=tuvY;pointCursor++;}indices[indexCursor++]=quadVertBase+0;indices[indexCursor++]=quadVertBase+2;indices[indexCursor++]=quadVertBase+1;indices[indexCursor++]=quadVertBase+2;indices[indexCursor++]=quadVertBase+3;indices[indexCursor++]=quadVertBase+1;}}for(let si=0;si<numStrands;si++)writeStrand(si);// Data texture — simSize × dataAtlasHeight, NearestFilter mandatory\nconst dataTex=new THREE.DataTexture(dataTexData,simSize,dataAtlasHeight,THREE.RGBAFormat,THREE.FloatType);dataTex.minFilter=THREE.NearestFilter;dataTex.magFilter=THREE.NearestFilter;dataTex.needsUpdate=true;// --- Geometry ---\nconst geometry=new THREE.BufferGeometry;geometry.setAttribute(\"position\",new THREE.BufferAttribute(posAttr,3));geometry.setAttribute(\"aDir\",new THREE.BufferAttribute(aDir,3));geometry.setAttribute(\"aSide\",new THREE.BufferAttribute(aSide,1,true));geometry.setAttribute(\"aRandom\",new THREE.BufferAttribute(aRandom,2));geometry.setAttribute(\"aUV\",new THREE.BufferAttribute(aUV,3));geometry.setAttribute(\"aTip\",new THREE.BufferAttribute(aTip,1,true));geometry.setAttribute(\"aAdvect\",new THREE.BufferAttribute(aAdvect,1));geometry.setAttribute(\"aSimCell\",new THREE.BufferAttribute(aSimCell,2));geometry.setIndex(new THREE.BufferAttribute(indices,1));// Sim render targets — simSize × simAtlasHeight\n// section 0: live position (rgb) + opacity (a)\n// section 1: live velocity (rgb) + highlight (a)\nlet rtRead=new THREE.WebGLRenderTarget(simSize,simAtlasHeight,{type:THREE.HalfFloatType,format:THREE.RGBAFormat,minFilter:THREE.NearestFilter,magFilter:THREE.NearestFilter});let rtWrite=rtRead.clone();// --- Shared sim-pass scene objects ---\nconst simCamera=new THREE.OrthographicCamera(-1,1,1,-1,0,1);const simGeo=new THREE.PlaneGeometry(2,2);// -----------------------------------------------------------------\n// Seed pass — initialize both render targets before the first tick.\n// Position section gets the shared extrude-origin with opacity 0.\n// Velocity section gets zero velocity and zero highlight.\n// Runs once; avoids a garbage/black first frame.\n//\n// Note: this is also why a lost context must trigger a full rebuild\n// rather than a resume — a restored context comes back with cleared\n// render targets and no seed.\n// -----------------------------------------------------------------\nconst seedMat=new THREE.ShaderMaterial({uniforms:{tData:{value:dataTex},uAtlasPos:{value:ATLAS_POS.clone()},uAtlasVel:{value:ATLAS_VEL.clone()},uDataStart:{value:DATA_START.clone()}},vertexShader:/* glsl */`\n                varying vec2 vUv;\n                void main() {\n                    vUv = uv;\n                    gl_Position = vec4(position, 1.0);\n                }\n            `,fragmentShader:/* glsl */`\n                uniform sampler2D tData;\n                uniform vec4 uAtlasPos;\n                uniform vec4 uAtlasVel;\n                uniform vec4 uDataStart;\n                varying vec2 vUv;\n\n                vec2 atlasUV(vec2 cellUv, vec4 region) {\n                    return cellUv * region.xy + region.zw;\n                }\n                vec2 cellUVfromAtlas(vec2 atlasUv, vec4 region) {\n                    return (atlasUv - region.zw) / region.xy;\n                }\n\n                void main() {\n                    bool isVelocity = vUv.y >= uAtlasVel.w;\n                    if (isVelocity) {\n                        gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);\n                        return;\n                    }\n                    vec2 cellUv = cellUVfromAtlas(vUv, uAtlasPos);\n                    vec3 startPos = texture2D(tData, atlasUV(cellUv, uDataStart)).rgb;\n                    gl_FragColor = vec4(startPos, 0.0);\n                }\n            `});const seedScene=new THREE.Scene;seedScene.add(new THREE.Mesh(simGeo,seedMat));renderer.setRenderTarget(rtRead);renderer.render(seedScene,simCamera);renderer.setRenderTarget(rtWrite);renderer.render(seedScene,simCamera);renderer.setRenderTarget(null);seedScene.clear();seedMat.dispose();// --- Sim scene ---\nconst simScene=new THREE.Scene;const simMat=new THREE.ShaderMaterial({uniforms:{tPrev:{value:rtRead.texture},tData:{value:dataTex},uMouse:{value:new THREE.Vector2(0,0)},uDelta:{value:0},uRadius:{value:simRadiusS.get()},uStrength:{value:simStrengthS.get()},uSpring:{value:simSpringS.get()},uDamping:{value:simDampingS.get()},uMaxVelocity:{value:simMaxVelocityS.get()},uHighlightRadius:{value:highlightRadiusS.get()},uHighlightSpeed:{value:highlightSpeedS.get()},uOpacitySpeed:{value:opacitySpeedS.get()},uElapsed:{value:0},uMaxDelay:{value:maxDelayS.get()},uAtlasPos:{value:ATLAS_POS.clone()},uAtlasVel:{value:ATLAS_VEL.clone()},uDataTarget:{value:DATA_TARGET.clone()},uDataStart:{value:DATA_START.clone()},uDataHighlightRef:{value:DATA_HIGHLIGHT_REF.clone()}},vertexShader:/* glsl */`\n                varying vec2 vUv;\n                void main() {\n                    vUv = uv;\n                    gl_Position = vec4(position, 1.0);\n                }\n            `,fragmentShader:/* glsl */`\n                uniform sampler2D tPrev;\n                uniform sampler2D tData;\n                uniform vec2  uMouse;\n                uniform float uDelta;\n                uniform float uRadius;\n                uniform float uStrength;\n                uniform float uSpring;\n                uniform float uDamping;\n                uniform float uMaxVelocity;\n                uniform float uHighlightRadius;\n                uniform float uHighlightSpeed;\n                uniform float uOpacitySpeed;\n                uniform float uElapsed;\n                uniform float uMaxDelay;\n                uniform vec4  uAtlasPos;\n                uniform vec4  uAtlasVel;\n                uniform vec4  uDataTarget;\n                uniform vec4  uDataStart;\n                uniform vec4  uDataHighlightRef;\n\n                // How long a strand takes to ramp from inactive to fully\n                // active once its stagger delay has elapsed. Kept as a fixed\n                // constant rather than a control — it's a smoothing detail,\n                // not a creative parameter.\n                const float ACTIVATE_EASE = 0.35;\n\n                // Squared-magnitude ceiling for sanity checks. The render\n                // targets are half-float, which saturates at 65504 — well\n                // below this — so anything approaching it is already a\n                // runaway, and everything in this scene lives near unit scale.\n                const float SANE_SQ = 1.0e8;\n\n                // Largest explicit-Euler spring impulse per step. Beyond ~2.0\n                // the integrator overshoots and diverges. At 60fps with the\n                // default uSpring this never clamps; it only engages on long\n                // frames or extreme stiffness.\n                const float MAX_SPRING_STEP = 2.0;\n\n                varying vec2 vUv;\n\n                vec2 atlasUV(vec2 cellUv, vec4 region) {\n                    return cellUv * region.xy + region.zw;\n                }\n\n                vec2 cellUVfromAtlas(vec2 atlasUv, vec4 region) {\n                    return (atlasUv - region.zw) / region.xy;\n                }\n\n                void main() {\n                    bool isVelocity = vUv.y >= uAtlasVel.w;\n\n                    vec2 cellUv = isVelocity\n                        ? cellUVfromAtlas(vUv, uAtlasVel)\n                        : cellUVfromAtlas(vUv, uAtlasPos);\n\n                    // Read sim state\n                    vec4 posData  = texture2D(tPrev, atlasUV(cellUv, uAtlasPos));\n                    vec3 pos      = posData.rgb;\n                    float opacity = posData.a;\n\n                    vec4 velData    = texture2D(tPrev, atlasUV(cellUv, uAtlasVel));\n                    vec3 vel        = velData.rgb;\n                    float highlight = velData.a;\n\n                    // Read static targets from the data texture\n                    vec3 targetPos    = texture2D(tData, atlasUV(cellUv, uDataTarget)).rgb;\n                    vec3 highlightRef = texture2D(tData, atlasUV(cellUv, uDataHighlightRef)).rgb;\n                    float rStagger    = texture2D(tData, atlasUV(cellUv, uDataStart)).a;\n\n                    // --- Sanitize incoming state ---\n                    // A single NaN or Inf entering a ping-pong buffer never\n                    // leaves it: the next frame reads it back, propagates it,\n                    // and every subsequent frame is poisoned. Under additive\n                    // blending with depth testing off, that reads on screen as\n                    // a solid white canvas with no error and no context loss.\n                    // The NOT-less-than form below is NaN-safe: it is true for\n                    // NaN, where a greater-than test would be false.\n                    if (!(dot(pos, pos) < SANE_SQ)) {\n                        pos = targetPos;\n                        vel = vec3(0.0);\n                    }\n                    if (!(dot(vel, vel) < SANE_SQ)) {\n                        vel = vec3(0.0);\n                    }\n                    if (!(opacity >= 0.0))   opacity = 0.0;\n                    if (!(highlight >= 0.0)) highlight = 0.0;\n\n                    // --- Stagger activation ---\n                    // Each strand waits rStagger * uMaxDelay seconds, then\n                    // ramps smoothly to fully active over ACTIVATE_EASE seconds.\n                    // Gates the spring pull and the opacity target below so an\n                    // inactive strand stays parked at the launch point, invisible.\n                    float strandDelay = rStagger * uMaxDelay;\n                    float activeT = clamp((uElapsed - strandDelay) / ACTIVATE_EASE, 0.0, 1.0);\n\n                    // --- Repulsion physics — mouse pushes the live position around ---\n                    vec2 toCell   = pos.xy - uMouse;\n                    float dist    = length(toCell);\n                    float repulse = 1.0 - smoothstep(0.0, uRadius, dist);\n                    vec2 repelDir = dist > 0.0001 ? toCell / dist : vec2(0.0, 1.0);\n                    vel.xy       += repelDir * repulse * uStrength * uDelta;\n\n                    float speed = length(vel);\n                    if (speed > uMaxVelocity) vel = vel / speed * uMaxVelocity;\n\n                    // --- Spring pulling the live position toward its target ---\n                    // Gated by activeT: an inactive strand feels no pull yet,\n                    // so it stays parked at the seeded launch point (velocity\n                    // still damps down from any residual mouse repulsion).\n                    // The impulse is clamped so a long frame (or a very stiff\n                    // uSpring) can't overshoot into exponential divergence.\n                    float springStep = min(uSpring * uDelta, MAX_SPRING_STEP);\n                    vel -= (pos - targetPos) * springStep * activeT;\n\n                    // Exponential damping. The naive form (1.0 - uDamping * uDelta)\n                    // goes negative once uDamping * uDelta exceeds 1 — reachable at\n                    // high damping on a slow frame — which flips the velocity sign\n                    // and amplifies it every step until it overflows to Inf.\n                    // exp(-x) matches it to first order and is stable for all inputs.\n                    vel *= exp(-uDamping * uDelta);\n\n                    // --- Integrate position + ease opacity toward its (gated) target ---\n                    pos     += vel * uDelta;\n                    opacity += (activeT - opacity) * clamp(uOpacitySpeed * uDelta, 0.0, 1.0);\n                    opacity  = clamp(opacity, 0.0, 1.0);\n\n                    // --- Highlight ---\n                    // Distance from mouse to this strand's reference point.\n                    // All cells in the strand share the same reference point so\n                    // the highlight value is identical for the whole strand.\n                    float tipDist = length(uMouse - highlightRef.xy);\n                    float target  = 1.0 - smoothstep(0.0, uHighlightRadius, tipDist);\n\n                    // Smooth lerp toward target — rises fast when mouse approaches,\n                    // fades naturally when mouse moves away.\n                    highlight = mix(highlight, target, clamp(uHighlightSpeed * uDelta, 0.0, 1.0));\n                    highlight = clamp(highlight, 0.0, 1.0);\n\n                    gl_FragColor = isVelocity\n                        ? vec4(vel, highlight)\n                        : vec4(pos, opacity);\n                }\n            `});simScene.add(new THREE.Mesh(simGeo,simMat));// --- Main material ---\nconst material=new THREE.ShaderMaterial({uniforms:{uTime:{value:0},uDirection:{value:new THREE.Vector3().copy(config.extrudeOffset).normalize()},uNoiseStrength:{value:noiseStrengthS.get()},uNoiseScale:{value:noiseScaleS.get()},uRandomOffset:{value:config.randomOffset},uTubeRadius:{value:tubeRadius},uTipRadius:{value:tipRadiusS.get()},uTipTexture:{value:tipTextureRef.current},uTipLayers:{value:config.tipLayers},uSizeVariance:{value:sizeVarianceS.get()},uDispersionOffset:{value:dispersionOffsetS.get()},uDispersionBand:{value:dispersionBandS.get()},uDispersion:{value:dispersionS.get()},uStrandOpacity:{value:strandOpacityS.get()},uHighlightStrength:{value:highlightStrengthS.get()},uPulseStrength:{value:pulseStrengthS.get()},uPulseSpeedBase:{value:pulseSpeedBaseS.get()},uPulseSpeedRandomMax:{value:pulseSpeedRandomMaxS.get()},tSim:{value:rtRead.texture},uAtlasPos:{value:ATLAS_POS.clone()},uAtlasVel:{value:ATLAS_VEL.clone()}},vertexShader:/* glsl */`\n#define OCTAVES 1\n\nvec3 rand(in vec3 p) {\n    p = fract(p * vec3(443.897, 441.423, 437.195));\n    p += dot(p, p.yxz + 19.19);\n    return fract((p.xxy + p.yxx) * p.zyx) * 2.0 - 1.0;\n}\n\nvec3 quintic(const in vec3 t) { return t*t*t*(t*(t*6.0-15.0)+10.0); }\n\nfloat perlin(in vec3 xyz) {\n    vec3 gridUV = fract(xyz);\n    vec3 gridID = floor(xyz);\n    vec3 c000=vec3(0,0,0); vec3 c100=vec3(1,0,0);\n    vec3 c010=vec3(0,1,0); vec3 c110=vec3(1,1,0);\n    vec3 c001=vec3(0,0,1); vec3 c101=vec3(1,0,1);\n    vec3 c011=vec3(0,1,1); vec3 c111=vec3(1,1,1);\n    float r000=dot(gridUV-c000,rand(gridID+c000)); float r100=dot(gridUV-c100,rand(gridID+c100));\n    float r010=dot(gridUV-c010,rand(gridID+c010)); float r110=dot(gridUV-c110,rand(gridID+c110));\n    float r001=dot(gridUV-c001,rand(gridID+c001)); float r101=dot(gridUV-c101,rand(gridID+c101));\n    float r011=dot(gridUV-c011,rand(gridID+c011)); float r111=dot(gridUV-c111,rand(gridID+c111));\n    vec3 f=quintic(gridUV);\n    float x0=mix(r000,r100,f.x); float x1=mix(r010,r110,f.x);\n    float x2=mix(r001,r101,f.x); float x3=mix(r011,r111,f.x);\n    float y0=mix(x0,x1,f.y); float y1=mix(x2,x3,f.y);\n    return mix(y0,y1,f.z)*2.0;\n}\n\nfloat fractalBrownian(const in vec3 xyz, const in float ampWeight) {\n    float result=0.0; float amp=1.0; float freq=1.0; float maxAmp=0.0;\n    for(int i=0;i<OCTAVES;i++){\n        result+=amp*perlin(xyz*freq); maxAmp+=amp; amp*=ampWeight; freq*=2.0;\n    }\n    return result/maxAmp;\n}\n\nattribute vec3  aDir;\nattribute float aSide;\nattribute vec2  aRandom;\nattribute vec3  aUV;\nattribute float aTip;\nattribute float aAdvect;\nattribute vec2  aSimCell;\n\nuniform float uTime;\nuniform float uNoiseStrength;\nuniform float uNoiseScale;\nuniform float uTubeRadius;\nuniform float uTipRadius;\nuniform float uSizeVariance;\nuniform float uDispersionOffset;\nuniform vec3  uDirection;\nuniform vec3  uRandomOffset;\nuniform sampler2D tSim;\nuniform vec4  uAtlasPos;\nuniform vec4  uAtlasVel;\n\nvarying vec2  vRandom;\nvarying vec3  vUV;\nvarying float vTip;\nvarying float vAdvect;\nvarying float vHighlight;\nvarying float vOpacity;\n\nvec2 atlasUV(vec2 cellUv, vec4 region) {\n    return cellUv * region.xy + region.zw;\n}\n\nvoid main() {\n    vRandom = aRandom;\n    vUV     = aUV;\n    vTip    = aTip;\n    vAdvect = aAdvect;\n\n    // Sample live position (rgb) + opacity (a) from the position section\n    vec4 posData  = texture2D(tSim, atlasUV(aSimCell, uAtlasPos));\n    vec3 worldPos = posData.rgb;\n    vOpacity      = posData.a;\n\n    // Sample highlight (a) from the velocity section\n    vHighlight = texture2D(tSim, atlasUV(aSimCell, uAtlasVel)).a;\n\n    // Second line of defence against a poisoned sim buffer. The sim shader\n    // self-heals, but a bad value would still be visible for the one frame\n    // before it does — and a non-finite gl_Position produces undefined,\n    // often screen-filling, geometry. Collapse the vertex instead.\n    if (!(dot(worldPos, worldPos) < 1.0e8)) {\n        gl_Position = vec4(0.0, 0.0, -2.0, 1.0);\n        vOpacity = 0.0;\n        return;\n    }\n    if (!(vOpacity >= 0.0))   vOpacity = 0.0;\n    if (!(vHighlight >= 0.0)) vHighlight = 0.0;\n\n    vec3 coords = worldPos * uNoiseScale\n        + uTime * -0.15 * uDirection\n        + aRandom.yxy * uRandomOffset;\n\n    float dx = fractalBrownian(coords, 0.5);\n    float dy = fractalBrownian(coords + vec3(3.963, 1.053, 5.263), 0.5);\n\n    vec3 noiseDisp    = vec3(dx, dy, dx * dy) * aAdvect * uNoiseStrength;\n    vec3 displacedPos = worldPos + noiseDisp;\n\n    if (aTip > 0.5) {\n        vec4 centerView = modelViewMatrix * vec4(displacedPos, 1.0);\n        float sv  = mix(1.0 - uSizeVariance, 1.0, aRandom.y);\n        float ox  = (aUV.x - 0.5) * 2.0 * uTipRadius * sv;\n        float oy  = (aUV.y - 0.5) * -2.0 * uTipRadius * sv;\n        centerView.xy += vec2(ox, oy);\n        float cycle = sin(uTime + aRandom.x * 6.28318) * 0.5 + 0.5;\n        centerView.z += aUV.z * uDispersionOffset * cycle;\n        gl_Position = projectionMatrix * centerView;\n    } else {\n        float sideIndex = round(aSide * 255.0);\n        float angle     = sideIndex * (2.0 * 3.14159265359 / 3.0);\n        vec3 tangent    = aDir;\n        vec3 worldUp    = abs(tangent.y) < 0.99 ? vec3(0,1,0) : vec3(1,0,0);\n        vec3 right      = normalize(cross(tangent, worldUp));\n        vec3 up         = normalize(cross(right, tangent));\n        vec3 radial     = cos(angle) * right + sin(angle) * up;\n        vec3 extruded   = displacedPos + radial * uTubeRadius;\n        gl_Position     = projectionMatrix * modelViewMatrix * vec4(extruded, 1.0);\n    }\n}\n`,fragmentShader:/* glsl */`\nuniform float uTime;\nuniform float uTipLayers;\nuniform float uDispersionBand;\nuniform float uDispersion;\nuniform float uStrandOpacity;\nuniform float uHighlightStrength;\nuniform float uPulseStrength;\nuniform float uPulseSpeedBase;\nuniform float uPulseSpeedRandomMax;\nuniform sampler2D uTipTexture;\n\nvarying vec2  vRandom;\nvarying vec3  vUV;\nvarying float vTip;\nvarying float vHighlight;\nvarying float vOpacity;\n\nvoid main() {\n    vec3 color = vec3(0.0);\n\n    float pulseSpeed = uPulseSpeedBase + vRandom.x * uPulseSpeedRandomMax;\n    float pulsePos   = fract(uTime * pulseSpeed);\n    float pulseDist  = abs(vUV.x * 0.2 - pulsePos);\n    pulseDist        = min(pulseDist, 1.0 - pulseDist);\n    float pulse      = exp(-pulseDist * pulseDist * mix(5000.0, 10000.0, vRandom.y)) * vUV.x * uPulseStrength;\n\n    if (vTip > 0.5) {\n        vec2 centered = vUV.xy - vec2(0.5);\n        if (length(centered) > 0.5) discard;\n        float uvMin = 0.5 - uDispersionBand * 0.5;\n        float uvMax = 0.5 + uDispersionBand * 0.5;\n        float texU  = mix(uvMin, uvMax, vUV.z);\n        float texV  = uDispersion * vRandom.x;\n        color = texture2D(uTipTexture, vec2(texU, texV)).xyz;\n        // color += vHighlight * color;\n        float a = clamp((vRandom.y / uTipLayers) * vOpacity, 0.0, 1.0);\n        gl_FragColor = vec4(clamp(color, 0.0, 1.0) * a, a);    } else {\n        vec3 disperse = texture2D(uTipTexture, vec2(vUV.x * 2.0 * 1.0, uDispersion)).xyz;\n        color = vec3(uStrandOpacity);\n        color += pulse * mix(vec3(1.0, 0.85, 0.7), disperse, vRandom.y);\n        color += vHighlight * disperse * vUV.x * vUV.x * uHighlightStrength * 0.5;\n        float a = clamp((vRandom.x * vUV.x * vUV.x + pulse * 0.1\n                         + vHighlight * vUV.x * vUV.x) * vOpacity, 0.0, 1.0);\n        gl_FragColor = vec4(clamp(color, 0.0, 1.0) * a, a);\n    }\n\n    // gl_FragColor = vec4(vec3(vUV.x), 1.0);\n}\n`,transparent:true,depthTest:false,blending:THREE.CustomBlending,blendEquation:THREE.AddEquation,blendSrc:THREE.OneFactor,blendDst:THREE.OneFactor,blendEquationAlpha:THREE.AddEquation,blendSrcAlpha:THREE.OneFactor,blendDstAlpha:THREE.OneFactor});materialRef.current=material;const pointsMesh=new THREE.Mesh(geometry,material);pointsMesh.rotateX(Math.PI);scene.add(pointsMesh);// The sim runs in the mesh's local space, not world space — the X\n// rotation above flips Y and Z. Cache the inverse of the mesh's world\n// matrix so the projected cursor can be converted into that same\n// space. Computed once because this transform never changes; if the\n// mesh ever becomes animated, this needs recomputing per frame (or\n// swap it for pointsMesh.worldToLocal).\npointsMesh.updateWorldMatrix(true,false);const meshWorldInverse=pointsMesh.matrixWorld.clone().invert();let isPageVisible=document.visibilityState===\"visible\";let isIntersecting=false;const maybeResume=()=>{// Never restart the loop once we've handed over to the fallback.\nif(session.halted()){renderer.setAnimationLoop(null);return;}console.log(\"[Hero] resume?\",{isPageVisible,isIntersecting});if(isPageVisible&&isIntersecting)renderer.setAnimationLoop(tick);else renderer.setAnimationLoop(null);};const handleVisibility=()=>{isPageVisible=document.visibilityState===\"visible\";maybeResume();};document.addEventListener(\"visibilitychange\",handleVisibility);// Screen-space cursor, in CSS pixels relative to the canvas.\n// MOUSE_AWAY parks it far outside the frustum when the pointer leaves.\nconst MOUSE_AWAY=-9999;const mouseScreen=new THREE.Vector2(MOUSE_AWAY,MOUSE_AWAY);// Scratch objects for the cursor projection, hoisted so the tick\n// allocates nothing.\nconst _unprojected=new THREE.Vector3;const _rayOrigin=new THREE.Vector3;const _rayDir=new THREE.Vector3;const _planeNormal=new THREE.Vector3;const _mouseHit=new THREE.Vector3;const onMouseMove=e=>{const rect=el.getBoundingClientRect();mouseScreen.set(e.clientX-rect.left,e.clientY-rect.top);};const onMouseLeave=e=>{mouseScreen.set(MOUSE_AWAY,MOUSE_AWAY);};el.addEventListener(\"mousemove\",onMouseMove);el.addEventListener(\"mouseleave\",onMouseLeave);let previousTime=0;let elapsed=0;function tick(time){// Also runs the context-loss watchdog: Three.js turns render()\n// into a silent no-op once its internal context-lost flag is set,\n// so a loss whose event we missed looks exactly like a frozen\n// canvas.\nif(session.shouldStop())return;const t=time*.001;const delta=Math.min(t-previousTime,.1);previousTime=t;elapsed+=delta;// --- Camera: springed every frame instead of via refs/effects ---\ncamera.fov=cameraFovS.get();camera.updateProjectionMatrix();camera.position.set(cameraPositionXS.get(),cameraPositionYS.get(),cameraPositionZS.get());cameraParent.rotation.x=cameraRotationXS.get()*DEG2RAD;cameraParent.rotation.y=cameraRotationYS.get()*DEG2RAD;// The projection below reads camera.matrixWorld directly, and the\n// camera was just moved this frame — without this the cursor would\n// track one frame behind the springs.\ncamera.updateWorldMatrix(true,false);// --- Project the cursor onto a camera-facing plane through the\n// world origin ---\n//\n// Unproject the cursor to get a world-space ray, then solve\n// n · (O + tD) = 0 for t, where n is the camera's forward axis.\n// Both steps read the projection and world matrices directly, so\n// fov, aspect, camera position and cameraParent's rotation are all\n// accounted for without appearing here explicitly. This is why the\n// old halfW/halfH mapping broke under rotation: it assumed the\n// camera looked straight down -Z from a distance of position.z.\nconst W=el.clientWidth;const H=el.clientHeight;if(mouseScreen.x<=MOUSE_AWAY){simMat.uniforms.uMouse.value.set(MOUSE_AWAY,MOUSE_AWAY);}else{const ndcX=mouseScreen.x/W*2-1;const ndcY=-(mouseScreen.y/H*2-1);// Clip -> view -> world. The z of 0.5 is arbitrary: any point\n// along the ray gives the same direction once normalized.\n// applyMatrix4 performs the perspective divide.\n_unprojected.set(ndcX,ndcY,.5).applyMatrix4(camera.projectionMatrixInverse).applyMatrix4(camera.matrixWorld);_rayOrigin.setFromMatrixPosition(camera.matrixWorld);_rayDir.copy(_unprojected).sub(_rayOrigin).normalize();// Plane through the world origin, normal = camera forward.\n// The denominator cannot reach zero: the normal is the view\n// axis and the ray lies inside the frustum, so the two are\n// never more than half the fov apart.\ncamera.getWorldDirection(_planeNormal);const t=-_planeNormal.dot(_rayOrigin)/_planeNormal.dot(_rayDir);// Into the mesh's local space, which is what the sim compares\n// against. Replaces the old manual Y negation.\n_mouseHit.copy(_rayOrigin).addScaledVector(_rayDir,t).applyMatrix4(meshWorldInverse);simMat.uniforms.uMouse.value.set(_mouseHit.x,_mouseHit.y);}simMat.uniforms.tPrev.value=rtRead.texture;simMat.uniforms.uDelta.value=delta;simMat.uniforms.uRadius.value=simRadiusS.get();simMat.uniforms.uStrength.value=simStrengthS.get();simMat.uniforms.uSpring.value=simSpringS.get();simMat.uniforms.uDamping.value=simDampingS.get();simMat.uniforms.uMaxVelocity.value=simMaxVelocityS.get();simMat.uniforms.uHighlightRadius.value=highlightRadiusS.get();simMat.uniforms.uHighlightSpeed.value=highlightSpeedS.get();simMat.uniforms.uOpacitySpeed.value=opacitySpeedS.get();simMat.uniforms.uElapsed.value=elapsed;simMat.uniforms.uMaxDelay.value=maxDelayS.get();renderer.setRenderTarget(rtWrite);renderer.render(simScene,simCamera);renderer.setRenderTarget(null);const tmp=rtRead;rtRead=rtWrite;rtWrite=tmp;material.uniforms.tSim.value=rtRead.texture;material.uniforms.uTime.value=t;material.uniforms.uNoiseStrength.value=noiseStrengthS.get();material.uniforms.uNoiseScale.value=noiseScaleS.get();material.uniforms.uTipRadius.value=tipRadiusS.get();material.uniforms.uSizeVariance.value=sizeVarianceS.get();material.uniforms.uDispersionOffset.value=dispersionOffsetS.get();material.uniforms.uDispersionBand.value=dispersionBandS.get();material.uniforms.uDispersion.value=dispersionS.get();material.uniforms.uStrandOpacity.value=strandOpacityS.get();material.uniforms.uHighlightStrength.value=highlightStrengthS.get();material.uniforms.uPulseStrength.value=pulseStrengthS.get();material.uniforms.uPulseSpeedBase.value=pulseSpeedBaseS.get();material.uniforms.uPulseSpeedRandomMax.value=pulseSpeedRandomMaxS.get();renderer.render(scene,camera);}const ro=new ResizeObserver(()=>{camera.aspect=el.clientWidth/el.clientHeight;camera.updateProjectionMatrix();renderer.setSize(el.clientWidth,el.clientHeight);});ro.observe(el);const io=new IntersectionObserver(([entry])=>{isIntersecting=entry.isIntersecting;maybeResume();},{threshold:0});io.observe(el);// Setup completed without tripping any detection layer — clear the\n// fallback. On a recovery rebuild this is what puts the canvas back.\nsession.ready();return()=>{session.end();gpu.detach();el.removeEventListener(\"mousemove\",onMouseMove);el.removeEventListener(\"mouseleave\",onMouseLeave);renderer.setAnimationLoop(null);ro.disconnect();io.disconnect();materialRef.current=null;document.removeEventListener(\"visibilitychange\",handleVisibility);scene.clear();geometry.dispose();material.dispose();dataTex.dispose();rtRead.dispose();rtWrite.dispose();simGeo.dispose();simMat.dispose();renderer.dispose();if(el.contains(domElement))el.removeChild(domElement);setTimeout(()=>renderer.forceContextLoss(),1);};},[positions,scale,extrudeScale,extrudeOffset.x,extrudeOffset.y,extrudeOffset.z,randomOffset.x,randomOffset.y,randomOffset.z,steps,tubeRadius,tipLayers,gpuEpoch]);useEffect(()=>{if(!tipTexture){tipTextureRef.current?.dispose();tipTextureRef.current=null;if(materialRef.current)materialRef.current.uniforms.uTipTexture.value=null;return;}return loadTexture(loaderRef.current,tipTexture,t=>{tipTextureRef.current?.dispose();tipTextureRef.current=t;if(materialRef.current)materialRef.current.uniforms.uTipTexture.value=t;});},[tipTexture]);// Show the fallback whenever the WebGL visual isn't rendering — a GPU\n// failure, or no valid points to build strands from.\nreturn /*#__PURE__*/_jsx(WebGLFallbackFrame,{mountRef:mountRef,showFallback:!webglAvailable||!positions,fallbackImage:fallbackImage,fallbackFit:fallbackFit,fallbackAlt:fallbackAlt});}function parseSVGPoints(str,threshold=1){if(!str||!str.trim())return{positions:null,numStrands:0};const values=str.split(\",\").map(Number);if(values.length<2||values.length%2!==0)return{positions:null,numStrands:0};if(values.some(isNaN))return{positions:null,numStrands:0};const out=[];for(let i=0;i<values.length/2;i++){if(Math.random()>threshold)continue;out.push(values[i*2],values[i*2+1],0);}if(out.length===0)return{positions:null,numStrands:0};return{positions:out,numStrands:out.length/3};}function customCurve(t){return t*t*(3-2*t)+.05;}function loadTexture(loader,url,onLoad){let texture=null;loader.load(url,loaded=>{loaded.wrapS=THREE.RepeatWrapping;loaded.wrapT=THREE.RepeatWrapping;loaded.minFilter=THREE.LinearMipmapLinearFilter;loaded.magFilter=THREE.LinearFilter;texture=loaded;onLoad(loaded);});return()=>{texture?.dispose();texture=null;};}addPropertyControls(HeroThreeJSV2,{// --- Geometry group: rebuilds the mesh ---\npoints:{title:\"Points\",type:ControlType.String,defaultValue:\"\",description:\"Comma-separated x,y point pairs defining strand root positions\"},threshold:{title:\"Threshold\",type:ControlType.Number,defaultValue:.4,min:0,max:1,step:.01,description:\"Fraction of points kept when building strands (lower = fewer strands)\"},scale:{title:\"Scale\",type:ControlType.Number,defaultValue:.9,min:0,max:2,step:.01,description:\"Overall size multiplier for strand positions\"},extrudeScale:{title:\"Extrude Scale\",type:ControlType.Number,defaultValue:.95,min:0,max:2,step:.01,description:\"How much strand tips shrink/grow toward the extrude offset. Also defines the shared launch point every strand springs out from.\"},extrudeOffset:{title:\"Extrude Offset\",type:ControlType.Object,description:\"Direction and distance strands extrude toward. Also defines the shared launch point every strand springs out from.\",controls:{x:{type:ControlType.Number,defaultValue:0,min:-4,max:4,step:.05},y:{type:ControlType.Number,defaultValue:.1,min:-4,max:4,step:.05},z:{type:ControlType.Number,defaultValue:.4,min:-4,max:4,step:.05}}},randomOffset:{title:\"Random Offset\",type:ControlType.Object,description:\"Per-strand random seed offset used to vary noise\",controls:{x:{type:ControlType.Number,defaultValue:.4,min:-1,max:1,step:.05},y:{type:ControlType.Number,defaultValue:.2,min:-1,max:1,step:.05},z:{type:ControlType.Number,defaultValue:.2,min:-1,max:1,step:.05}}},steps:{title:\"Steps\",type:ControlType.Number,defaultValue:32,min:1,max:32,step:1,description:\"Number of segments (rings) per strand tube\"},tipLayers:{title:\"Tip Layers\",type:ControlType.Number,defaultValue:8,min:1,max:16,step:1,description:\"Number of stacked quads used to build each strand tip \\n --------- \\n The following properties can be animated\"},// --- Spring settings, shared by every animatable property below ---\nspringSettings:{title:\"Spring Settings\",type:ControlType.Object,description:\"Duration/bounce used by every animatable property's spring\",controls:{duration:{title:\"Duration\",type:ControlType.Number,defaultValue:3e3,min:0,max:2e4,step:10},bounce:{title:\"Bounce\",type:ControlType.Number,defaultValue:.2,min:0,max:1,step:.01}}},// --- Animatable group: springed, does not rebuild the mesh ---\ntubeRadius:{title:\"Tube Radius\",type:ControlType.Number,defaultValue:.0032,min:1e-4,max:.1,step:1e-4,description:\"Thickness of each strand tube\"},tipRadius:{title:\"Tip Radius\",type:ControlType.Number,defaultValue:.0035,min:1e-4,max:.1,step:1e-4,description:\"Size of the glowing tip quad at each strand's root.\"},noiseStrength:{title:\"Noise Strength\",type:ControlType.Number,defaultValue:.15,min:0,max:10,step:.01,description:\"Amount of turbulent displacement applied along strands\"},noiseScale:{title:\"Noise Scale\",type:ControlType.Number,defaultValue:5,min:.1,max:20,step:.1,description:\"Frequency of the turbulence noise field\"},cameraFov:{title:\"Camera FOV\",type:ControlType.Number,defaultValue:36,min:10,max:120,step:1,description:\"Camera field of view, in degrees\"},cameraPosition:{title:\"Camera Position\",type:ControlType.Object,description:\"Camera position offset (x, y, z)\",controls:{x:{type:ControlType.Number,defaultValue:0,min:-10,max:10,step:.05},y:{type:ControlType.Number,defaultValue:0,min:-10,max:10,step:.05},z:{type:ControlType.Number,defaultValue:1.8,min:-10,max:10,step:.05}}},cameraRotationX:{title:\"Camera Rotation X\",type:ControlType.Number,defaultValue:2,min:-180,max:180,step:.5,description:\"Camera parent rotation around the X axis, in degrees\"},cameraRotationY:{title:\"Camera Rotation Y\",type:ControlType.Number,defaultValue:0,min:-180,max:180,step:.5,description:\"Camera parent rotation around the Y axis, in degrees\"},sizeVariance:{title:\"Size Variance\",type:ControlType.Number,defaultValue:.5,min:0,max:1,step:.01,description:\"Random variation in tip quad size across strands\"},dispersionOffset:{title:\"Dispersion Offset\",type:ControlType.Number,defaultValue:.05,min:0,max:.5,step:.001,description:\"Depth offset applied to tips for a color-fringing effect\"},dispersionBand:{title:\"Dispersion Band\",type:ControlType.Number,defaultValue:.9,min:0,max:1,step:.01,description:\"Width of the texture band sampled for tip color dispersion\"},dispersion:{title:\"Dispersion\",type:ControlType.Number,defaultValue:.8,min:0,max:1,step:.01,description:\"Vertical texture coordinate used for dispersion color sampling\"},simRadius:{title:\"Sim Radius\",type:ControlType.Number,defaultValue:.15,min:.01,max:1,step:.01,description:\"Radius of the mouse repulsion effect\"},simStrength:{title:\"Sim Strength\",type:ControlType.Number,defaultValue:8,min:0,max:10,step:.05,description:\"Force strength of the mouse repulsion effect\"},simSpring:{title:\"Sim Spring\",type:ControlType.Number,defaultValue:60,min:.1,max:100,step:.1,description:\"Spring stiffness pulling each vertex from the shared launch point toward its final position (and back after mouse repulsion)\"},simDamping:{title:\"Sim Damping\",type:ControlType.Number,defaultValue:6,min:.1,max:30,step:.1,description:\"Damping applied to strand velocity each frame\"},simMaxVelocity:{title:\"Sim Max Velocity\",type:ControlType.Number,defaultValue:5,min:.1,max:20,step:.1,description:\"Speed cap for strand displacement velocity\"},opacitySpeed:{title:\"Opacity Speed\",type:ControlType.Number,defaultValue:2,min:.1,max:20,step:.1,description:\"How quickly each vertex eases from invisible to fully visible as it springs out from the launch point\"},maxDelay:{title:\"Max Delay\",type:ControlType.Number,defaultValue:1,min:0,max:10,step:.05,description:\"Each strand waits a random amount of time, up to this many seconds, before it starts springing out and fading in — strands with 0 delay start immediately\"},highlightRadius:{title:\"Highlight Radius\",type:ControlType.Number,defaultValue:.3,min:.01,max:1,step:.01,description:\"Radius around the mouse where strand tips light up\"},highlightStrength:{title:\"Highlight Strength\",type:ControlType.Number,defaultValue:2,min:0,max:2,step:.01,description:\"Intensity of the mouse-proximity highlight glow\"},highlightSpeed:{title:\"Highlight Speed\",type:ControlType.Number,defaultValue:10,min:.1,max:20,step:.1,description:\"How quickly the highlight fades in/out as the mouse moves\"},strandOpacity:{title:\"Strand Opacity\",type:ControlType.Number,defaultValue:.25,min:0,max:1,step:.01,description:\"Base opacity of strand tubes\"},pulseStrength:{title:\"Pulse Strength\",type:ControlType.Number,defaultValue:1,min:0,max:2,step:.01,description:\"Intensity of the traveling light pulse along strands\"},pulseSpeedBase:{title:\"Pulse Speed Base\",type:ControlType.Number,defaultValue:.1,min:0,max:1,step:.005,description:\"Baseline speed of the traveling light pulse\"},pulseSpeedRandomMax:{title:\"Pulse Speed Random\",type:ControlType.Number,defaultValue:.1,min:0,max:1,step:.005,description:\"Max random speed variation added per strand to the pulse\"},// --- Resources, not animatable ---\ntipTexture:{title:\"Dispersion Map\",type:ControlType.Image,description:\"Texture sampled for strand tips and color dispersion\"},...fallbackPropertyControls});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeroThreeJSV2\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeroThreeJSV2.map"],"mappings":"+fAIG,SAAwB,EAAc,CACzC,SAAO,YAAU,GAAG,QAAM,EAAE,eAAa,GAAG,gBAAc,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,eAAa,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,QAAM,GAAG,aAAW,MAAM,aAAU,EAAE,aAAU,MACxJ,iBAAe,CAAC,SAAS,IAAI,OAAO,EAAE,EACtC,gBAAc,IAAI,aAAW,IAAI,YAAU,GAAG,iBAAe,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,mBAAgB,EAAE,mBAAgB,EAAE,eAAa,GAAG,mBAAiB,IAAI,kBAAe,GAAG,cAAW,GAAG,aAAU,IAAI,eAAY,EAAE,YAAU,GAAG,aAAW,GAAG,iBAAe,EAAE,eAAa,EAAE,WAAS,GAAG,mBAAgB,IAAI,oBAAkB,GAAG,iBAAe,EAAE,gBAAc,IAAI,gBAAc,GAAG,kBAAe,IAAI,sBAAoB,GAC7Z,aAAW,iBAAc,cAAY,QAAQ,cAAY,IAAI,CAAC,IAAM,GAASA,EAAO,IA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