Text this: Physical mesomechanics of heterogeneous media and computer-aded design of materials