Why is my material function creating a totally black sphere?

Disappearing nodes doesn’t sound good.

I would try copying the setup into a new material, or even a new project to check it out.