There's a famous paper/framework called "Major evolutionary transitions in individuality" that sketches out a big picture pattern of major evolutionary advances in complexity following a surprisingly consistent pattern: As cooperation and division of labor strongly increase, selection starts working on larger entities. This pattern holds all the way back to the origin of life itself as things moved from self-assembling molecules to compartmentalized populations of molecules, from replicators to chromosomes, from RNA+enzymes to DNA+proteins, from prokaryotic cells to eukaryotic cells, from unicellular to multicellular, from individuals to colonies/superorganisms, and (possibly) onwards to more complex societies