Synergies across the spectrum for cosmology and astroparticle physics