Separation for dot-depth two (Logical Methods in Computer Science, 2021)