How Architecture Shapes Social Behavior