A 2-2-1 neural network learns XOR. Step through the full training loop: forward arithmetic, chain-rule backward, optimizer update.