The geometry and genetics of hybridization