Generalized disformal Horndeski theories: Cosmological perturbations and consistent matter coupling | Synapse