Project Hail Mary presented an emotionally difficult acting challenge for Ryan Gosling, but a chance meeting with Julia Roberts led to the answer.