Designing AI for distress: an iterative case study of a hierarchical agent for psychosocial support | Synapse