Sorry for the late reply, and it looks like you’ve already beaten me to the solution! I was going to say, you will need to make sure that the curve is set to a “3D Curve” in its properties. Otherwise most transformations on it will result in your exact experience. Thank you for updating your post with the solution @LLaurents!
Happy Blending! 🥳