Joan Mir claimed his career first World Championship pole position at the Austrian GP ahead of Brad Binder and Enea Bastianini.