I have updated my above codepen a bit. Using pin is surely doing the effect i want to achieve. However, as in my codepen, how do I calculate the distance so that the title text touch the line? I am not quite sure about how to achieve the effect as in https://www.signalworksarchitecture.com/ .