Humanities and Social Sciences Communications, Published online: 18 August 2026; doi:10.1057/s41599-026-08558-1 Task interruptions in STEM online courses: understanding the mechanisms of their impact on learning outcomes and user experience