function initCardReveal(){
var cards=document.querySelectorAll('.cs-result-card');
if(!cards.length) return;
if('IntersectionObserver' in window){
var observer=new IntersectionObserver(function (entries){
entries.forEach(function (entry){
if(entry.isIntersecting){
entry.target.classList.add('cs-is-visible');
observer.unobserve(entry.target);
}});
}, { threshold: 0.2 });
cards.forEach(function (card){
observer.observe(card);
});
}else{
cards.forEach(function (card){
card.classList.add('cs-is-visible');
});
}}
document.addEventListener('DOMContentLoaded', function (){
initCardReveal();
});