How the Higgs potential got its shape