Cascade of phase transitions and Dirac revivals in magic-angle graphene