The metropolitan scale of resilience