The how and why of animal behaviour in a changing world