Shock formation in the Big Bang