A common mechanism of collective phenomena