Let a triangle $ABC$ be right at $A$, $AH$ be the altitude to the side $BC$. Let $M$ be an arbitrary point located in $AH$. Draw circle $B$ with the radius $BA$, circle $C$ with the radius $CA$. The circle $B$ and the circle $C$ respectively cut $CM, BM$ at $P$ and $Q$. Circle $(HPQ)$ cut $BC$ at $N$. Prove that $$\measuredangle AQP+\measuredangle NAP=90^o$$
Here is the GeoGebra file of this image.







The following works only for the particular case when the circle PHNQ passes through A too.
$\alpha + \gamma = \beta + \gamma$ (angles in the same segment)
$= \delta$ (exterior angles cyclic quad)
$= 90^0$!
figure-1
For the general case, I have to give up after a long period of trial. However, I would like to share some of the interesting findings that might be useful for those who are interested.
(1) Some colored pairs of lines are parallel. XY should be parallel to PB’ too but that remains to be proven.
(2) PP’A’M’ is cyclic.
(3) If Point T is the perpendicular point of XTY and APTP’, then the question is solved.