Lucid dreaming occurs in activated rapid eye movement sleep, not a mixture of sleep and wakefulness.