(function initInnovationPagesReveal(global) { function init() { const revealNodes = Array.from(document.querySelectorAll("[data-innovation-reveal]")); if (!revealNodes.length) { return; } const prefersReducedMotion = global.matchMedia && global.matchMedia("(prefers-reduced-motion: reduce)").matches; if (prefersReducedMotion || !("IntersectionObserver" in global)) { revealNodes.forEach((node) => node.classList.add("is-visible")); return; } document.documentElement.classList.add("innovation-motion-ready"); const observer = new IntersectionObserver((entries) => { entries.forEach((entry) => { if (!entry.isIntersecting) { return; } entry.target.classList.add("is-visible"); observer.unobserve(entry.target); }); }, { rootMargin: "0px 0px -10% 0px", threshold: 0.18, }); global.requestAnimationFrame(() => { global.requestAnimationFrame(() => { revealNodes.forEach((node) => observer.observe(node)); }); }); } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", init, { once: true }); return; } init(); })(window);