Harmonia: Hybrid-basis inference for large-scale galaxy clustering