Text this: Bispectral duality and separation of variables from surface defect transition