A transport approach to the cutoff phenomenon