Transverse-momentum-dependent parton distributions at the edge of the lightcone