Pressure-driven structural and spin-state transition in a Hofmann clathrate coordination polymer