He ran a smart campaign. He peeled off layers of voters, and worked the system like a puppeteer. Now the hard part for the country begins.