> Losing weight without losing muscle mass is very hard.
Yes it is.
> It requires extreme diets like a protein sparring modified fast where 80%+ of your calories are from lean protein while running a 50% caloric deficit.
I’m not any sort of expert but that sounds frankly, dangerous. I don’t see how you do something like that without damaging your liver.
It’s very possible to lose weight and gain muscle, but you have to be at just the right body composition (not lean and not obese) and then there’s a question of “over what period of time”?
Any duration under a month is probably pointless to measure unless you have some special equipment. Any duration over a month and it’s kind of obvious that it is possible. Eat a balanced diet without junk, work out regularly, and keep the calories to only what is necessary.