Text this: The dynamics of cooperation, power, and inequality in a group-structured society