Yep, the entire field of MEMS is both outlandishly complex and fascinating. For those who are curious, take a quick look at https://courses.washington.edu/me557/nthu/mems.pdf, which gives a nice overview of the different mechanisms and manufacturing processes involved.