The screens of foldable phones are a triumph of materials science and microengineering.