For more than two millennia, people have watched chameleons swivel their turreted eyes in different directions and wondered how such a small reptile pulls off a trick that seems to defy basic anatomy.