The chaotic route to train-crash Brexit