/* Marcinha Celebrante — v2: a página é um filme dirigido pela rolagem.
   Cores só por tokens. Fontes OFL locais. */

@font-face { font-family: "Instrument Serif"; src: url("fontes/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fontes/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fontes/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fontes/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fontes/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fontes/caveat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --tinta: #17110e;
  --tinta-2: #211814;
  --tinta-3: #33261f;
  --papel: #f6efe4;
  --papel-2: #ece1d0;
  --ouro: #c9ab6c;
  --ouro-claro: #e6cf9b;
  --ouro-escuro: #7a5b22;
  --coral: #e8735a;
  --coral-escuro: #b8452f;
  --branco: #fffaf3;
  --texto: #2a201b;
  --texto-suave: #5e4f45;
  --sobre-tinta: #f3e9da;
  --sobre-tinta-suave: #c7b6a1;
  --verde-wa: #167a41;
  --verde-wa-claro: #1d9150;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mao: "Caveat", "Comic Sans MS", cursive;
  --lado: clamp(18px, 5vw, 72px);
  --raio: 18px;
  --sombra-texto: 0 2px 24px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--tinta); color: var(--sobre-tinta);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, blockquote, .equilibrar { text-wrap: balance; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rotulo { font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ouro-claro); }
.mao { font-family: var(--mao); font-weight: 600; }

/* ---------- botões (o GSAP nunca mexe em transform deles: hover por `translate`) ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--ouro); color: var(--tinta); font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 30px -12px rgba(201, 171, 108, 0.75);
  transition: background 0.25s, box-shadow 0.25s, translate 0.25s;
}
.botao:hover { translate: 0 -2px; background: var(--ouro-claro); }
.botao:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.botao svg { width: 22px; height: 22px; flex: none; }
.link-seta { color: var(--ouro-claro); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(230, 207, 155, 0.4); }

/* ---------- topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--lado); pointer-events: none;
}
.topo > * { pointer-events: auto; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sobre-tinta); }
.marca img { width: 42px; height: 42px; border-radius: 50%; background: var(--branco); padding: 2px; }
.marca span { font-family: var(--serif); font-size: 21px; line-height: 1; text-shadow: var(--sombra-texto); }
.marca small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; margin-top: 3px; }
.topo .botao { min-height: 44px; padding: 0 18px; font-size: 14px; display: none; }
@media (min-width: 900px) { .topo .botao { display: inline-flex; } }

/* ---------- cena presa: palco de 100svh com canvas ---------- */
.cena { position: relative; }
.palco { position: relative; height: 100svh; overflow: hidden; background: var(--tinta); }
.palco canvas.tela { position: absolute; inset: 0; width: 100%; height: 100%; }
.palco .fundo-desfocado { display: none; }
.palco::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(23,17,14,0.55) 0%, rgba(23,17,14,0) 22%, rgba(23,17,14,0) 45%, rgba(23,17,14,0.85) 100%);
}
.luz { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at 50% 45%, var(--branco), var(--ouro-claro) 60%, var(--ouro) 100%); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.grao { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.legendas { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.leg { position: absolute; left: var(--lado); right: var(--lado); bottom: calc(104px + env(safe-area-inset-bottom)); }
.leg .botao, .leg a { pointer-events: auto; }

/* abertura */
.ab-titulo { font-family: var(--serif); font-weight: 400; margin: 10px 0 0; line-height: 0.88; letter-spacing: -0.03em; font-size: clamp(66px, min(19vw, 12.5vh), 164px); text-shadow: var(--sombra-texto); }
.ab-titulo .l { display: block; }
.ab-titulo em { font-style: italic; color: var(--ouro-claro); }
.ab-citacao { margin: 14px 0 0; max-width: 520px; font-size: 15px; color: var(--sobre-tinta); text-shadow: var(--sombra-texto); }
.ab-acoes { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.ab-acoes .link-seta { font-size: 15px; }
.frase-grande { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, min(12vw, 8.6vh), 108px); line-height: 0.95; letter-spacing: -0.025em; margin: 0; text-shadow: var(--sombra-texto); }
.frase-grande em { font-style: italic; color: var(--ouro-claro); }
.frase-apoio { margin: 14px 0 0; max-width: 460px; font-size: 16px; color: var(--sobre-tinta); text-shadow: var(--sombra-texto); }
.selos-linha { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--ouro-claro); text-shadow: var(--sombra-texto); }

/* relógio da cerimônia: o "f/16 → f/2" da referência vira o tempo da cerimônia */
.relogio { position: absolute; z-index: 4; top: 78px; right: var(--lado); text-align: right; pointer-events: none; }
.relogio .tc { font-family: var(--serif); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--sobre-tinta); text-shadow: var(--sombra-texto); }
.relogio .tc-rotulo { display: block; font-family: var(--mao); font-size: 21px; color: var(--ouro-claro); margin-top: 2px; text-shadow: var(--sombra-texto); }
.relogio .trilho { width: 92px; height: 2px; background: rgba(243,233,218,0.25); margin: 8px 0 0 auto; border-radius: 2px; overflow: hidden; }
.relogio .trilho i { display: block; height: 100%; width: 100%; background: var(--ouro-claro); transform-origin: 0 50%; transform: scaleX(0); }
.dica-rolar { position: absolute; z-index: 4; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); translate: -50% 0; font-family: var(--mao); font-size: 20px; color: var(--ouro-claro); text-shadow: var(--sombra-texto); white-space: nowrap; }

@media (min-width: 900px) {
  /* desktop: o filme vertical numa coluna; o mesmo quadro, desfocado, preenche o resto */
  .palco .fundo-desfocado { display: block; position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); filter: blur(40px) brightness(0.62) saturate(1.25); }
  .palco canvas.tela { left: auto; right: 0; top: 0; width: max(calc(100vh * 9 / 16), 44vw); height: 100vh; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
  .palco::after { background: linear-gradient(90deg, rgba(23,17,14,0.8) 0%, rgba(23,17,14,0.35) 45%, rgba(23,17,14,0) 70%); }
  .leg { right: auto; width: min(52vw, 780px); bottom: auto; top: 50%; translate: 0 -50%; }
  .relogio { top: auto; bottom: 6vh; right: auto; left: var(--lado); text-align: left; }
  .relogio .trilho { margin-left: 0; }
  .dica-rolar { display: none; }
}

/* cena "sentir" */
.sentir .palavra { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(64px, min(18vw, 11.5vh), 150px); line-height: 0.9; letter-spacing: -0.03em; margin: 0; color: var(--branco); text-shadow: var(--sombra-texto); }
.sentir .palavra.coral { color: var(--coral); }

/* passos */
.passos .palco { background: var(--tinta-2); }
.passo-fundo { position: absolute; inset: 0; z-index: 0; }
.passo-fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: brightness(0.45) saturate(0.95); }
.passo-fundo img:first-child { opacity: 1; }
.passos-cabeca { position: absolute; z-index: 4; top: 82px; left: var(--lado); right: var(--lado); }
.passos-cabeca h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 6vw, 56px); line-height: 1; margin: 8px 0 0; text-shadow: var(--sombra-texto); }
.passos-cabeca h2 em { color: var(--ouro-claro); }
.pontos { display: flex; gap: 6px; margin-top: 16px; }
.pontos i { width: 22px; height: 3px; border-radius: 2px; background: rgba(243,233,218,0.3); }
.pontos i.on { background: var(--ouro-claro); }
.numeral { position: absolute; z-index: 3; right: var(--lado); top: 50%; translate: 0 -58%; font-family: var(--serif); font-style: italic; line-height: 0.8; font-size: clamp(220px, 58vw, 560px); color: var(--ouro); opacity: 0.92; text-shadow: 0 10px 60px rgba(0,0,0,0.5); width: 0.6em; height: 0.82em; }
.numeral span { position: absolute; right: 0; top: 0; }
.passo-txt { position: absolute; }
.passo-txt h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 8vw, 64px); line-height: 1; margin: 0; text-shadow: var(--sombra-texto); }
.passo-txt p { margin: 12px 0 0; max-width: 480px; color: var(--sobre-tinta); text-shadow: var(--sombra-texto); }
.passo-txt .inclui { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.passo-txt .inclui li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(243,233,218,0.16); }
@media (min-width: 900px) {
  .numeral { right: 12vw; font-size: min(72vh, 640px); }
  .passos .leg { width: min(44vw, 600px); }
}

/* vozes (depoimentos) */
.vozes .palco { background: var(--papel); color: var(--texto); }
.vozes .palco::after { display: none; }
.voz { position: absolute; inset: 0; display: grid; align-content: center; padding: 100px var(--lado) 170px; }
.voz blockquote { margin: 0; font-family: var(--serif); font-size: clamp(40px, min(10.5vw, 7.4vh), 104px); line-height: 1.02; letter-spacing: -0.02em; max-width: 1100px; }
.voz blockquote em { font-style: italic; color: var(--ouro-escuro); }
.voz figcaption { margin-top: 18px; font-size: 14px; color: var(--texto-suave); }
.voz figcaption .estrelas { color: var(--ouro-escuro); letter-spacing: 2px; margin-right: 8px; }
.vozes .rotulo { position: absolute; z-index: 4; top: 82px; left: var(--lado); color: var(--ouro-escuro); }
.vozes-notas { position: absolute; z-index: 4; left: var(--lado); right: var(--lado); bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; gap: 8px; flex-wrap: wrap; }
.vozes-notas a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--papel-2); font-size: 13px; font-weight: 600; color: var(--texto); }
@media (min-width: 900px) { .vozes-notas { bottom: 7vh; } }

/* seções de fluxo normal */
.secao { padding: clamp(84px, 12vw, 150px) var(--lado); position: relative; }
.largura { max-width: 1180px; margin: 0 auto; }
.claro { background: var(--papel); color: var(--texto); }
.claro .rotulo { color: var(--ouro-escuro); }
.titulo-secao { font-family: var(--serif); font-weight: 400; line-height: 0.98; letter-spacing: -0.02em; font-size: clamp(44px, 8vw, 104px); margin: 12px 0 0; }
.titulo-secao em { font-style: italic; color: var(--ouro-escuro); }

.cerimonias-lista { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(42,32,27,0.16); }
.cerimonias-lista li { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 24px 0; border-bottom: 1px solid rgba(42,32,27,0.16); }
.cerimonias-lista h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 48px); line-height: 1; }
.cerimonias-lista p { margin: 0; color: var(--texto-suave); max-width: 560px; }
.cerimonias-lista .valor { font-weight: 600; color: var(--ouro-escuro); text-decoration: none; white-space: nowrap; justify-self: start; }
.cerimonias-lista .valor:hover { text-decoration: underline; }
@media (min-width: 900px) { .cerimonias-lista li { grid-template-columns: 1.1fr 1.6fr auto; align-items: baseline; gap: 32px; } }
.incluso { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.incluso b { font-family: var(--mao); font-size: 26px; color: var(--coral-escuro); margin-right: 6px; }
.incluso span { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--papel-2); }
.assessoria { margin-top: 36px; padding: 24px; border-radius: var(--raio); background: var(--tinta); color: var(--sobre-tinta); display: grid; gap: 14px; }
.assessoria h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.assessoria p { margin: 0; color: var(--sobre-tinta-suave); }
@media (min-width: 900px) { .assessoria { grid-template-columns: 1fr auto; align-items: center; padding: 32px 40px; } }

/* espanhol */
.espanhol { background: var(--tinta-2); overflow: hidden; }
.espanhol-grade { display: grid; gap: 28px; align-items: center; }
.si-gigante { font-family: var(--serif); font-style: italic; font-size: clamp(150px, 36vw, 400px); line-height: 0.8; color: var(--ouro); margin: 0; letter-spacing: -0.05em; }
.espanhol .lead { font-family: var(--serif); font-size: clamp(30px, 4vw, 50px); line-height: 1.06; margin: 12px 0 16px; }
.espanhol .corpo { color: var(--sobre-tinta-suave); max-width: 520px; margin: 0 0 22px; }
@media (min-width: 900px) { .espanhol-grade { grid-template-columns: 1fr 1.1fr; } }

/* perguntas */
.perguntas-lista { margin-top: 36px; border-top: 1px solid rgba(42,32,27,0.16); }
.perguntas details { border-bottom: 1px solid rgba(42,32,27,0.16); }
.perguntas summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font-family: var(--serif); font-size: clamp(23px, 3vw, 32px); line-height: 1.12; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--papel-2); position: relative; }
.perguntas summary i::before, .perguntas summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--texto); translate: -50% -50%; }
.perguntas summary i::after { rotate: 90deg; transition: rotate 0.3s; }
.perguntas details[open] summary i { background: var(--ouro); }
.perguntas details[open] summary i::after { rotate: 0deg; }
.perguntas .resposta { padding: 0 0 24px; color: var(--texto-suave); max-width: 760px; }
.perguntas .resposta p { margin: 0; }

/* fecho */
.fecho { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; overflow: hidden; background: var(--tinta); padding: 110px var(--lado) 140px; }
.fecho video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.fecho::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 50%, rgba(23,17,14,0.15), rgba(23,17,14,0.85) 75%); }
.fecho > *:not(video) { position: relative; z-index: 2; }
.fecho h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, min(17vw, 15vh), 200px); line-height: 0.88; letter-spacing: -0.035em; }
.fecho h2 em { font-style: italic; color: var(--ouro-claro); }
.fecho .botao { margin-top: 34px; }
.fecho .nota { margin-top: 12px; font-size: 14px; color: var(--sobre-tinta-suave); }

/* rodapé */
.rodape { background: var(--tinta); color: var(--sobre-tinta-suave); padding: 44px var(--lado) 120px; font-size: 14px; border-top: 1px solid rgba(201,171,108,0.18); }
.rodape-grade { display: grid; gap: 20px; max-width: 1180px; margin: 0 auto; }
.rodape a { color: var(--sobre-tinta); }
.rodape-links { display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 900px) { .rodape { padding-bottom: 44px; } .rodape-grade { grid-template-columns: 1fr auto; align-items: center; } }

/* barra fixa do celular (sempre há um botão na tela) */
.barra-wa { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; transition: translate 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.3s; }
.barra-wa.escondida { translate: 0 140%; opacity: 0; }
.barra-wa .botao { width: 100%; background: var(--verde-wa); color: var(--branco); box-shadow: 0 12px 30px -8px rgba(0,0,0,0.5); }
.barra-wa .botao:hover { background: var(--verde-wa-claro); }
@media (min-width: 900px) { .barra-wa { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* estados iniciais (o JS revela no tempo certo; sem JS fica a primeira legenda de cada cena) */
.abertura .leg:not(.leg-1), .sentir .leg:not(.s-1), .passos .passo-txt:not(.p-1), .vozes .voz:not(.v-1), .numeral span:not(:first-child) { opacity: 0; visibility: hidden; }
.abertura canvas.tela { background: var(--tinta) url("seq/abertura/f_0001.webp") center / cover no-repeat; }
.sentir canvas.tela { background: var(--tinta) url("seq/emocao/f_0001.webp") center / cover no-repeat; }

/* abertura no celular: título no céu/serra, botão embaixo, a pessoa livre no meio */
.abertura .leg-1 { top: 92px; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; }
.abertura .leg-1 .ab-acoes { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
.abertura .palco::after { background: linear-gradient(180deg, rgba(23,17,14,0.78) 0%, rgba(23,17,14,0.35) 30%, rgba(23,17,14,0) 48%, rgba(23,17,14,0) 66%, rgba(23,17,14,0.8) 100%); }
.abertura .dica-rolar { bottom: calc(30px + env(safe-area-inset-bottom)); left: auto; right: var(--lado); translate: 0 0; }
.topo { transition: background 0.3s; }
.topo.sobre-claro .marca { color: var(--texto); }
.topo.sobre-claro .marca span { text-shadow: none; }
@media (min-width: 900px) {
  .abertura .leg-1 { top: 50%; bottom: auto; display: block; }
  .abertura .leg-1 .ab-acoes { margin-top: 22px; flex-direction: row; }
  .abertura .palco::after { background: linear-gradient(90deg, rgba(23,17,14,0.8) 0%, rgba(23,17,14,0.35) 45%, rgba(23,17,14,0) 70%); }
}
.topo.sobre-claro { background: rgba(246, 239, 228, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(42,32,27,0.08); }
.abertura .ab-topo-grupo .rotulo { max-width: 62%; }
.ab-titulo { font-size: clamp(62px, min(17.5vw, 11.5vh), 164px); }
@media (min-width: 900px) { .abertura .ab-topo-grupo .rotulo { max-width: none; } }

.so-largo { display: none; }
@media (min-width: 900px) { .so-largo { display: inline; } }
