(()=>{ document.querySelectorAll("[data-shore-sand]").forEach(svg=>{ let seed=33; const r=()=>((seed=(seed*1664525+1013904223)>>>0)/4294967296); const grains=Array.from({length:70},()=>``).join(""); svg.setAttribute("viewBox","0 0 1440 1500");svg.setAttribute("preserveAspectRatio","xMidYMin slice"); svg.innerHTML=`${grains}`; }); const io=new IntersectionObserver(es=>es.forEach(e=>{if(e.isIntersecting){e.target.classList.add("bridge--play");io.unobserve(e.target)}}),{threshold:.25}); document.querySelectorAll("[data-bridge]").forEach(s=>io.observe(s)); })();