Path geometries, Fourier modes and holomorphic curves