const burger=document.querySelector('.burger'),menu=document.querySelector('.menu');if(burger)burger.onclick=()=>menu.classList.toggle('open');document.querySelectorAll('[data-filter]').forEach(b=>b.onclick=()=>{document.querySelectorAll('[data-filter]').forEach(x=>x.classList.remove('active'));b.classList.add('active');const f=b.dataset.filter;document.querySelectorAll('.project').forEach(p=>p.style.display=(f==='all'||p.dataset.type===f)?'block':'none')});
