Election experts attribute close calls and razor-thin victories to the sophistication of modern campaigns.