Question about Bone Transform

I cast a ray from the camera and use hit in the animation graph in the Aim IK node.
and the character’s head is looking at that point

but I want to limit the rotation of the head relative to the character, get node transform (head) then unpack and attempt to clamp does not produce the expected result

How do you rotate bones and restrict them in AnimGraph?