Color switch in menu depending on sections

Hi guys,

I’m quite blocked on a new project for an interaction. It’s quite simple:
I have an hamburger menu whose color changes when it leaves the first section (from white to black). So when I open and close the menu on first section, everything is good but when I click on any link to go to another section, if I close the menu, it stays white instead of black.

How can I change that?

and the little gif to understand the difference.
Sep-26-2018%2022-02-49

Thanks in advance for your help!


Here is my public share link: Terra Baixa

@vincent @PixelGeek, any ideas?