Consider a "TinyMiniMicro" type slim PC instead of a RPi4. You'll get a lot more bang for your buck. https://www.servethehome.com/introducing-project-tinyminimic...
And in the end it isn't a formfactor standardised and stackable solution.
You've sold me on this one. Thank you!