So, Magic. Got it.
There's very little in the way of magic, just a lot of very well understood maths. We're almost at the point of being able to scan the spec and output the manufacturing drawings with no human intervention in between.
When I say it's well understood maths, it's probably fairer to say that there are a very few who truly understand the maths, but most have written software engines to allow mere mortals to create high performance filters that perform very close to expected on a first iteration.
There are probably no more than a couple of dozen people in the world who you could put in a room with a computer and some basic reference texts that would be able to create the design software. It just happens that virtually all of those capable have done so. The software that works very well all remains propriety and is far in advance of the filter design wizards in even high end RF EDA packages.