Pawi ran a spectacular race to take the win in what was only his third Moto3 appearance, counting his 2015 wild card in Aragon.