Humanoid robots navigate narrow gaps and obstacles with whole-body AI control