The answer contains spoilers, so I’ve written it in the comments