There’s hypnagogia and hypnopompia. Both are liminal states between conscious and unconscious processing.
Hypnagogia is the transitional phase as you’re falling asleep, while Hypnopompia is when you are waking up.
Highly highly recommend trying out liminal dreaming.
It is a great place whence ideas may be harvested.