Oscar Piastri set a spectacular 1:40.878 in the dying embers of qualifying to secure his fourth consecutive pole position.