(function () { var reveals = document.querySelectorAll('.reveal'); if ('IntersectionObserver' in window) { var observer = new IntersectionObserver(function (entries) { entries.forEach(function (entry) { if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); } }); }, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' }); reveals.forEach(function (el, i) { if (el.closest('.cards') || el.closest('.faq')) { el.style.setProperty('--delay', (i % 4) * 0.08 + 's'); } observer.observe(el); }); } else { reveals.forEach(function (el) { el.classList.add('is-visible'); }); } document.querySelectorAll('.card').forEach(function (card) { card.addEventListener('pointermove', function (e) { var rect = card.getBoundingClientRect(); card.style.setProperty('--mx', (e.clientX - rect.left) + 'px'); card.style.setProperty('--my', (e.clientY - rect.top) + 'px'); }); }); })();