I had come up with this melodic clean riff and recorded then started messing around with some heavy reverb and delay settings to get this ambient feel. I decided to add some heavy riffs in the middle; this is where the song changes from being in Dm to Em.