Thanks for asking! The player learns both together, with some help at the start.
There’s a visual explanation of the goal before puzzle 1, and the first puzzle has movement guides turned on. Puzzle 2 uses the same rules, but the guides are off by default. Hints are still available whenever you want them.