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.

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 (463.2 KB) Ribbon-along mesh.3dm (71.5 KB)