Planning ahead for a sunken backyard that collects water
https://waveoutdoorsdesign940.meridiannest.com/posts/fitting-a-drainage-plan-into-the-yard-for-a-dry-well-for-roof-water
A little forethought now saves trouble once the work begins. Raising a section of the yard needs the right fill and careful compaction, and a drain only works if it has somewhere lower to go