Multilevel perspectives on pathways to resilient functioning