I think I've solved it but won't know until tomorrow.

Will update because it's a doozy if I'm right lol.