A complicated process or set of steps that turns one thing into something else, or a method that produces a result that seems almost magical.
Nobody outside the team understood the alchemy behind how the app turned messy spreadsheets into clean reports.