The two axial principles of our age—tribalism and globalism—clash at every point except one: they may both be threatening to democracy