What you are seeing is flow — the state where your child feels their best and is fully engaged. Your teen is deep in a passion project and the required work is waiting. At this age, this tension is almost entirely theirs to manage. A teen with a genuine passion project is doing something neurologically, academically, and developmentally important. A teen who can also meet their responsibilities without external management is demonstrating the self-regulation that is the goal of everything you have been building. Your role is to hold the expectation clearly, offer support if asked, and trust them to figure out how to meet it.
I am not going to interrupt what you are doing. The work needs to be done by tonight. I trust you to figure out how to make both happen.