How do trade and communication costs shape the spatial organization of firms?