Ryan Gosling plays a man stranded on a spaceship in the new film “Project Hail Mary,” opening in theaters on March 20.