Your comments

The issue was that the color ramp texture's Wrap Mode needs to be set to Clamp, not Repeat.