:root {
  --theme: #b70f2b;
  --theme-deep: #85051c;
  --theme-soft: #da2648;
  --ink: #fffaf5;
  --header-height: 92px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-figma: cubic-bezier(.62, .03, .27, 1);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
html { background: var(--theme); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--theme);
  font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
button, a { color: inherit; font: inherit; }
button { border: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.theme-background {
  position: absolute;
  inset: 0;
  z-index: -5;
  background: linear-gradient(115deg, var(--theme-deep) 0%, var(--theme) 48%, var(--theme-soft) 120%);
  transition: background 1050ms var(--ease-figma);
}
.theme-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.08), transparent 36%, rgba(0,0,0,.12));
  pointer-events: none;
}
.theme-glow {
  position: absolute;
  z-index: -4;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .26;
  pointer-events: none;
  transition: background 900ms var(--ease-out), transform 1000ms var(--ease-out);
}
.theme-glow-a { width: 42vw; height: 42vw; top: -24vw; left: 14vw; background: var(--theme-soft); }
.theme-glow-b { width: 40vw; height: 40vw; right: -20vw; bottom: -20vw; background: var(--theme-deep); }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) clamp(24px, 4.3vw, 76px) 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  white-space: nowrap;
}
.brand-mark { width: 31px; height: 31px; flex: 0 0 auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 2.5vw, 45px); }
.desktop-nav button {
  position: relative;
  padding: 10px 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  cursor: pointer;
  opacity: .86;
  transition: opacity 250ms ease, transform 250ms ease;
}
.desktop-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
.desktop-nav button:hover { opacity: 1; transform: translateY(-1px); }
.desktop-nav button:hover::after { transform: scaleX(1); transform-origin: left; }
.cart-button span { display: inline-grid; place-items: center; min-width: 17px; margin-left: 4px; font-size: 9px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 1px; margin: 7px auto; background: currentColor; transition: transform 350ms var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.slide-label {
  position: absolute;
  z-index: 12;
  top: calc(var(--header-height) + 18px);
  left: clamp(24px, 4.3vw, 76px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .25em;
}
.label-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }

.visual-stage { position: absolute; inset: 0; pointer-events: none; }
.pie-orbit {
  position: absolute;
  z-index: 0;
  width: min(49vw, 780px);
  aspect-ratio: 1;
  left: clamp(7vw, 14vw, 15vw);
  top: 53%;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,.025) 52%, transparent 69%);
  filter: blur(2px);
}
.pie-image {
  position: absolute;
  z-index: 3;
  left: clamp(5vw, 11vw, 12vw);
  top: 52%;
  width: clamp(390px, 39vw, 665px);
  height: auto;
  transform: translateY(-50%);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 40px 35px rgba(20,0,0,.28));
  will-change: transform, opacity;
}
.ingredient-cluster {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  width: clamp(580px, 50vw, 900px);
  height: min(94vh, 1080px);
  object-fit: contain;
  object-position: center right;
  transform: translateY(-50%);
  transform-origin: 100% 50%;
  filter: drop-shadow(-25px 32px 32px rgba(20,0,0,.25));
  will-change: transform, opacity;
}
.float-layer { position: absolute; inset: 0; z-index: 4; }
.floating-piece {
  position: absolute;
  width: 112px;
  height: 112px;
  opacity: 1;
  transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.floating-ingredient {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 18px 16px rgba(20,0,0,.22));
  will-change: transform;
}
.piece-a { left: 5vw; top: 29%; }
.piece-b { left: 47vw; top: 10%; }
.piece-c { left: 46vw; bottom: 6%; }
.ingredient-a { animation: ingredientFloatA 6.8s ease-in-out infinite; }
.ingredient-b { animation: ingredientFloatB 7.4s ease-in-out infinite; filter: blur(.8px) drop-shadow(0 18px 16px rgba(20,0,0,.22)); }
.ingredient-c { animation: ingredientFloatC 7.1s ease-in-out infinite; }






@keyframes ingredientFloatA {
  0%, 100% { transform: translate3d(0,0,0) rotate(-10deg) scale(1); }
  25% { transform: translate3d(8px,-12px,0) rotate(-6deg) scale(1.02); }
  50% { transform: translate3d(-4px,-22px,0) rotate(-11deg) scale(1); }
  75% { transform: translate3d(-10px,-10px,0) rotate(-14deg) scale(.99); }
}
@keyframes ingredientFloatB {
  0%, 100% { transform: translate3d(0,0,0) rotate(18deg) scale(1); }
  30% { transform: translate3d(-10px,10px,0) rotate(14deg) scale(.99); }
  55% { transform: translate3d(4px,-8px,0) rotate(20deg) scale(1.03); }
}
@keyframes ingredientFloatC {
  0%, 100% { transform: translate3d(0,0,0) rotate(-24deg) scale(1); }
  20% { transform: translate3d(-12px,8px,0) rotate(-20deg) scale(.98); }
  60% { transform: translate3d(8px,-16px,0) rotate(-27deg) scale(1.02); }
}

.copy-panel {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 55%;
  width: min(30vw, 450px);
  transform: translateY(-45%);
}
.copy-animated { will-change: transform, opacity; }
.copy-panel h1 {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  font-size: clamp(44px, 4.1vw, 72px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 700;
}
.copy-panel p { margin: 25px 0 0; }
#slideDescription { max-width: 39ch; font-size: clamp(14px, 1.05vw, 18px); line-height: 1.6; opacity: .86; }
.price { font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif; font-size: clamp(28px, 2.2vw, 40px); line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.order-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(230px, 100%);
  min-height: 58px;
  margin-top: 28px;
  padding: 0 19px 0 23px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
  font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background 300ms ease, color 300ms ease, transform 300ms var(--ease-out), border-color 300ms ease;
}
.order-button svg { width: 20px; height: 20px; transition: transform 300ms var(--ease-out); }
.order-button:hover { color: var(--theme-deep); background: #fff; border-color: #fff; transform: translateY(-2px); }
.order-button:hover svg { transform: translateX(3px); }
.order-button:active { transform: scale(.98); }

.slide-progress {
  position: absolute;
  z-index: 12;
  bottom: clamp(24px, 5.2vh, 55px);
  left: clamp(24px, 4.3vw, 76px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
}
.progress-track { width: clamp(80px, 9vw, 150px); height: 1px; background: rgba(255,255,255,.28); overflow: hidden; }
.progress-track span { display: block; width: 20%; height: 100%; background: #fff; transform-origin: left; transition: width 850ms var(--ease-out); }
.slide-controls { position: absolute; z-index: 12; right: clamp(24px, 4.3vw, 76px); bottom: clamp(20px, 4.4vh, 46px); display: flex; gap: 10px; }
.slide-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 250ms ease, transform 250ms var(--ease-out), border-color 250ms ease;
}
.slide-controls button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.82); transform: scale(1.05); }
.slide-controls svg { width: 20px; height: 20px; }
.interaction-hint { position: absolute; z-index: 12; bottom: clamp(28px, 5vh, 52px); left: 50%; margin: 0; transform: translateX(-50%); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; opacity: .62; }



.mobile-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 28px 42px;
  background: color-mix(in srgb, var(--theme-deep) 91%, black 9%);
  transform: translateY(-105%);
  visibility: hidden;
  transition: transform 650ms var(--ease-out), visibility 650ms;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu-link { width: fit-content; margin: 0 0 13px; padding: 0; background: transparent; font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif; font-size: clamp(39px, 13vw, 64px); line-height: 1.02; letter-spacing: -.05em; cursor: pointer; }
.mobile-menu p { margin: auto 0 0; max-width: 34ch; font-size: 13px; line-height: 1.6; opacity: .7; }

.panel-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(0,0,0,.36); backdrop-filter: blur(8px); }
.info-panel {
  position: fixed;
  z-index: 71;
  top: 0;
  right: 0;
  width: min(540px, 100%);
  height: 100dvh;
  padding: 105px clamp(26px, 5vw, 66px) 48px;
  color: #171310;
  background: #fffaf3;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 650ms var(--ease-out), visibility 650ms;
  overflow-y: auto;
}
.info-panel.is-open { transform: translateX(0); visibility: visible; }
.panel-close { position: absolute; top: 28px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: transparent; cursor: pointer; }
.panel-close span { position: absolute; top: 22px; left: 11px; width: 24px; height: 1px; background: currentColor; transform: rotate(45deg); }
.panel-close span + span { transform: rotate(-45deg); }
.info-panel h2 { margin: 0 0 28px; font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif; font-size: clamp(48px, 6vw, 72px); line-height: .95; letter-spacing: -.055em; }
.info-panel p { color: #514943; line-height: 1.75; }
.flavour-list { display: flex; flex-direction: column; gap: 4px; margin-top: 35px; }
.flavour-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 0; background: transparent; border-bottom: 1px solid rgba(23,19,16,.14); text-align: left; cursor: pointer; }
.flavour-list strong { font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif; font-size: 19px; }
.flavour-list span { color: #6c625b; font-size: 13px; }
.cart-empty { margin-top: 36px; padding: 28px 0; border-top: 1px solid rgba(23,19,16,.14); border-bottom: 1px solid rgba(23,19,16,.14); }

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 30px;
  padding: 13px 18px;
  color: #171310;
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  :root { --header-height: 78px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .pie-image { left: 5vw; width: clamp(370px, 49vw, 560px); }
  .pie-orbit { left: 1vw; width: 58vw; }
  




.copy-panel { left: 53%; width: 35vw; }
  .ingredient-cluster { right: 0; width: 62vw; height: 86vh; }
  .interaction-hint { display: none; }
}

@media (max-width: 720px) {
  :root { --header-height: 72px; }
  .site-header { padding: max(12px, env(safe-area-inset-top)) 20px 0; }
  .brand { gap: 10px; font-size: 11px; letter-spacing: .2em; }
  .brand-mark { width: 27px; height: 27px; }
  .slide-label { top: calc(var(--header-height) + 15px); left: 20px; font-size: 8px; }
  .visual-stage { height: 57%; top: 7%; }
  .pie-orbit { top: 57%; left: -21vw; width: 104vw; }
  .pie-image { top: 58%; left: -8vw; width: min(85vw, 500px); }
  .ingredient-cluster { top: 52%; right: -2vw; width: 90vw; height: 66vh; opacity: .98; }
  .floating-piece { width: 76px; height: 76px; }
  .piece-a { left: 3vw; top: 20%; }
  .piece-b { left: 61vw; top: 9%; }
  .piece-c { left: 58vw; bottom: 10%; }
  




.copy-panel {
    top: auto;
    right: 20px;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 74px));
    left: 20px;
    width: auto;
    transform: none;
  }
  .copy-panel h1 { max-width: 9ch; font-size: clamp(43px, 13vw, 61px); line-height: .9; }
  #slideDescription { display: none; }
  .price { margin-top: 14px !important; font-size: 24px; }
  .order-button { position: absolute; right: 0; bottom: 0; width: 158px; min-height: 52px; margin: 0; padding: 0 15px 0 18px; font-size: 9px; }
  .slide-controls { right: 20px; bottom: max(17px, calc(env(safe-area-inset-bottom) - 2px)); }
  .slide-controls button { width: 43px; height: 43px; }
}

@media (max-width: 390px) {
  .pie-image { top: 55%; left: -15vw; width: 88vw; }
  .ingredient-cluster { right: -2vw; width: 94vw; height: 64vh; }
  .copy-panel h1 { font-size: 42px; }
  .order-button { width: 144px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ingredient-a,
  .ingredient-b,
  .ingredient-c { animation: none !important; }
}

/* Responsive production pass */
html,
body,
.page-shell,
.hero {
  min-height: 100svh;
}

@supports (height: 100dvh) {
  html,
  body,
  .page-shell,
  .hero {
    min-height: 100dvh;
    height: 100dvh;
  }
}

.copy-panel h1,
.mobile-menu-link,
.info-panel h2 {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

@media (min-width: 1051px) {
  .ingredient-cluster {
    right: -2vw;
    width: clamp(440px, 38vw, 690px);
    height: min(92vh, 980px);
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .pie-image {
    left: 3vw;
    width: clamp(360px, 48vw, 520px);
  }
  .pie-orbit {
    left: -2vw;
    width: 58vw;
  }
  .ingredient-cluster {
    right: -5vw;
    width: 46vw;
    height: 86vh;
  }
  .copy-panel {
    left: 51%;
    width: 32vw;
  }
  .copy-panel h1 {
    font-size: clamp(40px, 5vw, 58px);
  }
}

/* Phones and portrait tablets share the same layered composition. */
@media (max-width: 900px) and (orientation: portrait) {
  :root { --header-height: 72px; }

  body { overscroll-behavior: none; }

  .site-header {
    height: var(--header-height);
    padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  }

  .desktop-nav { display: none; }
  .menu-toggle {
    display: block;
    width: 46px;
    height: 46px;
    margin-right: -8px;
  }

  .brand {
    gap: 10px;
    font-size: 11px;
    letter-spacing: .18em;
  }
  .brand-mark { width: 28px; height: 28px; }

  .hero { touch-action: none; }

  .slide-label {
    top: calc(var(--header-height) + 10px);
    left: max(20px, env(safe-area-inset-left));
    gap: 8px;
    font-size: 8px;
    letter-spacing: .22em;
  }

  .visual-stage {
    inset: 0;
    height: auto;
    top: 0;
  }

  .pie-orbit {
    top: 34%;
    left: -9vw;
    width: min(88vw, 650px);
  }

  .pie-image {
    top: 34%;
    left: -5vw;
    width: min(72vw, 560px);
  }

  .ingredient-cluster {
    top: 33%;
    right: -14vw;
    width: min(60vw, 490px);
    height: 58vh;
    max-height: 640px;
    object-position: center right;
  }

  .floating-piece {
    width: clamp(68px, 11vw, 94px);
    height: clamp(68px, 11vw, 94px);
  }
  .piece-a { left: 4vw; top: 20%; }
  .piece-b { left: 60vw; top: 11%; }
  .piece-c { left: 55vw; bottom: 37%; }

  .copy-panel {
    top: auto;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(94px, calc(env(safe-area-inset-bottom) + 82px));
    left: max(22px, env(safe-area-inset-left));
    width: auto;
    transform: none;
  }

  .copy-panel h1 {
    max-width: 9.2ch;
    font-size: clamp(48px, 8.5vw, 68px);
    line-height: .89;
    letter-spacing: -.052em;
  }

  #slideDescription {
    max-width: 36ch;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.48;
  }

  .price {
    margin-top: 14px !important;
    font-size: clamp(23px, 4vw, 30px);
  }

  .order-button {
    width: min(188px, 46vw);
    min-height: 52px;
    margin-top: 18px;
    padding: 0 16px 0 19px;
    font-size: 10px;
  }

  .slide-controls {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
    gap: 8px;
  }
  .slide-controls button {
    width: 46px;
    height: 46px;
  }

  .interaction-hint,
  .slide-progress { display: none; }

  .mobile-menu {
    justify-content: flex-start;
    overflow-y: auto;
    padding: calc(104px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) calc(36px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }
  .mobile-menu-link {
    margin-bottom: 10px;
    font-size: clamp(38px, 10vw, 62px);
  }

  .info-panel {
    width: 100%;
    padding: calc(90px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) calc(36px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }
  .panel-close {
    top: calc(20px + env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
  }
  .info-panel h2 {
    font-size: clamp(44px, 11vw, 68px);
  }

  .toast {
    right: 18px;
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px));
    left: 18px;
    width: auto;
    text-align: center;
    transform: translateY(30px);
  }
  .toast.is-visible { transform: translateY(0); }
}

@media (max-width: 600px) and (orientation: portrait) {
  .pie-orbit {
    top: 32.5%;
    left: -18vw;
    width: 98vw;
  }
  .pie-image {
    top: 33%;
    left: -10vw;
    width: min(79vw, 470px);
  }
  .ingredient-cluster {
    top: 32%;
    right: -23vw;
    width: 72vw;
    height: 52vh;
  }
  .floating-piece {
    width: clamp(60px, 18vw, 78px);
    height: clamp(60px, 18vw, 78px);
  }
  .piece-a { left: 2vw; top: 18%; }
  .piece-b { left: 64vw; top: 10%; }
  .piece-c { left: 58vw; bottom: 39%; }

  .copy-panel {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 74px));
    left: max(18px, env(safe-area-inset-left));
  }
  .copy-panel h1 {
    max-width: 8.5ch;
    font-size: clamp(40px, 11.8vw, 54px);
  }
  #slideDescription { display: none; }
  .price { font-size: 22px; }
  .order-button {
    width: min(164px, 45vw);
    min-height: 50px;
    margin-top: 15px;
    font-size: 9px;
  }
}

@media (max-width: 390px) and (orientation: portrait) {
  .brand { font-size: 10px; }
  .pie-image { left: -13vw; width: 82vw; }
  .ingredient-cluster { right: -27vw; width: 77vw; }
  .copy-panel h1 { font-size: clamp(38px, 11.2vw, 44px); }
  .order-button { width: 150px; }
}

/* Short mobile screens need a tighter vertical rhythm. */
@media (max-width: 600px) and (max-height: 740px) and (orientation: portrait) {
  .slide-label { top: calc(var(--header-height) + 4px); }
  .pie-orbit { top: 31%; width: 86vw; }
  .pie-image { top: 31%; width: 69vw; }
  .ingredient-cluster { top: 30%; height: 47vh; }
  .piece-a { top: 17%; }
  .piece-c { bottom: 36%; }
  .copy-panel { bottom: max(76px, calc(env(safe-area-inset-bottom) + 66px)); }
  .copy-panel h1 { font-size: clamp(35px, 10.4vw, 43px); }
  .price { margin-top: 9px !important; font-size: 20px; }
  .order-button { min-height: 46px; margin-top: 11px; }
  .slide-controls button { width: 42px; height: 42px; }
}

/* Mobile and tablet landscape layout. */
@media (max-height: 680px) and (orientation: landscape) {
  :root { --header-height: 62px; }

  body { overscroll-behavior: none; }
  .site-header {
    height: var(--header-height);
    padding: max(8px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; width: 44px; height: 44px; margin-right: -7px; }
  .brand { gap: 9px; font-size: 10px; }
  .brand-mark { width: 26px; height: 26px; }

  .hero { touch-action: none; }
  .slide-label {
    top: calc(var(--header-height) + 3px);
    left: max(18px, env(safe-area-inset-left));
    font-size: 7px;
  }
  .pie-orbit {
    top: 52%;
    left: -2vw;
    width: min(48vw, 410px);
  }
  .pie-image {
    top: 52%;
    left: 3vw;
    width: min(42vw, 370px);
  }
  .ingredient-cluster {
    top: 52%;
    right: -7vw;
    width: min(38vw, 350px);
    height: 88vh;
  }
  .floating-piece { width: 66px; height: 66px; }
  .piece-a { left: 2vw; top: 29%; }
  .piece-b { left: 43vw; top: 11%; }
  .piece-c { left: 43vw; bottom: 10%; }

  .copy-panel {
    top: 52%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 34vw;
    transform: translateY(-44%);
  }
  .copy-panel h1 {
    max-width: 9ch;
    font-size: clamp(30px, 5.1vw, 50px);
    line-height: .9;
  }
  #slideDescription { display: none; }
  .price { margin-top: 10px !important; font-size: 21px; }
  .order-button {
    width: min(174px, 100%);
    min-height: 46px;
    margin-top: 12px;
    font-size: 9px;
  }
  .slide-controls {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .slide-controls button { width: 42px; height: 42px; }
  .interaction-hint,
  .slide-progress { display: none; }

  .mobile-menu {
    justify-content: flex-start;
    overflow-y: auto;
    padding: calc(74px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }
  .mobile-menu-link {
    margin-bottom: 4px;
    font-size: clamp(30px, 7vw, 46px);
  }
  .mobile-menu p { display: none; }

  .info-panel {
    width: min(520px, 78vw);
    padding-top: calc(76px + env(safe-area-inset-top));
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .copy-panel h1 { font-size: clamp(28px, 4.8vw, 40px); }
  .price { font-size: 18px; }
  .order-button { min-height: 42px; }
  .ingredient-cluster { height: 82vh; }
}


/* Mobile composition only: centred pie, floating accents around it,
   and a fully visible low-opacity ingredient composition on the right. */
@media (max-width: 720px) and (orientation: portrait) {
  .visual-stage {
    inset: 0;
    top: 0;
    height: auto;
  }

  .pie-orbit {
    top: 34%;
    left: 50%;
    width: min(88vw, 470px);
    translate: -50% 0;
  }

  .pie-image {
    top: 34%;
    left: 50%;
    width: min(72vw, 430px);
    translate: -50% 0;
  }

  .ingredient-cluster {
    z-index: 1;
    top: 34%;
    right: 0;
    width: min(68vw, 420px);
    height: 56vh;
    max-height: 590px;
    object-fit: contain;
    object-position: center right;
    opacity: .24;
    filter: drop-shadow(-12px 18px 22px rgba(20,0,0,.12));
  }

  .float-layer { z-index: 5; }
  .floating-piece {
    width: clamp(62px, 17vw, 82px);
    height: clamp(62px, 17vw, 82px);
  }

  .piece-a {
    top: 20%;
    left: 6%;
    right: auto;
    bottom: auto;
  }
  .piece-b {
    top: 17%;
    right: 7%;
    left: auto;
    bottom: auto;
  }
  .piece-c {
    top: 44%;
    right: 8%;
    left: auto;
    bottom: auto;
  }
}

@media (max-width: 390px) and (orientation: portrait) {
  .pie-orbit {
    top: 33%;
    width: 91vw;
  }
  .pie-image {
    top: 33%;
    width: 76vw;
  }
  .ingredient-cluster {
    top: 33%;
    right: 0;
    width: 70vw;
    height: 53vh;
  }
  .piece-a { top: 19%; left: 4%; }
  .piece-b { top: 16%; right: 5%; }
  .piece-c { top: 43%; right: 5%; }
}

/* Mobile landscape only. Desktop landscape remains unchanged. */
@media (max-width: 900px) and (max-height: 680px) and (orientation: landscape) {
  .pie-orbit {
    top: 51%;
    left: 28%;
    width: min(45vw, 360px);
    translate: -50% 0;
  }
  .pie-image {
    top: 51%;
    left: 28%;
    width: min(38vw, 320px);
    translate: -50% 0;
  }
  .ingredient-cluster {
    z-index: 1;
    top: 51%;
    right: 0;
    width: min(39vw, 330px);
    height: 88vh;
    object-fit: contain;
    object-position: center right;
    opacity: .24;
    filter: drop-shadow(-12px 18px 22px rgba(20,0,0,.12));
  }
  .float-layer { z-index: 5; }
  .piece-a { top: 24%; left: 4%; right: auto; bottom: auto; }
  .piece-b { top: 13%; left: 42%; right: auto; bottom: auto; }
  .piece-c { top: auto; right: auto; bottom: 12%; left: 40%; }
}
