Create such a this pattern in grasshopper

So, I am trying to implement the ‘growth’ of a few concentric curves, as suggested by this Zaha Hadid work. One thing I am not understanding is how Kangaroo handles multiple curves in a tree structure.
For example, say I have 4 concentric rectangles, as in the attached script, modified after Riccardo’s links to ‘folding curve on a surface’. Despite various attempts at a tree structure, the curves output are flattened, so I lose the distinction between the curves.
An approach which might work, but which seems clunky, is to run one curve at a time through Kangaroo, with the outer curve then becoming the bounds for the next inner curve. 4 nested loops of Kangaroo does not seem like a good idea, hence the question, how to do this through intelligent ree structure, or some other idea.
Here is what I have so far, again based on Riccardo’s workA,script alessia-multiple-curves-v1.gh (43.5 KB)
Any and all ideas are welcome.