Horseshoes and spiral waves: capturing the 3D flow induced by a low-mass planet analytically | Synapse