These days, I don't think there's clear lines of demarcation between songwriting, composing, arranging, and producing.

Sometimes I start with the very far right end of that scale with a 'sound' and energy that I know I want; and get right at the effect chains I will use, then go looking for the right instrumentation, then think of some chords, and eventually get to lyrics if I feel a story coming in the process.

Other times, I will start at the left end and have a pile of lyrics that I sift into verses and a bridge and chorus and I'll write out all of the lyrics and then the melody comes to life.

I consider all of it to be songwriting.