Basic inverse kinematics. Move your mouse.
This is where I found quite a bit about the circle-circle intersection math: https://www.johndcook.com/blog/2023/08/27/intersect-circles/ The rest of the math is by* me. *Of course I was not the first to discover the math, but I did implement it without having to look it up. My dad taught me a lot of math before I learned it in school, so at least I am in the slightest bit not 100% stupid.