Studying ancient sea creatures’ snoozing habits could shed light on the origins of sleep.