:root {
  --ease: cubic-bezier(0.2, 0.82, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: transparent;
  font-family: Manrope, Arial, sans-serif;
}
.ad {
  position: relative;
  width: 970px;
  height: 250px;
  overflow: hidden;
  background: #321910;
}
.ad:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  pointer-events: none;
  z-index: 30;
}
.flavours {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 0;
}
.flavour {
  position: relative;
  flex: 1 1 25%;
  height: 250px;
  min-width: 0;
  overflow: hidden;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  isolation: isolate;
  transition:
    flex 0.58s var(--ease),
    filter 0.45s var(--ease);
  animation: reveal 0.65s var(--ease) both;
  animation-delay: var(--delay);
}
.flavour:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(22, 10, 6, 0.1), rgba(22, 10, 6, 0.36)),
    var(--bg);
  background-size: cover;
  background-position: 30% center;
  z-index: -3;
  transition:
    background-position 0.58s var(--ease),
    filter 0.45s var(--ease);
}
.flavour:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 5, 3, 0.2),
    transparent 55%,
    rgba(0, 0, 0, 0.18)
  );
  z-index: -2;
}
.pattern {
  position: absolute;
  inset: -40px;
  opacity: 0.07;
  background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.95) 0 2px,
      transparent 2.5px
    )
    0 0/19px 19px;
  transform: rotate(-8deg);
  transition: 0.6s var(--ease);
}
.product {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -7px;
  width: 205px;
  height: 235px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 15px 12px rgba(45, 13, 5, 0.42));
  transition:
    left 0.58s var(--ease),
    width 0.58s var(--ease),
    height 0.58s var(--ease),
    transform 0.58s var(--ease);
}
.name {
  position: absolute;
  z-index: 5;
  left: 12px;
  bottom: 11px;
  padding: 8px 11px 7px;
  color: #fff;
  background: rgba(15, 10, 8, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(5px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
  transition: 0.38s var(--ease);
}
.name b {
  display: block;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.75px;
}
.name small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.25px;
  font-weight: 800;
}
.info {
  position: absolute;
  z-index: 6;
  left: 24px;
  top: 19px;
  width: 330px;
  color: #fff;
  opacity: 0;
  transform: translateX(-24px);
  pointer-events: none;
  transition: 0.38s var(--ease);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}
.logo {
  display: inline-block;
  margin-bottom: 9px;
}
.logo img {
  display: block;
  height: 30px;
  width: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}
.info h2 {
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: -1.5px;
  margin: 0 0 10px;
}
.info p {
  font-size: 13px;
  line-height: 1.42;
  margin: 0 0 13px;
  max-width: 330px;
  font-weight: 700;
}
.info a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 37px;
  padding: 0 6px 0 16px;
  border-radius: 20px;
  background: #fff;
  color: #291711;
  text-decoration: none;
  text-shadow: none;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(35, 15, 5, 0.28);
  pointer-events: auto;
}
.info a i {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color);
  color: #fff;
  font-style: normal;
}
.flavours.has-active .flavour {
  flex: 0 0 145px;
  filter: saturate(0.82) brightness(0.72);
}
.flavours.has-active .flavour.active {
  flex: 1 1 auto;
  filter: none;
}
.flavours.has-active .flavour.active:before {
  background-position: center center;
}
.flavours.has-active .flavour.active .product {
  left: 80%;
  bottom: -5px;
  width: 255px;
  height: 250px;
  transform: translateX(-50%) scale(1.03);
}
.flavours.has-active .flavour.active .info {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
.flavours.has-active .flavour.active .name {
  opacity: 0;
  transform: translateY(8px);
}
.flavours.has-active .flavour:not(.active) .product {
  bottom: 20px;
  width: 158px;
  height: 215px;
  transform: translateX(-50%) scale(0.94);
}
.flavours.has-active .flavour:not(.active) .name {
  left: 50%;
  bottom: 8px;
  padding: 7px 9px;
  transform: translateX(-50%) rotate(-90deg);
  width: max-content;
}
.flavours.has-active .flavour:not(.active) .name b {
  font-size: 14px;
}
.flavours.has-active .flavour:not(.active) .name small {
  display: none;
}
.flavour.active .pattern {
  transform: rotate(3deg) scale(1.2);
}
.gesture {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 12px;
  background: rgba(35, 17, 10, 0.54);
  color: #fff;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  pointer-events: none;
  transition: 0.25s;
}
.flavours.has-active + .gesture {
  opacity: 0;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 970px) {
  body {
    overflow: hidden;
  }
  .ad {
    transform-origin: top left;
    transform: scale(calc(100vw / 970));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
