Seems neat. Why not put the bed on a lift-suspension system. I've seen some ads in the Paris metro for a motorized bed. Push a buttom bed goes to the ceiling, push again and bed comes back down.
I knew a guy back in college we called "6-8" because he was 6'8" and we weren't terribly creative. He lofted his bed, but found that he couldn't sit comfortably under it... so he put a winch on it.
When the project was finished, every single member of our chapter could stand underneath his winched to the ceiling bed, except for 6-8, who was two inches too tall.
Eventually, he dropped out of the engineering program and went for a business degree. When we went into the attic one day and saw his winch was attached to a hole drilled into a diagonal roof support beam, we remembered why you shouldn't let non-engineers build housing enhancements...