There are two areas that invoke the "oh come on", one under each moving paltform.
I am not what sure what caused the behaviour you are describing but I do not think the raycast is the reason.
Anyway, at this stage I am going to leave it be and move on to other stuff.
Thank you Cam!