/* =====================================================================
   PIZZANO — full showcase with all 4 sections
   ===================================================================== */

@property --c-glow  { syntax: '<color>'; inherits: true; initial-value: #ff7d54; }
@property --c-edge  { syntax: '<color>'; inherits: true; initial-value: #97190b; }
@property --c-word  { syntax: '<color>'; inherits: true; initial-value: #ff9f7a; }
@property --c-accent{ syntax: '<color>'; inherits: true; initial-value: #ffd9a3; }
@property --c-text  { syntax: '<color>'; inherits: true; initial-value: #fff3ec; }
@property --c-pill-bg { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,.16); }
@property --c-pill-br { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,.32); }

:root {
  --font-display: 'Anton', 'Haettenschweiler', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22,.61,.24,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --swap: 480ms;
  --sp-bg: #0e0b09;
  --sp-card: rgba(255,255,255,.04);
  --sp-border: rgba(255,255,255,.1);
  --sp-accent: #ff7d54;
  --sp-text: rgba(255,255,255,.82);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: #97190b;
  color: var(--c-text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------------ app */
.app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-text);

  --c-glow: #ff7d54;
  --c-edge: #97190b;
  --c-word: #ff9f7a;
  --c-accent: #ffd9a3;
  --c-text: #fff3ec;
  --c-pill-bg: rgba(255,255,255,.16);
  --c-pill-br: rgba(255,255,255,.32);

  transition:
    --c-glow    var(--swap) var(--ease-soft),
    --c-edge    var(--swap) var(--ease-soft),
    --c-word    var(--swap) var(--ease-soft),
    --c-accent  var(--swap) var(--ease-soft),
    --c-text    var(--swap) var(--ease-soft),
    --c-pill-bg var(--swap) var(--ease-soft),
    --c-pill-br var(--swap) var(--ease-soft);
}

/* ------------------------------------------------------------ background */
.bg { position: absolute; inset: 0; z-index: 0; }

.bg-glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(58% 58% at 58% 46%, var(--c-glow) 0%, transparent 62%),
    radial-gradient(120% 120% at 50% 50%, transparent 30%, var(--c-edge) 100%);
  transition: background var(--swap) var(--ease-soft), transform 8s var(--ease-soft);
}

.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(100% 78% at 50% 42%, transparent 42%, rgba(0,0,0,.42) 100%),
    linear-gradient(180deg, rgba(0,0,0,.22) 0%, transparent 22%, transparent 84%, rgba(0,0,0,.34) 100%);
}

.bg-grain {
  position: absolute; inset: 0;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------- big wordmark */
.wordmark-wrap {
  position: absolute; left: 50%; top: 47%;
  transform: translate(calc(-50% + var(--wx, 0px)), calc(-50% + var(--wy, 0px)));
  z-index: 1; width: 100%;
  display: flex; justify-content: center;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .6s var(--ease);
  will-change: transform;
}
.wordmark-wrap.hidden { opacity: 0; }

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 16.5vw, 17rem);
  line-height: .84;
  letter-spacing: -.005em;
  white-space: nowrap;
  color: var(--c-word);
  opacity: .34;
  transition: color var(--swap) var(--ease-soft);
  will-change: transform, opacity;
}

/* ---------------------------------------------------------- top bar */
.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 30px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-badge {
  width: 40px; height: 40px; flex: none;
  color: var(--c-accent);
  display: grid; place-items: center;
  transition: transform .4s var(--ease), color var(--swap) var(--ease-soft);
}
.badge-svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.brand:hover .brand-badge { transform: rotate(-8deg) scale(1.07); }

.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 27px; line-height: .92; letter-spacing: .01em;
  text-transform: uppercase;
}
.brand-tagline {
  font-size: 8.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  opacity: .66;
}

/* -------------------------------------------------- center pill nav */
.pillnav {
  position: absolute; left: 50%; top: 22px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 3px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.9);
  z-index: 45;
}
.pill {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .11em;
  color: rgba(24,20,18,.62);
  transition: transform .28s var(--ease), background .28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease);
}
.pill:hover { transform: scale(1.05); color: #14110f; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.pill.is-active { background: #16130f; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.pill.is-active:hover { transform: scale(1.04); color: #fff; }

/* ------------------------------------------------------------- tools */
.tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-text);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  position: relative;
}
.icon-btn:hover { transform: scale(1.1); box-shadow: 0 10px 22px rgba(0,0,0,.3); background: rgba(255,255,255,.18); }
.icon-btn:active { transform: scale(.97); }
.ico { width: 20px; height: 20px; display: block; }
.ico-sound-off { display: none; }
.app.is-muted .ico-sound-on { display: none; }
.app.is-muted .ico-sound-off { display: block; }

.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #16130f;
  font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 3px 9px rgba(0,0,0,.4);
  transition: transform .3s var(--ease), background var(--swap) var(--ease-soft);
}
.cart-badge.pop { animation: badgePop .5s var(--ease); }
@keyframes badgePop { 0%{transform:scale(1)} 40%{transform:scale(1.42)} 100%{transform:scale(1)} }

/* ====================================================================
   SECTION PANELS — full-bleed layers that swap in/out
   ==================================================================== */
.section-panel {
  position: absolute; inset: 0; z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.section-panel[data-active="true"] {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

/* Scrollable sections */
.section-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.section-scroll::-webkit-scrollbar { width: 4px; }
.section-scroll::-webkit-scrollbar-track { background: transparent; }
.section-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }

/* ---------------------------------------- scroll page wrapper */
.scroll-page {
  padding-top: 90px;
  padding-bottom: 80px;
}

/* ---------------------------------------- section hero (shared) */
.sp-hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.sp-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.ingredients-hero-bg {
  background: radial-gradient(60% 60% at 50% 40%, #2f7f3c22 0%, transparent 70%),
    linear-gradient(180deg, #0e0b09 0%, #1a1208 100%);
}
.ovens-hero-bg {
  background: radial-gradient(60% 70% at 50% 60%, #ff6b0044 0%, #c9480022 40%, transparent 70%),
    linear-gradient(180deg, #0e0b09 0%, #1a0c04 100%);
}
.build-hero-bg {
  background: radial-gradient(60% 60% at 50% 40%, #97190b33 0%, transparent 70%),
    linear-gradient(180deg, #0e0b09 0%, #180a08 100%);
}

.sp-hero-content {
  position: relative; z-index: 2;
  max-width: 800px; padding: 0 24px;
  margin-top: -60px;
}
.sp-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: .32em;
  text-transform: uppercase; color: var(--sp-accent);
  margin: 0 0 16px; opacity: .9;
}
.sp-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: .92; margin: 0 0 20px;
  text-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.sp-subtitle {
  font-size: clamp(14px, 1.4vw, 17px); line-height: 1.72;
  opacity: .72; max-width: 56ch; margin: 0 auto;
}
.sp-scroll-hint {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: .24em; opacity: .5;
  animation: hintBounce 2.4s var(--ease-soft) infinite;
}
.sp-scroll-hint svg { width: 20px; height: 20px; }
@keyframes hintBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------------------------------------- section headings */
.section-heading {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: .95; margin: 0 0 28px; letter-spacing: -.01em;
}

/* ============================================================
   REVEAL ANIMATION (Intersection Observer driven)
   ============================================================ */
.reveal-section {
  max-width: 1300px; margin: 0 auto;
  padding: 100px 48px;
}
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease) var(--delay, 0s), transform .7s var(--ease) var(--delay, 0s);
}
.reveal-item.is-visible {
  opacity: 1; transform: translateY(0);
}
.reveal-section.section-revealed > .reveal-item,
.reveal-section.section-revealed .reveal-item {
  opacity: 1; transform: translateY(0);
}

/* ============================================================
   INGREDIENTS SECTION
   ============================================================ */
/* Origin strip */
.ing-origin-strip {
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  background: rgba(255,255,255,.02);
}
.origin-label { margin-bottom: 44px; }
.origin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.origin-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: 16px;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.origin-card:hover {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
  transform: translateY(-4px);
}
.origin-icon { font-size: 36px; flex: none; margin-top: 2px; }
.origin-country {
  display: block; font-size: 9px; font-weight: 800;
  letter-spacing: .2em; color: var(--sp-accent); margin-bottom: 6px;
}
.origin-info strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.origin-info p { margin: 0; font-size: 13px; line-height: 1.65; opacity: .7; }

/* Dough section */
.ing-dough {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.dough-visual {
  position: relative; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.dough-circle {
  position: absolute; border-radius: 50%;
  animation: doughFloat 6s var(--ease-soft) infinite;
}
.dough-c1 {
  width: 90%; aspect-ratio: 1;
  background: radial-gradient(50% 50% at 38% 36%, #f6d19322 0%, #b8792f18 60%, transparent 100%);
  border: 1px solid rgba(255,200,100,.12);
  animation-delay: 0s;
}
.dough-c2 {
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(50% 50% at 42% 38%, #e3a95f1a 0%, transparent 80%);
  border: 1px solid rgba(255,180,80,.1);
  animation-delay: -2s;
}
.dough-c3 {
  width: 48%; aspect-ratio: 1;
  background: radial-gradient(50% 50% at 40% 36%, #ffd9a344 0%, #e3a95f22 100%);
  animation-delay: -4s;
}
@keyframes doughFloat {
  0%,100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(3deg); }
}
.dough-label-wrap {
  position: relative; z-index: 1; text-align: center;
}
.dough-big-label {
  display: block; font-family: var(--font-display); font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1; letter-spacing: -.02em; color: var(--sp-accent); opacity: .9;
  text-shadow: 0 20px 60px rgba(255,125,84,.3);
}
.dough-sub-label {
  display: block; font-size: 9px; font-weight: 800; letter-spacing: .36em;
  opacity: .6; margin-top: -8px;
}
.dough-desc {
  font-size: 15px; line-height: 1.76; opacity: .74; margin-bottom: 40px;
}
.dough-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.dough-stat {
  text-align: center; padding: 20px 12px;
  background: var(--sp-card); border: 1px solid var(--sp-border); border-radius: 14px;
}
.ds-num {
  display: block; font-family: var(--font-display); font-size: 2.4rem;
  line-height: 1; color: var(--sp-accent);
}
.ds-unit { font-size: 11px; font-weight: 800; opacity: .55; }
.ds-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: .14em; opacity: .5; margin-top: 6px; text-transform: uppercase; }

/* Cheese */
.ing-cheese { background: rgba(255,255,255,.02); }
.cheese-header { margin-bottom: 40px; }
.cheese-spectrum { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cheese-item {
  padding: 24px; border-radius: 16px;
  background: var(--sp-card); border: 1px solid var(--sp-border);
  transition: transform .3s var(--ease), border-color .3s;
}
.cheese-item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); }
.cheese-swatch {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cheese-col, #fff);
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.cheese-info strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cheese-origin { font-size: 9px; font-weight: 800; letter-spacing: .16em; color: var(--sp-accent); opacity: .8; }
.cheese-info p { margin: 10px 0 0; font-size: 13px; line-height: 1.65; opacity: .68; }

/* Certs */
.ing-certs { border-top: 1px solid var(--sp-border); }
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
  margin-top: 40px;
}
.cert-card {
  padding: 28px 24px; border-radius: 16px; text-align: center;
  background: var(--sp-card); border: 1px solid var(--sp-border);
  transition: transform .3s var(--ease), border-color .3s;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); }
.cert-icon { font-size: 32px; margin-bottom: 14px; }
.cert-card strong { display: block; font-size: 14px; margin-bottom: 10px; }
.cert-card p { margin: 0; font-size: 12.5px; line-height: 1.65; opacity: .65; }

/* ============================================================
   OVENS SECTION
   ============================================================ */
/* Fire animation */
.oven-fire-anim {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 1; width: 280px; height: 200px;
  pointer-events: none;
}
.flame {
  position: absolute; bottom: 0; left: 50%;
  border-radius: 50% 50% 30% 30%;
  transform-origin: 50% 100%;
  animation: flicker var(--dur, 1.4s) ease-in-out infinite alternate;
  filter: blur(1px);
}
.f-a { width: 90px; height: 160px; margin-left: -45px; background: linear-gradient(to top, #ff8c00, #ff4500cc, transparent); --dur:1.3s; }
.f-b { width: 70px; height: 130px; margin-left: -10px; background: linear-gradient(to top, #ffd700, #ff6b00bb, transparent); --dur:1.1s; animation-delay: -.3s; }
.f-c { width: 70px; height: 130px; margin-left: -70px; background: linear-gradient(to top, #ffd700, #ff6b00bb, transparent); --dur:1.7s; animation-delay: -.6s; }
.f-d { width: 50px; height: 100px; margin-left: 20px; background: linear-gradient(to top, #ffffff88, #ffdd00aa, transparent); --dur:0.9s; animation-delay: -.1s; }
.f-e { width: 50px; height: 100px; margin-left: -80px; background: linear-gradient(to top, #ffffff88, #ffdd00aa, transparent); --dur:1.5s; animation-delay: -.4s; }
@keyframes flicker {
  0% { transform: scaleX(1) scaleY(1) rotate(-2deg); opacity: .9; }
  100% { transform: scaleX(.85) scaleY(1.08) rotate(3deg); opacity: 1; }
}

/* Oven spec section */
.oven-specs-section {
  max-width: 1300px; margin: 0 auto;
  padding: 100px 48px;
}
.oven-spec-intro { max-width: 640px; margin-bottom: 60px; }
.oven-spec-text { font-size: 15px; line-height: 1.78; opacity: .74; margin-top: -8px; }
.oven-spec-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.oven-spec-card {
  padding: 36px 28px; border-radius: 20px;
  background: var(--sp-card); border: 1px solid var(--sp-border);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.oven-spec-card:hover { transform: translateY(-6px); border-color: rgba(255,125,84,.4); background: rgba(255,125,84,.06); }
.osc-num {
  font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1; color: var(--sp-accent); margin-bottom: 4px;
}
.osc-num span { font-size: 40%; vertical-align: super; opacity: .7; }
.osc-label { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .6; margin-bottom: 16px; display: block; }
.osc-desc { font-size: 13.5px; line-height: 1.7; opacity: .66; }

/* Wood section */
.oven-wood {
  background: rgba(255,255,255,.02); border-top: 1px solid var(--sp-border); border-bottom: 1px solid var(--sp-border);
  max-width: 1300px; margin: 0 auto; padding: 100px 48px;
}
.wood-header { max-width: 600px; margin-bottom: 60px; }
.wood-header p { font-size: 15px; line-height: 1.72; opacity: .7; margin: -8px 0 0; }
.wood-list { display: flex; flex-direction: column; gap: 30px; }
.wood-item {
  display: flex; gap: 28px; align-items: flex-start;
}
.wood-bar {
  flex: none; width: var(--wood-w, 60%); height: 8px; border-radius: 999px;
  background: var(--wood-col);
  margin-top: 22px;
  box-shadow: 0 0 16px var(--wood-col);
  animation: woodGrow .8s var(--ease) both;
  transform-origin: left;
}
@keyframes woodGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wood-info strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.wood-pct { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--sp-accent); }
.wood-info p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.7; opacity: .68; }

/* Timeline */
.oven-timeline {
  max-width: 1300px; margin: 0 auto; padding: 100px 48px;
}
.timeline {
  max-width: 700px; margin: 48px auto 0;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(to bottom, var(--sp-accent), rgba(255,125,84,.1));
}
.tl-item {
  display: flex; gap: 28px; align-items: flex-start;
  padding-bottom: 40px; position: relative;
}
.tl-dot {
  flex: none; width: 32px; height: 32px; border-radius: 50%; margin-top: 2px;
  background: var(--sp-accent); border: 3px solid #0e0b09;
  box-shadow: 0 0 0 2px var(--sp-accent);
  flex-shrink: 0;
}
.tl-body { flex: 1; }
.tl-time { font-size: 9px; font-weight: 800; letter-spacing: .2em; color: var(--sp-accent); display: block; margin-bottom: 6px; }
.tl-body strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tl-body p { margin: 0; font-size: 13.5px; line-height: 1.7; opacity: .68; }

/* ============================================================
   CUSTOM BUILD SECTION
   ============================================================ */
.build-hero { background: #0e0b09; }

.builder-section {
  max-width: 1400px; margin: 0 auto;
  padding: 60px 48px 100px;
}
.builder-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start;
}
.builder-steps { display: flex; flex-direction: column; gap: 32px; }
.builder-step {
  padding: 32px; border-radius: 20px;
  background: var(--sp-card); border: 1px solid var(--sp-border);
  transition: border-color .3s var(--ease);
}
.builder-step:has(.step-opt.is-selected) { border-color: rgba(255,125,84,.3); }
.step-header {
  display: flex; align-items: center; gap: 18px; margin-bottom: 22px;
}
.step-num {
  font-family: var(--font-display); font-size: 2rem; line-height: 1;
  color: var(--sp-accent); opacity: .6; flex: none; width: 52px;
}
.step-title { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.step-sub { font-size: 12px; opacity: .5; margin-top: 3px; display: block; }

.step-options {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.topping-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px;
}
.step-opt {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  gap: 3px; text-align: left;
  transition: border-color .24s var(--ease), background .24s var(--ease), transform .24s var(--ease);
  cursor: pointer;
}
.step-opt:hover { border-color: rgba(255,125,84,.4); background: rgba(255,125,84,.07); transform: translateY(-2px); }
.step-opt.is-selected {
  border-color: var(--sp-accent); background: rgba(255,125,84,.12);
  box-shadow: 0 0 0 2px rgba(255,125,84,.2);
}
.opt-icon { font-size: 20px; margin-bottom: 4px; }
.opt-name { font-size: 13px; font-weight: 700; }
.opt-detail { font-size: 11px; opacity: .55; }
.opt-price { font-size: 10px; font-weight: 800; color: var(--sp-accent); margin-top: 4px; }

/* Builder summary sticky panel */
.builder-summary {
  position: sticky; top: 100px;
  background: rgba(255,255,255,.04); border: 1px solid var(--sp-border);
  border-radius: 24px; overflow: hidden;
}
.summary-pizza-preview {
  position: relative; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(255,125,84,.15) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.preview-plate {
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(50% 50% at 38% 36%, #f6d193 0%, #e3a95f 55%, #b8792f 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: previewFloat 4s var(--ease-soft) infinite;
}
@keyframes previewFloat {
  0%,100% { transform: translateY(0) rotate(-1deg) scale(1); }
  50% { transform: translateY(-10px) rotate(1deg) scale(1.02); }
}
.preview-toppings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; gap: 4px; flex-wrap: wrap;
  padding: 22%;
  pointer-events: none;
}
.summary-content { padding: 24px 28px 28px; }
.summary-name {
  font-family: var(--font-display); font-size: 1.8rem; line-height: 1;
  margin: 8px 0 18px;
}
.summary-lines { min-height: 80px; margin-bottom: 20px; }
.summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 12.5px;
}
.summary-line:last-child { border-bottom: 0; }
.sl-label { opacity: .65; }
.sl-val { font-weight: 600; }
.sl-price { color: var(--sp-accent); font-weight: 700; }
.summary-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 18px;
  border-top: 1px solid var(--sp-border);
  margin-bottom: 16px;
}
.summary-price-label { font-size: 9px; font-weight: 800; letter-spacing: .22em; opacity: .5; }
.summary-price {
  font-family: var(--font-display); font-size: 2.4rem; color: var(--sp-accent);
  transition: transform .3s var(--ease);
}
.summary-price.pulse { animation: pricePop .4s var(--ease); }
@keyframes pricePop { 0%{transform:scale(1)} 40%{transform:scale(1.14)} 100%{transform:scale(1)} }

.build-order-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; border-radius: 999px;
  background: linear-gradient(135deg, #ff7d54, #c9480a);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  box-shadow: 0 14px 30px rgba(255,80,20,.28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  margin-bottom: 12px;
}
.build-order-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 42px rgba(255,80,20,.4); }
.build-order-btn:active { transform: scale(.98); }
.build-order-btn svg { width: 18px; height: 18px; }
.summary-note { font-size: 10.5px; opacity: .45; text-align: center; margin: 0; line-height: 1.5; }

/* ====================================================================
   MENU SECTION — original stage + carousel
   ==================================================================== */
#section-menu .stage { position: absolute; inset: 0; }

/* floating ingredient pieces */
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.floater {
  position: absolute;
  width: var(--s, 78px); height: var(--s, 78px);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.4));
  animation: drift var(--dur, 9s) var(--ease-soft) infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.floater svg { width: 100%; height: 100%; display: block; }
.floater.f1 { top: 15%;  right: 20%; --s: 92px; --dur: 9.5s;  }
.floater.f2 { top: 34%;  right: 7%;  --s: 74px; --dur: 11.2s; --delay: -2.4s; }
.floater.f3 { top: 60%;  right: 16%; --s: 66px; --dur: 8.4s;  --delay: -4.1s; }
.floater.f4 { bottom: 15%; right: 29%; --s: 84px; --dur: 12.6s; --delay: -1.6s; }
.floater.f5 { top: 23%;  right: 38%; --s: 46px; --dur: 10.4s; --delay: -6.2s; }

@keyframes drift {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  25%  { transform: translate3d(-14px,-20px,0) rotate(9deg) scale(1.03); }
  50%  { transform: translate3d(6px,-34px,0) rotate(-6deg) scale(.97); }
  75%  { transform: translate3d(16px,-12px,0) rotate(6deg) scale(1.02); }
  100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
}

/* hero object */
.hero {
  position: absolute; left: 62%; top: 50%;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
  width: min(560px, 44vw);
  aspect-ratio: 1 / 1.06;
  display: grid; place-items: center;
  transition: transform .5s var(--ease);
  will-change: transform;
}

.hero-shadow {
  position: absolute; left: 50%; bottom: 3%;
  width: 74%; height: 12%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.66) 0%, rgba(0,0,0,.34) 45%, transparent 72%);
  filter: blur(9px);
  animation: shadowPulse 5.6s var(--ease-soft) infinite;
}
@keyframes shadowPulse {
  0%,100% { transform: translateX(-50%) scale(1);    opacity: .95; }
  50%     { transform: translateX(-50%) scale(.82);  opacity: .6; }
}

.hero-pizza {
  width: 100%; height: 100%;
  transform-origin: 50% 52%;
  will-change: transform;
}
.pizza-inner {
  width: 100%; height: 100%;
  animation: floaty 5.6s var(--ease-soft) infinite;
  transform-origin: 50% 52%;
  will-change: transform;
}
.pizza-inner svg { width: 100%; height: 100%; display: block; overflow: visible; }
.burger-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 32px 55px rgba(0,0,0,.68)) drop-shadow(0 12px 24px rgba(0,0,0,.45));
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transform: translateZ(0);
}

@keyframes floaty {
  0%,100% { transform: translateY(0)     rotate(-1.2deg) scale(1); }
  50%     { transform: translateY(-26px) rotate(1.4deg)  scale(1.026); }
}

.hero-pedestal {
  position: absolute; left: 50%; bottom: 4%;
  width: 62%; height: 3px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c-glow) 75%, white), transparent);
  opacity: .5;
  filter: blur(4px);
}

/* -------------------------------------------------------- info block */
.info {
  position: absolute; left: calc(2.1vw + 74px); top: 50%;
  transform: translateY(-50%);
  width: min(400px, 30vw);
  z-index: 30;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 10px; font-weight: 800; letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-accent);
  transition: color var(--swap) var(--ease-soft);
}

.info-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pizza-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-shadow: 0 12px 34px rgba(0,0,0,.34);
}
.tagpill {
  padding: 6px 12px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--c-pill-bg);
  border: 1px solid var(--c-pill-br);
  backdrop-filter: blur(8px);
  transition: background var(--swap) var(--ease-soft), border-color var(--swap) var(--ease-soft);
}

.price-row { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 18px; }
.price {
  font-family: var(--font-display);
  font-size: 34px; letter-spacing: .01em;
}
.price-was { font-size: 15px; font-weight: 600; opacity: .58; text-decoration: line-through; }
.price-note { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .5; }

.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--c-pill-bg);
  border: 1px solid var(--c-pill-br);
  backdrop-filter: blur(8px);
  transition: background var(--swap) var(--ease-soft), border-color var(--swap) var(--ease-soft), transform .3s var(--ease);
}
.stat:hover { transform: translateY(-2px) scale(1.04); }
.stat i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-accent);
  transition: background var(--swap) var(--ease-soft);
}

.desc {
  margin: 0 0 24px;
  font-size: 14.5px; line-height: 1.62; font-weight: 450;
  max-width: 40ch;
  opacity: .84;
}

.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: #17130f;
  color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
  box-shadow: 0 14px 30px rgba(0,0,0,.36);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.order-btn:hover { transform: translateY(-3px) scale(1.035); box-shadow: 0 22px 42px rgba(0,0,0,.46); background: #000; }
.order-btn:active { transform: translateY(-1px) scale(.99); }
.order-btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.order-btn:hover .ico { transform: translateX(3px); }

.delivery { font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .62; }
.delivery b { font-weight: 800; }

/* ----------------------------------------------------------- arrows */
.nav-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 38;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .32s var(--ease), background .32s var(--ease), box-shadow .32s var(--ease);
}
.nav-arrow svg { width: 26px; height: 26px; }
.nav-arrow-left  { left: 2.1vw; }
.nav-arrow-right { right: 2.1vw; }
.nav-arrow:hover { background: rgba(255,255,255,.2); box-shadow: 0 20px 42px rgba(0,0,0,.4); }
.nav-arrow-left:hover  { transform: translateY(-50%) scale(1.12) translateX(-3px); }
.nav-arrow-right:hover { transform: translateY(-50%) scale(1.12) translateX(3px); }
.nav-arrow:active { transform: translateY(-50%) scale(.96); }

/* ------------------------------------------------------------- dock */
.dock {
  position: absolute; right: 30px; bottom: 26px;
  z-index: 42;
  display: flex; align-items: center; gap: 20px;
}

.transport {
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
}
.tbtn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-text); opacity: .82;
  transition: transform .28s var(--ease), background .28s var(--ease), opacity .28s var(--ease);
}
.tbtn svg { width: 17px; height: 17px; }
.tbtn:hover { transform: scale(1.14); opacity: 1; background: rgba(255,255,255,.18); }
.tbtn-play { width: 40px; height: 40px; background: var(--c-accent); color: #17130f; opacity: 1; }
.tbtn-play:hover { background: var(--c-accent); }
.tbtn-play .ico { width: 18px; height: 18px; }
.ico-play { display: none; }
.app.is-paused .ico-pause { display: none; }
.app.is-paused .ico-play { display: block; }

.counter {
  display: flex; align-items: baseline; gap: 5px;
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: .06em;
}
.counter b { font-size: 21px; }
.counter span { opacity: .5; }

.thumbs { display: flex; align-items: center; gap: 10px; }
.thumb {
  position: relative;
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  background-color: var(--chip, #3a2b22);
  background-image: linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.16));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease), background-color .34s var(--ease);
  overflow: hidden;
}
.thumb svg { width: 40px; height: 40px; position: relative; z-index: 1; }
.thumb-img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  padding: 5px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.45));
  transition: transform .3s var(--ease);
}
.thumb:hover .thumb-img { transform: scale(1.12); }
.thumb:hover { transform: translateY(-4px) scale(1.09); box-shadow: 0 18px 30px rgba(0,0,0,.4); }
.thumb.is-active {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px var(--c-accent), 0 16px 34px rgba(0,0,0,.44);
  transform: translateY(-4px) scale(1.05);
}
.thumb .thumb-idx {
  position: absolute; bottom: 2px; right: 5px; z-index: 2;
  font-size: 8px; font-weight: 800; letter-spacing: .08em;
  opacity: .75;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

/* -------------------------------------------------------------- toast */
.toast {
  position: absolute; left: 50%; bottom: 34px;
  transform: translate(-50%, 24px);
  z-index: 60;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(18,15,12,.92);
  color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   CART DRAWER
   ===================================================================== */
.cart-badge.is-empty { display: none; }

.cart-scrim {
  position: absolute; inset: 0; z-index: 70;
  background: rgba(8,6,5,.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.cart-scrim[hidden] { display: none; }
.cart-scrim.is-open { opacity: 1; }

.cart-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 75;
  width: min(400px, 100%);
  display: flex; flex-direction: column;
  color: rgba(255,255,255,.9);
  background: linear-gradient(180deg, #221b16 0%, #14100d 62%, #0f0c0a 100%);
  border-left: 1px solid rgba(255,255,255,.09);
  box-shadow: -30px 0 90px rgba(0,0,0,.6);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.cart-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform .5s var(--ease), visibility 0s;
}

.cart-head {
  flex: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 26px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cart-eyebrow {
  margin: 0 0 6px;
  font-size: 9px; font-weight: 800; letter-spacing: .28em;
  color: var(--c-accent, #ffd9a3); opacity: .85;
}
.cart-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: 2rem; line-height: 1; letter-spacing: .01em;
  text-transform: uppercase;
}
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-family: var(--font-body); font-size: 11px; font-weight: 800;
  vertical-align: middle; margin-left: 6px;
  opacity: .8;
}
.cart-close {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.cart-close svg { width: 18px; height: 18px; }
.cart-close:hover { transform: rotate(90deg); background: rgba(255,255,255,.14); color: #fff; }

.cart-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 8px 26px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.cart-body::-webkit-scrollbar { width: 4px; }
.cart-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 4px; }

.cart-empty {
  display: none;
  flex-direction: column; align-items: center; text-align: center;
  padding: 54px 12px;
}
.cart-drawer.is-empty .cart-empty { display: flex; }
.cart-drawer.is-empty .cart-foot { display: none; }
.cart-empty-icon { width: 84px; height: 84px; color: var(--c-accent, #ffd9a3); opacity: .8; }
.cart-empty-icon svg { width: 100%; height: 100%; }
.cart-empty-title { font-size: 15px; font-weight: 700; margin: 20px 0 6px; }
.cart-empty-sub { font-size: 12.5px; line-height: 1.6; opacity: .55; max-width: 30ch; margin: 0 0 22px; }
.cart-empty-cta {
  padding: 12px 22px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .16em;
  color: #16130f; background: var(--c-accent, #ffd9a3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cart-empty-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.4); }

.cart-list { display: flex; flex-direction: column; }
.cart-drawer.is-empty .cart-list { display: none; }
.cart-item {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  animation: cartItemIn .4s var(--ease) both;
}
@keyframes cartItemIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ci-thumb {
  position: relative; flex: none;
  width: 62px; height: 62px; border-radius: 14px;
  display: grid; place-items: center;
  overflow: hidden;
  background-color: var(--chip, #3a2b22);
  background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.2));
  border: 1px solid rgba(255,255,255,.12);
}
.ci-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ci-thumb span { font-size: 26px; line-height: 1; }
.ci-main { flex: 1; min-width: 0; }
.ci-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ci-row strong { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.ci-price { font-size: 12.5px; font-weight: 700; color: var(--c-accent, #ffd9a3); white-space: nowrap; }
.ci-meta { font-size: 10.5px; opacity: .5; margin-top: 3px; line-height: 1.45; }
.ci-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.qty {
  display: flex; align-items: center; gap: 2px;
  padding: 2px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.qty button {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; line-height: 1; font-weight: 600;
  color: rgba(255,255,255,.8);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.qty button:hover { background: rgba(255,255,255,.16); color: #fff; transform: scale(1.08); }
.qty span { min-width: 20px; text-align: center; font-size: 12px; font-weight: 700; }
.ci-remove {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; opacity: .45;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.ci-remove:hover { opacity: 1; color: #ff8a6b; }

.cart-foot {
  flex: none;
  padding: 20px 26px 24px;
  border-top: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.2);
}
.cart-progress { margin-bottom: 16px; }
.cp-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  opacity: .6; margin-bottom: 8px;
}
.cp-label.is-unlocked { color: #8fd694; opacity: 1; }
.cp-track { height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.cp-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--c-accent, #ffd9a3), #ff8a4c);
  transition: width .5s var(--ease), background .5s var(--ease);
}
.cp-fill.is-unlocked { background: linear-gradient(90deg, #8fd694, #43a85c); }

.cart-sumrow {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; opacity: .62; padding: 3px 0;
}
.cart-total {
  opacity: 1; margin-top: 10px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
}
.cart-total span:last-child {
  font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0;
  color: var(--c-accent, #ffd9a3);
}
.cart-checkout {
  width: 100%; margin-top: 16px;
  padding: 16px 24px; border-radius: 999px;
  background: linear-gradient(135deg, #ff7d54, #c9480a);
  color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
  box-shadow: 0 14px 30px rgba(255,80,20,.24);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.cart-checkout:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(255,80,20,.36); filter: saturate(1.1); }
.cart-checkout:active { transform: scale(.985); }
.cart-note { margin: 10px 0 0; text-align: center; font-size: 10px; opacity: .38; letter-spacing: .03em; }

@media (max-width: 620px) {
  .cart-head { padding: 20px 20px 16px; }
  .cart-body { padding: 4px 20px; }
  .cart-foot { padding: 16px 20px 20px; }
  .cart-title { font-size: 1.7rem; }
}

/* =====================================================================
   TRANSITION CHOREOGRAPHY
   ===================================================================== */
.app.swap .wordmark { opacity: 0; transform: translateY(-4%) scale(.96); }
.app.swap .info      { opacity: 0; transform: translateY(-50%) translateX(-34px); }
.app.swap .hero-pizza{ opacity: 0; transform: scale(.86) translateY(14px); }
.app.swap .floaters  { opacity: 0; transform: scale(.94); }

.wordmark  { transition: opacity 240ms var(--ease), transform 420ms var(--ease), color var(--swap) var(--ease-soft); transform-origin: 50% 50%; }
.info      { transition: opacity 240ms var(--ease), transform 420ms var(--ease); }
.hero-pizza{ transition: opacity 260ms var(--ease), transform 460ms var(--ease); }
.floaters  { transition: opacity 300ms var(--ease), transform 460ms var(--ease); }

/* --------------------------------------------------------- entrance */
.app[data-anim="in"] .wordmark { animation: enterWord 1s var(--ease) both .05s; }
.app[data-anim="in"] .hero-pizza { animation: enterHero 1.05s var(--ease) both .22s; }
.app[data-anim="in"] .hero-shadow { animation: enterShadow .9s var(--ease) both .3s, shadowPulse 5.6s var(--ease-soft) infinite 1.3s; }
.app[data-anim="in"] .info { animation: enterInfo .85s var(--ease) both .42s; }
.app[data-anim="in"] .floater { animation: enterFloat .8s var(--ease) both .5s, drift var(--dur, 9s) var(--ease-soft) infinite var(--delay, 0s); }
.app[data-anim="in"] .topbar { animation: enterFade .7s var(--ease) both .62s; }
.app[data-anim="in"] .pillnav { animation: enterDrop .7s var(--ease) both .62s; }
.app[data-anim="in"] .dock { animation: enterFade .7s var(--ease) both .72s; }
.app[data-anim="in"] .nav-arrow { animation: enterFade .7s var(--ease) both .66s; }

@keyframes enterWord {
  from { opacity: 0; transform: scale(.88); letter-spacing: .06em; }
  to   { opacity: .34; transform: scale(1); letter-spacing: -.005em; }
}
@keyframes enterHero {
  from { opacity: 0; transform: translateY(-64px) scale(.72) rotate(-9deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes enterShadow {
  from { opacity: 0; transform: translateX(-50%) scale(.5); }
  to   { opacity: .95; transform: translateX(-50%) scale(1); }
}
@keyframes enterInfo {
  from { opacity: 0; transform: translateY(-50%) translateX(-46px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@keyframes enterFloat {
  from { opacity: 0; transform: scale(.4) rotate(-30deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes enterFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes enterDrop { from { opacity: 0; transform: translateX(-50%) translateY(-16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .ing-dough { grid-template-columns: 1fr; gap: 40px; }
  .dough-visual { max-width: 280px; margin: 0 auto; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-summary { position: static; margin-top: 20px; }
}

@media (max-width: 1080px) {
  /* fixed, not absolute: .pillnav lives inside the top bar, whose height must not become its anchor */
  .pillnav {
    position: fixed; top: auto; bottom: 16px; left: 50%; transform: translateX(-50%);
    max-width: 92vw; overflow-x: auto;
  }
  .pillnav { scrollbar-width: none; }
  .pill { padding: 9px 14px; font-size: 10.5px; }
  .pillnav::-webkit-scrollbar { display: none; }
  .brand-tagline { display: none; }

  .hero { left: 50%; top: 32%; width: min(420px, 82vw); }
  .wordmark { font-size: clamp(2.6rem, 15vw, 8rem); }
  .wordmark-wrap { top: 34%; }

  .info {
    left: 50%; top: auto; bottom: 150px;
    transform: translateX(-50%);
    width: min(560px, 92vw);
    text-align: center;
  }
  .info .info-head, .info .price-row, .info .stats, .info .actions { justify-content: center; }
  .info .desc { margin-inline: auto; font-size: 13.5px; }
  .eyebrow { margin-bottom: 10px; }
  .price-row { margin: 14px 0 14px; }
  .stats { justify-content: center; }
  .hero-pedestal { display: none; }

  .dock {
    right: 50%; transform: translateX(50%);
    bottom: 80px;
    gap: 12px;
  }
  .nav-arrow { width: 48px; height: 48px; }
  .nav-arrow-left { left: 12px; } .nav-arrow-right { right: 12px; }

  .app.swap .info { transform: translateX(-50%) translateY(20px); }

  .reveal-section, .oven-specs-section, .oven-wood, .oven-timeline, .builder-section {
    padding: 60px 24px;
  }
}

@media (max-width: 620px) {
  .topbar { padding: 16px 18px; }
  .brand-name { font-size: 22px; }
  .brand-badge { width: 32px; height: 32px; }
  .hero { top: 22%; width: min(250px, 64vw); }
  .info { bottom: 136px; }
  .pizza-name { font-size: clamp(2rem, 11vw, 3rem); }
  .price { font-size: 26px; }
  .desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
  .delivery { display: none; }
  .counter { display: none; }
  .thumbs { gap: 7px; }
  .thumb { width: 44px; height: 44px; border-radius: 12px; }
  .thumb svg { width: 32px; height: 32px; }
  .thumb-img { padding: 3px; }
  .dock { bottom: 74px; }
  .pillnav { bottom: 12px; }
  .floaters .f5 { display: none; }
  .dough-stats { grid-template-columns: repeat(2, 1fr); }
  .sp-title { font-size: clamp(2.2rem, 9vw, 4rem); }
}

@media (max-height: 620px) {
  .info { transform: translateY(-50%) scale(.9); transform-origin: left center; }
  .hero { width: min(400px, 40vw); }
}

/* Short viewports: trim the stack so the dock, info block and hero never collide */
@media (max-width: 1080px) and (max-height: 820px) {
  .hero { top: 25%; width: min(300px, 40vh); }
  .info { bottom: 132px; }
  .info .stats, .info .desc { display: none; }
  .info .price-row { margin: 10px 0 12px; }
  .dock { bottom: 76px; }
}

@media (max-width: 620px) and (max-height: 720px) {
  .hero { top: 24%; width: min(240px, 36vh); }
  .info { bottom: 128px; }
  .info .price-row { margin: 8px 0 10px; }
  .pillnav { bottom: 10px; }
  .dock { bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .app { transition-duration: .001ms !important; }
}
