Complex reflection coefficients and the sign convention
The time dependence is a negative imaginary exponential. The out-of-plane basis vector is fixed along positive Z, and the in-plane basis vector is its cross product with the direction of each segment. After two reflections the outgoing basis is the same as the incoming one. The angle is measured from the normal of the face.