01 - 
                Grind cinnamon, cloves, cardamom, coriander, and star anise in a mortar. Add salt, pepper, and marjoram. Mix into a coarse powder.
              
              
              
                02 - 
                Quarter and core the apples. Slice onions into thick rounds. Combine in a sealable container.
              
              
              
                03 - 
                Score duck skin in crosshatch pattern. Rub spice marinade over both sides. Layer over apples and onions. Refrigerate for 2 to 24 hours.
              
              
              
                04 - 
                Remove duck from fridge 30 minutes early. Place skin-side down in a cold pan. Gradually heat and cook 8–10 minutes. Flip and sear 2–3 minutes.
              
              
              
                05 - 
                Preheat oven to 375°F (190°C). Arrange apples and onions in baking dish. Place duck on top and roast 12–15 minutes until medium-rare.
              
              
              
                06 - 
                Transfer duck to a cutting board. Tent with foil and rest 5–10 minutes. Optionally, sear skin again briefly for extra crispiness.
              
              
              
                07 - 
                Simmer all compote ingredients except lime juice for 15–20 minutes. Remove spices, stir in lime juice, and adjust seasoning.
              
              
              
                08 - 
                Slice duck diagonally into 1/2-inch pieces. Plate over compote and garnish with apples, onions, extra compote, and fresh herbs.