So close, thank you so much for all of your help with this, its incredible.
I have forked your pen and added scaleY scale X and depth.
Im happy if just the rotate X works but Ive noticed some things and wondering if you have any idea why there happening:
If I scaleX, the perspective of the right hand side of the box flattens a little bit.
scaleY is working perfectly.
Depth is working, but it’s changing the perspective, and that in turns changes the border size.
Depth is an even bigger headache with rotateX!
Thank you so so much!