:root {
  --black: #070605;
  --ink: #0d0b09;
  --wood: #1a120c;
  --green: #0f2018;
  /* Verde Rolex: cor de identidade da marca */
  --rolex: #006039;
  --rolex-deep: #003d24;
  --gold: #c9a24a;
  --gold-light: #e8cf8a;
  --gold-dark: #8a6a26;
  --cream: #efe6d2;
  --muted: #a89a80;
  --serif: "Playfair Display", "Times New Roman", serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --type: "Special Elite", "Courier New", monospace;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

/* cortina preta dos saltos do menu (script.js) — abaixo da barra do topo */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s var(--ease);
}
.curtain.is-on { opacity: 1; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
::selection { background: var(--rolex); color: var(--gold-light); }
a { color: inherit; }

/* ---------- Grão de filme ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Topo ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease);
}
.topbar.is-scrolled {
  padding-block: 12px;
  background: linear-gradient(to bottom, rgba(0,61,36,.94), rgba(0,40,24,.82));
  box-shadow: inset 0 -1px 0 rgba(201,162,74,.35);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(201,162,74,.25);
}
.nav {
  /* centralizado na tela, independente da largura do logo e do player */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
}
.nav a {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--gold-light); }
.nav__num,
.nav .nav__wa { display: none; } /* .nav na frente para vencer o display do .btn */

/* Seletor de idioma */
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* encosta no player, à direita */
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(201,162,74,.5);
}
.lang button {
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  transition: color .3s, border-color .3s;
}
.lang button:hover { color: var(--cream); }
.lang button[aria-pressed="true"] { color: var(--gold-light); border-color: var(--gold); }
.nav .nav__lang { display: none; }

/* Botão do menu (só no celular) */
.menu-btn {
  position: relative;
  z-index: 2;
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(201,162,74,.35);
  border-radius: 50%;
  background: rgba(0,61,36,.55);
  cursor: pointer;
}
.menu-btn i {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--gold-light);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn i:first-child { top: 16px; }
.menu-btn i:last-child { top: 24px; }
.topbar.is-menu-open .menu-btn i:first-child { top: 20px; transform: rotate(45deg); }
.topbar.is-menu-open .menu-btn i:last-child { top: 20px; transform: rotate(-45deg); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Player ---------- */
.player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(201,162,74,.35);
  border-radius: 999px;
  background: rgba(0,61,36,.55);
  backdrop-filter: blur(8px);
}
.player__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s;
}
.player__btn:hover { transform: scale(1.08); background: var(--gold-light); }
.player__btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.player__btn svg { width: 16px; height: 16px; fill: currentColor; }
.player .icon-pause { display: none; }
.player[data-state="playing"] .icon-play { display: none; }
.player[data-state="playing"] .icon-pause { display: block; }

.player__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.15;
}
.player__meta:hover .player__title { color: var(--cream); }
.player__next {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--gold);
  cursor: pointer;
  transition: color .25s, transform .25s var(--ease);
}
.player__next:hover { color: var(--gold-light); transform: translateX(2px); }
.player__next svg { width: 14px; height: 14px; fill: currentColor; }

/* Lista de músicas */
.player__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 300px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(201,162,74,.35);
  border-radius: 14px;
  background: rgba(0,40,24,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.player__menu[hidden] { display: none; }
.player__menu button {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--cream);
}
.player__menu button:hover { background: rgba(201,162,74,.12); }
.player__menu span { white-space: nowrap; }
.player__menu b {
  font-family: var(--type);
  font-style: normal;
  font-weight: normal;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
}
.player__menu small {
  margin-left: auto;
  font-family: var(--type);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.player__menu [aria-checked="true"] { color: var(--gold-light); }
.player__menu [aria-checked="true"] b { color: var(--gold); }
.player__label {
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.player__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-light);
}

.player__eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.player__eq i {
  width: 2px;
  height: 3px;
  background: var(--gold);
  transition: height .3s;
}
.player[data-state="playing"] .player__eq i { animation: eq 1s ease-in-out infinite; }
.player[data-state="playing"] .player__eq i:nth-child(2) { animation-delay: -.35s; }
.player[data-state="playing"] .player__eq i:nth-child(3) { animation-delay: -.7s; }
.player[data-state="playing"] .player__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq {
  0%, 100% { height: 3px; }
  50% { height: 14px; }
}

.player.is-hinting {
  animation: hint 2.4s var(--ease) infinite;
}
@keyframes hint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,74,.0); }
  50% { box-shadow: 0 0 0 6px rgba(201,162,74,.18); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--black);
}
.hero__media,
.hero__video,
.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video { transform: scale(1.02); }
.hero__still {
  opacity: 0;
  transition: opacity .6s linear;
}
.hero[data-phase="ended"] .hero__still { opacity: 1; }
.hero[data-phase="ended"] .hero__media { animation: slow-push 22s var(--ease) forwards; }
@keyframes slow-push {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0,0,0,.55) 80%, rgba(0,0,0,.85) 100%),
    linear-gradient(to right, rgba(7,6,5,.75) 0%, rgba(7,6,5,.3) 28%, transparent 42%),
    linear-gradient(to top, rgba(7,6,5,.95) 0%, rgba(7,6,5,.35) 30%, transparent 55%);
  transition: opacity 1.4s var(--ease);
  opacity: .55;
}
.hero[data-phase="ended"] .hero__vignette { opacity: 1; }

/* Barras de cinema: presentes durante o filme, recolhem no final */
.letterbox {
  position: absolute;
  left: 0; right: 0;
  height: 11vh;
  background: #000;
  z-index: 2;
  transition: transform 1.6s var(--ease);
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }
.hero[data-phase="ended"] .letterbox--top { transform: translateY(-100%); }
.hero[data-phase="ended"] .letterbox--bottom { transform: translateY(100%); }

.hero__whisper {
  position: absolute;
  left: 50%;
  bottom: calc(11vh + 28px);
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--cream);
  text-shadow: 0 2px 12px #000;
  white-space: nowrap;
  opacity: 0;
  animation: whisper 6s 1.2s var(--ease) forwards;
}
@keyframes whisper {
  0% { opacity: 0; letter-spacing: .02em; }
  20%, 70% { opacity: .9; }
  100% { opacity: 0; letter-spacing: .08em; }
}
.hero[data-phase="ended"] .hero__whisper { display: none; }

.hero__content {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(48px, 10vh, 110px);
  z-index: 3;
  max-width: min(540px, 34vw);
}
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__title {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--cream);
}
.hero__title span,
.hero__title em { display: block; }
.hero__title em {
  margin-top: 8px;
  font-style: italic;
  font-size: .62em;
  color: var(--gold-light);
}

/* Entrada do conteúdo apenas quando o filme acaba */
.hero__content > *,
.hero__aside,
.hero__scroll,
.hero__replay {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.hero[data-phase="ended"] .hero__content > *,
.hero[data-phase="ended"] .hero__aside,
.hero[data-phase="ended"] .hero__scroll,
.hero[data-phase="ended"] .hero__replay {
  opacity: 1;
  transform: none;
}
.hero[data-phase="ended"] .hero__content > :nth-child(1) { transition-delay: .7s; }
.hero[data-phase="ended"] .hero__content > :nth-child(2) { transition-delay: 1s; }
.hero[data-phase="ended"] .hero__content > :nth-child(3) { transition-delay: 1.4s; }
.hero[data-phase="ended"] .hero__aside { transition-delay: 1.6s; }
.hero[data-phase="ended"] .hero__scroll { transition-delay: 2s; }
.hero[data-phase="ended"] .hero__replay { transition-delay: 2.2s; }

.hero__aside {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 10vh, 110px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.hero__file {
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__file:first-child { color: var(--gold); }

.hero__skip,
.hero__replay {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.hero__skip:hover,
.hero__replay:hover { color: var(--gold-light); }
.hero__skip {
  right: var(--gutter);
  bottom: calc(11vh * .5 - 16px);
}
.hero[data-phase="ended"] .hero__skip { opacity: 0; pointer-events: none; }
.hero__replay {
  right: var(--gutter);
  top: 96px;
}
.hero__replay svg { width: 14px; height: 14px; fill: currentColor; }
.hero[data-phase="playing"] .hero__replay { pointer-events: none; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-left: -30px;
  width: 60px;
  text-decoration: none;
  font-family: var(--type);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll i {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s;
}
.btn--gold {
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: rgba(0,61,36,.6);
}
.btn--gold:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 40px rgba(201,162,74,.25);
}

/* ---------- Seção: A Reserva (cena 3D no scroll) ---------- */
.cine {
  position: relative;
  height: 520vh;
  background: var(--black);
}
.cine__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.cine__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cine__fallback { display: none; }
/* Sombra lateral que acompanha o lado onde o texto está (--sl / --sr vêm do scroll) */
.cine__side {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(7,6,5,calc(.85 * var(--sl, 0))) 0%, rgba(7,6,5,calc(.5 * var(--sl, 0))) 30%, transparent 52%),
    linear-gradient(to left, rgba(7,6,5,calc(.85 * var(--sr, 0))) 0%, rgba(7,6,5,calc(.5 * var(--sr, 0))) 32%, transparent 55%);
}
.cine__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0,0,0,.65) 100%),
    linear-gradient(to bottom, var(--black) 0%, transparent 14%, transparent 86%, var(--black) 100%);
}

/* Capítulos: opacidade (--o) e deslocamento (--y) controlados pelo scroll */
.chapter {
  --o: 0;
  --y: 30px;
  position: absolute;
  z-index: 2;
  max-width: 460px;
  opacity: var(--o);
  transform: translateY(var(--y));
  pointer-events: none;
  will-change: opacity, transform;
}
.chapter.is-active { pointer-events: auto; }
.cine__bars i {
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  height: var(--bar-h);
  background: #000;
  transition: none;
}
.cine__stage { --bar-h: 17vh; --bars: 1; }
.cine__bars i:first-child { top: 0; transform: translateY(calc((var(--bars) - 1) * 100%)); }
.cine__bars i:last-child { bottom: 0; transform: translateY(calc((1 - var(--bars)) * 100%)); }

.chapter--caption {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  height: var(--bar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.chapter--caption .eyebrow { margin: 0; font-size: 11px; }
.chapter--caption .chapter__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  text-shadow: none;
}
.chapter--left { left: var(--gutter); top: 50%; transform: translateY(calc(-50% + var(--y))); }
.chapter--right { right: var(--gutter); top: 50%; transform: translateY(calc(-50% + var(--y))); text-align: right; }
/* Dossiê final num cartão verde Rolex, como o forro de um estojo de relógio */
.chapter--final {
  right: clamp(16px, 6vw, 100px);
  top: calc(50% + 32px); /* desconta a barra do topo */
  max-width: 540px;
  padding: clamp(28px, 3vw, 44px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(160deg, #00502f 0%, var(--rolex-deep) 55%, #00261a 100%);
  border: 1px solid rgba(201,162,74,.5);
  outline: 1px solid rgba(201,162,74,.18);
  outline-offset: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: translateY(calc(-50% + var(--y)));
}
.chapter--final .dossier div { border-bottom-color: rgba(201,162,74,.22); }
.chapter--final .chapter__text { color: #d8cfb8; }
.chapter--final .stamp { color: #e06a5c; border-color: rgba(224,106,92,.85); }
.chapter__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.02;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.chapter--final .chapter__title { font-size: clamp(36px, 4vw, 60px); }
.chapter__title em { font-style: italic; color: var(--gold-light); }
.chapter__text {
  margin: 0 0 32px;
  font-size: clamp(19px, 1.5vw, 22px);
  color: #cfc3aa;
  text-shadow: 0 2px 16px rgba(0,0,0,.8);
}
.chapter__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.stamp {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1.5px solid rgba(166,40,32,.85);
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #c4473b;
  transform: rotate(-3deg);
}

.dossier {
  margin: 0 0 36px;
  border-top: 1px solid rgba(201,162,74,.3);
}
.dossier div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,162,74,.15);
}
.dossier dt {
  flex: 0 0 auto;
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.dossier dd {
  flex: 1;
  margin: 0;
  text-align: right;
  font-size: 19px;
  color: var(--cream);
}
.signature {
  font-family: var(--body);
  font-style: italic;
  font-size: 24px;
  color: var(--muted);
}

.cine__progress {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
}
.cine__progress i {
  position: relative;
  width: 120px;
  height: 1px;
  background: rgba(201,162,74,.2);
}
.cine__progress b {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.cine__count { color: var(--gold-light); }

/* Sem WebGL: vira uma seção estática com a garrafa ao lado do dossiê */
.no-webgl .cine { height: auto; }
.no-webgl .cine__stage {
  position: relative;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 120px var(--gutter);
}
.no-webgl .cine__canvas,
.no-webgl .chapter:not(.chapter--final),
.no-webgl .cine__progress,
.no-webgl .cine__shade { display: none; }
.no-webgl .cine__fallback { display: block; max-height: 80vh; margin: 0 auto; }
.no-webgl .chapter--final { position: static; --o: 1; --y: 0px; transform: none; pointer-events: auto; }

/* ---------- Seção: A Família (os 3 cafés) ---------- */
.familia {
  position: relative;
  height: 1000vh;
  background: var(--black);
}
.familia__stage {
  --o: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.familia__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.familia__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(0,0,0,.6) 100%),
    linear-gradient(to bottom, var(--black) 0%, rgba(7,6,5,.55) 16%, transparent 34%, transparent 80%, var(--black) 100%);
}

/* blocos de texto: opacidade/deslocamento vindos do scroll (--o / --y) */
.familia__intro,
.ficha,
.familia__pick {
  --o: 0;
  --y: 30px;
  position: absolute;
  z-index: 2;
  opacity: var(--o);
  pointer-events: none;
}
.familia .is-active { pointer-events: auto; }
/* a camada das escolhas cobre o palco: só os botões recebem clique (o resto vai aos produtos) */
.familia__pick.is-active { pointer-events: none; }
.familia__pick.is-active .pick,
.familia__pick.is-active .familia__all { pointer-events: auto; }

.familia__intro {
  top: 13vh;
  left: 50%;
  width: calc(100% - 2 * var(--gutter));
  text-align: center;
  transform: translate(-50%, var(--y));
}
.familia__intro .chapter__title { font-size: clamp(36px, 4.4vw, 68px); }

/* Ficha de cada café: papel de arquivo tingido com a cor da linha */
.ficha {
  /* ao lado do produto em destaque (que fica em ~35% da largura), não colada na borda */
  left: min(53%, calc(100% - min(460px, 100% - 2 * var(--gutter)) - var(--gutter)));
  top: calc(50% + 32px);
  width: min(460px, calc(100% - 2 * var(--gutter)));
  padding: clamp(26px, 2.6vw, 40px);
  background:
    radial-gradient(ellipse at 15% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%),
    linear-gradient(165deg, #15110d 0%, #0b0907 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(calc(-50% + var(--y))) rotate(calc(var(--y) / 30px * 1.5deg));
}
.ficha::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent);
}
.ficha__num {
  margin: 0 0 14px;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.ficha__nick {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 55%, var(--cream));
}
.ficha__line {
  margin: 10px 0 18px;
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
}
.ficha__quote {
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  font-size: 21px;
  line-height: 1.35;
  color: #d8cfb8;
}
.ficha .dossier { margin-bottom: 20px; }
.ficha .dossier dt { color: var(--accent); }
.ficha__intensity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.ficha__intensity .beans { display: flex; gap: 6px; }
.ficha__intensity i {
  width: 11px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
}
.ficha__intensity i.on { background: var(--accent); }

/* Escolha final: um botão sob cada garrafa (posição vem da cena 3D) */
.familia__pick {
  inset: 0;
  transform: translateY(var(--y));
}
.pick {
  position: absolute;
  left: var(--px, 50%);
  top: var(--py, 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}
.pick__nick {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: color-mix(in srgb, var(--accent) 55%, var(--cream));
  text-shadow: 0 2px 12px #000;
}
.pick__fmt {
  margin-top: -8px;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.pick__nick:hover { color: var(--cream); }
.pick .btn { padding: 12px 22px; border-color: var(--accent); }

/* Índice da família: atalho para o momento de cada produto, logo abaixo
   do produto em destaque (centro em 35% da largura, base em ~80% da altura) */
.familia__index {
  --o: 0;
  position: absolute;
  left: 35%;
  top: calc(80% + 34px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 24px;
  white-space: nowrap;
  text-shadow: 0 2px 10px #000;
  opacity: var(--o);
  pointer-events: none;
}
.familia__index.is-active { pointer-events: auto; }
.familia__index button {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color .3s, border-color .3s;
}
.familia__index b { font-weight: normal; color: rgba(232,207,138,.75); }
/* só o produto atual mostra o nome; os outros ficam no número */
.familia__index span {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  vertical-align: bottom;
  transition: max-width .5s ease, opacity .4s ease;
}
.familia__index button:hover span,
.familia__index button.is-current span { max-width: 14em; opacity: 1; }
.familia__index button { gap: 0; }
.familia__index button.is-current span,
.familia__index button:hover span { margin-left: 8px; }
.familia__index button:hover,
.familia__index button.is-current { color: var(--cream); }
.familia__index button.is-current { border-color: var(--gold); }
.familia__index button.is-current b { color: var(--gold-light); }
.familia__all {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,162,74,.5);
  padding-bottom: 6px;
  white-space: nowrap;
}
.familia__all:hover { color: var(--cream); border-color: var(--cream); }

/* Sem WebGL: fichas empilhadas */
.no-webgl .familia { height: auto; }
.no-webgl .familia__stage {
  position: relative;
  height: auto;
  display: grid;
  gap: 32px;
  justify-items: center;
  padding: 120px var(--gutter);
}
.no-webgl .familia__canvas,
.no-webgl .familia__shade,
.no-webgl .familia__pick,
.no-webgl .familia__index { display: none; }
.no-webgl .familia__intro,
.no-webgl .ficha { position: relative; inset: auto; --o: 1; --y: 0px; transform: none; pointer-events: auto; }

/* ---------- Seção: Convite (chamada final + rodapé) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.convite {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}
.convite__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  /* puxa a foto para a paleta do site: menos saturada, um pouco mais escura */
  filter: saturate(.85) brightness(.82) contrast(1.05);
  transform: scale(1.08);
  transition: transform 2.6s var(--ease);
}
.convite.is-in .convite__bg { transform: scale(1); }
.convite__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(7,6,5,.94) 0%, rgba(7,6,5,.8) 30%, rgba(7,6,5,.25) 55%, transparent 70%),
    linear-gradient(to bottom, var(--black) 0%, transparent 18%, transparent 78%, rgba(7,6,5,.9) 100%);
}
.convite__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 var(--gutter);
  padding: 140px 0 140px;
}
.convite__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1;
  color: var(--cream);
}
.convite__title em { font-style: italic; color: var(--gold-light); }
.convite__text {
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}
.convite__perks {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(201,162,74,.22);
}
.convite__perks li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,162,74,.22);
  font-size: 18px;
  color: var(--cream);
}
.convite__perks b {
  min-width: 24px;
  font-family: var(--type);
  font-weight: normal;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
}
.convite__form {
  display: flex;
  gap: 10px;
}
.convite__form input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid rgba(201,162,74,.4);
  background: rgba(7,6,5,.55);
  color: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  outline: none;
  transition: border-color .3s;
}
.convite__form input::placeholder { color: var(--muted); font-style: italic; }
.convite__form input:focus { border-color: var(--gold-light); }
.convite__form .btn { border-radius: 0; cursor: pointer; white-space: nowrap; }
.convite__fine {
  margin: 14px 0 0;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.convite__done {
  margin: 14px 0 0;
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(0,61,36,.55);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold-light);
}

/* entrada em cascata quando a seção aparece */
.convite [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.convite.is-in [data-reveal] { opacity: 1; transform: none; }
.convite.is-in [data-reveal]:nth-child(2) { transition-delay: .12s; }
.convite.is-in [data-reveal]:nth-child(3) { transition-delay: .24s; }
.convite.is-in [data-reveal]:nth-child(4) { transition-delay: .36s; }
.convite.is-in [data-reveal]:nth-child(5) { transition-delay: .48s; }
.convite.is-in [data-reveal]:nth-child(6) { transition-delay: .6s; }

.rodape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(201,162,74,.25);
  background: linear-gradient(to right, rgba(0,61,36,.75), rgba(0,40,24,.6));
  backdrop-filter: blur(6px);
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.rodape p { margin: 0; }
.rodape__copy a {
  text-transform: none; /* domínio em minúsculas */
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,162,74,.4);
  transition: color .3s, border-color .3s;
}
.rodape__copy a:hover { color: var(--cream); border-color: var(--cream); }
.rodape__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  text-decoration: none;
}
.rodape__brand img { border-radius: 50%; }
.rodape__motto { font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--cream); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  /* menu do topo vira tela cheia, aberto pelo botão */
  .menu-btn { display: block; }
  .player { margin-left: auto; }
  .topbar.is-menu-open { backdrop-filter: none; } /* senão o menu fixo fica preso à barra */
  .nav {
    position: fixed;
    inset: 0;
    transform: none;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 96px var(--gutter) 48px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(0,96,57,.45), transparent 60%),
      rgba(7,6,5,.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s .4s;
  }
  .topbar.is-menu-open .nav { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .nav a:not(.nav__wa) {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(201,162,74,.2);
    font-size: 30px;
    letter-spacing: .04em;
    text-transform: none;
    font-style: italic;
    transform: translateY(16px);
    opacity: 0;
    transition: transform .6s var(--ease), opacity .6s var(--ease), color .3s;
  }
  .topbar.is-menu-open .nav a { transform: none; opacity: 1; }
  .topbar.is-menu-open .nav a:nth-child(2) { transition-delay: .06s; }
  .topbar.is-menu-open .nav a:nth-child(3) { transition-delay: .12s; }
  .nav a::after { display: none; }
  .nav__num {
    display: inline;
    font-family: var(--type);
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--gold);
  }
  /* idioma: no celular fica dentro do menu */
  .topbar > .lang { display: none; }
  .nav .nav__lang { display: flex; margin: 28px 0 0; font-size: 13px; }
  .nav .nav__wa { display: inline-flex; align-self: flex-start; margin-top: 32px; font-family: var(--type); }
  .hero__content {
    right: var(--gutter);
    max-width: none;
    bottom: 96px;
  }
  .hero__title { font-size: clamp(34px, 9vw, 52px); }
  .hero__aside { display: none; }
  .hero[data-phase="ended"] .hero__vignette {
    background:
      radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0,0,0,.6) 85%),
      linear-gradient(to top, rgba(7,6,5,.97) 0%, rgba(7,6,5,.7) 40%, transparent 70%);
  }
  .chapter--left,
  .chapter--right,
  .chapter--final {
    left: var(--gutter);
    right: var(--gutter);
    top: auto;
    bottom: 64px;
    max-width: none;
    text-align: left;
    transform: translateY(var(--y));
  }
  .chapter--final .chapter__text,
  .chapter--final .stamp,
  .chapter--final .signature { display: none; }
  .chapter--final .chapter__title { margin-bottom: 14px; }
  .cine__progress { display: none; }
  .ficha {
    left: var(--gutter);
    right: var(--gutter);
    top: auto;
    bottom: 28px;
    width: auto;
    padding: 22px;
    transform: translateY(var(--y));
  }
  .ficha__quote,
  .ficha .dossier div:first-child { display: none; }
  .ficha__line { margin-bottom: 12px; }
  .ficha .dossier { margin-bottom: 14px; }
  .familia__intro { top: 12vh; }
  /* convite: foto em cima, texto embaixo */
  .convite { justify-content: flex-start; }
  .convite__bg { position: relative; height: 52vh; object-position: 78% center; }
  .convite__shade {
    height: 52vh;
    background: linear-gradient(to bottom, var(--black) 0%, transparent 22%, transparent 60%, var(--black) 100%);
  }
  .convite__content { max-width: none; margin-top: -4vh; padding: 0 0 40px; }
  .convite__text { font-size: 18px; }
  .rodape { position: relative; flex-direction: column; align-items: flex-start; gap: 10px; }
  .rodape__motto { display: none; }

  /* índice vira só números, no alto */
  .familia__index { top: 84px; bottom: auto; left: 50%; transform: translateX(-50%); gap: 22px; }
  .familia__index span { display: none; }
  /* no celular os produtos ficam pequenos: as escolhas viram uma grade 2x2 embaixo */
  .familia__pick {
    inset: auto var(--gutter) 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }
  .pick { position: static; transform: none; gap: 6px; }
  .pick__nick { font-size: 18px; }
  .pick__fmt { margin: 0; }
  .pick .btn { padding: 9px 14px; font-size: 10px; letter-spacing: .14em; }
  .familia__all { position: static; grid-column: 1 / -1; justify-self: center; transform: none; margin-top: 6px; }
  /* no celular o texto fica embaixo: a sombra vem de baixo */
  .cine__side {
    background: linear-gradient(to top, rgba(7,6,5,calc(.9 * max(var(--sl, 0), var(--sr, 0)))) 0%, rgba(7,6,5,calc(.55 * max(var(--sl, 0), var(--sr, 0)))) 35%, transparent 60%);
  }
  .dossier { margin-bottom: 22px; }
  .dossier div { padding: 8px 0; }
  .dossier dd { font-size: 17px; }
  .no-webgl .cine__stage { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .player__meta { display: none; }
  .convite__form { flex-direction: column; }
  .convite__form .btn { justify-content: center; }
  .player { padding-right: 12px; }
  .hero__whisper { white-space: normal; text-align: center; width: 86%; }
  .letterbox { height: 7vh; }
  /* No celular o filme ocupa a parte de cima e o texto fica abaixo da garrafa */
  .hero__media {
    inset: 0 0 auto 0;
    height: 74%;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, #000 82%, transparent);
  }
  .hero__content { bottom: 72px; }
  .hero__scroll { display: none; }
  .hero__title { margin-bottom: 24px; font-size: 34px; }
  .eyebrow { margin-bottom: 12px; font-size: 11px; }
  .hero__replay { top: 84px; }
}

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