How to keep the planet’s megacities moving