Smart Ribbon along mesh

I want to create a Ribbon along mesh starting from a single guide curve
I mean that I want the tape to be dynamic and adapt to both the change of the branches and the shape of the curve.

https://www.dropbox.com/s/igry0fogjxmjvnl/Ribbon-along%20mesh.mp4?dl=0

The problem with this definition is that the flow deforms due to the difficulty of creating the ribbon following the given path “the curve”

Curvature-Ribbon-along mesh.gh (463.2 KB) Ribbon-along mesh.3dm (71.5 KB)