:root {
  --bg: #d47a50;
  --ink: #fff9ef;
  --muted: rgba(255, 249, 239, .72);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --transition-ms: 680ms;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: #111;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--bg);
  transition: background-color var(--transition-ms) var(--ease);
  touch-action: pan-x;
  user-select: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 61% 48%, rgba(255,255,255,.09), transparent 26%),
    linear-gradient(115deg, rgba(255,255,255,.055), transparent 32%, rgba(0,0,0,.045));
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: .065;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 112px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(26px, 5vw, 86px);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand-mark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}
.brand-mark svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 54px);
}
.desktop-nav a,
.store-button,
.flavour-link,
.gesture-hint,
.slide-status,
.eyebrow {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .19em;
  font-weight: 700;
}
.desktop-nav a { opacity: .84; transition: opacity 180ms ease; }
.desktop-nav a:hover { opacity: 1; }
.store-button {
  justify-self: end;
  min-width: 146px;
  height: 43px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.72);
  background: transparent;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}
.store-button:hover { background: var(--ink); color: #252525; }
.menu-button { display: none; }
.mobile-menu { display: none; }

.hero-content {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}
.copy-column {
  position: absolute;
  z-index: 14;
  left: clamp(28px, 8vw, 138px);
  top: 50%;
  width: min(38vw, 580px);
  transform: translateY(-42%);
}
.copy-viewport {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.copy-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform, opacity;
}
.copy-next { transform: translateY(112%); }
.eyebrow {
  margin: 0 0 24px;
  color: rgba(255,255,255,.66);
}
.slide-title {
  margin: 0 0 22px;
  max-width: none;
  font-size: clamp(46px, 6.6vw, 104px);
  line-height: .92;
  letter-spacing: .09em;
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.slide-description {
  width: min(100%, 330px);
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, .95vw, 16px);
  line-height: 1.62;
  font-weight: 500;
}
.flavour-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.flavour-link svg { width: 82px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1; }
.flavour-link svg path { vector-effect: non-scaling-stroke; }

.visual-stage {
  position: absolute;
  z-index: 8;
  left: 50.5%;
  top: 52%;
  width: min(62vw, 900px);
  aspect-ratio: 1 / 1;
  transform: translate(-32%, -50%);
}
.orbit-rings {
  position: absolute;
  inset: 7%;
  z-index: 0;
  opacity: .34;
  animation: orbitDrift 13s ease-in-out infinite alternate;
}
.orbit-rings span {
  position: absolute;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
}
.orbit-rings span:nth-child(1) { inset: 5%; }
.orbit-rings span:nth-child(2) { inset: 15%; opacity: .72; }
.orbit-rings span:nth-child(3) { inset: 25%; opacity: .5; }
.slide-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: opacity, transform;
}
.visual-next { opacity: 0; pointer-events: none; }

.slide-visual,
.ingredient-stage,
.ingredient-transition,
.ingredient-float,
.can-shell,
.can-base,
.can-tint-layer,
.can-label-window,
.label-panel,
.label-fruit,
.orbit-rings {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.slide-visual,
.ingredient-stage,
.can-shell,
.can-base,
.can-tint-layer,
.can-label-window,
.label-panel,
.orbit-rings {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.slide-visual,
.can-shell,
.can-label-window {
  contain: layout paint;
}

.can-tint-layer,
.label-fruit,
.ingredient-float {
  image-rendering: auto;
}
.ingredient-stage { position: absolute; inset: 0; z-index: 1; }
.ingredient-transition {
  position: absolute;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}
.ingredient-float {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 22px rgba(66, 27, 5, .12));
  animation-name: ingredientFloat, ingredientTurn;
  animation-duration: var(--float-duration), var(--turn-duration);
  animation-delay: var(--delay), var(--turn-delay);
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: alternate, alternate;
}

.can-shell {
  position: absolute;
  inset: 0;
  z-index: 6;
  isolation: isolate;
  pointer-events: none;
}
.can-base,
.can-tint-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.can-base {
  z-index: 1;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 38px 42px rgba(65, 28, 10, .2));
}
.can-tint-layer {
  z-index: 2;
  display: block;
  object-fit: contain;
  pointer-events: none;
  will-change: opacity;
}
.can-tint-current { opacity: 1; }
.can-tint-next { opacity: 0; }
.can-label-window {
  position: absolute;
  z-index: 3;
  left: 31.45%;
  top: 44.2%;
  width: 37.1%;
  height: 31.2%;
  overflow: hidden;
  color: #202225;
}
.label-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1%;
  will-change: transform, opacity;
}
.label-next { transform: translateY(112%); }
.label-fruit-canvas {
  position: relative;
  width: 72%;
  height: 72%;
  flex: 0 0 72%;
}
.label-fruit {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 7px rgba(30, 30, 30, .11));
}
.label-flavour {
  margin-top: 1%;
  font-size: clamp(9px, 1.15vw, 18px);
  line-height: 1;
  letter-spacing: .045em;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

.slide-status {
  position: fixed;
  z-index: 30;
  right: clamp(26px, 4vw, 74px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: .75;
}
.status-rule { width: 42px; height: 1px; background: currentColor; opacity: .55; }
.gesture-hint {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  opacity: .55;
}
.gesture-hint svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.25; }

@keyframes ingredientFloat {
  0% { transform: translate3d(-2px, -7px, 0); }
  100% { transform: translate3d(4px, 8px, 0); }
}
@keyframes ingredientTurn {
  0% { rotate: calc(var(--turn-range) * -1); }
  100% { rotate: var(--turn-range); }
}
@keyframes orbitDrift {
  0% { transform: rotate(-3deg) scale(.985); }
  100% { transform: rotate(5deg) scale(1.025); }
}

@media (max-width: 900px) {
  .site-header {
    height: 80px;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    padding: 0 18px;
  }
  .brand-mark span { display: none; }
  .brand-mark svg { width: 34px; height: 34px; }
  .desktop-nav { display: none; }
  .store-button { min-width: 122px; height: 38px; padding: 0 12px; font-size: 8px; }
  .menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
  }
  .menu-button span { width: 22px; height: 1px; background: currentColor; transition: transform 240ms ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    padding: 118px 24px 30px;
    background: rgba(18, 18, 18, .94);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
  }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a { font-size: 22px; letter-spacing: .12em; font-weight: 700; }

  .visual-stage {
    left: 50%;
    top: 38.5%;
    width: min(116vw, 680px);
    transform: translate(-50%, -50%);
  }
  .copy-column {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: max(34px, env(safe-area-inset-bottom));
    width: auto;
    transform: none;
  }
  .copy-viewport { height: 300px; }
  .copy-panel { justify-content: flex-end; padding-bottom: 50px; }
  .eyebrow { margin-bottom: 14px; font-size: 8px; }
  .slide-title {
    margin-bottom: 14px;
    max-width: none;
    font-size: clamp(36px, 10vw, 58px);
    letter-spacing: .06em;
  }
  .slide-description {
    max-width: 390px;
    font-size: 13px;
    line-height: 1.48;
  }
  .flavour-link { position: absolute; bottom: 0; left: 0; margin: 0; }
  .slide-status { right: 18px; bottom: 22px; font-size: 8px; }
  .gesture-hint { display: none; }
  .orbit-rings { inset: 14%; }
}

@media (max-width: 520px) and (max-height: 760px) {
  .visual-stage { top: 34%; width: 105vw; }
  .copy-viewport { height: 270px; }
  .slide-title { font-size: 38px; }
  .slide-description { max-width: 330px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ingredient-float, .orbit-rings { animation-duration: 16s !important; }
}


.slide-status { display: none !important; }


@media (max-width: 900px) {
  .can-base,
  .can-tint-layer,
  .label-panel,
  .label-fruit,
  .ingredient-float {
    -webkit-font-smoothing: antialiased;
    will-change: transform, opacity;
  }
}
