Doriane Pin seized the advantage from a dramatic opening lap and fended off pressure to deliver the win in Miami Race 1 from sixth on the grid.