ই-মেইল নথি: Individual and collective encoding of risk in animal groups