The locus of corner A is shown in brown. The positions of the square card are shown in red (starting position), blue (intermediate) and green (final). The radius of the arc for A is first AD then AC, and the radius of the arc for B (lavender arcs) is first BD then BC. So the side of the square and diagonal are used as the radii of the arcs. Each arc is a quadrant of a circle.