/* Protótipo Dom R (23/11/2026): a abertura vira uma cena de filme com a rolagem (da fachada até dentro da barbearia).
   Só vale com a classe .cinema no <html> (posta pelo cinema.js); sem ela, ou com "reduzir movimento", a abertura fica
   parada no primeiro quadro. O resto da página não tem efeito. */

.cena { position: relative; }
.cena-palco { position: relative; }
.cena-camada { position: absolute; inset: 0; }
.cinema .cena-palco { position: sticky; top: var(--topo-h, 0px); height: calc(100vh - var(--topo-h, 0px)); height: calc(100svh - var(--topo-h, 0px)); overflow: hidden; }
.cinema [data-quadros] { will-change: transform, opacity; }
.cinema .cena-palco::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; z-index: 8; background: var(--grad-ouro); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: .75; pointer-events: none; }

/* ---------- a chegada ---------- */
.cinema .cena-chegada { height: 380vh; }
.hero.cena-chegada { overflow: visible; padding: 0; background: #0e0e0f; }
.cena-chegada .cena-palco { display: flex; align-items: center; min-height: 92vh; }
.cena-fachada { transform-origin: 66% 76%; overflow: hidden; }
.cena-fachada img, .cena-dentro img { width: 100%; height: 100%; object-fit: cover; }
.cena-fachada img { object-position: 66% 76%; }
.cena-noite { background: linear-gradient(180deg, rgba(14,14,15,.6) 0%, rgba(14,14,15,0) 18%, rgba(14,14,15,0) 70%, rgba(14,14,15,.7) 100%); }
.cena-sombra { background: linear-gradient(90deg, rgba(14,14,15,.95) 0%, rgba(14,14,15,.85) 26%, rgba(14,14,15,.5) 44%, rgba(14,14,15,.08) 64%, rgba(14,14,15,0) 80%); }
.cena-luz { transform-origin: 66% 76%; mix-blend-mode: screen; background: radial-gradient(circle at 66% 76%, rgba(255,230,180,.95) 0, rgba(240,205,140,.75) 7%, rgba(201,162,95,.3) 20%, rgba(201,162,95,0) 40%); }
.cena-dentro img { object-position: 50% 58%; }
.cena-sombra-dentro { background: radial-gradient(ellipse at 50% 55%, rgba(14,14,15,.1), rgba(14,14,15,.8) 78%), linear-gradient(180deg, rgba(14,14,15,.3), rgba(14,14,15,0) 30%, rgba(14,14,15,.55)); }
.cena-hero { position: relative; z-index: 3; }
.cena-hero .hero-texto { max-width: 620px; }
.cena-chegada h1 { text-shadow: 0 2px 26px rgba(0,0,0,.7), 0 0 40px rgba(201,162,95,.18); }
.cena-chegada .hero-sub { color: var(--marfim); text-shadow: 0 1px 18px rgba(0,0,0,.8); }
.cena-chegada .aberto { background: rgba(14,14,15,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cena-selo { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1160px) / 2)); bottom: 11vh; }
.cena-selo .selo-redondo { position: relative; left: auto; bottom: auto; }
.cena-legenda { position: absolute; left: 0; right: 0; bottom: 15vh; z-index: 4; margin: 0; text-align: center; font: 700 clamp(13px, 1.15vw, 16px)/1.4 var(--marca); letter-spacing: .34em; text-transform: uppercase; color: var(--ouro-claro); text-shadow: 0 2px 18px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.8); }
.cena-legenda span { color: var(--ouro); margin: 0 .9em; }
.cena-frase { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 24px; pointer-events: none; }
.cena-frase .sobretitulo { margin-bottom: 14px; }
.cena-frase h2 { font-size: clamp(38px, 6.2vw, 88px); line-height: 1.04; margin: 0; text-shadow: 0 4px 40px rgba(0,0,0,.65); }
.cena-frase .ouro { display: inline-block; background: var(--grad-ouro); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 26px rgba(201,162,95,.45)); }
.cena-dica { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 4; margin: 0 auto; width: max-content; display: grid; justify-items: center; gap: 10px; font: 700 11.5px/1 var(--marca); letter-spacing: .3em; text-transform: uppercase; color: var(--suave); }
.cena-dica i { position: relative; width: 22px; height: 36px; border: 1.5px solid rgba(231,201,141,.6); border-radius: 12px; }
.cena-dica i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ouro-claro); animation: dica-rolar 1.6s ease-in-out infinite; }
@keyframes dica-rolar { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- sem animação: primeiro quadro ---------- */
html:not(.cinema) .cena-dentro, html:not(.cinema) .cena-luz, html:not(.cinema) .cena-frase, html:not(.cinema) .cena-legenda,
html:not(.cinema) .cena-dica, html:not(.cinema) .cena-sombra-dentro { display: none; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .cinema .cena-chegada { height: 340vh; }
  .cena-chegada .cena-palco { align-items: flex-end; padding-bottom: 40px; }
  /* no celular a fachada ocupa o alto da tela e o zoom mira a porta nessa área */
  .cena-fachada, .cena-luz { transform-origin: 66% 46%; }
  .cena-fachada img { height: 62%; }
  .cena-luz { background: radial-gradient(circle at 66% 46%, rgba(255,230,180,.95) 0, rgba(240,205,140,.75) 7%, rgba(201,162,95,.3) 20%, rgba(201,162,95,0) 40%); }
  .cena-noite { background: linear-gradient(180deg, rgba(14,14,15,.55) 0%, rgba(14,14,15,0) 14%, rgba(14,14,15,0) 44%, rgba(14,14,15,.85) 62%, #0e0e0f 70%); }
  .cena-sombra { background: none; }
  .cinema .cena-hero .hero-sub { display: none; }
  .cena-hero .hero-botoes { margin: 18px 0 14px; gap: 10px; }
  .cena-hero .hero-botoes .botao { min-height: 50px; }
  .cena-hero .nota-google { padding-top: 12px; }
  .cena-hero h1 { margin-bottom: 0; }
  .cena-selo { display: none; }
  .cena-legenda { bottom: auto; top: 22vh; letter-spacing: .2em; }
  .cena-legenda span { display: block; height: 0; overflow: hidden; }
  .cena-dica { display: none; }
}
