SPACE: the spectroscopic all-sky cosmic explorer