Animal rationality through higher-order reasons