Interacting galaxies in the IllustrisTNG simulations -- VI: Reconstructed orbits, close encounters and mergers | Synapse