Core rule
Hiding and line of sight
Hiding depends on enemy sight lines and the lighting around you.
Moving where an enemy can see you may require a check or reveal you immediately. Darkness does not conceal you from every creature.
Hiding and Invisibility are different. Consider obstacles, lighting, and routes outside enemy vision before moving.