How and why do animals adapt?