That's an interesting idea.
Good luck unsoldering a 40-pin header
better you than me.
I'd probably look into something more like this for flipping the pin direction 90 degrees:
https://www.amazon.com/Connectors-Raspberry-40-pin-Expansion-RAS-GP02/dp/B07MCW4KCM?th=1Additional things to consider:
- 26mm for that enclosure is not much height if you have any stacking at all (eg. flat-hacker/audio card)
- The pi-stomp Core board depth itself is around 28mm because the encoder/pot/LCD are on top and the very tall jacks are on the bottom. You might need to off-board something.
- Hat hacker type devices don't always result in the pin direction you want. You cant just flip pin 1 to be where pin 40 should be.