The geometry of spontaneous symmetry breaking