In the bottom of a cocktail shaker, muddle the blackberries, lemon juice, and agave syrup until well-smashed and the juices released. Measure in the pomegranate juice, tequila, mezcal, and Cointreau. Add ice and shake until cold, then strain into the prepared glass. Garnish with rosemary sprigs, pomegranate arils, and blackberries.