:root {
  --bg: #168d14;
  --accent: #ffcf10;
  --ink: #ffffff;
  --button-bg: rgba(11, 55, 16, 0.75);
  --ease: cubic-bezier(.42, 0, .58, 1);
  --duration: 1800ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--bg);
  transition: background-color var(--duration) var(--ease);
}

.contours {
  position: absolute;
  inset: -12%;
  z-index: 0;
  opacity: .18;
  pointer-events: none;
  transform: rotate(-3deg) scale(1.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1100' height='760' viewBox='0 0 1100 760'%3E%3Cg fill='none' stroke='white' stroke-opacity='.68' stroke-width='1.1'%3E%3Cpath d='M-80 132C70 20 258 44 340 128s54 194 156 232 211-52 332-8 164 166 322 118'/%3E%3Cpath d='M-88 164C54 62 236 74 310 150s51 179 149 219 207-38 319 1 159 146 316 111'/%3E%3Cpath d='M-100 198C35 104 208 108 279 176s50 165 144 204 200-25 306 9 153 129 309 101'/%3E%3Cpath d='M-109 235C19 146 185 144 253 208s48 150 137 188 190-10 292 18 145 111 299 90'/%3E%3Cpath d='M-120 276C1 192 160 184 225 244s48 136 132 172 182 3 278 26 137 94 289 80'/%3E%3Cpath d='M246-60c88 93 38 193 107 250s184 20 242 104 5 185 82 253 193 34 269 104'/%3E%3Cpath d='M292-70c79 88 32 177 96 231s169 18 222 94 2 170 72 232 178 31 247 96'/%3E%3Cpath d='M746-80c-54 96-12 180-72 246s-167 32-220 116 4 170-57 246-177 58-244 142'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: min(76vw, 1180px) auto;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: max(24px, env(safe-area-inset-top));
  left: 50%;
  width: min(78vw, 980px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
}

.brand {
  grid-column: 1;
  justify-self: start;
  color: var(--accent);
  font-size: clamp(1.15rem, 1.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.055em;
  text-decoration: none;
}

.nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 42px);
}

.nav a {
  position: relative;
  color: rgba(255,255,255,.86);
  font-size: clamp(.68rem, .72vw, .85rem);
  font-weight: 500;
  text-decoration: none;
  transition: color 240ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.title-mask {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 62vh;
  overflow: hidden;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

.mega-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(9rem, 20vw, 25rem);
  line-height: .78;
  letter-spacing: -.035em;
  white-space: nowrap;
  transform-origin: center;
  will-change: transform;
}

.mega-title-next {
  visibility: hidden;
}

.product-stage {
  position: absolute;
  z-index: 7;
  top: 52%;
  left: 50%;
  width: min(37vw, 600px);
  aspect-ratio: .82;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: productFloat 6.4s ease-in-out infinite;
}

.product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 34px rgba(26, 27, 15, .28));
  transform-origin: 52% 54%;
  will-change: transform, opacity;
}

.product-next {
  visibility: hidden;
}

.info-mask {
  position: absolute;
  z-index: 13;
  right: clamp(6vw, 8vw, 11vw);
  bottom: clamp(8vh, 12vh, 14vh);
  width: clamp(220px, 18vw, 320px);
  min-height: 205px;
  overflow: hidden;
}

.product-info {
  position: absolute;
  inset: auto 0 0;
  will-change: transform, opacity;
}

.product-info-next {
  visibility: hidden;
}

.product-info h1 {
  margin: 0 0 13px;
  font-size: clamp(1rem, 1.05vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.product-info p {
  margin: 0 0 20px;
  color: rgba(255,255,255,.83);
  font-size: clamp(.69rem, .73vw, .86rem);
  line-height: 1.65;
}

.cart-button {
  min-width: 116px;
  min-height: 38px;
  padding: 9px 20px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.cart-button:hover {
  color: #171717;
  background: #fff;
  transform: translateY(-2px);
}

.slider-arrow {
  position: absolute;
  z-index: 32;
  top: 53%;
  width: clamp(46px, 4.1vw, 64px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--button-bg);
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), transform 220ms ease;
  backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.slider-arrow:disabled {
  cursor: default;
}

.slider-arrow span {
  font-size: clamp(1.2rem, 1.5vw, 1.7rem);
  line-height: 1;
  transform: translateY(-1px);
}

.slider-arrow-left {
  left: clamp(22px, 4.5vw, 76px);
}

.slider-arrow-right {
  right: clamp(22px, 4.5vw, 76px);
}

.slide-status {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  display: none;
  gap: 4px;
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  letter-spacing: .12em;
  transform: translateX(-50%);
}

.decor-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.decor-layer-next {
  visibility: hidden;
}

.fruit {
  position: absolute;
  width: var(--size, 96px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transform-origin: center;
  filter: drop-shadow(0 18px 20px rgba(31, 32, 16, .20));
  will-change: transform, opacity;
}

.fruit.front {
  z-index: 10;
}

.fruit-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation:
    ingredientFloat var(--float-duration, 6.4s) ease-in-out infinite var(--float-delay, 0s),
    ingredientTurn var(--turn-duration, 11s) ease-in-out infinite alternate var(--float-delay, 0s);
  transform-origin: center;
  will-change: transform;
}

@keyframes ingredientFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(0, calc(var(--float-distance, 12px) * -1), 0); }
  75% { transform: translate3d(0, var(--float-distance, 12px), 0); }
}

@keyframes ingredientTurn {
  0%, 100% { rotate: 0deg; }
  33% { rotate: calc(var(--turn-range, 6deg) * -1); }
  66% { rotate: var(--turn-range, 6deg); }
}

@keyframes productFloat {
  0%, 100% { transform: translate(-50%, calc(-50% - 12px)); }
  50% { transform: translate(-50%, calc(-50% + 10px)); }
}

@media (max-width: 900px) {
  .hero {
    min-height: 560px;
  }

  .site-header {
    top: max(17px, env(safe-area-inset-top));
    width: calc(100% - 30px);
    grid-template-columns: auto 1fr;
  }

  .brand {
    font-size: clamp(.95rem, 4vw, 1.15rem);
  }

  .nav {
    justify-self: end;
    gap: clamp(10px, 3.1vw, 18px);
  }

  .nav a {
    font-size: clamp(.5rem, 2.2vw, .68rem);
  }

  .title-mask {
    top: 43%;
    height: 50vh;
    transform: translate(-50%, -50%);
  }

  .mega-title {
    font-size: clamp(7.2rem, 28vw, 13rem);
  }

  .product-stage {
    top: 46%;
    width: min(74vw, 440px);
  }

  .info-mask {
    right: auto;
    left: 50%;
    bottom: max(34px, calc(env(safe-area-inset-bottom) + 24px));
    width: min(78vw, 370px);
    min-height: 154px;
    transform: translateX(-50%);
    text-align: center;
  }

  .product-info h1 {
    margin-bottom: 7px;
    font-size: clamp(.92rem, 3.9vw, 1.12rem);
  }

  .product-info p {
    max-width: 340px;
    margin: 0 auto 13px;
    font-size: clamp(.62rem, 2.65vw, .75rem);
    line-height: 1.45;
  }

  .cart-button {
    min-height: 36px;
    padding: 8px 18px;
  }

  .slider-arrow {
    top: 47%;
    width: 46px;
  }

  .slider-arrow-left { left: 14px; }
  .slider-arrow-right { right: 14px; }

  .fruit {
    width: calc(var(--size, 96px) * .72);
  }
}

@media (max-width: 480px) {
  .nav a:nth-child(3),
  .nav a:nth-child(4) {
    display: none;
  }

  .title-mask {
    top: 39%;
    height: 42vh;
  }

  .mega-title {
    font-size: clamp(6.6rem, 34vw, 10rem);
  }

  .product-stage {
    top: 43%;
    width: min(78vw, 340px);
  }

  .info-mask {
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
    width: 82vw;
  }

  .product-info p {
    max-width: 290px;
  }

  .slider-arrow {
    top: 44%;
    width: 44px;
  }

  .fruit {
    width: calc(var(--size, 96px) * .62);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .slider-arrow,
  .product-stage,
  .fruit-media {
    transition-duration: 1ms;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
