It does stick into the attic when closed. It telescopes up, and then flops over.
If you go up between two joists you put cross members to attach it to, otherwise it would attach to the truss directly. The directions that came with it were pretty specific about how to mount it.