A Beginner’s Guide to the Logic of Transformers: Powering Modern AI