Custom accordion interaction jumps to footer when the accordion is closed

Hi, Webflow community!
Could you please help me figure out how to set up the custom accordion animation for tablet & mobile?
What I’m trying to do is to make the accordion close smoothly on mobile without jumping.
Here’s my screen recording video to demonstrate what’s going on when I open an accordion item, scroll down, and then tap the accordion trigger to close it: WhatsApp Video 2023-02-16 at 8.45.44 PM.mp4 on Vimeo
The closing interaction jumps to the footer. And I’d like it to close the accordion smoothly with the trigger staying at the top of the screen. Is there a way to set it up?

Thanks!


Here is my public share link: https://parallel-design.webflow.io/
Read-only link Webflow - Parallel Design