Metal guardrail with irregular S-curve on mezzanine