Measurement of flow harmonics correlations with mean transverse momentum in lead–lead and proton–lead collisions at √sNN = 5.02 TeV with the ATLAS detector