Hereafter: How Crises Shape Communities through Learning and Institutional Legacies