An "army" of enthusiastic campaigners, willing and wealthy donors, a slow tide of demographic transformation and a loathing for President Trump. All were factors.