Pātuhitia tēnei: A unified theory of voting