Looks pretty great — do you have plans to improve this further?
e.g. if the orange line stayed on the absolute inside the entire time, it would avoid two crossings at the top left and bottom right.
e.g. if the purple line stayed inside the brown the entire time it wouldn’t need to cross at the bottom right.