We propose a new approach to the resummation of the transverse-momentum distribution of a high-mass color-singlet system in hadronic collisions. The resummation is performed in momentum space and is free of kinematic singularities at small transverse momentum. We derive a formula accurate at the next-to-nextto-leading-logarithmic level, and present the first matched predictions to next-to-next-to-leading order for Higgs-boson production in gluon fusion at the LHC. This method can be adapted to all observables featuring kinematic cancellations in the infrared region.