/* ═══════════════════════════════════════════════
   Pottercabana — Treat Warner Bros. + HBO · Rastro Films
   Sistema visual fiel ao deck: vinho profundo, dourado #CEAB6D,
   títulos em imagem (fonte do deck), Baskervville + Inter Tight,
   molduras arredondadas, partículas douradas.
   ═══════════════════════════════════════════════ */

:root {
  --wine-0: #0d0200;
  --wine-1: #1d0c05;
  --wine-2: #391d08;
  --wine-3: #5a2a0e;
  --gold: #ceab6d;
  --gold-hi: #e6c98a;
  --gold-dim: rgba(206, 171, 109, .38);
  --gold-line: rgba(206, 171, 109, .28);
  --text: #d9c7a4;
  --serif: 'Baskervville', 'Times New Roman', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 5.2vw, 88px);
  --head-h: 54px;
  --ease-out: cubic-bezier(.2, .65, .2, 1);
  --ease-reveal: cubic-bezier(.65, .05, .2, 1);
  --radius: clamp(10px, 1.2vw, 18px);
}

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

html { scroll-behavior: smooth; background: var(--wine-0); }
html.has-gsap { scroll-behavior: auto; }

body {
  background: var(--wine-0);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked, html.gate-locked, html.gate-locked body { overflow: hidden; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--wine-0); }
::-webkit-scrollbar-thumb { background: #3a2410; border-radius: 6px; border: 2px solid var(--wine-0); }
::-webkit-scrollbar-thumb:hover { background: #5a3a1a; }

/* ═══════════ GATE ═══════════ */
#gate {
  position: fixed; inset: 0; z-index: 100000;
  background: radial-gradient(ellipse at 50% 45%, var(--wine-2) 0%, var(--wine-1) 48%, var(--wine-0) 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#gate.ok { display: none; }
#gateform { width: min(92vw, 460px); text-align: center; }
#gate .g-title { width: min(78vw, 360px); margin: 0 auto; }
#gate .g-k {
  font-family: var(--serif); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); opacity: .7; margin-top: 22px;
}
#gate input {
  width: 100%; margin-top: 40px; background: transparent; border: none;
  border-bottom: 1px solid var(--gold-line); color: var(--gold-hi);
  font-family: var(--sans); font-size: 17px; text-align: center; padding: 12px 0;
  letter-spacing: .06em; outline: none; transition: border-color .3s;
}
#gate input::placeholder { color: rgba(206, 171, 109, .45); }
#gate input:focus { border-color: var(--gold); }
#gate #gatepw { margin-top: 16px; }
#gate .g-btn {
  margin-top: 30px; background: var(--gold); color: var(--wine-0); border: none;
  font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 40px; border-radius: 40px; cursor: pointer; transition: background .3s, transform .2s;
}
#gate .g-btn:hover { background: var(--gold-hi); transform: translateY(-1px); }
#gate .g-err { font-family: var(--sans); font-size: 13px; color: #ff8a7a; opacity: 0; margin-top: 20px; transition: opacity .2s; }
#gate.wrong #gateform { animation: gshake .45s; }
#gate.wrong .g-err { opacity: 1; }
@keyframes gshake { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-8px) } 40% { transform: translateX(8px) } 60% { transform: translateX(-5px) } 80% { transform: translateX(5px) } }
#gate .g-note { font-family: var(--sans); font-size: 11px; line-height: 1.5; color: var(--gold); opacity: .45; margin-top: 22px; }

/* ═══════════ PRELOADER ═══════════ */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(ellipse at 50% 50%, var(--wine-2) 0%, var(--wine-1) 50%, var(--wine-0) 100%);
  display: flex; align-items: center; justify-content: center;
}
.loader-center { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.loader-title { width: min(70vw, 520px); opacity: 0; transform: translateY(14px); }
.loader-line { width: min(60vw, 320px); height: 1px; background: var(--gold-line); overflow: hidden; }
.loader-line span { display: block; height: 100%; width: 0; background: var(--gold); }
.loader-count {
  position: absolute; bottom: 26px; right: 32px;
  font-family: var(--serif); font-size: 13px; color: var(--gold); opacity: .6;
  font-variant-numeric: tabular-nums;
}

/* ═══════════ PROGRESS + CHROME ═══════════ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 995;
  background: linear-gradient(90deg, var(--wine-3), var(--gold));
  transform: scaleX(0); transform-origin: left center;
}

.chrome { pointer-events: none; }
.chrome-head {
  position: fixed; top: 0; left: 0; right: 0; height: var(--head-h); z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  font-family: var(--serif); font-weight: 600; font-size: clamp(9px, .72vw, 11px);
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  transition: opacity .6s ease, transform .6s var(--ease-out);
}
body[data-chapter="capa"] .chrome-head,
body[data-chapter="fim"] .chrome-head { opacity: 0; transform: translateY(-8px); }

.chrome-rastro {
  position: fixed; right: var(--pad); bottom: 22px; z-index: 900; opacity: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: auto; text-decoration: none;
  transition: opacity .6s ease;
}
.chrome-rastro-mark { height: clamp(26px, 2.6vw, 38px); width: auto; }
body[data-chapter="capa"] .chrome-rastro { opacity: 0; pointer-events: none; }

/* ═══════════ DOT NAV ═══════════ */
.dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 950;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.dots a {
  position: relative; display: block; width: 6px; height: 6px; border-radius: 3px;
  background: rgba(206, 171, 109, .35); transition: background .3s, height .3s;
}
.dots a:hover { background: var(--gold-hi); }
.dots a.active { height: 20px; background: var(--gold); }
.dots a .lbl {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%) translateX(6px);
  font-family: var(--serif); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.dots a:hover .lbl { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ═══════════ BASE DOS CAPÍTULOS ═══════════ */
.chapter { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.wrap { position: relative; z-index: 2; padding: 0 var(--pad); }

.bg, .capa-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg .med, .capa-bg .med { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

.vinho {
  background:
    radial-gradient(ellipse 70% 62% at 50% 46%, var(--wine-2) 0%, rgba(57, 29, 8, .55) 42%, transparent 78%),
    linear-gradient(180deg, var(--wine-0), var(--wine-1) 50%, var(--wine-0));
}
.vinho::after {
  /* textura fina sobre o gradiente, como o fundo do deck */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .18;
  background-image: url(../assets/img/bg-vinho.jpg); background-size: cover; background-position: center; mix-blend-mode: screen;
}

/* ─── títulos em imagem (fonte do deck) ─── */
.t { display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.js .t:not(.t-hero):not(.t-eyebrow) { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .t.on:not(.t-hero):not(.t-eyebrow) { opacity: 1; transform: none; }
.t-eyebrow { position: absolute; top: calc(var(--head-h) + 8px); left: 50%; transform: translateX(-50%); height: clamp(22px, 2.2vw, 30px); width: auto; z-index: 3; opacity: .92; }
.t-eyebrow-over { top: calc(var(--head-h) + 10px); }

/* ─── texto ─── */
.p-body { color: var(--gold); font-size: clamp(15px, 1.12vw, 18px); line-height: 1.66; }
.p-body p + p { margin-top: 1.1em; }
.quote {
  font-family: var(--serif); font-weight: 600; color: var(--gold);
  font-size: clamp(19px, 1.7vw, 27px); line-height: 1.4; letter-spacing: .005em;
}

/* ─── reveal ─── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.on { opacity: 1; transform: none; }
.js .rv-img { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .rv-img.on { opacity: 1; transform: none; }

/* ─── molduras ─── */
.frame {
  position: relative; border-radius: 0; overflow: hidden;
  border: 1px solid rgba(206, 171, 109, .9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .3);
  background: var(--wine-1);
}
.frame .med { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.frame--round { border-radius: var(--radius); }
.frame--plain { border: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.frame-tom { aspect-ratio: 1.641; }
.frame-foto { aspect-ratio: 1.778; }
.frame-topo { aspect-ratio: 2.305; }
.bleed { position: relative; overflow: hidden; background: var(--wine-1); }
.bleed .med { width: 100%; height: 100%; object-fit: cover; }
.can-zoom { cursor: zoom-in; }

/* ═══════════ 01 · CAPA ═══════════ */
.capa { display: flex; align-items: center; justify-content: center; }
.capa-logos { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); top: clamp(26px, 4.5vh, 44px);
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); white-space: nowrap; }
.js .capa-logos.rv { transform: translateX(-50%) translateY(-14px); }
.js .capa-logos.rv.on { transform: translateX(-50%); }
.logo-rastro { height: clamp(26px, 2.8vw, 40px); width: auto; }
.logo-sep { display: block; width: 1px; height: clamp(22px, 2.6vw, 34px); background: rgba(206, 171, 109, .45); margin: 0 clamp(4px, .6vw, 10px); }
.logo-wb { height: clamp(34px, 3.8vw, 52px); width: auto; }
.logo-hbo { height: clamp(16px, 1.8vw, 24px); width: auto; }
.capa-content { position: relative; z-index: 3; width: min(78vw, 980px); display: flex; flex-direction: column; align-items: flex-end; margin-top: 3vh; }
.t-hero { width: 100%; }
.js .t-hero { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out); }
.js .t-hero.on { opacity: 1; transform: none; }
.t-sub { width: 38%; margin-top: -1.2%; margin-right: 2%; }
.hero-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); width: 1px; height: 54px; overflow: hidden; background: var(--gold-line); }
.hero-cue span { position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--gold); animation: cue 1.9s var(--ease-reveal) infinite; }
@keyframes cue { 0% { top: -50% } 100% { top: 110% } }

/* ═══════════ 01b · PROPOSTA ═══════════ */
.proposta { display: flex; align-items: center; justify-content: center; text-align: center; }
.proposta-inner { width: 100%; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.6vh, 28px); padding-top: calc(var(--head-h) + 6vh); padding-bottom: 10vh; }
.proposta-logo { width: clamp(120px, 14vw, 200px); height: auto; }
.proposta-kicker { font-family: var(--serif); font-weight: 600; font-size: clamp(10px, .8vw, 12px); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); opacity: .75; }
.proposta-text { color: var(--gold); font-size: clamp(16px, 1.3vw, 21px); line-height: 1.6; max-width: 60ch; }
.proposta-by { font-family: var(--serif); font-weight: 600; font-size: clamp(11px, .9vw, 13px); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: .8; margin-top: .4em; }
.btn-pdf {
  display: inline-flex; align-items: center; gap: 12px; margin-top: .4em;
  font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border: 1px solid rgba(206, 171, 109, .75); border-radius: 40px;
  padding: 15px 32px; transition: background .3s, color .3s, transform .2s, border-color .3s;
}
.btn-pdf svg { width: 16px; height: 16px; }
.btn-pdf:hover { background: var(--gold); border-color: var(--gold); color: var(--wine-0); transform: translateY(-1px); }

.trat-abre { display: flex; align-items: center; justify-content: center; text-align: center; }
.trat-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 4vh, 40px); padding-top: var(--head-h); padding-bottom: 6vh; }
.t-trat-logo { width: min(64vw, 760px); }
.t-trat { width: min(38vw, 400px); margin-top: -1vh; }
.proposta-cue { display: block; width: 26px; height: 46px; color: var(--gold); opacity: .9; }
.proposta-cue svg { width: 100%; height: 100%; display: block; animation: cueDown 2.2s var(--ease-reveal) infinite; }
.proposta-cue:hover { opacity: 1; }
@keyframes cueDown { 0% { transform: translateY(-6px); opacity: 0; } 25% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
.js .proposta-cue.rv.on { opacity: .9; }

/* ═══════════ 02 · VISÃO ═══════════ */
.visao { display: flex; align-items: center; }
.visao-grid { width: 100%; display: grid; grid-template-columns: 1.45fr 1fr; column-gap: clamp(32px, 4.5vw, 80px); row-gap: clamp(28px, 4vh, 48px);
  padding-top: calc(var(--head-h) + 5vh); padding-bottom: 8vh; align-items: start; }
.t-visao { grid-column: 1 / -1; width: min(60vw, 700px); justify-self: center; margin-bottom: 1vh; }
.visao-grid .quote { padding-top: .3em; }

/* ═══════════ ABERTURAS (divisórias em tela cheia) ═══════════ */
.abre { display: flex; align-items: center; justify-content: center; }
.abre-content { position: relative; z-index: 3; width: min(76vw, 960px); display: flex; justify-content: center; }
.t-abre { width: 100%; }

/* ═══════════ DUO (texto + moldura) ═══════════ */
.duo { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: .9fr 1.35fr; gap: clamp(32px, 5vw, 96px); align-items: center;
  padding-top: calc(var(--head-h) + 6vh); padding-bottom: 8vh; }
.frame-lg, .frame-tom, .frame-foto { width: 100%; }
.duo-quote { grid-template-columns: 1fr 1.35fr; padding-bottom: 12vh; }
.quote-lead { font-size: clamp(20px, 1.9vw, 30px); }

/* ═══════════ 04 · STORYBOARD ═══════════ */
.sb-texto { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding-bottom: 0; }
.sb-duo { min-height: 0; padding-top: calc(var(--head-h) + 10vh); padding-bottom: 6vh; }
.sb-board {
  background: #fff; padding: clamp(10px, 1.1vw, 16px);
  display: flex; flex-direction: column; gap: clamp(8px, .9vw, 12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); width: min(100%, 1500px); margin: 0 auto;
}
.sb-board--one { width: min(100%, 1500px); }
.sb-row { margin: 0; }
.sb-row img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.sb-pranchas { display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; padding: 2vh 0 12vh; }
.sb-boards { display: flex; flex-direction: column; gap: clamp(28px, 5vh, 56px); }
.sb-frames { display: none; }

/* ═══════════ LOCAÇÕES (Cristo · Lapa · Selarón · Montagem) ═══════════ */
.loc { display: flex; align-items: center; }
.loc-block { width: 100%; display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); padding-top: calc(var(--head-h) + 4vh); padding-bottom: 8vh; }
.loc-block .p-body { max-width: 34ch; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.loc-right { align-items: flex-end; text-align: left; }
.loc-right .p-body { margin-right: 4%; }
.loc-right .t-loc { margin-right: 4%; }
.loc-left { align-items: flex-start; }
.loc-left .p-body { margin-left: 3%; }
.loc-left .t-loc { margin-left: 3%; }
.t-cristo { width: min(26vw, 380px); }
.t-lapa { width: min(9vw, 130px); }
.t-selaron { width: min(14vw, 210px); }
.t-montagem { width: min(27vw, 380px); }
.montagem { display: flex; align-items: center; }
.loc .p-body, .montagem .p-body { color: var(--gold-hi); }

/* ═══════════ 08 · FOTOGRAFIA ═══════════ */
.foto { display: flex; align-items: center; }
.foto-grid { width: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 4vw, 72px); align-items: center;
  padding-top: calc(var(--head-h) + 5vh); padding-bottom: 8vh; }
.foto-left { display: flex; flex-direction: column; gap: 0; }
.t-foto { width: min(38vw, 520px); margin-bottom: -4%; position: relative; z-index: 3; margin-left: 4%; }

.foto2 { display: flex; flex-direction: column; justify-content: space-between; }
.foto2-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 4vw, 72px); align-items: center;
  padding-top: calc(var(--head-h) + 6vh); padding-bottom: 5vh; flex: 1; }

.foto2-base { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; }
.foto2-base .bleed { aspect-ratio: 1.968; }

/* ═══════════ 09 · DIREÇÃO DE ARTE ═══════════ */
.arte-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 33.6%; min-height: 100vh; min-height: 100svh; }
.arte-main { padding: calc(var(--head-h) + 6vh) clamp(24px, 3vw, 56px) 8vh var(--pad); display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3vh, 40px); }
.t-arte { width: min(54vw, 720px); max-width: 100%; }
.arte-duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 3vw, 56px); align-items: start; }
.arte-props { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); padding-top: .4em; }
.arte-props .frame { aspect-ratio: 1.672; }
.col-bleed { display: grid; grid-template-rows: repeat(3, 1fr); height: 100vh; height: 100svh; position: sticky; top: 0; align-self: start; }
.col-bleed figure { position: relative; overflow: hidden; background: var(--wine-1); }
.col-bleed figure img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }

/* ═══════════ 10 · MARCA ═══════════ */
.marca-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 33.6% 1fr; min-height: 100vh; min-height: 100svh; }
.marca-main { padding: calc(var(--head-h) + 6vh) var(--pad) 8vh clamp(28px, 4vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 34px); }
.t-marca { width: min(16vw, 220px); }
.marca-main .p-body { max-width: 62ch; }

/* ═══════════ 11 · MONTAGEM 2 ═══════════ */
.montagem2 { display: grid; grid-template-rows: 59.2vh 40.8vh; grid-template-rows: 59.2svh 40.8svh; }
.mont-top { height: 100%; }
.mont-row { display: grid; grid-template-columns: repeat(3, 1fr); height: 100%; }
.mont-row .bleed { height: 100%; }

/* ═══════════ 12 · ENTREGÁVEIS ═══════════ */
.entregaveis { display: flex; align-items: center; }
.entregaveis-row { width: 100%; display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); padding-top: var(--head-h); }
.t-entregaveis { width: min(36vw, 480px); flex: 0 0 auto; }
.entregaveis-item { display: flex; align-items: center; gap: 22px; color: var(--gold); font-size: clamp(16px, 1.3vw, 21px); }
.entregaveis-item .dash { display: block; width: 26px; height: 1px; background: var(--gold); }

/* ═══════════ 13 · FIM ═══════════ */
.fim { display: flex; align-items: center; justify-content: center; }
.fim .abre-content { width: min(62vw, 720px); }
.t-fim { width: 100%; }
.fim-logos { position: absolute; z-index: 3; left: var(--pad); bottom: 24px; display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); }
.fim-credit { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%);
  font-family: var(--serif); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: .6; white-space: nowrap; }
.js .fim-credit.rv { transform: translateX(-50%) translateY(22px); }
.js .fim-credit.rv.on { transform: translateX(-50%); }

/* ═══════════ PLAY (quando o autoplay é barrado) ═══════════ */
.frame.paused::before, .bleed.paused::before, .bg.paused::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; z-index: 4;
  border-radius: 50%; border: 1px solid rgba(206, 171, 109, .85); background: rgba(13, 2, 0, .45);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 6.5v11l9-5.5z' fill='%23ceab6d'/></svg>");
  background-repeat: no-repeat; background-position: 52% 50%; background-size: 30px; pointer-events: none;
}
.bg.paused::before { width: 76px; height: 76px; margin: -38px 0 0 -38px; }

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(13, 2, 0, .94); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s ease; padding: clamp(16px, 4vw, 60px); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-body { max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; transform: scale(.96); transition: transform .38s var(--ease-out); }
.lightbox.open .lightbox-body { transform: none; }
.lightbox-body img, .lightbox-body video { max-width: min(96vw, 1800px); max-height: 92vh; width: auto; height: auto; border-radius: 6px; border: 1px solid var(--gold-line); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: transparent; border: 1px solid var(--gold-line); color: var(--gold);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 15px; transition: background .25s, color .25s; }
.lightbox-close:hover { background: var(--gold); color: var(--wine-0); }

/* ═══════════ RESPONSIVO ═══════════ */
@media (max-width: 1100px) {
  .dots { display: none; }
  .loc-block .p-body { max-width: 40ch; }
}
@media (max-width: 900px) {
  :root { --head-h: 46px; }
  .chrome-head { font-size: 9px; letter-spacing: .2em; }
  .chrome-rastro-mark { height: 24px; }
  .chrome-rastro { bottom: 16px; }
  .chapter { min-height: auto; }
  .capa, .abre, .loc, .montagem, .fim, .visao, .foto, .entregaveis { min-height: 100svh; }
  .capa-logos { top: 22px; gap: 12px; }
  .logo-rastro { height: 24px; } .logo-sep { height: 20px; margin: 0 2px; }
  .logo-wb { height: 28px; } .logo-hbo { height: 13px; }
  .capa-content { width: 88vw; margin-top: 0; }
  .t-sub { width: 52%; }
  .visao, .foto, .entregaveis, .proposta { align-items: flex-start; }
  .t-trat-logo { width: 86vw; } .t-trat { width: 62vw; }
  .proposta-text { font-size: 16px; }
  .arte-main, .marca-main { justify-content: flex-start; }
  .visao-grid { grid-template-columns: 1fr; row-gap: 26px; padding-top: calc(var(--head-h) + 8vh); padding-bottom: 12vh; }
  .t-visao { width: 78vw; }
  .duo, .duo-quote { grid-template-columns: 1fr; gap: 30px; padding-top: calc(var(--head-h) + 60px); padding-bottom: 12vh; min-height: auto; }
  .sb-texto { padding-bottom: 0; }
  .sb-board { display: none; }
  .sb-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #fff; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
  .sb-frame { margin: 0; background: #fff; }
  .sb-frame img { width: 100%; height: auto; display: block; cursor: zoom-in; }
  .sb-pranchas { padding: 0 0 12vh; }
  .sb-pranchas .wrap { padding: 0 var(--pad); }
  .trat-abre { min-height: 100svh; }
  .marca-col { order: 0; }
  .chrome-head { height: 44px; background: linear-gradient(180deg, rgba(13, 2, 0, .82) 0%, rgba(13, 2, 0, .55) 60%, rgba(13, 2, 0, 0) 100%); padding-bottom: 6px; align-items: flex-start; padding-top: 12px; }
  .chrome-rastro { top: 8px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
  .chrome-rastro-mark { height: 18px; }
  body[data-chapter="capa"] .chrome-head { opacity: 0; }
  .loc-block { padding-top: calc(var(--head-h) + 40vh); padding-bottom: 10vh; }
  .loc-block .p-body { max-width: none; }
  .loc-right, .loc-left { align-items: flex-start; }
  .loc-right .p-body, .loc-right .t-loc { margin-right: 0; }
  .loc-left .p-body, .loc-left .t-loc { margin-left: 0; }
  .t-cristo { width: 62vw; } .t-lapa { width: 22vw; } .t-selaron { width: 36vw; } .t-montagem { width: 64vw; }
  .montagem-block { padding-top: calc(var(--head-h) + 30vh); }
  .foto-grid { grid-template-columns: 1fr; gap: 26px; padding-top: calc(var(--head-h) + 8vh); }
  .t-foto { width: 72vw; margin-left: 0; margin-bottom: -2%; }
  .foto2-top { grid-template-columns: 1fr; gap: 26px; padding-top: calc(var(--head-h) + 60px); padding-bottom: 32px; }
  .foto2-base { grid-template-columns: 1fr 1fr; }
  .arte-grid, .marca-grid { grid-template-columns: 1fr; min-height: auto; }
  .arte-main { padding: calc(var(--head-h) + 8vh) var(--pad) 6vh; }
  .t-arte { width: 90vw; }
  .arte-duo { grid-template-columns: 1fr; gap: 26px; }
  .arte-props { flex-direction: row; }
  .arte-props .frame { flex: 1; }
  .col-bleed { position: relative; height: auto; grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .col-bleed figure { aspect-ratio: 3 / 4; }
  .col-bleed figure img { height: 100%; }
  .marca-main { padding: calc(var(--head-h) + 8vh) var(--pad) 6vh; }
  .t-marca { width: 34vw; }
  .montagem2 { grid-template-rows: none; }
  .mont-top { height: 56vw; aspect-ratio: auto; }
  .mont-row { grid-template-columns: 1fr 1fr 1fr; height: auto; }
  .mont-row .bleed { aspect-ratio: 3 / 4; }
  .entregaveis { min-height: auto; padding: 14vh 0 16vh; }
  .entregaveis-row { flex-direction: column; align-items: flex-start; gap: 26px; padding-top: var(--head-h); }
  .t-entregaveis { width: 78vw; }
  .fim .abre-content { width: 80vw; }
  .fim-credit { display: none; }
  .fim-logos { bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .rv-img, .js .t, .js .t-hero { opacity: 1; transform: none; transition: none; }
  .hero-cue span, .proposta-cue svg { animation: none; }
}
