It reflects a remarkable and hard-to-explain turnaround for a campaign that appeared all but dead less than a month ago.