Procedural material help

Hi, I’m having trouble with procedural textures mapping on a sphere or a complex object.
I want to make a greeble material but it looks like this with Z set to 0
image
And with Z set to 1 like this :
image

I need it like this but it stretches:
image

Here’s my node setup:

First off, that manhattan voronoi to generate squared off blocks is great! I flailed hard on Greebles for nodevember, and this is a great way to approach that, so nice work!

to get to your question, what about the mapping when z=1 do you not like?

I want the texture to be square-ish like it is when Z is set to 0