The point at which offside is judged is when the foot, head or ither body part FIRST TOUCHES the ball not when it LEAVES the foot, head or body part. PGMOL and pundits get this wrong all the time but AI is close to working this out for FIFA - you can calculate the point at which contact occurs 99% of the time as ball accelerarion/deceleration is imparted by contact.
Offside for arms doesn't count and is measure at the bottom of the armpit (which is now much better).
VAR was spot on for both our goal decisions last night.