/* ============================================================
   PARA GABRIELLE — uma carta de amor, escrita em luz
   Da noite ao amanhecer: o scroll é uma jornada de luz.
   ============================================================ */

:root {
  /* céu — animado pelo scroll (GSAP escreve nessas variáveis) */
  --sky-top: #070811;
  --sky-mid: #0d1020;
  --sky-bot: #131830;
  --horizon-o: 0;

  /* paleta */
  --ink: #ede7db;
  --ink-dim: rgba(237, 231, 219, 0.72);
  --ink-faint: rgba(237, 231, 219, 0.45);
  --gold: #e3b87e;
  --gold-soft: rgba(227, 184, 126, 0.65);
  --rose: #e093a8;

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--serif);
  color: var(--ink);
  background: #070811;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.travado {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

::selection { background: rgba(227, 184, 126, 0.3); }

/* ============================================================
   CAMADAS FIXAS — céu, estrelas, horizonte, partículas, grão
   ============================================================ */

#sky {
  position: fixed;
  inset: 0;
  z-index: -5;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-bot) 100%);
}

#stars, #particles {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particles { z-index: 5; }

#horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72vh;
  z-index: -3;
  pointer-events: none;
  opacity: var(--horizon-o);
  background:
    radial-gradient(120% 90% at 50% 108%,
      rgba(255, 178, 110, 0.50) 0%,
      rgba(232, 120, 122, 0.30) 30%,
      rgba(160, 80, 130, 0.16) 55%,
      transparent 78%);
}

#grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ============================================================
   BOTÃO DE MÚSICA
   ============================================================ */

#audio-toggle {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(237, 231, 219, 0.22);
  background: rgba(10, 10, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

#audio-toggle .ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(227, 184, 126, 0.5);
  opacity: 0;
}

#audio-toggle.tocando .ring { animation: pulsar 2.6s ease-out infinite; }
#audio-toggle.tocando .r2 { animation-delay: 1.3s; }
#audio-toggle.tocando { color: var(--gold); border-color: rgba(227, 184, 126, 0.4); }
#audio-toggle.pausado svg { opacity: 0.4; }

@keyframes pulsar {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* ============================================================
   ABERTURA
   ============================================================ */

.vh {
  min-height: 100vh;
  min-height: 100dvh;
}

#abertura {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8vh 8vw calc(8vh + env(safe-area-inset-bottom, 0px));
  position: relative;
}

.abertura-inner { max-width: 34rem; }

.kicker {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.abertura-para {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink-faint);
  margin-top: 9vh;
}

.abertura-nome {
  font-weight: 500;
  font-size: clamp(3.4rem, 17vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 1.2rem;
  filter: drop-shadow(0 0 26px rgba(227, 184, 126, 0.18));
}

.abertura-nome span {
  display: inline-block;
  /* gradiente em cada letra: vertical, idêntico em todas — emenda invisível.
     (no pai ele some quando as letras ganham filter/transform na animação) */
  background: linear-gradient(180deg, #f7ecd4 12%, #e9c189 58%, #d9a96e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(0.45em) rotate(2deg);
  filter: blur(6px);
  animation: letra 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.abertura-nome span:nth-child(1) { animation-delay: 0.9s; }
.abertura-nome span:nth-child(2) { animation-delay: 1.02s; }
.abertura-nome span:nth-child(3) { animation-delay: 1.14s; }
.abertura-nome span:nth-child(4) { animation-delay: 1.26s; }
.abertura-nome span:nth-child(5) { animation-delay: 1.38s; }
.abertura-nome span:nth-child(6) { animation-delay: 1.5s; }
.abertura-nome span:nth-child(7) { animation-delay: 1.62s; }
.abertura-nome span:nth-child(8) { animation-delay: 1.74s; }
.abertura-nome span:nth-child(9) { animation-delay: 1.86s; }

@keyframes letra {
  to { opacity: 1; transform: none; filter: blur(0); }
}

.abertura-sub {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.fade-seq {
  opacity: 0;
  animation: surgir 1.4s ease forwards;
}

.kicker.fade-seq { animation-delay: 0.3s; }
.abertura-para.fade-seq { animation-delay: 0.6s; }
.abertura-sub.fade-seq { animation-delay: 2.3s; }
.abrir.fade-seq { animation-delay: 3s; }

@keyframes surgir {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.abrir {
  margin-top: 10vh;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.abrir-coracao {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(227, 184, 126, 0.35);
  display: grid;
  place-items: center;
  color: var(--rose);
  transition: transform 0.4s ease, border-color 0.4s;
}

.abrir-coracao::before,
.abrir-coracao::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(227, 184, 126, 0.4);
  animation: pulsar 2.8s ease-out infinite;
}

.abrir-coracao::after { animation-delay: 1.4s; }

.abrir-coracao svg { animation: batida 1.6s ease-in-out infinite; }

@keyframes batida {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.14); }
  24% { transform: scale(1); }
  36% { transform: scale(1.1); }
  48% { transform: scale(1); }
}

.abrir:active .abrir-coracao { transform: scale(0.92); }

.abrir-texto {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

#abertura.aberta .abrir {
  pointer-events: none;
  animation: dissolver 1s ease forwards;
}

@keyframes dissolver {
  to { opacity: 0; transform: translateY(-10px) scale(0.94); filter: blur(8px); }
}

.deslize {
  position: absolute;
  bottom: calc(4vh + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  transition: opacity 1.2s ease 0.6s;
}

#abertura.aberta .deslize { opacity: 1; }

.deslize-linha {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--gold-soft));
  position: relative;
  overflow: hidden;
}

.deslize-linha::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: #fff;
  opacity: 0.9;
  animation: descer 2.2s ease-in-out infinite;
}

@keyframes descer {
  to { top: 110%; }
}

.deslize-texto {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   CAPÍTULOS — estrutura narrativa
   ============================================================ */

.cap {
  padding: 22vh 7vw;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cap-cabeca { margin-bottom: 9vh; }

.cap-cabeca .kicker { margin-bottom: 1.4rem; }

.titulo {
  font-weight: 500;
  font-size: clamp(2.7rem, 11.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.titulo em {
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(110deg, var(--gold) 20%, #f0cfd8 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prosa {
  max-width: 30rem;
  margin: 0 auto;
}

.linha {
  font-size: clamp(1.32rem, 5.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 7vh 0;
}

.linha-forte {
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  font-size: clamp(1.5rem, 6.4vw, 2rem);
  text-shadow: 0 0 30px rgba(227, 184, 126, 0.12);
}

.divisor {
  margin: 16vh auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  color: var(--gold-soft);
  font-size: 0.8rem;
}

.divisor::before,
.divisor::after {
  content: '';
  width: clamp(40px, 16vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 184, 126, 0.4));
}

.divisor::after {
  background: linear-gradient(270deg, transparent, rgba(227, 184, 126, 0.4));
}

/* ============================================================
   FOTOS — molduras cinematográficas
   ============================================================ */

.foto {
  position: relative;
  margin: 9vh auto;
  border-radius: 6px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(237, 231, 219, 0.07);
}

.foto::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(5, 5, 12, 0.42) 100%);
}

.foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.foto img.carregada { opacity: 1; }

.foto figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: lowercase;
  color: rgba(237, 231, 219, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.foto-solta {
  width: min(78vw, 21rem);
  aspect-ratio: 3 / 4;
}

.tilt-l { transform: rotate(-2.2deg); }
.tilt-r { transform: rotate(2deg); }

.foto-cena {
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 9 / 12;
  border-radius: 10px;
  margin: 11vh auto;
}

.foto-cena.paisagem { aspect-ratio: 3 / 2; }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center;
  margin: 9vh 0;
}

.duo .foto {
  margin: 0;
  aspect-ratio: 3 / 4;
}

.duo .foto:first-child { transform: rotate(-2deg) translateY(-3vh); }
.duo .foto:last-child  { transform: rotate(2.4deg) translateY(3vh); }

/* nuvem de fotos do capítulo Gratidão */
.cluster {
  position: relative;
  height: 130vw;
  max-height: 36rem;
  margin: 10vh auto;
  max-width: 34rem;
}

.cluster .foto {
  position: absolute;
  margin: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
}

.cluster .foto:nth-child(1) { left: 2%;  top: 0;    transform: rotate(-3.5deg); z-index: 2; }
.cluster .foto:nth-child(2) { right: 3%; top: 9%;   transform: rotate(2.6deg);  z-index: 1; }
.cluster .foto:nth-child(3) { left: 8%;  top: 36%;  transform: rotate(1.8deg);  z-index: 3; }
.cluster .foto:nth-child(4) { right: 6%; top: 47%;  transform: rotate(-2.4deg); z-index: 2; }
.cluster .foto:nth-child(5) { left: 24%; top: 68%;  transform: rotate(-1.2deg); z-index: 4; width: 50%; }

/* mosaico da família — preenchido automaticamente */
.mosaico {
  columns: 2;
  column-gap: 3vw;
  margin: 10vh 0;
}

.mosaico .foto {
  margin: 0 0 3vw;
  break-inside: avoid;
  border-radius: 5px;
}

.mosaico .foto img { aspect-ratio: auto; }

/* ============================================================
   CAPÍTULO AURORA
   ============================================================ */

.aurora-nome {
  position: relative;
  margin: 14vh auto;
  padding: 6vh 0;
}

/* luz de fundo do amanhecer — um halo quente que respira atrás do nome */
.aurora-nome::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150vw;
  max-width: 48rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(255, 186, 130, 0.30) 0%,
    rgba(236, 140, 158, 0.16) 36%,
    rgba(170, 100, 170, 0.07) 56%,
    transparent 72%);
  animation: respirar 6.5s ease-in-out infinite alternate;
}

@keyframes respirar {
  from { opacity: 0.65; transform: translate(-50%, -50%) scale(0.94); }
  to   { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}

.aurora-raios {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130vw;
  max-width: 40rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg, rgba(255, 190, 130, 0.13) 14deg, transparent 32deg,
    transparent 70deg, rgba(240, 150, 150, 0.10) 86deg, transparent 104deg,
    transparent 150deg, rgba(255, 190, 130, 0.12) 168deg, transparent 186deg,
    transparent 235deg, rgba(240, 150, 150, 0.10) 252deg, transparent 270deg,
    transparent 318deg, rgba(255, 190, 130, 0.11) 334deg, transparent 352deg);
  border-radius: 50%;
  filter: blur(14px);
  animation: girar 70s linear infinite;
}

@keyframes girar {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.aurora-nome strong {
  display: block;
  position: relative;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(4rem, 20vw, 7.5rem);
  line-height: 1;
  background: linear-gradient(120deg, #ffd9a0 5%, #f2a07c 40%, #e88ba4 75%, #c98ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(255, 170, 120, 0.28));
}

.aurora-nome small {
  display: block;
  position: relative;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 210, 170, 0.75);
}

/* ============================================================
   LINHA DO TEMPO
   ============================================================ */

.timeline {
  position: relative;
  margin: 10vh 0;
  padding: 4vh 0;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(227, 184, 126, 0.45) 6%,
    rgba(227, 184, 126, 0.45) 94%,
    transparent);
}

.marco {
  position: relative;
  padding: 0 0 11vh 56px;
}

.marco:last-child { padding-bottom: 2vh; }

.marco::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 184, 126, 0.15), 0 0 18px rgba(227, 184, 126, 0.55);
}

.marco-data {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.marco-titulo {
  font-size: clamp(1.5rem, 6.4vw, 2rem);
  font-weight: 500;
  font-style: italic;
  margin: 0.4rem 0 0.3rem;
  color: var(--ink);
}

.marco-texto {
  font-size: clamp(1.05rem, 4.4vw, 1.25rem);
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 24rem;
}

.marco .foto {
  margin: 1.6rem 0 0;
  width: min(62vw, 17rem);
  aspect-ratio: 3 / 4;
}

.marco:nth-child(even) .foto { transform: rotate(1.8deg); }
.marco:nth-child(odd) .foto  { transform: rotate(-1.8deg); }

.marco .foto.paisagem { aspect-ratio: 3 / 2; width: min(74vw, 21rem); }

/* ============================================================
   GRANDE FINAL
   ============================================================ */

#final {
  position: relative;
  /* altura definida via JS: (mensagens + reveal) * passo */
}

.final-palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.final-fotos { position: absolute; inset: 0; }

.final-fotos .ff {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 28%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7s ease;
  will-change: opacity, transform;
}

.final-fotos .ff.ativa {
  opacity: 0.5;
  transform: scale(1);
}

.final-veu {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 30%, rgba(4, 4, 10, 0.88) 100%),
    linear-gradient(180deg, rgba(4, 4, 10, 0.55), transparent 35%, transparent 60%, rgba(4, 4, 10, 0.72));
}

.final-mensagens {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 9vw;
  text-align: center;
}

.final-mensagens .msg {
  grid-area: 1 / 1;
  font-size: clamp(1.75rem, 7.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 18ch;
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.85);
  will-change: opacity, transform, filter;
}

.final-mensagens .msg.ativa {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.final-mensagens .msg.passada {
  opacity: 0;
  transform: translateY(-26px);
  filter: blur(8px);
}

.final-mensagens .msg em {
  font-style: italic;
  background: linear-gradient(110deg, #f3e3c3, var(--gold) 50%, #f0cfd8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* transições das mensagens — suaves, com respiração */
.final-mensagens .msg {
  transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease;
}

/* a revelação */
.final-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
  padding: 0 8vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s ease;
  background: radial-gradient(100% 75% at 50% 100%,
    rgba(255, 170, 110, 0.20) 0%,
    rgba(190, 90, 130, 0.10) 45%,
    transparent 75%);
}

.final-reveal.ativa {
  opacity: 1;
  pointer-events: auto;
}

.final-feliz {
  font-weight: 600;
  font-size: clamp(2.9rem, 13.5vw, 5.6rem);
  line-height: 1.06;
  background: linear-gradient(115deg, #f7e7c5 8%, var(--gold) 42%, #f2b7c6 78%, #e0a3e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(235, 180, 130, 0.3));
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 1.6s ease 0.3s, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.final-reveal.ativa .final-feliz { opacity: 1; transform: none; }

.final-coracao {
  font-size: 2rem;
  color: var(--rose);
  filter: drop-shadow(0 0 18px rgba(224, 147, 168, 0.6));
  animation: batida 1.6s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1.4s ease 1.2s;
}

.final-reveal.ativa .final-coracao { opacity: 1; }

.final-assinatura {
  font-style: italic;
  font-size: clamp(1.25rem, 5.2vw, 1.6rem);
  color: var(--ink-dim);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s ease 1.9s, transform 1.4s ease 1.9s;
}

.final-assinatura strong {
  display: block;
  font-size: 1.35em;
  font-weight: 500;
  color: var(--ink);
}

.final-reveal.ativa .final-assinatura { opacity: 1; transform: none; }

.final-pe {
  margin-top: 2.5vh;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  line-height: 2.1;
  opacity: 0;
  transition: opacity 1.4s ease 2.7s;
}

.final-pe span {
  font-size: 0.85em;
  color: var(--ink-faint);
  letter-spacing: 0.26em;
}

.final-reveal.ativa .final-pe { opacity: 1; }

.reviver {
  margin-top: 4vh;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: none;
  border: 1px solid rgba(237, 231, 219, 0.25);
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1.4s ease 3.4s, border-color 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.final-reveal.ativa .reviver { opacity: 1; }
.reviver:active { color: var(--gold); border-color: var(--gold-soft); }

/* ============================================================
   ESTADOS DE REVELAÇÃO (controlados por GSAP)
   ============================================================ */

.reveal { opacity: 0; }
.reveal-foto { opacity: 0; }

/* fallback: sem JS, tudo visível */
.no-js .reveal, .no-js .reveal-foto { opacity: 1; }

/* ============================================================
   DESKTOP — refinamentos
   ============================================================ */

@media (min-width: 760px) {
  .cap { padding: 24vh 4vw; }
  .foto-solta { width: 22rem; }
  .foto-cena { max-width: 38rem; }
  .duo { gap: 2.5rem; }
  .cluster { height: 40rem; max-width: 40rem; }
  .mosaico { columns: 3; column-gap: 1.2rem; }
  .mosaico .foto { margin-bottom: 1.2rem; }
  .timeline::before { left: 50%; }
  .marco { padding: 0 0 12vh 0; width: 44%; }
  .marco:nth-child(odd)  { margin-left: 0; text-align: right; }
  .marco:nth-child(odd) .foto { margin-left: auto; }
  .marco:nth-child(even) { margin-left: 56%; }
  .marco::before { left: auto; }
  .marco:nth-child(odd)::before  { right: calc(-6% - 19px); }
  .marco:nth-child(even)::before { left: calc(-6% - 19px); }
  .marco-texto { display: inline-block; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .reveal, .reveal-foto { opacity: 1 !important; transform: none !important; }
}
