The two phases of the Cambrian Explosion