In the distance this Egret did a conservative version of the hunting dance.
Part of the routine is to dig on the bottom with their claws.
Holding wings out creates a shadow on the water allowing the bird to see below the surface. They live in bright salt marshes and the ocean shore, it can be a hard glare.
However, done right there is a reward. Every a tiny fish is important.