One of the puzzles of the gravity literature is the persistent effect of distance on trade flows, despite the dramatic fall in trade costs during the last few decades (Disdier and Head, 2008). A possible reason for the "distance puzzle" is that trade in intermediate goods, which has risen...