She performed mental acrobatics to come up with a solution to the problem.
The students engaged in cognitive gymnastics to understand the complex concepts.
The therapy sessions involved some psychological gymnastics to uncover deep-seated issues.
He twisted himself into intellectual contortions trying to justify his actions.
Dealing with the breakup required some emotional acrobatics on her part.