How to Influence Mesh Positioning According to Bone Movement?
If you want to "read" and understand your armature's behaviour, activate the second bone layer and the "X-rays" function in the armature properties panel, then select the colored bones and analyze the bone constraints (IK and damped track).



This Stretch setting is also important for this rig.