How taming cows and horses sparked inequality across the ancient world