Help please with an animation of a cardboard chocolate package from a dieline I wonder if anyone can help me?  I'm new to blender and have managed to almost create the package and animate it folding from a flat dieline into a box.  However, in real life, the final shape isn't a straight box, there are additional folds in the side which create the box to slope at the top when it's folded up, and I have no idea how to make this happen in blender.
I've included the blender file as is,  and a photo of what I'm trying to create.  If anyone could give me a pointer I'd be super grateful.
Best wishes,  Jason

Reference image:

blender file - https://drive.google.com/file/d/15Lvgzm7NQUCQcS7niRhJe0vTo7uC1Efh/view?usp=sharing
In my opinion you should try something like that:

First merge by distance as it seems like you have overlapping vertices
You need to divide your sides like that in order to be able to fold them:



Then lower down the chain of bones in order to put the rotation axis at the bottom, and create 3 bones that you make children of the bottom bone in order to control the top vertices and make the fold fold:



Frame 0:



Frame 80: