It’s a really cool sound and kinda reminds you of older styles of music. The second half of the melody starts back on the i (Gm), then again shifts slightly out of key with a quick minor vii (Fm - which again “should” be major in a minor key) before landing on the iv (Cm).