Seems like the harder part would be getting the folding piece down - foldable is going to have much more volume for components than the air; but I'm sure getting it as thin as it is was already challenging
Foldables need to have very thin construction as when folded, you essentially have two phones on top of each other. There's speculation online that the air was launched off the back of their internal foldable R&D.
They stacked almost ALL the actual stuff, like the camera system, SOC, etc. inside that little plateau and the rest of the slab is basically just display and battery. If I was going to make a clamshell phone, experimenting with miniaturizing and arranging the whole thing into a small corner of the footprint would be where I’d start.