A functional whole-brain imaging study reveals that blind Mexican cavefish evolved an inverted behavioral response to light by repurposing existing neurons in the posterior tuberculum and modifying conserved dopamine pathways, rather than growing entirely new neural networks.