Eyes wide shut: How newborn mammals dream the world they're entering

As a newborn mammal opens its eyes for the first time, it can already make visual sense of the world around it. But how does this happen before they have experienced sight?