Charles Leclerc claimed pole position in a hectic Mexico City qualifying, with Lando Norris failing to make it out of Q1.