Detecting when two elements overlap using only CSS anchor positioning and scroll-driven animations.