/* Li Ribeiro Brigadeiria — estilos
   Paleta tirada da logo (rosa + marrom) e da fita da marca (vermelho + dourado). */
:root {
  --choc-950: #140b08;
  --choc-900: #1d120e;
  --choc-850: #241612;
  --choc-800: #2d1c16;
  --choc-700: #3d2720;
  --choc-600: #5a3a33;
  --cream-50: #fcf6f2;
  --cream-100: #f6ebe4;
  --cream-200: #ecdcd2;
  --rose-200: #f9d3d4;
  --rose-300: #f5b6b9;
  --rose-400: #f19ca1;
  --rose-600: #b85c66;
  --kraft: #b98a5c;
  --ribbon: #cf1720;
  --gold: #e6c36c;
  --ink-on-dark: #f7ebe4;
  --muted-on-dark: #cbb3a9;
  --ink-on-light: #2a1813;
  --muted-on-light: #6e5148;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: min(1180px, 100% - clamp(32px, 6vw, 80px));
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .18 0 0 0 0 .09 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .08 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .12 0 0 0 0 .05 0 0 0 1.6 -.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink-on-dark);
  background: var(--choc-900);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.06; margin: 0; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 0; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--rose-300); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--rose-400); color: var(--choc-950); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Logo (vetor redesenhado a partir da fita oficial) ---------- */
.logo {
  display: block;
  aspect-ratio: 506 / 150;
  background: currentColor;
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
          mask: url("../img/logo.svg") center / contain no-repeat;
}

/* ---------- Botões ---------- */
.btn {
  --bg: var(--rose-400); --fg: var(--choc-950);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.35em;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--f-text); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --bg: var(--rose-300); }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink-on-dark); border-color: rgba(247, 235, 228, .38); }
.btn--ghost:hover { --bg: rgba(247, 235, 228, .08); border-color: rgba(247, 235, 228, .7); }
.btn--dark { --bg: var(--choc-900); --fg: var(--cream-50); }
.btn--dark:hover { --bg: var(--choc-700); }
.btn--line-dark { --bg: transparent; --fg: var(--ink-on-light); border-color: rgba(42, 24, 19, .3); }
.btn--line-dark:hover { --bg: rgba(42, 24, 19, .06); border-color: rgba(42, 24, 19, .6); }
.btn--sm { min-height: 42px; padding: .6em 1em; font-size: .92rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .78rem/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose-300);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .7; }

/* ---------- Topo ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-block: clamp(14px, 2.4vw, 26px);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .logo { width: clamp(132px, 15vw, 178px); color: var(--rose-400); }
.topbar nav { display: flex; align-items: center; gap: 10px; }
.icon-link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-on-dark); border: 1.5px solid rgba(247,235,228,.28); transition: border-color .2s, background-color .2s; }
.icon-link:hover { border-color: rgba(247,235,228,.7); background: rgba(247,235,228,.06); }
.icon-link svg { width: 20px; height: 20px; }

/* ---------- Hero: a caixa ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: clamp(78px, 10vw, 110px);
  padding-bottom: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(120% 70% at 72% 62%, rgba(150, 88, 60, .38) 0%, rgba(70, 40, 28, .18) 38%, transparent 70%),
    radial-gradient(90% 60% at 20% 10%, rgba(241, 156, 161, .08), transparent 60%),
    linear-gradient(180deg, #1b100c 0%, #22140f 55%, #2a1913 100%);
}
.hero::after { /* grão sutil */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .9; pointer-events: none;
}
.hero-grid {
  display: grid; gap: clamp(8px, 2vw, 24px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "media" "actions";
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-media { grid-area: media; position: relative; }
.hero > .wrap { width: var(--wrap); }
.hero .box-scene .box { left: 47%; }
.hero-actions { grid-area: actions; }
.hero h1 {
  font-size: clamp(2.15rem, 1.5rem + 3vw, 4.1rem);
  margin-top: 14px; max-width: 13ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--rose-300); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero-lead { margin-top: 14px; color: var(--muted-on-dark); max-width: 40ch; }
.hero-ctas { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; max-width: 460px; }
.hero-ctas .btn { padding-inline: .9em; }
@media (max-width: 359px) { .hero-ctas { grid-template-columns: minmax(0, 1fr); } }
.proofs { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted-on-dark); font-size: .9rem; }
.proofs li { display: inline-flex; align-items: center; gap: .5em; }
.proofs li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose-400); box-shadow: 0 0 0 3px rgba(241,156,161,.18); }

@media (min-width: 900px) {
  .hero .box-scene { --w: min(40vw, 560px); }
  .hero .box-scene .box { left: 46%; }
  .hero > .wrap { width: var(--wrap); }
  .hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "copy media" "actions media";
    column-gap: clamp(24px, 4vw, 64px);
    align-items: end;
  }
  .hero-copy { align-self: end; }
  .hero-actions { align-self: start; margin-top: 26px; }
}

/* Foto estática (padrão sem JS, movimento reduzido, aparelho lento) */
.hero-static { margin: 0; position: relative; }
.hero-static img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.hero-static figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted-on-dark); }
.js-3d .hero-static { display: none; }
.box-scene { display: none; }
.js-3d .box-scene { display: block; }

/* Cena 3D */
.box-scene {
  --w: min(78vw, 560px);
  --d: calc(var(--w) * .8);
  --h: calc(var(--w) * .1);
  --lidh: calc(var(--w) * .058);
  --ov: calc(var(--w) * .012);
  --t: .06;           /* abertura da tampa: 0 fechada, 1 aberta */
  --rx: 40deg; --rz: -9deg;
  position: relative;
  height: calc(var(--w) * .86);
  perspective: calc(var(--w) * 3.4);
  perspective-origin: 50% 10%;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.box-scene.is-dragging { cursor: grabbing; }
.box {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); height: var(--d);
  margin-left: calc(var(--w) / -2); margin-top: calc(var(--d) / -2 - var(--w) * .03);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform .6s var(--ease);
}
.box * { transform-style: preserve-3d; }
.box-floor {
  position: absolute; inset: 0; overflow: hidden;
  background: #3a1d17 url("../img/caixa-dentro-640.webp") center / cover;
  border-radius: 3px;
}
.box-floor img { width: 100%; height: 100%; object-fit: cover; }
.box-floor::after { /* profundidade nas bordas internas */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 calc(var(--w) * .05) rgba(30, 12, 6, .65), inset calc(var(--w) * .02) calc(var(--w) * .03) calc(var(--w) * .04) rgba(30, 12, 6, .45);
}
.lid-shade { /* sombra da tampa deslizando sobre as forminhas */
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%;
  transform: translateX(calc(var(--t) * 102% - 26%));
  background: linear-gradient(90deg, rgba(20,8,4,0) 0%, rgba(20,8,4,.22) 55%, rgba(20,8,4,.7) 90%, rgba(20,8,4,.88) 100%);
  pointer-events: none; will-change: transform;
}
.wall { position: absolute; background-image: var(--speck), var(--fiber), var(--paper); }
.wall--far   { left: 0; top: 0; width: 100%; height: var(--h); transform-origin: top; transform: rotateX(90deg); background-color: #c09060; }
.wall--near  { left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: top; transform: rotateX(90deg); background-color: #8e623a; }
.wall--left  { left: 0; top: 0; width: var(--h); height: 100%; transform-origin: left; transform: rotateY(-90deg); background-color: #a1703f; }
.wall--right { left: 100%; top: 0; width: var(--h); height: 100%; transform-origin: left; transform: rotateY(-90deg); background-color: #9c6b3d; }
.wall--far::after, .wall--left::after { /* sombra interna */
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40,18,8,.45), rgba(40,18,8,.05));
}
.wall--near::after, .wall--right::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,230,200,.10), rgba(40,18,8,.25)); }

.table-shadow {
  position: absolute; inset: -6% -5% -10% -4%;
  transform: translateZ(-2px);
  background: radial-gradient(closest-side, rgba(8,3,1,.75), rgba(8,3,1,0));
  filter: blur(6px);
}
.lid-cast {
  position: absolute; left: -2%; top: 3%; width: 104%; height: 102%;
  transform: translateZ(-1px) translateX(calc(var(--t) * (100% + var(--ov) * 2) + var(--w) * .03));
  background: rgba(8,3,1,.55); filter: blur(14px); border-radius: 8px;
  will-change: transform;
}

.lid {
  position: absolute;
  left: calc(var(--ov) * -1); top: calc(var(--ov) * -1);
  width: calc(100% + var(--ov) * 2); height: calc(100% + var(--ov) * 2);
  transform: translate3d(calc(var(--t) * 100% * 1.0), 0, var(--h));
  will-change: transform;
}
.lid:focus-visible { outline: none; }
.lid:focus-visible .lid-top { outline: 3px solid var(--rose-300); outline-offset: 4px; }
.lid-top {
  position: absolute; inset: 0;
  transform: translateZ(var(--lidh));
  background:
    linear-gradient(115deg, rgba(255,236,210,.22) 0%, rgba(255,236,210,0) 40%, rgba(50,24,8,.22) 100%),
    var(--speck), var(--fiber), var(--paper),
    linear-gradient(160deg, #c39565 0%, #b4834f 55%, #a3733f 100%);
  border-radius: 2px;
  overflow: hidden;
}
.lid-top::after { /* luz na borda da tampa */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 235, 205, .22), inset 0 calc(var(--w) * -.02) calc(var(--w) * .04) rgba(40, 18, 6, .22);
}
.lid-top::before { /* vinco da tampa */
  content: ""; position: absolute; inset: calc(var(--w) * .022);
  border: 1px solid rgba(80, 45, 18, .22); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,240,220,.15);
}
.ribbon {
  position: absolute; left: 0; right: 0; top: 50%;
  height: calc(var(--d) * .2); transform: translateY(-50%);
  background: #c5141d url("../img/fita.webp") center / auto 100% repeat-x;
  box-shadow: 0 2px 3px rgba(60, 10, 5, .35), 0 -1px 0 rgba(255,255,255,.08) inset;
}
.ribbon::after { /* brilho do cetim */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 35%, rgba(0,0,0,.12));
}
.lid-edge { position: absolute; background-image: linear-gradient(180deg, rgba(255,230,200,.18), rgba(30,12,4,.25)), var(--speck), var(--paper); }
.lid-edge--near  { left: 0; top: 100%; width: 100%; height: var(--lidh); transform-origin: top; transform: rotateX(90deg); background-color: #7d5330; }
.lid-edge--far   { left: 0; top: 0; width: 100%; height: var(--lidh); transform-origin: top; transform: rotateX(90deg); background-color: #9b6c3f; }
.lid-edge--left  { left: 0; top: 0; width: var(--lidh); height: 100%; transform-origin: left; transform: rotateY(-90deg); background-color: #6f4a28; }
.lid-edge--right { left: 100%; top: 0; width: var(--lidh); height: 100%; transform-origin: left; transform: rotateY(-90deg); background-color: #94673a; }
.lid-edge--left::after, .lid-edge--right::after { /* fita descendo pela lateral */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(var(--d) * .2); transform: translateY(-50%);
  background: linear-gradient(90deg, #8f0d14, #b9121b);
}
.lid-edge--left::before { content: ""; position: absolute; inset: 0; background: rgba(20,8,2,.25); }

/* Dica de arraste */
.drag-hint {
  position: absolute; left: 50%; bottom: calc(var(--w) * .02); z-index: 3;
  transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(20, 11, 8, .72); color: var(--ink-on-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(247,235,228,.16);
  font: 600 .92rem/1 var(--f-text); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.drag-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.drag-hint .track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(241,156,161,.18); }
.drag-hint .track::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--rose-400); animation: nudge 1.6s var(--ease) infinite;
}
@keyframes nudge { 0%, 15% { transform: translateX(0); } 55%, 70% { transform: translateX(16px); } 100% { transform: translateX(0); } }

.hero-media .open-note {
  position: absolute; right: 0; top: 0; z-index: 3;
  font-size: .85rem; color: var(--muted-on-dark);
  opacity: 0; transition: opacity .5s;
}

/* ---------- Seções ---------- */
.sec { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.sec--light { background: var(--cream-100); color: var(--ink-on-light); }
.sec--light::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; }
.sec--light .eyebrow { color: var(--rose-600); }
.sec-head { max-width: 640px; }
.sec-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin-top: 14px; text-wrap: balance; }
.sec-head h2 em { font-style: italic; color: var(--rose-600); font-variation-settings: "SOFT" 100, "WONK" 1; }
.sec--dark .sec-head h2 em { color: var(--rose-300); }
.sec-head p { margin-top: 14px; color: var(--muted-on-light); max-width: 52ch; }
.sec--dark .sec-head p { color: var(--muted-on-dark); }

/* Sabores: abertura com o brigadeiro partido */
.cut {
  display: grid; gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.cut-photo { position: relative; margin: 0; }
.cut-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px;
  box-shadow: 0 50px 90px -40px rgba(70, 30, 20, .55);
}
.cut-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 320px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(252, 246, 242, .9); color: var(--ink-on-light);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .88rem; line-height: 1.4;
}
.cut-photo figcaption strong { display: block; font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; }
@media (min-width: 860px) {
  .cut { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* Galeria interativa de sabores */
.gallery { margin-top: clamp(48px, 7vw, 96px); }
.gal {
  display: grid; gap: clamp(18px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "stage" "info" "rail";
}
.gal-stage { grid-area: stage; position: relative; border-radius: 26px; overflow: hidden; background: var(--cream-200); aspect-ratio: 4 / 5; touch-action: pan-y; max-height: 76svh; width: 100%; justify-self: center; }
.gal-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .9s var(--ease); }
.gal-stage img.is-out { opacity: 0; transform: scale(1.04); }
.gal-count { position: absolute; left: 14px; top: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(20,11,8,.6); color: #fff; font: 600 .8rem/1 var(--f-text); letter-spacing: .04em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gal-nav { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.gal-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(252,246,242,.92); color: var(--ink-on-light); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.gal-nav button:active { transform: scale(.93); }
.gal-nav svg { width: 20px; height: 20px; }
.gal-info { grid-area: info; align-self: center; }
.gal-info .eyebrow { color: var(--rose-600); }
.gal-info h3 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); margin-top: 10px; }
.gal-info p { margin-top: 12px; color: var(--muted-on-light); max-width: 44ch; min-height: 3.1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; padding: 0; list-style: none; }
.chips li { padding: 7px 12px; border-radius: 999px; background: rgba(184, 92, 102, .1); color: #7e3a43; font-size: .86rem; font-weight: 600; }
.gal-note { margin-top: 14px; font-size: .86rem; color: var(--muted-on-light); }
.gal-rail { grid-area: rail; min-width: 0; }
.rail {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: rgba(90,58,51,.3) transparent;
}
.rail button {
  flex: 0 0 auto; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 8px; width: 92px;
  padding: 8px 4px 10px; border: 0; border-radius: 16px; background: transparent;
  font: 600 .8rem/1.2 var(--f-text); color: var(--muted-on-light); text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.rail button img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--cream-100), 0 0 0 3px transparent; transition: box-shadow .25s, transform .25s var(--ease); }
.rail button:hover img { transform: translateY(-2px); }
.rail button[aria-selected="true"] { color: var(--ink-on-light); background: rgba(255,255,255,.55); }
.rail button[aria-selected="true"] img { box-shadow: 0 0 0 2px var(--cream-100), 0 0 0 4px var(--rose-600); }
@media (min-width: 900px) {
  .gal {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas: "stage info" "stage rail";
    grid-template-rows: 1fr auto;
    align-items: end;
  }
  .gal-stage { max-height: 680px; }
  .rail { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; }
  .rail button { width: calc((100% - 40px) / 5); }
}

/* Caixas e encomendas */
.sec--dark { background: var(--choc-900); }
.sec--dark::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; opacity: .8; }
.options {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; gap: clamp(14px, 2vw, 22px);
  grid-template-columns: minmax(0, 1fr);
}
.opt {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  border-radius: 22px; overflow: hidden;
  background: var(--choc-800); border: 1px solid rgba(247,235,228,.07);
}
.opt figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3.4; }
.opt figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.opt:hover figure img { transform: scale(1.04); }
.opt-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; }
.opt h3 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); }
.opt p { color: var(--muted-on-dark); font-size: .97rem; }
.opt-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 2px 0 0; font-size: .9rem; color: var(--ink-on-dark); }
.opt-meta div { display: flex; gap: 6px; }
.opt-meta dt { color: var(--muted-on-dark); }
.opt-meta dd { margin: 0; font-weight: 600; }
.opt .btn { margin-top: auto; align-self: flex-start; }
.opt-body > .btn { margin-top: 8px; }
.opt--feature { background: linear-gradient(180deg, #33201a, #2a1914); }
@media (max-width: 639px) {
  .options {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc((100vw - 100%) / -2); padding: 4px calc((100vw - 100%) / 2) 14px;
    scroll-padding-inline: calc((100vw - 100%) / 2); scrollbar-width: none;
  }
  .options::-webkit-scrollbar { display: none; }
  .opt { flex: 0 0 82%; scroll-snap-align: start; }
  .opt.reveal { opacity: 1; transform: none; }
}
.swipe-note { display: none; }
@media (max-width: 639px) { .swipe-note { display: block; margin-top: 18px; color: var(--muted-on-dark); font-size: .88rem; } }
@media (min-width: 640px) {
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .options { grid-template-rows: repeat(2, minmax(0, 1fr)) auto; }
  .opt figure { aspect-ratio: 16 / 11; }
  .opt--feature { grid-column: span 2; grid-row: span 2; grid-template-rows: minmax(0, 1fr) auto; }
  .opt--feature figure { aspect-ratio: auto; min-height: 0; }
  .opt--feature .opt-body { padding: 26px 28px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 24px; }
  .opt--feature .opt-body > * { grid-column: 1; }
  .opt--feature .opt-body > .btn { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
  .opt--feature h3 { font-size: 2.2rem; }
}
.options-note { margin-top: 22px; color: var(--muted-on-dark); font-size: .9rem; }

/* Loja */
.shop { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.shop figure { margin: 0; }
.shop figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(70,30,20,.5); }
.shop-info { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.shop-info li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.shop-info .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(184, 92, 102, .12); color: var(--rose-600); }
.shop-info .ic svg { width: 20px; height: 20px; }
.shop-info strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-light); font-weight: 600; }
.shop-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (min-width: 860px) { .shop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Fechamento */
.closing { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(88px, 13vw, 170px); text-align: center; background: var(--choc-950); }
.closing-bg { position: absolute; inset: 0; z-index: -2; }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: blur(1.5px) saturate(1.05); transform: scale(1.03); }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(20,11,8,.74), rgba(20,11,8,.92)); }
.closing h2 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem); text-wrap: balance; }
.closing p { margin: 16px auto 30px; max-width: 40ch; color: var(--muted-on-dark); }

/* Rodapé */
.footer { background: var(--choc-950); color: var(--muted-on-dark); padding: 44px 0 110px; font-size: .92rem; }
.footer .wrap { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.footer .logo { width: 150px; color: var(--rose-400); }
.footer a { color: var(--ink-on-dark); }
@media (min-width: 760px) { .footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } .footer { padding-bottom: 44px; } }

/* Barra fixa de pedido no celular */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(20, 11, 8, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(247,235,228,.12);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.dock.is-on { transform: translateY(0); }
.dock .btn { flex: 1 1 0; min-height: 48px; padding-inline: .8em; }
@media (min-width: 900px) { .dock { display: none; } }

/* Entradas ao rolar */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }
.word { display: inline-block; opacity: 0; transform: translateY(.45em); animation: wordIn .7s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
