/* ============================================================
   GRAN TOBACCO — Landing Page
   Direção: dark luxury editorial
   ============================================================ */

:root {
  /* Cores */
  --ink: #120c0a;            /* fundo base, marrom quase preto */
  --ink-2: #1b1310;          /* superfície elevada */
  --wine: #4a1d1d;           /* vinho */
  --wine-deep: #2c1414;
  --terra: #b0432b;          /* terracota */
  --gold: #e9b54c;           /* Gold Tobacco (Pantone P 14-14 C) — manual de marca */
  --gold-soft: #f3ce85;
  --cream: #f1e6d4;          /* texto claro */
  --cream-dim: #c9b9a4;      /* texto secundário */
  --muted: #8a7868;          /* texto terciário */
  --line: rgba(233, 181, 76, 0.22);

  /* Tipografia */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;

  --text-eyebrow: 0.8rem;
  --text-body: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  --text-hero: clamp(2.8rem, 1rem + 8vw, 6.5rem);

  /* Espaço */
  --space-section: clamp(3.25rem, 2.25rem + 4.5vw, 6.25rem);
  --wrap: 1180px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
}

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

/* overflow-x: clip evita scroll horizontal SEM criar contexto de scroll
   (ao contrário de hidden), preservando o position: sticky dos filhos. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  background: #0d0908;
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Textura de grão sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   ATMOSFERA DE FUNDO — mesh de luz quente + fumaça + brasas
   Camada fixa atrás de todo o conteúdo (z-index -2).
   ============================================================ */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-fx > * { position: absolute; inset: -10%; }

/* Mesh de luz: brasa terracota, latão e vinho profundo sobre base escura */
.bg-fx__mesh {
  background:
    radial-gradient(58% 50% at 80% 8%, rgba(176, 67, 43, 0.44), transparent 62%),
    radial-gradient(46% 42% at 8% 26%, rgba(233, 181, 76, 0.22), transparent 64%),
    radial-gradient(60% 55% at 88% 78%, rgba(124, 38, 30, 0.38), transparent 66%),
    radial-gradient(50% 44% at 12% 84%, rgba(176, 67, 43, 0.24), transparent 62%),
    radial-gradient(36% 30% at 50% 52%, rgba(233, 181, 76, 0.10), transparent 70%),
    radial-gradient(80% 70% at 50% 116%, rgba(74, 29, 29, 0.65), transparent 62%),
    radial-gradient(120% 100% at 50% 40%, #191210 0%, #0c0807 82%);
  transform: translate3d(0, calc(var(--sc, 0) * -5%), 0) scale(1.04);
  animation: meshBreathe 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* Padrão art-déco em latão — lattice de losangos, quase imperceptível */
.bg-fx__pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cg fill='none' stroke='%23e9b54c' stroke-width='1'%3E%3Cpath d='M42 1 83 42 42 83 1 42Z'/%3E%3Cpath d='M42 15 69 42 42 69 15 42Z' opacity='0.6'/%3E%3C/g%3E%3Ccircle cx='42' cy='42' r='1.6' fill='%23e9b54c'/%3E%3C/svg%3E");
  background-size: 84px 84px;
  opacity: 0.05;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 40%, #000 20%, transparent 85%);
  mask-image: radial-gradient(110% 90% at 50% 40%, #000 20%, transparent 85%);
}
@keyframes meshBreathe {
  from { transform: translate3d(0, calc(var(--sc, 0) * -5%), 0) scale(1.04); }
  to   { transform: translate3d(2%, calc(var(--sc, 0) * -5% - 1.5%), 0) scale(1.1); }
}

/* Fumaça atmosférica — ruído fractal suavizado, em deriva lenta */
.bg-fx__smoke {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='3' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: 140% 140%;
  opacity: 0.72;
  mix-blend-mode: soft-light;
  filter: blur(12px) contrast(1.5);
  -webkit-mask-image: radial-gradient(120% 90% at 60% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 60% 30%, #000 30%, transparent 80%);
  animation: smokeDrift 64s ease-in-out infinite alternate;
  will-change: transform;
}
.bg-fx__smoke--2 {
  opacity: 0.5;
  background-size: 200% 200%;
  filter: blur(26px) contrast(1.25);
  animation: smokeDrift2 92s ease-in-out infinite alternate;
}
@keyframes smokeDrift {
  from { transform: translate3d(-6%, 4%, 0) rotate(0deg) scale(1.1); }
  to   { transform: translate3d(8%, -8%, 0) rotate(8deg) scale(1.25); }
}
@keyframes smokeDrift2 {
  from { transform: translate3d(6%, -2%, 0) rotate(0deg) scale(1.2); }
  to   { transform: translate3d(-8%, 8%, 0) rotate(-6deg) scale(1.35); }
}

/* Brasas — pontos de luz quente subindo de leve */
.bg-fx__embers {
  background-image:
    radial-gradient(2.5px 2.5px at 18% 84%, rgba(244, 214, 150, 1), transparent 58%),
    radial-gradient(2px 2px at 72% 90%, rgba(227, 196, 126, 0.95), transparent 58%),
    radial-gradient(2.5px 2.5px at 44% 96%, rgba(244, 214, 150, 1), transparent 58%),
    radial-gradient(2px 2px at 88% 80%, rgba(200, 90, 50, 0.95), transparent 58%),
    radial-gradient(2px 2px at 32% 88%, rgba(227, 196, 126, 0.9), transparent 58%),
    radial-gradient(2.5px 2.5px at 60% 78%, rgba(244, 214, 150, 0.85), transparent 58%),
    radial-gradient(2px 2px at 8% 74%, rgba(233, 181, 76, 0.85), transparent 58%),
    radial-gradient(1.5px 1.5px at 52% 70%, rgba(227, 196, 126, 0.7), transparent 58%),
    radial-gradient(2px 2px at 80% 66%, rgba(244, 214, 150, 0.7), transparent 58%),
    radial-gradient(1.5px 1.5px at 26% 64%, rgba(233, 181, 76, 0.6), transparent 58%);
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(227, 196, 126, 0.55));
  animation: embersRise 16s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes embersRise {
  from { transform: translate3d(0, 0, 0); opacity: 0.45; }
  50%  { opacity: 1; }
  to   { transform: translate3d(3%, -16%, 0); opacity: 0.6; }
}

/* Vinheta — escurece as bordas e foca o centro */
.bg-fx__vignette {
  background: radial-gradient(125% 105% at 50% 28%, transparent 58%, rgba(8, 5, 4, 0.66) 100%);
}

/* Mobile: no Chrome Android, camadas fixas com filter:blur, mix-blend-mode,
   mask-image ou transform em scroll fazem o compositor desenhar o bounding box
   como um quadrado preto ao recompor (colapso da barra de URL) e derrubam a
   camada do gradiente da hero por um frame. Reduzimos a pilha a gradientes
   estáticos, que compõem sem falhar. */
@media (max-width: 900px) {
  body::before { display: none; }                 /* grão fixo z-index:9999 sobre tudo */
  .bg-fx__smoke, .bg-fx__smoke--2 { display: none; }  /* blur + mix-blend + mask */
  .bg-fx__pattern { display: none; }                  /* mask-image radial */
  .bg-fx__mesh { animation: none; transform: none; }  /* mata o parallax por --sc */
  .bg-fx__embers { animation: none; filter: none; opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-fx__mesh, .bg-fx__smoke, .bg-fx__smoke--2, .bg-fx__embers { animation: none; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.serif-italic { font-style: italic; color: var(--gold-soft); }

/* ---------- Botões ---------- */
.btn {
  --pad: 1rem 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--pad);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.btn__icon { color: inherit; font-size: 0.85em; }
.btn__svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1a0c;
  box-shadow: 0 10px 30px -12px rgba(233, 181, 76, 0.7);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(233, 181, 76, 0.85); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-3px); }
.btn--sm { padding: 0.65rem 1.3rem; font-size: 0.82rem; }
.btn--lg { padding: 1.2rem 2.5rem; font-size: 1rem; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(18, 12, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand__logo { box-sizing: content-box; display: block; width: auto; height: clamp(30px, 2.4vw + 20px, 42px); padding-top: 5px; filter: drop-shadow(0 1px 6px rgba(0,0,0,0.55)); }
.brand--footer .brand__logo { height: auto; width: clamp(220px, 42vw, 320px); }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); transition: transform 0.35s, opacity 0.3s; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  /* padding-top reserva a altura da topbar fixa: em telas achatadas o
     conteúdo cresce a section e para abaixo do header, sem sobrepor. */
  padding: clamp(6rem, 12vh, 7.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vh, 5rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; animation: slowZoom 16s var(--ease) forwards; }
.hero__img {
  position: absolute; top: -3%; left: 0;
  width: 100%; height: 106%;
  object-fit: cover; object-position: 60% 42%;
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(18,12,10,0.35) 45%, rgba(18,12,10,0.55) 100%),
    radial-gradient(120% 80% at 20% 90%, rgba(18,12,10,0.75), transparent 60%);
}
@keyframes slowZoom { from { transform: scale(1.1); } to { transform: scale(1); } }

/* Mobile/touch: sem zoom nem will-change na hero. Transforms residuais
   promovem a imagem a uma camada de composição que o Chrome Android falha
   ao rasterizar durante o scroll — origem das faixas pretas e do gradiente
   que some. Mantida estática, a hero é pintada normalmente. */
@media (hover: none), (pointer: coarse) {
  .hero__media { animation: none; }
  .hero__img { will-change: auto; transform: none; }
}

.hero__content { max-width: 760px; position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 1.2rem 0 1.4rem;
}
.hero__title .line { display: block; }
.hero__title .line--italic { font-style: italic; color: var(--gold-soft); }
.hero__sub { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: var(--cream-dim); max-width: 50ch; }
/* Três CTAs na mesma linha em desktop: botões compactos + no-break de texto,
   com content largo o bastante para os três caberem. Em telas estreitas o
   wrap deixa quebrar naturalmente (sem overflow); no ≤520px empilham. */
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 2rem 0 1.3rem; }
.hero__actions .btn { padding: 0.8rem 1.3rem; font-size: 0.84rem; white-space: nowrap; }
.hero__meta { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 7px;
}
.hero__scroll span { width: 3px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(10px); } }

/* Laptops menores (ex.: 1366x768) — reduz para caber sem cortar conteúdo */
@media (min-width: 901px) and (max-width: 1599px) {
  .hero__content { max-width: 720px; }
  .hero__title { font-size: clamp(3.2rem, 1rem + 3.6vw, 5.4rem); margin: 1rem 0 1.2rem; }
  .hero__sub { font-size: clamp(1rem, 0.94rem + 0.35vw, 1.15rem); max-width: 46ch; }
  .hero__actions { gap: 0.6rem; margin: 1.6rem 0 1.1rem; }
  .hero__actions .btn { padding: 0.75rem 1.15rem; font-size: 0.8rem; }
  .hero__meta { font-size: 0.78rem; }
}

/* Telas Full HD+ (1920x1080 e maiores) — aumenta para maior coverage visual */
@media (min-width: 1600px) {
  .hero__content { max-width: 900px; }
  .hero__title { font-size: clamp(5.6rem, 1rem + 6.5vw, 8.4rem); margin: 1.4rem 0 1.6rem; }
  .hero__sub { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.55rem); max-width: 56ch; }
  .hero__actions { gap: 0.8rem; margin: 2.2rem 0 1.5rem; }
  .hero__actions .btn { padding: 0.9rem 1.7rem; font-size: 0.9rem; }
  .hero__meta { font-size: 0.88rem; }
}

/* ---------- MANIFESTO ---------- */
.manifesto { padding: var(--space-section) 0; background: linear-gradient(180deg, rgba(13,9,8,0) 0%, rgba(27,19,16,0.5) 100%); overflow-x: hidden; }
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}
.manifesto__copy { display: grid; gap: 1.4rem; }
.manifesto .section-title { max-width: 18ch; }
.manifesto__text { color: var(--cream-dim); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 58ch; }
.manifesto__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  max-height: 500px;
  justify-self: end;
  width: min(100%, 440px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
}
.manifesto__media img {
  position: absolute; top: -8%; left: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  will-change: transform;
}
.manifesto__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,12,10,0.5) 0%, transparent 40%);
}
.manifesto__grid .cred { grid-column: 1 / -1; }

/* ---------- PILARES ---------- */
.pillars { padding-bottom: var(--space-section); background: linear-gradient(180deg, rgba(27,19,16,0.5), rgba(18,12,10,0.28)); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(74,29,29,0.25), rgba(27,19,16,0.1));
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--gold); background: linear-gradient(160deg, rgba(74,29,29,0.4), rgba(27,19,16,0.2)); }
.pillar__num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold); }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0.6rem 0 0.7rem; }
.pillar p { color: var(--cream-dim); font-size: 0.98rem; }

/* ---------- ESPAÇOS / GALERIA ---------- */
.spaces { padding: var(--space-section) 0; background: linear-gradient(180deg, rgba(18,12,10,0.28), rgba(13,9,8,0) 100%); }
.spaces__head { margin-bottom: 2rem; display: grid; gap: 0.9rem; }
.spaces__head .section-title { max-width: 16ch; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  grid-column: span 2;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  transition: transform 0.9s var(--ease);
}
.gallery__item:hover .gallery__media { transform: scale(1.05); }
.gallery__img {
  position: absolute; top: -20%; left: 0;
  width: 100%; height: 140%;
  object-fit: cover;
  will-change: transform;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(18,12,10,0.9) 0%, transparent 55%);
  transition: background 0.5s;
}
.gallery__item:hover::after { background: linear-gradient(to top, rgba(18,12,10,0.78) 0%, transparent 62%); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2; padding: 1.4rem;
  transform: translateY(8px); opacity: 0.92;
  transition: transform 0.5s var(--ease), opacity 0.5s;
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery__item figcaption p { font-size: 0.9rem; color: var(--cream-dim); max-width: 32ch; margin-top: 0.3rem; }
.tag {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft);
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(18,12,10,0.4);
}

/* ---------- CREDENCIAIS (manifesto) ---------- */
.cred {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  max-width: 100%;
}
.cred li { display: grid; gap: 0.35rem; align-content: start; }
.cred strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.25;
  color: var(--gold-soft);
}
.cred p { color: var(--cream-dim); font-size: 0.92rem; }

/* ---------- CURADORIA / HUMIDOR ---------- */
.humidor { position: relative; padding: calc(var(--space-section) * 0.55) 0 var(--space-section); background: linear-gradient(180deg, rgba(13,9,8,0) 0%, rgba(27,19,16,0.45) 50%, rgba(13,9,8,0) 100%); overflow-x: clip; }
.humidor .wrap { position: relative; z-index: 1; }
.humidor__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.humidor__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
  aspect-ratio: 4 / 5;
}
.humidor__img {
  position: absolute; top: -6%; left: 0;
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.humidor__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(18,12,10,0.88) 0%, transparent 45%);
}
.humidor__badge {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.4rem;
}
.humidor__badge p { font-size: 0.9rem; color: var(--cream-dim); max-width: 36ch; margin-top: 0.5rem; }
.humidor__info { display: grid; gap: 1.2rem; justify-items: start; }
.humidor__info .section-title { max-width: 16ch; }
.humidor__text { color: var(--cream-dim); max-width: 52ch; }
.humidor__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.6rem;
  margin: 0.4rem 0 0.6rem;
}
.humidor__list li {
  display: grid; gap: 0.25rem; align-content: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(74,29,29,0.18), rgba(27,19,16,0.08));
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
}
.humidor__list li:hover {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(74,29,29,0.32), rgba(27,19,16,0.16));
  transform: translateY(-4px);
}
.humidor__list strong { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.25; }
.humidor__list p { color: var(--cream-dim); font-size: 0.9rem; }

/* ---------- LOCAÇÃO DO ESPAÇO ---------- */
.rental { position: relative; padding: var(--space-section) 0; overflow-x: clip; }
.rental__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.rental__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
  aspect-ratio: 4 / 5;
}
.rental__img {
  position: absolute; top: -6%; left: 0;
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.rental__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,12,10,0.55) 0%, transparent 50%);
}
.rental__info { display: grid; gap: 1.15rem; justify-items: start; }
.rental__info .section-title { max-width: 18ch; }
.rental__text { color: var(--cream-dim); max-width: 50ch; }

/* Divulgação progressiva reutilizável (título + descrição que expande) */
.disclosure-list { width: 100%; margin: 0.3rem 0 0.5rem; border-top: 1px solid var(--line); }
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0.15rem;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.disclosure__title {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.2;
  color: var(--cream); transition: color 0.35s;
}
.disclosure > summary:hover .disclosure__title { color: var(--gold-soft); }
.disclosure__icon { position: relative; flex: none; width: 18px; height: 18px; }
.disclosure__icon::before,
.disclosure__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 1.5px; background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.disclosure__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.disclosure[open] .disclosure__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.disclosure__body p { color: var(--cream-dim); font-size: 0.95rem; max-width: 54ch; padding: 0 0.15rem 1.1rem; }

/* Animação suave da expansão onde houver suporte; fallback = mostra/oculta instantâneo */
@supports (interpolate-size: allow-keywords) {
  .disclosure { interpolate-size: allow-keywords; }
  .disclosure::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    transition: block-size 0.42s var(--ease), opacity 0.42s var(--ease), content-visibility 0.42s allow-discrete;
  }
  .disclosure[open]::details-content { block-size: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .disclosure::details-content { transition: none; }
  .disclosure__icon::before, .disclosure__icon::after { transition: none; }
}

/* ---------- CHARUTOS AUTORAIS / LINHAS ---------- */
/* Sem overflow:hidden aqui — ele clipava o glow na emenda e criava a linha
   entre seções. O overflow-x:clip do html/body já contém qualquer sangramento. */
.cigars { position: relative; padding: var(--space-section) 0; }
.cigars__intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.cigars__head { max-width: 60ch; }
.cigars__head .section-title { margin-top: 0.6rem; }
.cigars__lead { color: var(--cream-dim); max-width: 52ch; margin-top: 1rem; }
.cigars__figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.85);
  aspect-ratio: 4 / 5;
}
.cigars__figure img {
  position: absolute; top: -5%; left: 0;
  width: 100%; height: 110%;
  object-fit: cover;
  will-change: transform;
}

/* (seção .terroir removida) */

.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.line-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(27,19,16,0.55), rgba(18,12,10,0.35));
  box-shadow: 0 30px 70px -50px rgba(0,0,0,0.9);
}
.line-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.01);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.line-card:hover .line-card__img { transform: scale(1.06); }
.line-card__body {
  position: absolute; inset: auto 0 0 0;
  display: grid; justify-items: start;
  padding: clamp(2.1rem, 3vw, 2.5rem) clamp(1.1rem, 2vw, 1.5rem) clamp(1.1rem, 2vw, 1.5rem);
  background: linear-gradient(to top,
    rgba(10,7,6,0.94) 0%, rgba(10,7,6,0.82) 30%, rgba(10,7,6,0.45) 65%, transparent 100%);
}
.line-card--premium { border-color: rgba(233, 181, 76, 0.42); }
.line-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.line-card__partner {
  position: absolute; top: 0.85rem; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 90%;
  font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  color: var(--cream-dim);
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(233, 181, 76, 0.28); border-radius: 999px;
  background: rgba(10, 7, 6, 0.55);
  backdrop-filter: blur(6px);
}
.cigars > .wrap > .btn { margin-top: clamp(2rem, 4vw, 3rem); }
.cigars__cta, .humidor__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 1080px) {
  .lines { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .cigars__intro {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .cigars__figure { aspect-ratio: 16 / 10; max-height: 420px; }
  /* mobile: imagem entre o eyebrow e o título */
  .cigars__head { display: contents; }
  .cigars__head .eyebrow { order: 1; }
  .cigars__figure { order: 2; }
  .cigars__head .section-title { order: 3; }
  .cigars__lead { order: 4; }
  .cigars__cta { order: 5; }
  .cigars__head .section-title,
  .cigars__lead,
  .cigars__cta { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .line-card__img, .line-card:hover .line-card__img { transition: none; transform: none; }
}

/* ---------- DIFERENCIAIS (scrollytelling) ---------- */
.why { padding: var(--space-section) 0; background: transparent; }
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why__intro { position: sticky; top: 120px; display: grid; gap: 1.2rem; align-content: start; }
.why__intro .section-title { max-width: 12ch; }
.why__intro .btn { justify-self: start; margin-top: 0.5rem; }

.why__counter { display: none; align-items: baseline; gap: 0.4rem; }
.why__counter-current { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--gold); line-height: 1; }
.why__counter-sep, .why__counter-total { font-size: 0.95rem; color: var(--cream-dim); }

/* Fallback estático (sem JS, reduced-motion ou telas estreitas) */
.why__stage { position: relative; }
.why__viewport { position: static; height: auto; overflow: visible; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; height: auto; }
.why__item {
  position: static; opacity: 1; transform: none;
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.why__bullet { color: var(--gold); font-size: 0.9rem; margin-top: 0.35rem; display: inline-block; }
.why__text strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.why__text p { color: var(--cream-dim); font-size: 0.96rem; margin-top: 0.2rem; }

/* Modo scrollytelling — ativado via JS (script.js) quando há espaço e sem reduced-motion */
.why--pinned .why__counter { display: flex; }
.why--pinned .why__stage { height: calc(var(--why-count, 6) * 85vh); }
.why--pinned .why__intro {
  height: calc(100vh - 120px);
  display: flex; flex-direction: column; justify-content: center;
}
.why--pinned .why__viewport {
  position: sticky; top: 120px; height: calc(100vh - 120px); overflow: hidden;
  display: flex; align-items: center;
}
.why--pinned .why__list { position: relative; width: 100%; height: 100%; display: block; }
.why--pinned .why__item {
  position: absolute; left: 0; right: 0; top: 50%; margin: 0;
  opacity: 0; border-bottom: none; padding: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.why--pinned .why__item.is-active { pointer-events: auto; }
.why--pinned .why__text strong { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.15; }
.why--pinned .why__text p { font-size: 1.25rem; max-width: 46ch; margin-top: 0.7rem; line-height: 1.5; }
.why--pinned .why__bullet { font-size: 1.6rem; margin-top: 0.5rem; }

/* ---------- VISITE ---------- */
.visit { padding: var(--space-section) 0; background: linear-gradient(180deg, rgba(13,9,8,0) 0%, rgba(44,20,20,0.45) 100%); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.visit__info { display: grid; gap: 1.3rem; }
.visit__info .section-title { max-width: 14ch; }
.visit__details { list-style: none; display: grid; gap: 1.3rem; margin: 0.5rem 0; }
.visit__details li { display: grid; gap: 0.3rem; }
.visit__label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.visit__details a { border-bottom: 1px solid var(--line); }
.visit__details a:hover { color: var(--gold-soft); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.4rem; }
.visit__map {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  border-radius: 16px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line);
  min-height: 380px; height: 100%;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
  background:
    radial-gradient(circle at 1px 1px, rgba(233,181,76,0.18) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(160deg, rgba(74,29,29,0.4), rgba(18,12,10,0.9));
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.visit__map:hover, .visit__map:focus-visible {
  border-color: var(--gold); transform: translateY(-4px);
  box-shadow: 0 34px 70px -28px rgba(233,181,76,0.45);
}
.visit__map-pin {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--ink-2);
  box-shadow: 0 16px 34px -12px rgba(233,181,76,0.75);
  transition: transform 0.35s ease;
}
.visit__map:hover .visit__map-pin { transform: translateY(-3px) scale(1.05); }
.visit__map-cta { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- CTA FINAL ---------- */
.final-cta { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; overflow: hidden; text-align: center; }
.final-cta__media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background-image: url("assets/img/webp/amb-lounge-wide.webp");
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  filter: blur(7px) saturate(1.08) brightness(0.9);
}
@media (max-width: 900px) {
  /* iOS Safari não suporta background-attachment:fixed; degrada para scroll normal.
     Blur mais leve também poupa a GPU em telas menores. */
  .final-cta__media { background-attachment: scroll; filter: blur(3px) saturate(1.05) brightness(0.9); }
}
.final-cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,12,10,0.85), rgba(44,20,20,0.8)); }
.final-cta__content { display: grid; justify-items: center; gap: 1.4rem; }
.final-cta__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1rem + 3.4vw, 3.4rem); line-height: 1.16; letter-spacing: -0.01em; }
.final-cta__title span { display: block; }
.final-cta__accent { color: var(--gold-soft); font-style: italic; }
.final-cta__action { display: grid; justify-items: center; gap: 0.65rem; }
.final-cta__reserve { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); }

/* ---------- FOOTER ---------- */
.footer { padding: 2.75rem 0; background: rgba(8,5,4,0.55); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.brand--footer { margin: 0; }
.footer__addr { color: var(--cream-dim); font-size: 0.9rem; }
.footer__legal { font-size: 0.78rem; color: var(--muted); text-align: right; line-height: 1.7; }
.age {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-soft);
  font-weight: 600; font-size: 0.7rem; margin-right: 0.5rem; vertical-align: middle;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f8f4d; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(31,143,77,0.7);
  transition: transform 0.4s var(--ease);
}
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1f8f4d; animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Barra de progresso ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--terra));
  will-change: transform;
}

/* ---------- Revelação palavra a palavra (estilo hyperframe) ---------- */
.split-words .word {
  display: inline-block; overflow: hidden; vertical-align: top;
  /* folga p/ acentos (topo) e descendentes g, p, ç (base) sem afetar o layout */
  padding: 0.14em 0.05em 0.28em;
  margin: -0.14em -0.05em -0.28em;
}
.split-words .word__inner {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.split-words.in .word__inner { transform: translateY(0); }

/* ---------- Brilho ambiente que deriva ---------- */
.glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  border-radius: 50%;
  filter: blur(80px); opacity: 0.65;
  background: radial-gradient(circle, rgba(176,67,43,0.35), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.glow--gold { background: radial-gradient(circle, rgba(233,181,76,0.28), transparent 68%); animation-duration: 28s; }
@keyframes drift {
  from { transform: translate3d(-6%, -4%, 0) scale(1); }
  to   { transform: translate3d(8%, 6%, 0) scale(1.15); }
}
@media (max-width: 900px) {
  .glow { filter: blur(40px); animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
}
.manifesto, .why, .visit, .final-cta { position: relative; }
.manifesto .wrap, .why .wrap, .visit .wrap { position: relative; z-index: 1; }

/* ---------- Seletor de idioma (bandeiras) ---------- */
.lang {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.3rem 0.45rem; margin-left: 0.4rem;
}
.lang button {
  appearance: none; background: none; border: 0; cursor: pointer; padding: 0;
  width: 30px; height: 21px; border-radius: 4px; overflow: hidden;
  opacity: 0.5; filter: saturate(0.85);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
.lang .flag { width: 100%; height: 100%; display: block; }
.lang button:hover { opacity: 1; transform: translateY(-1px); filter: none; }
.lang button.active {
  opacity: 1; filter: none;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
  .nav, .topbar__cta { display: none; }
  .nav-toggle { display: flex; }
  .topbar { gap: 0.9rem; }

  .topbar.open { background: rgba(18,12,10,0.97); backdrop-filter: blur(14px); flex-wrap: wrap; }
  .topbar.open .nav {
    display: flex; flex-direction: column; gap: 1.3rem;
    flex-basis: 100%; padding: 1.6rem 0 0.6rem;
    border-top: 1px solid var(--line); margin-top: 0.9rem;
  }
  .topbar.open .nav a { font-size: 1.25rem; font-family: var(--serif); }

  /* Hambúrguer -> X */
  .topbar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .topbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .pillars__grid { grid-template-columns: 1fr; }
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__media { aspect-ratio: 16 / 10; max-height: 320px; width: 100%; justify-self: stretch; }
  .cred { grid-template-columns: 1fr; gap: 1.4rem; }
  .humidor__grid { grid-template-columns: 1fr; }
  .humidor__media { max-width: 480px; }
  .rental__grid { grid-template-columns: 1fr; }
  .rental__media { max-width: 480px; order: -1; }
  .why__grid { grid-template-columns: 1fr; }
  .why__intro { position: static; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { min-height: 300px; }
  .visit__actions { justify-content: center; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item, .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 2; grid-column: span 2; }

  .footer__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.4rem; }
  .footer__legal { text-align: center; }
}

@media (max-width: 520px) {
  .hero { align-items: center; padding-top: 6.5rem; padding-bottom: 4.5rem; }
  .hero__content { width: 100%; }
  .hero__actions { gap: 0.8rem; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; gap: 0.8rem; }
  .gallery__item--tall { grid-column: span 1; grid-row: span 1; }

  .lang { gap: 0.3rem; padding: 0.25rem 0.35rem; }
  .lang button { width: 26px; height: 18px; }

  .why__text strong { font-size: 1.2rem; }
  .humidor__list { grid-template-columns: 1fr; }
  .humidor__info .btn { width: 100%; justify-content: center; }
  .visit__map { min-height: 260px; }
  .footer__legal { font-size: 0.74rem; }
}

@media (max-width: 360px) {
  .lang button { width: 23px; height: 16px; }
  .topbar { gap: 0.6rem; padding-left: 1rem; padding-right: 1rem; }
}


/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .split-words .word__inner { transform: none !important; }
  .glow { display: none; }
  html { scroll-behavior: auto; }
}

/* (hero mantido em full-bleed original) */

/* ============================================================
   ESPAÇOS — mosaico bento com destaque (spotlight) por scroll
   Todas as imagens ficam sempre visíveis; conforme o scroll avança,
   uma de cada vez cresce à frente das vizinhas. Clique amplia no modal.
   ============================================================ */
.mosaic { position: relative; }
.mosaic__track { position: relative; height: 220vh; }
.mosaic__stage {
  position: sticky; top: 84px;
  height: calc(100vh - 108px);
  display: flex; align-items: center;
}
.mosaic__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(3, clamp(150px, 19vw, 230px));
  grid-template-areas:
    "a a b"
    "a a c"
    "d d e";
  gap: 1rem;
}
.mosaic__item--a { grid-area: a; }
.mosaic__item--b { grid-area: b; }
.mosaic__item--c { grid-area: c; }
.mosaic__item--d { grid-area: d; }
.mosaic__item--e { grid-area: e; }

.mosaic__item {
  position: relative; display: block; width: 100%; height: 100%;
  appearance: none; -webkit-appearance: none;
  margin: 0; padding: 0; font: inherit; color: inherit; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--ink-2); cursor: zoom-in;
  transition: box-shadow 0.6s var(--ease), filter 0.6s var(--ease);
}
.mosaic__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.9s var(--ease);
}
.mosaic__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 12, 10, 0.88) 0%, transparent 52%);
  opacity: 0.55;
  transition: opacity 0.6s var(--ease);
}
.mosaic__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mosaic__cap span:not(.tag) { color: var(--cream-dim); font-size: 0.88rem; max-width: 32ch; }

/* Em repouso: levemente recuado (o destaque ainda não chegou nele) */
.mosaic__item:not(.is-active) { filter: saturate(0.82) brightness(0.8); }
.mosaic__item:hover { filter: none; }
.mosaic__item:hover .mosaic__cap { opacity: 1; transform: none; }

/* Spotlight: o item ativo fica em primeiro plano (sombra, sem esmaecer);
   quem faz a foto "crescer de verdade" é o redimensionamento das trilhas
   do grid logo abaixo — nunca um transform que estoura o container. */
.mosaic__item.is-active {
  z-index: 3;
  filter: none;
  box-shadow: 0 40px 90px -26px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(233, 181, 76, 0.55);
}
.mosaic__item.is-active .mosaic__img { transform: scale(1.06); }
.mosaic__item.is-active .mosaic__scrim { opacity: 0.72; }
.mosaic__item.is-active .mosaic__cap { opacity: 1; transform: none; }

/* Redimensiona as próprias trilhas do grid: a célula em foco cresce e as
   demais encolhem proporcionalmente, tudo dentro do mesmo container fixo
   (nada de overlap nem de sair da caixa). Só em desktop — no mobile o
   mosaico é estático (ver breakpoint abaixo). */
@media (min-width: 861px) and (hover: hover) and (pointer: fine) and (min-height: 761px) {
  .mosaic__grid {
    height: clamp(480px, 58vw, 720px);
    transition: grid-template-columns 0.7s var(--ease), grid-template-rows 0.7s var(--ease);
  }
  /* a em foco (célula 2x2, já grande — cresce mais um pouco) */
  .mosaic__grid[data-active="0"] { grid-template-columns: 1.7fr 0.65fr 0.65fr; grid-template-rows: 1.5fr 1.5fr 0.55fr; }
  /* b em foco (topo-direita) */
  .mosaic__grid[data-active="1"] { grid-template-columns: 0.7fr 0.7fr 1.9fr; grid-template-rows: 1.9fr 0.7fr 0.7fr; }
  /* c em foco (meio-direita) */
  .mosaic__grid[data-active="2"] { grid-template-columns: 0.7fr 0.7fr 1.9fr; grid-template-rows: 0.7fr 1.9fr 0.7fr; }
  /* d em foco (base, larga) */
  .mosaic__grid[data-active="3"] { grid-template-columns: 1.7fr 0.65fr 0.65fr; grid-template-rows: 0.6fr 0.6fr 1.85fr; }
  /* e em foco (base-direita) */
  .mosaic__grid[data-active="4"] { grid-template-columns: 0.7fr 0.7fr 1.9fr; grid-template-rows: 0.7fr 0.7fr 1.9fr; }
}

/* Mobile (ou qualquer dispositivo touch, mesmo em "modo desktop" do navegador,
   que reporta innerWidth > 860 mas não tem mouse/trackpad): sem pin nem
   cálculo de altura em JS — bento estático de leitura livre */
@media (max-width: 860px), (hover: none), (pointer: coarse), (max-height: 760px) {
  .mosaic__track { height: auto; }
  .mosaic__stage { position: static; height: auto; }
  .mosaic__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 160px);
    grid-template-areas:
      "a a"
      "b c"
      "d d"
      "e e";
  }
  .mosaic__item, .mosaic__item.is-active {
    box-shadow: none; filter: none;
  }
  .mosaic__item .mosaic__cap { opacity: 1; transform: none; }
}
/* Janelas largas e baixas (achatadas / landscape em desktop): bento
   horizontal que aproveita a largura — destaque retrato à esquerda e
   grade 2x2 à direita — em vez do empilhamento vertical do mobile. */
@media (min-width: 861px) and (max-height: 760px) {
  .mosaic__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "a b c"
      "a d e";
    height: min(66vh, 440px);
  }
}
@media (max-width: 520px) {
  .mosaic__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 210px);
    grid-template-areas: "a" "b" "c" "d" "e";
  }
  .mosaic__cap span:not(.tag) { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mosaic__grid, .mosaic__item, .mosaic__img, .mosaic__scrim, .mosaic__cap { transition: none; }
}

/* Lightbox (modal com imagem expandida) */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(0.4rem, 2vw, 1.4rem); padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 5, 4, 0.9); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__img {
  grid-column: 2; margin: 0 auto;
  max-width: 100%; max-height: 88vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  transform: scale(0.97); transition: transform 0.3s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  z-index: 2; display: grid; place-items: center; cursor: pointer;
  color: var(--cream); background: rgba(18, 12, 10, 0.55); border: 1px solid var(--line);
  border-radius: 50%; transition: background 0.3s, color 0.3s, transform 0.3s;
}
.lightbox__close { position: absolute; top: clamp(1rem, 3vw, 1.6rem); right: clamp(1rem, 3vw, 1.6rem); width: 46px; height: 46px; }
.lightbox__nav { width: 52px; height: 52px; }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: #2a1a0c; transform: scale(1.06); }
html.lb-open { overflow: hidden; }
@media (max-width: 520px) {
  .lightbox__nav { width: 42px; height: 42px; }
}

/* ============================================================
   A CURADORIA — fade in/out suave e discreto no scroll
   Progressive enhancement; sem suporte, a imagem fica visível.
   ============================================================ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .humidor__media {
      animation: soft-fade linear both;
      animation-timeline: view();
      animation-range: entry 12% exit 88%;
    }
  }
}
@keyframes soft-fade {
  0%   { opacity: 0.28; }
  28%  { opacity: 1; }
  72%  { opacity: 1; }
  100% { opacity: 0.28; }
}
