To invert Logo color to Black on Scroll in Squarespace, you can use this code to Custom CSS box
header#header.shrink img { filter: brightness(0) invert(0); }
Result