A Framework for Adaptive Capacity in Complex Systems