This is
Phoenix Wright.

a gif from an ace attorney game of a distressed phoenix wright sweating profusely

"Objection!"
- Phoenix Wright, probably

Phoenix Wright is a criminal law attorney, and the first main protagonist of the Ace Attorney series of games by Capcom. After discovering that an old, estranged friend from childhood has begun down a less-than-noble path as The Demon Prosecuter, Phoenix takes it upon himself to become a defense attorney so that he may face his friend once and for all and steer him toward the light. Along the way, he finds himself swept up in a series of brutal, mysterious, and often morbidly humorous murder cases. Follow him in his journey toward becoming The Turnabout Terror, renowned for his uncanny ability to turn the most hopeless of cases around in order to ensure that his clients are unburdened by the weight of false charges.

If you enjoy story features and elements such as:

Then you'll love taking up the role of this Ace Attorney as he strives to find the truth, the whole truth, and nothing but the truth.

click to read all about it (spoilers in the wiki ahead)
website coded by skylar bell
colorway inspo: here & here & here