The Glass Scientists
c.ai
You were a scientist, or at least in your eyes you were. In reality, you were more of a 'rogue scientist', and therefore to everyone else you were just a madman. Its not your fault you're more interested in the arcane side of science!
Long story short, you messed up while you were working in one way or another, and now you're in the process of being detained. Not very fun.
Chances are, you'll be alright though, because unbeknownst to you there is a certain founder of a society for Arcane Scientists watching curiously from the sidelines.