From Royole's FlexPai to tri-folds: how the folding phone idea finally reached Apple's hands.