/* ==========================================================================
   Gilli Cookies — experiência
   Paleta tirada das fotos: porcelana, fita de cetim chocolate, laço dourado,
   fundo bordô do "coming soon" e o rosado do papel de parede da marca.
   ========================================================================== */

/* Cormorant e Jost (licença OFL), servidas pelo próprio site para abrir mais rápido */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/jost.woff2") format("woff2"); }

:root {
  --cream: #F4EDE4;
  --cream-2: #EDE3D7;
  --paper: #FBF8F3;
  --blush: #EAD6CA;
  --cocoa: #22140F;
  --choc: #4A2A20;
  --choc-2: #6E4C3F;
  --mauve: #8E6A62;
  --burgundy: #5E1F27;
  --burgundy-2: #7A2F38;
  --gold: #B08A55;
  --gold-2: #D8BD8E;

  --serif: "Cormorant", "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ogee: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 133' preserveAspectRatio='none'><path d='M0 133V38C0 21 23 15 37 10 45 7 48.6 3.8 50 0c1.4 3.8 5 7 13 10 14 5 37 11 37 28v95z'/></svg>");
  /* No celular, a barra do navegador encolhe ao rolar e a tela cresce embaixo. As seções fixas
     têm a altura da tela com a barra aberta (svh); o fundo delas desce essa diferença. */
  --bleed: 0px;
}
@supports (height: 100lvh) { :root { --bleed: calc(100lvh - 100svh); } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  background: var(--cream);
  color: var(--choc);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body { background: var(--cream); min-height: 100vh; }
main { overflow-x: clip; }
::selection { background: var(--choc); color: var(--cream); }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
ul, ol { list-style: none; }

.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; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--pad); }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .13 0 0 0 0 .07 0 0 0 0 .05 0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------- barra de rolagem da marca */
/* Chrome, Edge e Safari: pílula de chocolate sobre trilho creme, que fica bordô ao passar o mouse */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--choc-2), var(--choc)); border: 3px solid var(--cream-2); border-radius: 999px; min-height: 60px; }
::-webkit-scrollbar-thumb:hover { background: var(--burgundy); }
::-webkit-scrollbar-thumb:active { background: var(--gold); }
::-webkit-scrollbar-corner { background: var(--cream-2); }
/* Firefox */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--choc) var(--cream-2); scrollbar-width: thin; }
}

/* -------------------------------------------------------------- tipografia */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 500 .72rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--mauve);
}
.eyebrow i { display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.chapter {
  display: flex; align-items: center; gap: 12px;
  font: 500 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--mauve);
}
.chapter svg { width: 22px; height: auto; fill: var(--gold); flex: none; }
.chapter span { font: italic 500 1.25rem/1 var(--serif); letter-spacing: .04em; color: var(--gold); text-transform: none; margin-right: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h2 em, h1 em { font-weight: 400; }

/* ----------------------------------------------------------------- botões */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.15em 1.9em; border-radius: 999px; border: 1px solid transparent;
  font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: color .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
}
.btn--solid { background: var(--choc); color: var(--cream); }
.btn--solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--burgundy);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn--solid:hover::before, .btn--solid:focus-visible::before { transform: translateY(0); }
.btn--xl { padding: 1.4em 2.4em; font-size: .8rem; }
.btn--pill { padding: .95em 1.4em; border-color: currentColor; }
.btn--pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn--pill:hover { background: var(--choc); color: var(--cream); border-color: var(--choc); }
.btn--link { padding: .4em 0; border-radius: 0; overflow: visible; }
.btn--link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .5s var(--ease);
}
.btn--link:hover::after { transform: scaleX(0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ------------------------------------------------------------------ ogiva */
.ogee {
  -webkit-mask: var(--ogee) center / 100% 100% no-repeat;
          mask: var(--ogee) center / 100% 100% no-repeat;
}

/* ================================================================= LOADER */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--cream);
  display: grid; place-items: center;
}
.no-js .loader { display: none; }
.loader__mark { width: min(44vw, 210px); display: grid; justify-items: center; gap: 26px; }
.loader__orn {
  width: 100%; height: auto; fill: var(--choc); fill-opacity: 0;
  stroke: var(--gold); stroke-width: 9; stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.loader__word { width: 64%; height: auto; fill: var(--choc); opacity: 0; }
.loader__count {
  position: absolute; right: var(--pad); bottom: clamp(24px, 5vh, 48px);
  font: italic 400 clamp(3.2rem, 9vw, 6.5rem)/.8 var(--serif); color: var(--choc);
}
.loader__hint {
  position: absolute; left: var(--pad); bottom: clamp(30px, 5.6vh, 56px);
  font: 500 .7rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--mauve);
}

/* ================================================================= HEADER */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); padding-top: env(safe-area-inset-top);
  color: var(--choc);
  transition: transform .6s var(--ease), color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s;
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-solid { background: rgba(244, 237, 228, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(74, 42, 32, .08); }
.header.is-dark { color: var(--cream); }
.header.is-dark.is-solid { background: rgba(30, 17, 13, .55); box-shadow: 0 1px 0 rgba(244, 237, 228, .08); }
.header__brand { display: flex; align-items: center; gap: 12px; }
.header__orn { width: 34px; height: auto; fill: currentColor; }
.header__word { width: 84px; height: auto; fill: currentColor; }
.header__nav { display: none; gap: clamp(22px, 3vw, 44px); }
.header__nav a { position: relative; font: 400 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 6px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.header__nav a:hover::after { transform: scaleX(1); }
.header__cta { margin-left: auto; }
.header__menu {
  display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.header__menu span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .header__menu span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .header__menu span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu-open .header { color: var(--cream); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--choc); color: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 40px;
  padding: calc(var(--header-h) + 40px) var(--pad) calc(36px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease); }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; font: 500 clamp(2.6rem, 11vw, 4.4rem)/1.08 var(--serif); }
.menu__nav small { font: 500 .66rem/1 var(--sans); letter-spacing: .24em; color: var(--gold-2); }
.menu .btn--solid { background: var(--cream); color: var(--choc); align-self: flex-start; }

@media (min-width: 900px) {
  .header__nav { display: flex; position: absolute; left: 50%; transform: translateX(-50%); }
  .header__cta { margin-left: 0; }
  .header__menu, .menu { display: none; }
}
@media (max-width: 899px) {
  .header__cta { padding: .85em 1.15em; }
  .header__cta svg { display: none; }
}

/* ================================================================== HERO */
.hero { position: relative; height: 100vh; height: 100svh; }
/* clip-path recorta como overflow:hidden, mas deixa a faixa --bleed de fora */
.hero__stage { position: relative; height: 100%; clip-path: inset(0 0 calc(var(--bleed) * -1)); }
.hero__canvas { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + var(--bleed)); z-index: 2; }
.hero__halo {
  position: absolute; z-index: 1; left: var(--hx, 66%); top: var(--hy, 52%);
  width: var(--hs, 70vh); height: auto; translate: -50% -50%;
  fill: var(--blush); stroke: none; opacity: .75;
}
.hero__copy {
  position: absolute; z-index: 3; left: var(--pad); top: 50%; translate: 0 -46%;
  width: min(50vw, 860px);
}
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 8vw, 9.4rem); line-height: .86; letter-spacing: -.025em; margin: .34em 0 .34em; }
.hero__line { display: block; }
.hero__title em { color: var(--burgundy); font-weight: 400; }
.hero__lead { max-width: 33ch; font-size: 1.06rem; color: var(--choc-2); }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; margin-top: 2.2rem; }

.hero__beats { position: absolute; z-index: 3; left: var(--pad); top: 50%; width: min(44vw, 600px); height: 0; }
.beat { position: absolute; left: 0; top: 0; translate: 0 -50%; opacity: 0; visibility: hidden; }
.beat__n { display: block; margin-bottom: 1.1rem; font: 500 .74rem/1 var(--sans); letter-spacing: .32em; color: var(--gold); }
.beat__t { font: 500 clamp(2.5rem, 4.8vw, 5.4rem)/.96 var(--serif); letter-spacing: -.02em; }
.beat__t em { color: var(--burgundy); font-weight: 400; }

.hero__progress { position: absolute; z-index: 3; left: calc(var(--pad) * .42); top: 32%; bottom: 32%; width: 1px; background: rgba(74, 42, 32, .16); }
.hero__progress span { position: absolute; inset: 0; background: var(--choc); transform-origin: top; transform: scaleY(0); }
.hero__cue {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(18px, 3.4vh, 34px); translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 .66rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--choc);
}
.hero__cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: rgba(74, 42, 32, .15); }
.hero__cue i::after { content: ""; position: absolute; inset: 0; background: var(--choc); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 820px) {
  .hero__copy { top: calc(var(--header-h) + env(safe-area-inset-top) + 8px); translate: none; right: var(--pad); width: auto; }
  .hero__title { font-size: clamp(2.9rem, 13.2vw, 4.6rem); margin: .3em 0 .3em; }
  .hero__lead { font-size: .96rem; max-width: 31ch; }
  .hero__actions { margin-top: 1.3rem; }
  .hero__actions .btn--link { display: none; }
  .hero__beats { top: calc(var(--header-h) + env(safe-area-inset-top) + 18px); right: var(--pad); width: auto; }
  .beat { translate: none; }
  .beat__t { font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  .hero__progress { left: auto; right: 14px; }
  .hero__cue { display: none; }
}
@media (max-width: 820px) and (max-height: 760px) {
  .hero__lead { display: none; }
}
/* em telas baixas (iPhone SE, mini) o cookie do sabor perde espaço: fica o nome e o botão */
@media (max-width: 820px) and (max-height: 640px) {
  .sabor-info__desc { display: none; }
}
@media (max-width: 820px) {
  .hero__copy .eyebrow { gap: 10px; font-size: .62rem; letter-spacing: .22em; white-space: nowrap; }
  .hero__copy .eyebrow i { width: 18px; }
}

/* ============================================================= MANIFESTO */
.manifesto { position: relative; padding: clamp(130px, 22vh, 260px) 0 clamp(110px, 16vh, 200px); overflow: hidden; background: var(--cream); }
.manifesto .wrap { position: relative; z-index: 2; }
.manifesto .chapter { justify-content: center; }
.manifesto__text {
  max-width: 21ch; margin: .7em auto 0; text-align: center;
  font: 500 clamp(2.15rem, 4.6vw, 4.9rem)/1.06 var(--serif); letter-spacing: -.015em; color: var(--choc);
}
.manifesto__text .word { opacity: .13; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); max-width: 1120px; margin: clamp(90px, 14vh, 150px) auto 0; }
.pillar { border-top: 1px solid rgba(74, 42, 32, .18); padding-top: 22px; }
.pillar__n { font: italic 500 1.35rem/1 var(--serif); color: var(--gold); }
.pillar h3 { font-size: clamp(1.7rem, 2.3vw, 2.2rem); line-height: 1; margin: .5em 0 .45em; }
.pillar p { color: var(--choc-2); max-width: 32ch; }

.manifesto__float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mf { position: absolute; width: clamp(96px, 12vw, 200px); aspect-ratio: 3 / 4; }
.mf img { width: 100%; height: 100%; object-fit: cover; }
.mf { -webkit-mask: var(--ogee) center / 100% 100% no-repeat; mask: var(--ogee) center / 100% 100% no-repeat; }
.mf--1 { left: 4%; top: 9%; }
.mf--2 { right: 5%; top: 15%; width: clamp(84px, 10vw, 170px); }
.mf--3 { left: 7%; top: 47%; width: clamp(80px, 9vw, 150px); }
.mf--4 { right: 9%; top: 52%; }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; gap: 34px; }
  .mf--2, .mf--3, .mf--4 { display: none; }
  .mf--1 { left: auto; right: 18px; top: 22px; width: 74px; }
}

/* =============================================================== SABORES */
.sabores { position: relative; height: 100vh; height: 100svh; }
.sabores__pin { position: relative; height: 100%; clip-path: inset(0 0 calc(var(--bleed) * -1)); color: var(--fg, var(--choc)); --fg: var(--choc); }
.sabores__bg { position: absolute; inset: 0 0 calc(var(--bleed) * -1); background: #E7CC9C; }
.sabores__bg::after { content: ""; position: absolute; inset: 0 0 var(--bleed); background: radial-gradient(60% 55% at 50% 52%, var(--glow, rgba(255, 255, 255, .22)), transparent 70%); }

.sabores__names { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.sabor-name {
  grid-area: 1 / 1; white-space: nowrap;
  font: italic 500 clamp(5.5rem, 20vw, 23rem)/.8 var(--serif); letter-spacing: -.035em;
  color: var(--name, rgba(255, 255, 255, .4)); opacity: 0;
}

.sabores__head { position: absolute; z-index: 3; left: var(--pad); top: calc(var(--header-h) + clamp(20px, 5vh, 56px)); max-width: 26ch; }
.sabores__head h2 { font-size: clamp(1.9rem, 2.7vw, 3rem); line-height: 1; margin-top: .55em; }
.sabores__head .chapter, .sabores__head .chapter span { color: currentColor; }
.sabores__head .chapter { opacity: .75; white-space: nowrap; }
.sabores__head .chapter svg { fill: currentColor; }

.sabores__list { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(36px, 8vh, 84px); display: grid; gap: 2px; }
.sabores__list button {
  display: flex; align-items: baseline; gap: 14px; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font: 500 clamp(1.15rem, 1.5vw, 1.45rem)/1.25 var(--serif); opacity: .42;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.sabores__list button span { font: 500 .66rem/1 var(--sans); letter-spacing: .2em; }
.sabores__list button:hover { opacity: .8; }
.sabores__list button.is-active { opacity: 1; transform: translateX(14px); font-style: italic; }

.sabores__cookies { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.sabor-cookie { grid-area: 1 / 1; width: min(38vw, 64vh); height: auto; opacity: 0; will-change: transform, opacity; }

.sabores__info { position: absolute; z-index: 3; right: var(--pad); top: 50%; translate: 0 -58%; width: min(25vw, 340px); display: grid; }
.sabor-info { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.sabor-info__tag { font: italic 500 clamp(1.7rem, 2.5vw, 2.6rem)/1.02 var(--serif); margin-bottom: .55em; }
.sabor-info__desc { margin-bottom: 1.7rem; opacity: .86; }
.sabores__pin[data-tone="dark"] .sabor-info .btn--solid { background: var(--cream); color: var(--choc); }
.sabores__pin[data-tone="dark"] .sabor-info .btn--solid::before { background: var(--gold-2); }

.sabores__video {
  position: absolute; z-index: 3; right: calc(var(--pad) + 1vw); bottom: clamp(28px, 6vh, 64px);
  width: min(9.5vw, 21vh, 160px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden;
  rotate: 4deg; background: #c9c3bf;
  box-shadow: 0 30px 60px -22px rgba(20, 10, 6, .55), 0 0 0 5px rgba(255, 255, 255, .9);
}
.sabores__video video { width: 100%; height: 100%; object-fit: cover; }
.sabores__video figcaption {
  position: absolute; left: 10px; bottom: 9px; display: flex; align-items: center; gap: 6px;
  font: 500 .52rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.sabores__video figcaption i { width: 6px; height: 6px; border-radius: 50%; background: #e0493f; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.sabores__count { position: absolute; z-index: 3; right: var(--pad); top: calc(var(--header-h) + clamp(20px, 5vh, 56px)); display: flex; align-items: baseline; gap: 8px; }
.sabores__cur { font: italic 500 clamp(2.6rem, 4vw, 4rem)/1 var(--serif); }
.sabores__tot { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; opacity: .7; }

@media (max-height: 640px) and (min-width: 821px) { .sabores__video { display: none; } }
@media (max-width: 820px) {
  /* a área do tracinho do iPhone só conta quando a faixa --bleed não a cobre (ex.: site salvo na tela inicial);
     assim o texto não pula quando a barra do navegador encolhe */
  .sabores__pin { --info-bottom: calc(26px + max(0px, env(safe-area-inset-bottom) - var(--bleed))); }
  .sabores__head { max-width: calc(100% - 2 * var(--pad)); }
  .sabores__head h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .sabores__head h2 em { display: block; }
  .sabores__list { display: none; }
  /* o cookie fica entre o título e o texto do sabor, sem passar por baixo de nenhum dos dois
     (em cima: 6px de folga + os 16px que ele flutua para cima no main.js) */
  .sabores__cookies { top: calc(var(--zone-top, 0px) + 22px); bottom: calc(var(--info-bottom) + var(--info-h, 0px) + 10px); grid-template: 100% / 100%; }
  .sabor-cookie { width: min(82vw, 46vh); max-height: 100%; object-fit: contain; }
  .sabores__info { left: var(--pad); right: var(--pad); top: auto; bottom: var(--info-bottom); translate: none; width: auto; }
  .sabor-info__tag { font-size: 1.75rem; margin-bottom: .35em; }
  .sabor-info__desc { font-size: .92rem; line-height: 1.5; margin-bottom: 1rem; max-width: 34ch; }
  .sabor-info .btn { padding: 1em 1.5em; }
  /* 40% da altura, mas nunca em cima do nome do sabor (160px ≈ altura do cartão girado + folga) */
  .sabores__video { width: 80px; right: calc(var(--pad) - 4px); bottom: auto; top: min(40%, calc(100% - var(--info-bottom) - var(--info-h, 0px) - 160px)); border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(20, 10, 6, .55), 0 0 0 4px rgba(255, 255, 255, .9); }
  .sabor-name { font-size: clamp(5rem, 27vw, 9rem); translate: 0 -9vh; }
}

/* =============================================================== HISTÓRIA */
.historia { position: relative; padding: clamp(130px, 18vh, 220px) 0 clamp(100px, 14vh, 180px); background: var(--cream); }
.historia__grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(48px, 8vw, 130px); align-items: center; }
.historia__media { position: relative; margin-inline: 4% 0; }
.historia__photo { position: relative; aspect-ratio: 3 / 4.15; overflow: hidden; }
.historia__photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 50% 30%; }
.badge { position: absolute; z-index: 3; top: -54px; right: -46px; width: clamp(120px, 12vw, 176px); height: auto; fill: var(--choc); }
.badge__ring { transform-origin: 100px 100px; }
.badge text { font: 500 12.5px/1 var(--sans); letter-spacing: .26em; fill: var(--choc); }
.badge > svg { fill: var(--gold); }
.historia__clip {
  position: absolute; z-index: 2; left: -9%; bottom: -12%; width: 38%; aspect-ratio: 3 / 4.15;
  padding: 7px; background: var(--cream);
}
.historia__clip video { width: 100%; height: 100%; object-fit: cover; -webkit-mask: var(--ogee) center / 100% 100% no-repeat; mask: var(--ogee) center / 100% 100% no-repeat; background: #d9cfc6; }
.historia__copy h2 { font-size: clamp(2.7rem, 5.2vw, 5.6rem); line-height: .94; margin: .45em 0 .55em; }
.historia__copy h2 em { color: var(--burgundy); }
.historia__text p { max-width: 44ch; margin-bottom: 1.15em; color: var(--choc-2); font-size: 1.05rem; }
.signature { margin-top: 2.2rem; font: 400 .9rem/1.4 var(--sans); color: var(--mauve); letter-spacing: .04em; }
.signature em { display: inline-block; margin-top: .25em; font: italic 500 2.5rem/1 var(--serif); color: var(--burgundy); letter-spacing: 0; }

.historia__details { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(130px, 18vh, 210px); }
.historia__details li:nth-child(2) { translate: 0 clamp(30px, 6vh, 70px); }
.historia__details figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.historia__details img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.historia__details li:hover img { transform: scale(1.05); }
.historia__details p { margin-top: 18px; max-width: 26ch; font: italic 500 1.4rem/1.2 var(--serif); }
.historia__details p span { margin-right: 8px; font: 500 .7rem/1 var(--sans); font-style: normal; letter-spacing: .2em; color: var(--gold); }

@media (max-width: 820px) {
  .historia__grid { grid-template-columns: 1fr; gap: 110px; }
  .historia__media { margin: 0 6% 0 12%; }
  .badge { top: -42px; right: -26px; width: 118px; }
  .historia__clip { left: -16%; bottom: -14%; width: 44%; }
  .historia__details { grid-template-columns: 1fr; gap: 56px; margin-top: 100px; }
  .historia__details li:nth-child(2) { translate: none; }
  .historia__details li:nth-child(even) { margin-left: 18%; }
  .historia__details li:nth-child(odd) { margin-right: 18%; }
}

/* =============================================================== PRESENTE */
.presente { position: relative; padding: clamp(130px, 18vh, 220px) 0 clamp(150px, 22vh, 260px); background: var(--blush); overflow: hidden; }
.ribbon { position: absolute; left: 0; bottom: clamp(24px, 6vh, 80px); z-index: 1; width: 100%; height: clamp(260px, 44vh, 440px); pointer-events: none; overflow: visible; }
.ribbon__band { fill: none; stroke: url(#ribbon-grad); stroke-width: 40; }
.ribbon__text { font: 600 16px/1 var(--serif); letter-spacing: .42em; fill: var(--gold-2); }
.presente__grid { position: relative; z-index: 2; min-height: min(92vh, 860px); }
.presente__copy { position: relative; z-index: 3; width: min(42%, 520px); padding-top: clamp(20px, 8vh, 90px); }
.presente__copy h2 { font-size: clamp(2.6rem, 4.8vw, 5.2rem); line-height: .96; margin: .45em 0 .6em; }
.presente__copy h2 em { color: var(--burgundy); }
.presente__copy p { max-width: 38ch; color: var(--choc-2); margin-bottom: 2.2rem; }
.presente__video {
  position: absolute; z-index: 2; left: 47%; top: 0; width: min(25vw, 360px); aspect-ratio: 9 / 16;
  border-radius: 999px 999px 18px 18px; overflow: hidden; background: #d8cbc3;
  box-shadow: 0 50px 90px -40px rgba(60, 25, 15, .5);
}
.presente__video video { width: 100%; height: 100%; object-fit: cover; }
.presente__img { position: absolute; z-index: 2; overflow: hidden; box-shadow: 0 40px 70px -36px rgba(60, 25, 15, .5); }
.presente__img img { width: 100%; height: 100%; object-fit: cover; }
.presente__img--1 { right: 0; top: 4%; width: min(19vw, 290px); aspect-ratio: 2 / 3; border-radius: 4px; }
.presente__img--2 { left: 30%; bottom: -2%; width: min(13vw, 200px); aspect-ratio: 3 / 4; border-radius: 4px; rotate: -5deg; }
.presente__img--3 { right: 9%; bottom: -6%; width: min(15vw, 230px); aspect-ratio: 3 / 4; border-radius: 4px; }

@media (max-width: 820px) {
  .presente__grid { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .presente__copy { grid-column: 1 / -1; width: auto; padding: 0 0 40px; }
  .presente__video { position: relative; left: auto; top: auto; grid-column: 1 / -1; width: 72%; justify-self: center; margin-bottom: 26px; }
  .presente__img { position: relative; inset: auto; width: auto; }
  .presente__img--1 { grid-row: span 2; aspect-ratio: auto; }
  .presente__img--2 { rotate: none; }
  .ribbon { bottom: 3%; height: 34vh; }
}

/* =============================================================== MOMENTOS */
/* poucas fotos, grandes, com respiro: quatro momentos em colunas desencontradas */
.momentos { position: relative; padding: clamp(120px, 17vh, 200px) 0 clamp(140px, 20vh, 240px); background: var(--cream); overflow: hidden; isolation: isolate; }
.momentos .wrap { position: relative; z-index: 2; }

/* pedaços de cookie: atrás das fotos (fundo/meio) ou na frente, desfocados, nos cantos (perto) */
.momentos__float { position: absolute; inset: 0; pointer-events: none; }
.piece { position: absolute; left: var(--l); top: var(--t); width: var(--w); z-index: 1; will-change: transform; }
.piece__m { will-change: transform; }
.piece img { display: block; width: 100%; height: auto; animation: bob 6s ease-in-out infinite alternate; filter: drop-shadow(0 18px 22px rgba(60, 30, 18, .22)); }
.piece--far img { filter: blur(1.6px) drop-shadow(0 10px 14px rgba(60, 30, 18, .16)); opacity: .9; animation-duration: 7.5s; }
.piece--near { z-index: 3; }
.piece--near img { filter: blur(5px) drop-shadow(0 28px 30px rgba(60, 30, 18, .2)); animation-duration: 5s; }
.piece:nth-child(2n) img { animation-delay: -2.4s; }
.piece:nth-child(3n) img { animation-delay: -4.1s; }
@keyframes bob { from { transform: translateY(-8px) rotate(-3deg); } to { transform: translateY(10px) rotate(4deg); } }
.reduced .momentos__float { display: none; }

.moment__img { transform-style: preserve-3d; }
.momentos__head h2 { font-size: clamp(2.7rem, 5.2vw, 5.6rem); line-height: .95; margin-top: .45em; max-width: 13ch; }
.momentos__head h2 em { color: var(--burgundy); }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; gap: clamp(20px, 2.8vw, 48px); margin-top: clamp(60px, 9vh, 110px); }
.moment:nth-child(2) { margin-top: clamp(60px, 11vh, 130px); }
.moment:nth-child(3) { margin-top: clamp(18px, 3vh, 36px); }
.moment:nth-child(4) { margin-top: clamp(84px, 15vh, 180px); }
.moment__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--cream-2); }
.moment__img img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.moment__n { margin-top: 22px; font: italic 500 1.25rem/1 var(--serif); color: var(--gold); }
.moment__t { font-size: clamp(1.6rem, 2.1vw, 2.2rem); line-height: 1.04; margin: .3em 0 .35em; }
.moment__d { max-width: 24ch; color: var(--choc-2); font-size: .98rem; }

@media (max-width: 820px) {
  .moments { grid-template-columns: 1fr; gap: 72px; }
  .moment { width: 80%; margin-top: 0 !important; }
  .moment:nth-child(even) { margin-left: auto; }
  /* no celular: menos pedaços, menores, nas bordas */
  .piece { width: calc(var(--w) * .52); }
  .piece:nth-child(2), .piece:nth-child(5) { display: none; }
  .piece:nth-child(1) { left: 72%; top: 2%; }
  .piece:nth-child(3) { left: 84%; top: 40%; }
  .piece:nth-child(4) { left: -8%; top: 28%; }
  .piece:nth-child(6) { left: 82%; top: 76%; }
  .piece:nth-child(7) { left: -10%; top: 62%; }
}

/* ================================================================== PEDIR */
.pedir { position: relative; height: 100vh; height: 100svh; }
.pedir__pin { position: relative; height: 100%; clip-path: inset(0 0 calc(var(--bleed) * -1)); background: var(--paper); }
.pedir__pin::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--bleed); background: inherit; }
.pedir__inner {
  position: absolute; inset: 0; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center;
  gap: clamp(40px, 6vw, 110px); padding: calc(var(--header-h) + 20px) var(--pad) clamp(30px, 6vh, 70px);
}
.pedir__video { justify-self: end; height: min(70vh, 700px); aspect-ratio: 3 / 4.15; background: #d6c9c0; }
.pedir__video video { width: 100%; height: 100%; object-fit: cover; }
.pedir__mark { width: 58px; height: auto; fill: var(--gold); margin-bottom: 26px; }
.pedir__copy h2 { font-size: clamp(3.3rem, 7.6vw, 8.6rem); line-height: .88; letter-spacing: -.025em; }
.pedir__copy h2 em { color: var(--burgundy); }
.pedir__copy p { max-width: 36ch; margin: 1.5rem 0 2.4rem; font-size: 1.08rem; color: var(--choc-2); }
.pedir__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 34px; }

.tear { position: absolute; inset: 0 0 calc(var(--bleed) * -1); z-index: 5; pointer-events: none; }
.tear__half { position: absolute; inset: 0; will-change: transform; }
.tear__half--l { transform-origin: 0% 60%; }
.tear__half--r { transform-origin: 100% 40%; }
.tear__paper, .tear__fiber { position: absolute; inset: -2% -1%; }
.tear__fiber { background: #EFE3D6; }
.tear__paper {
  background-color: #5A1E26;
  background-image:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(80% 70% at 80% 90%, rgba(0, 0, 0, .25), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
.tear__label {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  display: grid; justify-items: center; gap: 18px; color: var(--gold-2);
  font: 500 .72rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; white-space: nowrap;
}
.tear__label svg { width: 64px; height: auto; fill: var(--gold-2); order: -1; }
.no-js .tear, .reduced .tear { display: none; }
.no-js .hero__stage { background: url("../seq/quebra/d/120.webp") no-repeat 72% 60% / auto 92%; }
.no-js .sabor-info:first-child, .no-js .sabor-cookie:first-child, .no-js .sabor-name:first-child { opacity: 1; visibility: visible; }

@media (max-width: 820px) {
  .pedir__inner { grid-template-columns: 1fr; align-content: center; gap: 30px; text-align: left; }
  .pedir__video { justify-self: start; height: 34vh; }
  .pedir__mark { display: none; }
  .pedir__copy h2 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .pedir__copy p { margin: 1rem 0 1.6rem; font-size: .98rem; }
}

/* ================================================================== LOCAL */
/* entrega, horários e dúvidas: texto sempre visível, sem animação, para quem chega pela busca */
.local { position: relative; padding: clamp(110px, 16vh, 190px) 0; background: var(--cream); }
.local__head h2 { font-size: clamp(2.7rem, 5.2vw, 5.6rem); line-height: .95; margin: .45em 0 .55em; max-width: 17ch; }
.local__head h2 em { color: var(--burgundy); }
.local__head > p:last-child { max-width: 52ch; color: var(--choc-2); font-size: 1.05rem; }
.local__faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 6vh, 64px) clamp(28px, 4vw, 64px); margin-top: clamp(60px, 9vh, 110px); }
.local__faq li { border-top: 1px solid rgba(74, 42, 32, .18); padding-top: 22px; }
.local__faq h3 { font-size: clamp(1.6rem, 2.1vw, 2.2rem); line-height: 1.04; margin-bottom: .45em; }
.local__faq p { color: var(--choc-2); }
.local__faq a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .4s; }
.local__faq a:hover { color: var(--burgundy); }
@media (max-width: 1080px) { .local__faq { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .local__faq { grid-template-columns: 1fr; gap: 34px; } }

/* ================================================================= FOOTER */
.footer { position: relative; background: var(--cocoa); color: var(--cream); padding: clamp(80px, 12vh, 130px) 0 calc(30px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer__logo svg { width: clamp(120px, 12vw, 160px); height: auto; fill: var(--cream); }
.footer__label { margin-bottom: 18px; font: 500 .68rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); }
.footer__col a { display: block; width: fit-content; font: 500 1.45rem/1.55 var(--serif); transition: color .4s; }
.footer__col a:hover { color: var(--gold-2); }
.footer__bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(60px, 10vh, 110px); padding-top: 24px; font-size: .82rem; color: rgba(244, 237, 228, .62); }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: rgba(244, 237, 228, .14); }
.footer__local { font-style: normal; }
.footer__top:hover { color: var(--cream); }
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .footer__logo { grid-column: 1 / -1; }
}

/* ==================================================================== FAB */
.fab {
  position: fixed; z-index: 40; right: 24px; bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 13px 22px 13px 15px; border-radius: 999px;
  background: var(--choc); color: var(--cream);
  font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 18px 40px -14px rgba(34, 20, 15, .6);
  /* escondido = abaixo da borda + área da barra do iPhone, e invisível depois que desce
     (no iPhone a barra inferior encolhe ao rolar e revelava metade do botão) */
  --fab-off: calc(100% + 40px + env(safe-area-inset-bottom));
  transform: translateY(var(--fab-off)); opacity: 0; visibility: hidden;
  transition: transform .7s var(--ease), opacity .3s, visibility 0s .7s, background-color .4s;
}
.fab:hover { background: var(--burgundy); }
.fab svg { width: 24px; height: auto; fill: var(--gold-2); }
.fab.is-visible { transform: translateY(0); opacity: 1; visibility: visible; transition: transform .7s var(--ease), opacity .3s, visibility 0s, background-color .4s; }
@media (max-width: 820px) {
  .fab { right: 50%; transform: translate(50%, var(--fab-off)); padding: 15px 26px 15px 17px; }
  .fab.is-visible { transform: translate(50%, 0); }
}

/* ================================================================= CURSOR */
/* a bolinha substitui a seta do sistema (só em mouse; no celular e com movimento reduzido fica a seta normal) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 101; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: var(--choc); box-shadow: 0 0 0 2px var(--cream);
  opacity: 0;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s, background-color .35s, box-shadow .35s;
}
.cursor.is-on { opacity: 1; }
/* sobre links e botões: vira um anel, no lugar da "mãozinha" */
.cursor.is-link { width: 42px; height: 42px; margin: -21px 0 0 -21px; background: rgba(74, 42, 32, .12); box-shadow: inset 0 0 0 1.5px var(--choc), 0 0 0 1.5px rgba(244, 237, 228, .55); }
/* sobre fundos escuros: inverte para creme */
.cursor.is-dark { background: var(--cream); box-shadow: 0 0 0 2px rgba(34, 20, 15, .6); }
.cursor.is-dark.is-link { background: rgba(244, 237, 228, .14); box-shadow: inset 0 0 0 1.5px var(--cream), 0 0 0 1.5px rgba(34, 20, 15, .35); }
/* sobre vídeos: círculo grande com legenda */
.cursor.is-label { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--choc); box-shadow: 0 0 0 1.5px rgba(244, 237, 228, .5); }
.cursor__label { max-width: 80px; text-align: center; font: 500 .58rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cream); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ======================================================== reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.reduced { --bleed: 0px; }
.reduced .loader { display: none; }
.reduced .hero__cue, .reduced .hero__beats, .reduced .hero__progress { display: none; }
.reduced .sabores, .reduced .pedir { height: auto; }
.reduced .sabores__pin { height: auto; min-height: 100vh; padding-bottom: 60px; }
.reduced .manifesto__text .word { opacity: 1; }

.is-loading, .is-loading body { overflow: hidden; }
