In this specification, a pharmaceutical dosage form comprising a three-dimensional structural framework of thin, solid elements surrounded by interconnected void space is disclosed. The elements comprise at least a drug, a water-absorptive, polymeric excipient, and a hydrophilic surface composition, so that upon immersion in a dissolution fluid the three-dimensional structural framework transitions from solid to viscous and expands in all dimensions. The disclosed dosage form enables better control of drug concentration in the blood stream, and improved therapeutic outcomes, among other advantages.