Ninth-wicket stand of 169 followed by top-order strikes to give hosts a window of opportunity