ciod (“what”) + thuige (“towards”). Cognate with Irish cad chuige.
ciod thuige (followed by an indirect relative clause)