From Close to Distant: The Dynamics of Interpersonal Relationships in Shared Goal Pursuit