Geometrodynamics of spinning light