Katy Perry emerges from the darkness