/* ==========================================================
   Ma&Ma Atelier
   Paleta da marca: creme, sage, grafite, teal (logo), mist.
   "Noite" e "chama" são tons de apoio tirados das fotos.
   ========================================================== */

:root {
  --noite: #14100c;
  --noite-2: #1d1712;
  --grafite: #2b2a28;
  --creme: #f2eee4;
  --linho: #e9e2d3;
  --sage: #dbe4da;
  --mist: #dde7e9;
  --teal: #52a89e;
  --teal-ink: #2a7068;
  --chama: #f6c27a;
  --ink: #2b2a28;
  --ink-soft: #5e5a54;
  --line: rgba(43, 42, 40, 0.14);
  --line-light: rgba(242, 238, 228, 0.18);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3.2rem, 7.2vw, 7.6rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 4rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.3rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.8125rem;

  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1320px;
  --section-y: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--teal); color: #fff; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--creme); color: var(--grafite);
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Tipografia base ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.15;
}

em { font-style: italic; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

.btn--light { background: var(--creme); color: var(--grafite); }
@media (hover: hover) { .btn--light:hover { background: #fff; } }

.btn--ghost-light { border-color: rgba(242, 238, 228, 0.4); color: var(--creme); }
@media (hover: hover) { .btn--ghost-light:hover { background: rgba(242, 238, 228, 0.1); border-color: var(--creme); } }

.btn--dark { background: var(--grafite); color: var(--creme); }
@media (hover: hover) { .btn--dark:hover { background: var(--teal-ink); } }

.btn--ghost-dark { border-color: rgba(43, 42, 40, 0.3); color: var(--grafite); }
@media (hover: hover) { .btn--ghost-dark:hover { border-color: var(--grafite); background: rgba(43, 42, 40, 0.05); } }

.btn--wa { background: var(--teal-ink); color: var(--creme); }
@media (hover: hover) { .btn--wa:hover { background: var(--grafite); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  color: var(--grafite);
  padding-bottom: 4px;
  background: linear-gradient(var(--teal), var(--teal)) left bottom / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease), gap 0.5s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.5s var(--ease); }
.link-arrow.is-focus { background-size: 100% 1px; }
.link-arrow.is-focus::after { transform: translateX(4px); }
@media (hover: hover) {
  .link-arrow:hover { background-size: 100% 1px; }
  .link-arrow:hover::after { transform: translateX(4px); }
}

/* ---------- Marca ---------- */

.wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; line-height: 1;
}
.wordmark__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; letter-spacing: -0.01em; }
.wordmark__sub {
  margin-top: 5px;
  font-size: 0.52rem; font-weight: 500; letter-spacing: 0.52em; text-transform: uppercase;
  padding-left: 0.52em;
  color: var(--teal);
}

/* ---------- Navegação ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: max(18px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left));
  color: var(--creme);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease), transform 0.6s var(--ease), padding 0.5s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 16, 12, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity 0.5s var(--ease), background-color 0.5s var(--ease);
}
.nav.is-scrolled { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
.nav.is-scrolled::before { opacity: 1; }
.nav[data-theme="light"] { color: var(--grafite); }
.nav[data-theme="light"]::before { background: rgba(242, 238, 228, 0.78); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }

.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: 0.85rem; text-decoration: none; letter-spacing: 0.02em;
  padding: 6px 0;
  background: linear-gradient(var(--teal), var(--teal)) left bottom / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.nav__links a.is-current { background-size: 100% 1px; }
@media (hover: hover) { .nav__links a:hover { background-size: 100% 1px; } }

.btn--nav { min-height: 42px; padding: 0 20px; font-size: 0.82rem; border-color: currentColor; color: inherit; }
@media (hover: hover) {
  .btn--nav:hover { background: var(--creme); color: var(--grafite); border-color: var(--creme); }
  .nav[data-theme="light"] .btn--nav:hover { background: var(--grafite); color: var(--creme); border-color: var(--grafite); }
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  background: none; border: 0; padding: 0; position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--noite); color: var(--creme);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(max(18px, env(safe-area-inset-top)) + 92px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  overflow: hidden auto;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu nav { position: relative; display: flex; flex-direction: column; gap: 4px; }
.menu nav a {
  font-family: var(--serif); font-size: clamp(2.1rem, 9.5vw, 3.2rem); text-decoration: none; line-height: 1.28;
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + 0.08s);
}
.menu.is-open nav a { opacity: 1; transform: none; }
.menu__footer { position: relative; display: flex; flex-direction: column; gap: 20px; opacity: 0; transition: opacity 0.7s var(--ease) 0.45s; }
.menu.is-open .menu__footer { opacity: 1; }
.menu__footer .btn { align-self: flex-start; }
.menu__contact { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; color: rgba(242, 238, 228, 0.7); }
.menu__contact a { text-decoration: none; padding: 6px 0; }

/* ---------- Brilho sobre as fotos de velas acesas ---------- */

.flame {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  width: var(--fs, 42%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 160, 0.55) 0%, rgba(255, 176, 96, 0.22) 26%, rgba(255, 150, 70, 0) 62%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: flicker 3.4s infinite steps(1, end);
  opacity: 0.85;
}
.flame--small { --fs: 20%; }
.flame--hero { --fs: 70%; }
.flame--preview { --fs: 46%; }

@keyframes flicker {
  0%   { opacity: 0.80; transform: translate(-50%, -50%) scale(1); }
  9%   { opacity: 0.92; transform: translate(-50%, -51%) scale(1.03); }
  17%  { opacity: 0.74; transform: translate(-50%, -50%) scale(0.98); }
  26%  { opacity: 0.88; transform: translate(-49.5%, -50.5%) scale(1.02); }
  38%  { opacity: 0.95; transform: translate(-50%, -51%) scale(1.05); }
  47%  { opacity: 0.78; transform: translate(-50.5%, -50%) scale(0.99); }
  58%  { opacity: 0.90; transform: translate(-50%, -50.5%) scale(1.02); }
  69%  { opacity: 0.70; transform: translate(-50%, -50%) scale(0.97); }
  78%  { opacity: 0.93; transform: translate(-49.5%, -51%) scale(1.04); }
  89%  { opacity: 0.82; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.80; transform: translate(-50%, -50%) scale(1); }
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--noite);
  color: var(--creme);
  overflow: hidden;
  isolation: isolate;
  --lx: 50%; --ly: 50%; --r: 0px;
  --gx: 50%; --gy: 50%;
}

.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(62vw, 80svh);
  z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 22%);
  mask-composite: intersect;
  transform: scale(calc(1 + var(--hp, 0) * 0.16));
  transform-origin: 45% 50%;
  will-change: transform;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img--base {
  filter: brightness(0.04) saturate(0.9);
  transition: filter 2.8s var(--ease-soft);
}
.is-lit .hero__img--base { filter: brightness(0.42) saturate(0.95); }
.hero__img--lit {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  filter: brightness(1.12) saturate(1.06);
}
.hero .flame { opacity: 0; animation-play-state: paused; transition: opacity 2.4s var(--ease-soft) 0.6s; }
.is-lit .hero .flame { opacity: 0.6; animation-play-state: running; }

.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at var(--gx) var(--gy), rgba(246, 194, 122, 0.2), rgba(246, 194, 122, 0.06) 40%, transparent 70%);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero.has-pointer .hero__glow { opacity: 1; }

.hero__content {
  position: relative;
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 120px var(--gutter) 120px;
  opacity: calc(1 - var(--hp, 0) * 1.5);
  transform: translateY(calc(var(--hp, 0) * -80px));
}
.hero__eyebrow { color: var(--teal); margin-bottom: 28px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 9.5em;
}
.hero__title .line { display: block; }
.hero__lead {
  margin-top: 32px;
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(242, 238, 228, 0.78);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* sequência de entrada */
.js .hero__eyebrow,
.js .hero__title .line,
.js .hero__lead,
.js .hero__actions,
.js .hero__hint {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.js .is-lit .hero__eyebrow { transition-delay: 0.5s; }
.js .is-lit .hero__title .line:nth-child(1) { transition-delay: 0.7s; }
.js .is-lit .hero__title .line:nth-child(2) { transition-delay: 0.9s; }
.js .is-lit .hero__lead { transition-delay: 1.2s; }
.js .is-lit .hero__actions { transition-delay: 1.4s; }
.js .is-lit .hero__hint { transition-delay: 2.4s; }
.js .is-lit .hero__eyebrow,
.js .is-lit .hero__title .line,
.js .is-lit .hero__lead,
.js .is-lit .hero__actions { opacity: 1; transform: none; }
.js .is-lit .hero__hint { opacity: 0.6; transform: none; }
.js .is-lit .hero.hint-done .hero__hint { opacity: 0; transition-delay: 0s; }

.hero__hint {
  position: absolute; right: var(--gutter); bottom: 34px;
  font-size: var(--fs-small); letter-spacing: 0.08em; color: var(--creme);
  pointer-events: none;
}
.hint-touch { display: none; }
@media (hover: none) {
  .hint-pointer { display: none; }
  .hint-touch { display: inline; }
}

/* ==========================================================
   MANIFESTO
   ========================================================== */

/* ao rolar, a noite do hero vira dia e a frase aparece (--dawn, --bloom e --fade vêm do main.js) */
.manifesto {
  --dawn: 0;
  --bloom: 0;
  --fade: 0;
  --sky: color-mix(in srgb, var(--creme) calc(var(--dawn) * 100%), var(--noite));
  position: relative;
  height: 160vh;
  background: var(--noite);
  background: var(--sky);
}
/* a claridade sobe por trás do hero como um horizonte, sem emenda reta entre as telas */
.manifesto::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: 55vh; height: 55svh;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--sky) 55%, transparent) 55%, var(--sky));
  opacity: min(1, calc(var(--dawn) * 4));
  pointer-events: none;
}
.manifesto__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
  overflow: hidden;
}
/* o brilho da vela vira um nascer do sol: cresce, esquenta no meio da passagem e se dissolve no creme */
.manifesto__sticky::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(120vw, 100vh); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(0.9 + var(--dawn) * 0.3));
  background: radial-gradient(closest-side, rgba(246, 194, 122, 0.12), rgba(246, 194, 122, 0.05) 55%, transparent);
  opacity: calc(1 - var(--dawn));
  pointer-events: none;
}
.manifesto__sticky::after {
  content: ""; position: absolute; left: 50%; top: 52%;
  width: min(130vw, 96vh); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(0.75 + var(--dawn) * 0.3));
  background: radial-gradient(closest-side, rgba(247, 205, 150, 0.5), rgba(247, 205, 150, 0.16) 50%, transparent);
  opacity: var(--bloom);
  pointer-events: none;
}
.manifesto__coda {
  position: relative; z-index: 1;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: calc(0.02em - var(--fade) * 0.04em);
  max-width: 12em;
  color: var(--grafite);
  opacity: var(--fade);
  filter: blur(calc((1 - var(--fade)) * 8px));
  transform: translateY(calc((1 - var(--fade)) * 48px)) scale(calc(0.97 + var(--fade) * 0.03));
}

/* ==========================================================
   SEÇÕES
   ========================================================== */

.section { padding: var(--section-y) var(--gutter); position: relative; }

.section-head {
  max-width: 820px;
  margin: 0 auto clamp(48px, 7vw, 96px);
  text-align: center;
}
.section-head__lead {
  margin: 26px auto 0;
  max-width: 36em;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .section-head__lead { margin-left: 0; }

/* revelação ao rolar */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Coleção ---------- */

.collection { background: var(--creme); padding-top: calc(var(--section-y) * 0.6); }

.product {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 104px);
}
.product + .product { border-top: 1px solid var(--line); }
.product--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.product--flip .gallery { order: 2; }

.gallery { position: relative; }
.gallery__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 84vh;
  max-height: 84svh;
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: var(--linho);
  touch-action: pan-y;
}
.shot.is-cool img { filter: sepia(0.14) saturate(0.92) brightness(1.02); }
.shot[hidden], .thumb[hidden] { display: none; }
.shot {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-soft);
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease);
}
.shot.is-active { opacity: 1; z-index: 1; }
/* a chama viva acompanha o zoom da foto, para não se descolar dela */
.shot .flame-live { transform: scale(1.08); transition: transform 2.4s var(--ease); }
.shot.is-active img, .shot.is-active .flame-live { transform: scale(1); }
@media (hover: hover) { .gallery__stage:hover .shot.is-active img, .gallery__stage:hover .shot.is-active .flame-live { transform: scale(1.035); } }

.gallery__thumbs { display: flex; gap: 10px; margin-top: 16px; }
.thumb {
  width: 56px; height: 70px; padding: 0; border: 0; background: none;
  border-radius: 2px; overflow: hidden;
  opacity: 0.45;
  position: relative;
  transition: opacity 0.4s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) { .thumb:hover { opacity: 0.8; } }
.thumb.is-active { opacity: 1; }
.thumb.is-active::after { transform: scaleX(1); }

.product__body .eyebrow { margin-bottom: 14px; }
.product__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.product__text { margin-top: 26px; max-width: 30em; color: var(--ink-soft); font-size: 1.04rem; text-wrap: pretty; }

.specs {
  margin-top: 36px;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.25fr);
  border-top: 1px solid var(--line);
}
.specs > div { padding: 18px 16px 0 0; }
.specs > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.specs dt {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.specs dd {
  margin-top: 6px;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.25;
}
.burn-note {
  margin-top: 18px;
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  color: var(--ink-soft);
  min-height: 1.6em;
}
.product__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }

.size-toggle {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.size-toggle button {
  position: relative; z-index: 1;
  min-width: 112px; min-height: 42px; padding: 0 20px;
  background: none; border: 0; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease);
}
.size-toggle button[aria-checked="true"] { color: var(--creme); }
.size-toggle__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--grafite);
  transition: transform 0.55s var(--ease);
}
.size-toggle[data-active="grande"] .size-toggle__pill { transform: translateX(100%); }

/* ---------- Carta de aromas ---------- */

.aromas { background: var(--sage); }

.aromas__inner { max-width: 1120px; margin: 0 auto; }

.menu-card {
  background: var(--creme);
  border: 1px solid rgba(43, 42, 40, 0.08);
  border-radius: 4px;
  padding: clamp(24px, 4.5vw, 64px);
}
.family {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 48px;
  padding: 28px 0;
}
.family + .family { border-top: 1px solid var(--line); }
.family:first-child { padding-top: 0; }
.family:last-child { padding-bottom: 0; }
.family__name {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal-ink);
  padding-top: 14px;
}
.aroma {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 14px 18px;
  margin-inline: -18px;
  border-radius: 4px;
  transition: background-color 0.5s var(--ease);
}
.aroma:focus-within, .aroma.is-picked, .aroma.is-focus { background: rgba(255, 255, 255, 0.5); }
@media (hover: hover) { .aroma:hover { background: rgba(255, 255, 255, 0.5); } }
.aroma__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.25;
}
.aroma__text p { margin-top: 4px; color: var(--ink-soft); font-size: 0.96rem; max-width: 36em; }
.aroma__pick {
  border: 1px solid rgba(43, 42, 40, 0.25); background: transparent;
  border-radius: 999px; min-height: 40px; padding: 0 18px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
  opacity: 0.55;
  transition: opacity 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.aroma:focus-within .aroma__pick, .aroma.is-focus .aroma__pick { opacity: 1; }
.aroma.is-picked .aroma__pick { background: var(--grafite); color: var(--creme); border-color: var(--grafite); opacity: 1; }
@media (hover: hover) {
  .aroma:hover .aroma__pick { opacity: 1; }
  .aroma__pick:hover { background: var(--grafite); color: var(--creme); border-color: var(--grafite); opacity: 1; }
}

/* ---------- Personalizadas ---------- */

.custom { background: var(--creme); }

.cases {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px);
  align-items: start;
}
.case:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.case:nth-child(3) { margin-top: clamp(16px, 3vw, 40px); }
.case__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--linho); }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease); }
.case.is-focus .case__img img { transform: scale(1.04); }
@media (hover: hover) { .case:hover .case__img img { transform: scale(1.04); } }
.case figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.case__name { font-family: var(--serif); font-style: italic; font-size: 1.35rem; }
.case__type { font-size: var(--fs-small); color: var(--ink-soft); letter-spacing: 0.02em; }

.process {
  max-width: 880px; margin: clamp(88px, 12vw, 160px) auto 0;
}
.process .h3 { margin-bottom: 28px; }
.process__steps { counter-reset: passo; border-top: 1px solid var(--line); }
.process__steps li {
  counter-increment: passo;
  display: grid; grid-template-columns: 2.2em minmax(0, 11em) minmax(0, 1fr); gap: 4px 24px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.process__steps li::before { content: counter(passo); font-family: var(--serif); color: var(--ink-soft); }
.process__steps h4 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.process__steps p { color: var(--ink-soft); font-size: 0.96rem; }
.process__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.process__cta p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Ocasiões ---------- */

.occasions { background: var(--mist); }
.occasions__list { max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--line); }
.occasion {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px 48px; align-items: baseline;
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.occasion h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.15; letter-spacing: -0.01em; }
.occasion__body { max-width: 34em; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.occasion p { color: var(--ink-soft); }

/* ---------- Encomende ---------- */

.order { background: var(--creme); }
.collection .section-head, .occasions .section-head, .order .section-head { max-width: var(--maxw); margin-inline: auto; }
.collection .section-head .h2, .collection .section-head__lead, .order .section-head .h2, .order .section-head__lead { max-width: 820px; }
.order__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.order__form { display: flex; flex-direction: column; gap: 34px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend {
  padding: 0; margin-bottom: 14px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field legend label { cursor: pointer; }
.optional { text-transform: none; letter-spacing: 0.02em; font-weight: 400; }
.field__hint { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px 48px; align-items: start; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(43, 42, 40, 0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
@media (hover: hover) { .chip:hover span { border-color: var(--grafite); } }
.chip input:checked + span { background: var(--grafite); color: var(--creme); border-color: var(--grafite); }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 3px; }
.chip--soft span { border-style: dashed; }

.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(43, 42, 40, 0.2); border-radius: 999px;
  height: 48px;
}
.stepper__btn {
  width: 48px; height: 46px; border: 0; background: none; border-radius: 999px;
  font-size: 1.2rem; line-height: 1;
  transition: background-color 0.3s var(--ease);
}
@media (hover: hover) { .stepper__btn:hover { background: rgba(43, 42, 40, 0.06); } }
.stepper input {
  width: 64px; height: 46px; border: 0; background: none; text-align: center;
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; min-height: 48px; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  flex: none; width: 48px; height: 28px; border-radius: 999px;
  background: rgba(43, 42, 40, 0.18); position: relative;
  transition: background-color 0.35s var(--ease);
}
.switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s var(--ease);
}
.switch input:checked + .switch__track { background: var(--teal-ink); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--teal); outline-offset: 3px; }
.switch__label { font-size: 0.95rem; line-height: 1.4; }

textarea {
  width: 100%; resize: vertical; min-height: 104px;
  padding: 16px 18px;
  border: 1px solid rgba(43, 42, 40, 0.2); border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  font: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
textarea::placeholder { color: rgba(94, 90, 84, 0.7); }
textarea:focus { outline: none; border-color: var(--teal-ink); background: #fff; }

.order__preview { position: sticky; top: 96px; }
.preview-card {
  background: #fbf9f4;
  border: 1px solid rgba(43, 42, 40, 0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(43, 32, 20, 0.25);
}
.preview-card__img { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--linho); }
.preview-card__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease); }
.preview-card__img img.is-swapping { opacity: 0; }
.preview-card__body { padding: 24px clamp(20px, 2.4vw, 32px) 28px; }
.preview-card__msg {
  margin-top: 14px;
  position: relative;
  padding: 16px 18px;
  background: #e4efea;
  border-radius: 4px 16px 16px 16px;
  font-size: 0.95rem; line-height: 1.6;
  white-space: pre-line;
  min-height: 7em;
}
.preview-card__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.preview-card__actions .btn { flex: 1 1 auto; }

/* ---------- Atelier ---------- */

.atelier {
  background: var(--linho);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.atelier > * { max-width: 100%; }
.atelier__media { position: relative; justify-self: end; width: 100%; max-width: 560px; }
.atelier__main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.atelier__seal {
  position: absolute; right: -8%; bottom: -8%;
  width: 38%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 6px solid var(--linho);
}
/* recorte quadrado da foto (800 x 1067) centrado na lata: x 58 a 658, y 208 a 808 */
.atelier__seal img {
  position: absolute; left: -9.667%; top: -34.667%;
  width: 133.333%; max-width: none; height: auto;
}
.atelier__body { max-width: 620px; }
.materials { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.materials > div { border-top: 1px solid var(--line); padding-top: 18px; }
.materials dt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.materials dd { margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Contato ---------- */

.contact {
  position: relative;
  background: var(--noite);
  color: var(--creme);
  padding: var(--section-y) var(--gutter) 40px;
  overflow: hidden;
  isolation: isolate;
}
.contact__bg {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(50vw, 720px); z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
  opacity: 0.55;
}
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__inner { max-width: var(--maxw); margin: 0 auto; }
.contact .section-head { max-width: 760px; }

.channels { max-width: 780px; border-top: 1px solid var(--line-light); }
.channels li { border-bottom: 1px solid var(--line-light); }
.channel {
  position: relative;
  display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 28px 8px;
  text-decoration: none;
  overflow: hidden;
}
.channel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(246, 194, 122, 0.12), transparent 70%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.channel:focus-visible::before, .channel.is-focus::before { transform: scaleX(1); }
@media (hover: hover) { .channel:hover::before { transform: scaleX(1); } }
.channel__label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(242, 238, 228, 0.6); }
.channel__value {
  font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2.6rem); line-height: 1.15;
  overflow-wrap: anywhere;
  transition: transform 0.6s var(--ease), color 0.6s var(--ease);
}
.channel.is-focus .channel__value { transform: translateX(10px); color: #fff; }
@media (hover: hover) { .channel:hover .channel__value { transform: translateX(10px); color: #fff; } }
.channel__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-light);
  display: grid; place-items: center;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.channel__arrow::after { content: "→"; font-size: 1.1rem; }
.channel.is-focus .channel__arrow { background: var(--creme); color: var(--grafite); border-color: var(--creme); }
@media (hover: hover) { .channel:hover .channel__arrow { background: var(--creme); color: var(--grafite); border-color: var(--creme); } }

.footer {
  max-width: var(--maxw); margin: clamp(88px, 12vw, 160px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  font-size: var(--fs-small); color: rgba(242, 238, 228, 0.6);
}
.wordmark--footer { color: var(--creme); }

/* ---------- Botão flutuante ---------- */

.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--grafite); color: var(--creme);
  font-size: 0.88rem; font-weight: 500; text-decoration: none;
  box-shadow: 0 16px 40px -16px rgba(20, 16, 12, 0.6);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background-color 0.4s var(--ease);
}
.float-wa.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .float-wa:hover { background: var(--teal-ink); } }
.float-wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .family { grid-template-columns: 1fr; gap: 8px; }
  .family__name { padding-top: 0; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .btn--nav { margin-left: auto; }
  .nav__toggle { margin-left: 4px; }

  .hero { align-items: flex-end; }
  .hero__media {
    width: 100%; bottom: auto; height: 70svh;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .hero__content { padding-top: 58svh; padding-bottom: 96px; }
  .hero__hint { left: var(--gutter); right: auto; bottom: 28px; }

  .product, .product--flip { grid-template-columns: 1fr; }
  .product--flip .gallery { order: 0; }

  .cases { grid-template-columns: 1fr 1fr; }
  .case:nth-child(1) { grid-column: 1 / -1; }
  .case:nth-child(2), .case:nth-child(3) { margin-top: 0; }

  .process__steps li { grid-template-columns: 2em minmax(0, 1fr); }
  .process__steps p { grid-column: 2; }

  .occasion { grid-template-columns: 1fr; }

  .order__grid { grid-template-columns: 1fr; }
  .order__preview { position: static; }

  .atelier { grid-template-columns: 1fr; }
  .atelier__media { justify-self: start; max-width: 480px; }
  .atelier__seal { right: -4%; }

  .contact__bg { width: 100%; opacity: 0.28; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
  .channel { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0; }
  .channel__label { grid-column: 1; }
  .channel__value { grid-column: 1; }
  .channel__arrow { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 560px) {
  .btn--nav { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .specs { grid-template-columns: 1fr 1fr 1fr; }
  .specs > div { padding-right: 8px; }
  .specs > div + div { padding-left: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .materials { grid-template-columns: 1fr; }
  .aroma { grid-template-columns: 1fr; gap: 12px; }
  .aroma__pick { justify-self: start; opacity: 1; }
  .float-wa span { display: none; }
  .float-wa { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .size-toggle button { min-width: 0; }
}

/* ==========================================================
   MOVIMENTO REDUZIDO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .manifesto { height: auto; background: var(--creme); }
  .manifesto__sticky { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .manifesto::before, .manifesto__sticky::before, .manifesto__sticky::after { display: none; }
  .manifesto__coda { opacity: 1; transform: none; filter: none; letter-spacing: -0.02em; }
  .hero__hint { display: none; }
  .shot img, .shot.is-active img { transform: none; }
}

/* ==========================================================
   INTERAÇÕES
   ========================================================== */

/* ---------- Galeria: moldura, botões e setas ---------- */
.gallery__frame { position: relative; }
.g-btn {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(20, 16, 12, 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
@media (hover: hover) { .g-btn:hover { background: rgba(20, 16, 12, 0.62); } }
.g-btn:active { transform: scale(0.96); }
.g-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-btn[hidden] { display: none; }

.g-light { left: 14px; bottom: 14px; }
.g-light.is-on { background: rgba(246, 194, 122, 0.95); color: var(--grafite); border-color: rgba(246, 194, 122, 0.95); }
.g-light.is-hinting::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid rgba(246, 194, 122, 0.9);
  animation: ring 1.8s var(--ease) 2;
}
@keyframes ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

.g-zoom { right: 14px; top: 14px; width: 44px; padding: 0; }
.g-arrow { top: 50%; width: 48px; height: 48px; padding: 0; opacity: 0; transform: translateY(-50%); }
.g-arrow:active { transform: translateY(-50%) scale(0.94); }
.g-prev { left: 14px; }
.g-next { right: 14px; }
.gallery__frame:hover .g-arrow,
.g-arrow:focus-visible { opacity: 1; }
.gallery__stage { cursor: zoom-in; }
@media (hover: none), (max-width: 900px) { .g-arrow { display: none; } }

/* ---------- Acender a vela ---------- */
.candle-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* --lit e --glow vêm do desenho da chama (main.js), quadro a quadro */
.candle-fx__dim {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--wx, 50%) var(--wy, 50%), rgba(30, 18, 8, 0) 0, rgba(30, 18, 8, 0.16) calc(var(--fw, 20px) * 2.2), rgba(14, 9, 5, 0.6) calc(var(--fw, 20px) * 10));
  opacity: var(--lit, 0);
}
.candle-fx__glow {
  position: absolute; left: var(--wx, 50%); top: var(--wy, 50%);
  width: calc(var(--fw, 20px) * 15); aspect-ratio: 1;
  transform: translate(-50%, -58%) scale(calc(0.3 + var(--lit, 0) * 0.7));
  opacity: var(--glow, 0);
  mix-blend-mode: screen;
}
.candle-fx__glow::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 160, 0.62) 0%, rgba(255, 180, 100, 0.26) 22%, rgba(255, 150, 70, 0.08) 45%, transparent 66%);
}
.candle-fx__canvas { position: absolute; display: block; }
.scene img { transition: filter 1.4s var(--ease-soft), transform 2.4s var(--ease); }
.scene.is-burning img { filter: brightness(0.8) saturate(1.1) sepia(0.18); }

/* ---------- Chama viva das fotos acesas ---------- */
.flame-live { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.flame-live__canvas { position: absolute; display: block; }
/* --glow vem do balanço da chama (main.js): a luz da sala respira junto com ela */
.flame-live__glow {
  position: absolute; left: var(--lx, 50%); top: var(--ly, 50%);
  width: calc(var(--lh, 40px) * 7); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 120, 0.2) 0%, rgba(255, 170, 90, 0.08) 30%, rgba(255, 150, 70, 0) 62%);
  mix-blend-mode: screen;
  opacity: var(--glow, 0);
}

/* vista de cima: a luz se abre em volta do pavio */
.scene[data-view="top"] .candle-fx__glow { transform: translate(-50%, -50%) scale(calc(0.3 + var(--lit, 0) * 0.7)); }

/* no toque, um pulso de luz mostra que o pavio também acende */
.candle-fx__spot {
  position: absolute; left: var(--wx, 50%); top: calc(var(--wy, 50%) - var(--fw, 20px) * 0.6);
  width: calc(var(--fw, 20px) * 2.6); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(246, 194, 122, 0.95);
  box-shadow: 0 0 0 1px rgba(20, 16, 12, 0.12), 0 0 18px rgba(246, 194, 122, 0.5);
  transform: translate(-50%, -50%);
  opacity: 0;
}
@media (hover: none) {
  .scene.is-hinting:not(.is-burning) .candle-fx__spot { animation: spot 1.8s var(--ease) 2; }
}
@keyframes spot {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* ---------- Galeria no celular: deslizar nativo ---------- */
@media (max-width: 900px) {
  .gallery__stage {
    display: flex;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
  .gallery__stage::-webkit-scrollbar { display: none; }
  .shot {
    position: relative; inset: auto;
    flex: 0 0 100%; height: 100%;
    opacity: 1;
    scroll-snap-align: center; scroll-snap-stop: always;
  }
  .shot img, .shot.is-active img, .gallery__stage:hover .shot.is-active img,
  .shot .flame-live, .shot.is-active .flame-live, .gallery__stage:hover .shot.is-active .flame-live { transform: none; }
  .gallery__thumbs { justify-content: center; }
  .thumb { width: 48px; height: 60px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 9, 7, 0.97);
  color: var(--creme);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(12, 9, 7, 0.9); }
.lightbox[open] { display: flex; flex-direction: column; animation: lb-in 0.5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
}
.lightbox__title { font-family: var(--serif); font-size: 1.2rem; }
.lightbox__count { font-size: 0.75rem; letter-spacing: 0.24em; color: rgba(242, 238, 228, 0.6); margin-left: auto; }
.lightbox__close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-light); background: none; color: inherit;
  font-size: 1.3rem; line-height: 1;
  transition: background-color 0.3s var(--ease);
}
@media (hover: hover) { .lightbox__close:hover { background: rgba(242, 238, 228, 0.1); } }
.lightbox__track {
  flex: 1; min-height: 0;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior: contain;
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide {
  flex: 0 0 100%; min-width: 0;
  display: grid; place-items: center;
  scroll-snap-align: center; scroll-snap-stop: always;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
}
.lightbox__slide img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  width: auto; height: auto;
  object-fit: contain; border-radius: 3px;
}
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-light); background: rgba(20, 16, 12, 0.4); color: var(--creme);
  font-size: 1.2rem;
  transition: background-color 0.3s var(--ease);
}
.lightbox__arrow:hover { background: rgba(242, 238, 228, 0.12); }
.lightbox__arrow--prev { left: var(--gutter); }
.lightbox__arrow--next { right: var(--gutter); }
@media (hover: none), (max-width: 900px) { .lightbox__arrow { display: none; } }

/* ---------- Prévia da personalização ---------- */
.label-lab {
  max-width: var(--maxw); margin: clamp(96px, 13vw, 176px) auto 0;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.label-lab__text { margin-top: 18px; max-width: 32em; color: var(--ink-soft); }
.label-lab__form { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.label-lab__row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 18px; }
.label-lab__actions { margin-top: 8px; }
.text-field { display: flex; flex-direction: column; gap: 8px; }
.text-field__label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.text-field input {
  width: 100%; height: 54px; padding: 0 18px;
  border: 1px solid rgba(43, 42, 40, 0.2); border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.text-field input::placeholder { color: rgba(94, 90, 84, 0.65); }
.text-field input:focus { outline: none; border-color: var(--teal-ink); background: #fff; }

/* imagem de fundo do rótulo: o input fica escondido e o campo inteiro é o alvo do clique e do arrastar */
.upload .upload__input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0;
}
.upload__drop {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  min-height: 54px; padding: 8px 18px;
  border: 1px dashed rgba(43, 42, 40, 0.28); border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.upload__drop:hover, .upload__drop.is-over { border-color: var(--teal-ink); background: #fff; }
.upload__drop.is-over { border-style: solid; }
.upload__input:focus-visible + .upload__drop { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.upload__thumb {
  grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center;
  background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e5a54' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E");
}
.upload.has-file .upload__thumb { width: 44px; height: 44px; background: none; }
.upload__thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload__name { font-size: 1rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__hint { font-size: 0.82rem; color: var(--ink-soft); }
.upload__actions { display: flex; gap: 18px; margin-top: 2px; }
.upload__actions[hidden] { display: none; }
.upload__link {
  padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.88rem; color: var(--teal-ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(43, 42, 40, 0.25);
}
.upload__link:hover { text-decoration-color: currentColor; }
.upload__note { font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.upload__note.is-error { color: #9a4a32; }

/* cor do texto do rótulo: a mesma nos três campos ou uma por campo */
.ink { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ink legend { padding: 0; margin-bottom: 12px; }
.ink__mode { margin-top: 0; align-self: flex-start; }
.ink__mode button { min-width: 0; min-height: 38px; font-size: 0.88rem; }
.ink__mode[data-active="each"] .size-toggle__pill { transform: translateX(100%); }
.ink__panel { display: flex; flex-direction: column; gap: 10px; animation: ink-in 0.4s var(--ease-soft); }
.ink__panel[hidden] { display: none; }
@keyframes ink-in { from { opacity: 0; transform: translateY(4px); } }
.ink__line { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; }
.ink__field { font-size: 0.82rem; color: var(--ink-soft); }
.ink__row { position: relative; display: flex; flex-wrap: wrap; gap: 4px; }
.swatch { position: relative; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch span {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(43, 42, 40, 0.18);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.swatch:hover span { transform: scale(1.08); }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(43, 42, 40, 0.18), 0 0 0 3px var(--creme), 0 0 0 4.5px var(--grafite); }
.swatch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 5px; }
.swatch--auto span { background: linear-gradient(135deg, var(--grafite) 0 50%, #f6f1e8 50% 100%); }
.swatch--custom span { background: conic-gradient(#d65a5a, #e0b44c, #7fb069, #4aa3c9, #7a63c4, #d65a8f, #d65a5a); }
.swatch--custom.is-set span { background: radial-gradient(circle, var(--sw) 0 52%, transparent 54%), conic-gradient(#d65a5a, #e0b44c, #7fb069, #4aa3c9, #7a63c4, #d65a8f, #d65a5a); }
/* o seletor nativo abre a partir do próprio input: escondido na borda direita da amostra, a janela abre ao lado dela */
.swatch .swatch__picker { position: absolute; inset: auto; left: calc(100% - 4px); top: 50%; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { .ink__panel { animation: none; } }

.label-lab__preview { position: relative; }
.label-lab__preview figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 0.92rem; color: var(--ink-soft); }
.label-photo {
  position: relative;
  overflow: hidden; border-radius: 3px;
  aspect-ratio: 654 / 724;
  background: var(--linho);
}
.label-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.12) saturate(0.94) brightness(1.03); }
.label {
  position: absolute; z-index: 1;
  /* a etiqueta impressa da foto, medida pixel a pixel; o recorte segue a curva do copo (a base desce no meio) */
  left: 31.04%; right: 30.9%; top: 37.55%; bottom: 17.4%;
  clip-path: polygon(0% 0.1%, 12.5% 0.7%, 25% 0.8%, 37.5% 0.9%, 50% 1%, 62.5% 0.9%, 75% 0.8%, 87.5% 0.7%, 99.8% 0.1%, 99% 97.2%, 86.7% 99.1%, 74.5% 99.6%, 62.2% 99.9%, 49.9% 100%, 37.6% 99.9%, 25.3% 99.6%, 13.1% 99.1%, 0.8% 97.2%);
  container-type: size;
  background: linear-gradient(90deg, #bdb9ba 0%, #cecbcd 16%, #d3d1d2 45%, #d3cbd0 70%, #c1bcbf 100%);
  color: #2e2c2b;
  filter: sepia(0.12) saturate(0.94) brightness(1.03);
  transition: filter 1.4s var(--ease-soft);
}
/* imagem de fundo enviada: o papel aparece um pouco através dela (véu), e o texto continua por cima */
.label__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; user-select: none; -webkit-user-drag: none;
  opacity: 0.8;
  animation: label-bg-in 0.7s var(--ease-soft);
}
.label.has-dark-bg .label__bg { opacity: 1; filter: brightness(0.72); }
.label.has-bg { touch-action: none; cursor: grab; }
.label.has-bg.is-dragging { cursor: grabbing; }
.label.has-dark-bg .label__inner > * { mix-blend-mode: normal; opacity: 0.96; color: #f6f1e8; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.label.has-dark-bg .label__brand span { color: rgba(246, 241, 232, 0.82); }
/* cor escolhida por campo: vence o contraste automático e sai sem o multiply, que mudaria o tom */
.label.has-ink-names .label__inner .label__names,
.label.has-ink-names .label__inner .label__rule { color: var(--ink-names); mix-blend-mode: normal; opacity: 1; }
.label.has-ink-phrase .label__inner .label__phrase { color: var(--ink-phrase); mix-blend-mode: normal; opacity: 1; }
.label.has-ink-date .label__inner .label__date { color: var(--ink-date); mix-blend-mode: normal; opacity: 1; }
.label.has-ink-names .label__inner .label__rule { opacity: 0.6; }
.label.ink-light-names .label__inner .label__names,
.label.ink-light-phrase .label__inner .label__phrase,
.label.ink-light-date .label__inner .label__date { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28); }
@keyframes label-bg-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .label__bg { animation: none; } }
.label__inner {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 13cqw 7cqw 7cqw;
}
.label__inner > * { mix-blend-mode: multiply; opacity: 0.9; }
.label__names {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--names-size, 8.4cqw); line-height: 1.22;
  letter-spacing: 0.06em; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.label__rule { display: block; width: 16cqw; height: 1px; background: currentColor; opacity: 0.55; margin: 8cqw 0 7cqw; }
.label__phrase { font-family: var(--serif); font-style: italic; font-size: 6.4cqw; line-height: 1.35; max-width: 92%; }
.label__date { margin-top: 7cqw; font-size: 4.4cqw; letter-spacing: 0.24em; }
.label__brand { margin-top: auto; font-family: var(--serif); font-size: 6.6cqw; line-height: 1; }
.label__brand span { display: block; margin-top: 1.6cqw; font-family: var(--sans); font-size: 2.6cqw; letter-spacing: 0.42em; text-transform: uppercase; color: var(--teal-ink); }
.label-photo.is-burning .label { filter: brightness(0.82) saturate(1.1) sepia(0.2); }
.label-photo .candle-fx { z-index: 2; }
.label-pulse { animation: label-pulse 0.5s var(--ease); }
@keyframes label-pulse { from { opacity: 0.55; } to { opacity: 0.9; } }

/* ---------- Barra de encomenda no celular ---------- */
.order-bar {
  position: fixed; z-index: 42;
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 8px;
  padding: 6px 6px 6px 8px;
  border-radius: 999px;
  background: rgba(43, 42, 40, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--creme);
  box-shadow: 0 18px 40px -18px rgba(20, 16, 12, 0.7);
  transform: translateY(150%); visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.order-bar.is-visible { transform: none; visibility: visible; transition: transform 0.6s var(--ease), visibility 0s; }
.order-bar__sum {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 0; background: none; color: inherit; text-align: left;
  font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.order-bar__send { min-height: 44px; padding: 0 18px; }
@media (max-width: 900px) { .order-bar { display: flex; } }

.preview-card__msg.is-updated { animation: msg-in 0.5s var(--ease); }
@keyframes msg-in { from { background-color: #d3e7de; } to { background-color: #e4efea; } }

/* ---------- Ajustes de responsividade ---------- */
@media (max-width: 900px) {
  .manifesto { height: 150vh; }
  .label-lab { grid-template-columns: 1fr; }
  .label-lab__preview { order: -1; max-width: 440px; width: 100%; justify-self: center; }
  textarea { font-size: 1rem; }
}
@media (max-width: 560px) {
  .label-lab__row { grid-template-columns: 1fr; }
  .label-lab__actions .btn { width: 100%; }
}
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .hero__title { font-size: 2.9rem; }
  .product__name { font-size: 2.6rem; }
  .btn { padding: 0 20px; }
  .specs dd { font-size: 1.05rem; }
}
/* celular deitado */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { align-items: center; }
  .hero__media {
    top: 0; bottom: 0; height: 100%; width: 55vw;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40%);
    mask-image: linear-gradient(to right, transparent, #000 40%);
  }
  .hero__content { padding-top: 96px; padding-bottom: 48px; max-width: 62vw; margin-left: 0; }
  .hero__title { font-size: clamp(2.4rem, 7vw, 3.4rem); }
  .hero__lead { margin-top: 16px; }
  .hero__actions { margin-top: 20px; }
  .menu { padding-top: 80px; }
  .menu nav a { font-size: 1.8rem; }
}
@media (min-width: 1800px) {
  :root { --maxw: 1480px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media, .hero__content { transform: none; opacity: 1; }
  .menu nav a, .menu__footer { opacity: 1; transform: none; }
}

/* ==========================================================
   CELULAR E TOQUE
   Sem cursor, o que no computador vem do hover acontece com o
   dedo ou com a rolagem (.is-focus marca o item no centro da tela).
   ========================================================== */
html { -webkit-tap-highlight-color: transparent; }
a, button, label, .chip, .stepper { touch-action: manipulation; }

@media (hover: none) {
  /* resposta imediata ao toque, no lugar do hover */
  .btn--light:active { background: #fff; }
  .btn--ghost-light:active { background: rgba(242, 238, 228, 0.1); border-color: var(--creme); }
  .btn--dark:active, .float-wa:active { background: var(--teal-ink); }
  .btn--ghost-dark:active { border-color: var(--grafite); background: rgba(43, 42, 40, 0.05); }
  .btn--wa:active { background: var(--grafite); }
  .chip:active input:not(:checked) + span { border-color: var(--grafite); background: rgba(43, 42, 40, 0.05); }
  .stepper__btn:active { background: rgba(43, 42, 40, 0.08); }
  .thumb:active { opacity: 0.8; }
  .aroma:active { background: rgba(255, 255, 255, 0.5); }
  .aroma__pick:active { background: var(--grafite); color: var(--creme); border-color: var(--grafite); opacity: 1; }
  .link-arrow:active { background-size: 100% 1px; }
  .channel:active::before { transform: scaleX(1); transition-duration: 0.3s; }
  .case:active .case__img img { transform: scale(1.04); }
  .g-btn:active { background: rgba(20, 16, 12, 0.62); }
  .lightbox__close:active { background: rgba(242, 238, 228, 0.12); }

  /* hero: tocar e arrastar para o lado conduz a luz; arrastar na vertical rola a página */
  .hero { touch-action: pan-y pinch-zoom; }
  .hero__media { pointer-events: none; -webkit-touch-callout: none; }
}

/* anel de luz no ponto tocado */
.hero__ripple {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 150px; aspect-ratio: 1; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(246, 194, 122, 0.24), rgba(246, 194, 122, 0) 62%);
  border: 1px solid rgba(246, 194, 122, 0.4);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
}
.hero__ripple.is-on { animation: ripple 0.9s var(--ease) forwards; }
@keyframes ripple {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* a dica do toque fica na primeira tela, entre a vela e o título */
@media (hover: none) and (max-width: 900px) and (orientation: portrait) {
  .hero__hint {
    top: calc(58svh - 52px); bottom: auto; right: var(--gutter); left: auto;
    display: inline-flex; align-items: center; gap: 10px;
  }
  .hero__hint::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--chama);
    animation: tap 2.2s var(--ease) infinite;
  }
}
@keyframes tap {
  0% { box-shadow: 0 0 0 0 rgba(246, 194, 122, 0.6); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(246, 194, 122, 0); }
}

/* galeria no celular: uma espiadinha mostra a próxima foto */
@media (max-width: 900px) {
  .gallery__stage.is-peeking .shot { animation: peek 1.4s ease-in-out both; }
}
@keyframes peek {
  0%, 100% { transform: none; }
  45% { transform: translateX(-14%); }
}

/* lightbox: arrastar a foto para baixo fecha */
.lightbox__track {
  touch-action: pan-x pinch-zoom;
  transform: translateY(var(--drag, 0px));
  transition: transform 0.45s var(--ease);
}
.lightbox.is-dragging .lightbox__track { transition: none; }
.lightbox.is-dragging,
.lightbox.is-leaving { background: rgba(12, 9, 7, calc(0.97 - var(--dragp, 0) * 0.55)); }
.lightbox.is-dragging .lightbox__bar,
.lightbox.is-leaving .lightbox__bar { opacity: calc(1 - var(--dragp, 0) * 1.6); }
.lightbox.is-dragging::backdrop,
.lightbox.is-leaving::backdrop { background: transparent; }
.lightbox.is-leaving { opacity: 0; transition: opacity 0.22s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .hero__hint::before, .hero__ripple.is-on { animation: none; }
}
