Scientists at The University of Osaka and Tohoku University have developed a technique for creating nanoscale magnetic thin films with embedded functionality. By leveraging the stretchability of flexible substrates, they can precisely control the atomic spacing within these nanofilms, effectively "programming" desired magnetic properties directly into the material.