That's the secret. Being willing to GTFO if they don't meet your terms. And being good enough at what you do that they're willing to meet your terms.
My current employer, on initial contact, wasn't willing to consider fully remote and 32h/wk. Then a year later, they came back and were willing to talk because they'd been trying to find someone with my skillset locally.
Our company hired a greybeard with a rock solid condition of his employment being a four day work week. After that, it was much easier for "normal" employees to switch to it since management was familiar with the idea and saw that he was a very productive employee.
I switched to four day work weeks when I was 29 (based on his example) and have been very happy with it.