Fundamental vortices, wall-crossing, and particle-vortex duality