Planetary resilience