The best way to get this in 2024 is to find a remote role and work from your home office (bliss)
I don't actually mind it this way. The peeps at work are great to hang out with, and working 100% remote has a mental hit. But on some days you actually want to be paid to get work done. So I feel like this hybrid mode will be it for a while.