We used to think the ‘sex’ of an animal was clearly defined by its chromosomes. But it’s way more complicated than it seems.