/* Identidade prado FILMES: Preto Set, Creme 35mm, Vinho, Musgo + terracota do Claudinho */
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url(../fonts/InterTight-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 800; font-display: swap; src: url(../fonts/InterTight-800.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; src: url(../fonts/InstrumentSerif-400-italic.woff2) format('woff2'); }

:root { --preto: #121212; --creme: #F1ECDF; --vinho: #4A1F1F; --musgo: #26301F; --terracota: #d97757; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--preto); color: var(--creme); font: 500 17px/1.45 'Inter Tight', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.marca { font-weight: 500; font-size: 26px; letter-spacing: -0.045em; line-height: 1; }
.marca sup { font-size: .16em; letter-spacing: .06em; margin-left: .25em; vertical-align: 1.9em; }
.marca--grande { font-size: clamp(90px, 26vw, 300px); margin: 0; }

.nav { position: fixed; inset: 12px 12px auto; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(18, 18, 18, .72); backdrop-filter: blur(14px); border: 1px solid rgba(241, 236, 223, .1); }
.nav__cta { padding: 9px 16px; border-radius: 11px; background: rgba(241, 236, 223, .1); font-weight: 800; font-size: 14px; }
.nav__cta:hover { background: rgba(241, 236, 223, .18); }

/* Trecho longo: o palco fica preso na tela e a rolagem troca as cenas */
.historia { height: 500vh; height: 500svh; }
.palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
  background: radial-gradient(60% 45% at 50% 62%, rgba(74, 31, 31, .85), transparent 70%),
              radial-gradient(90% 60% at 50% 110%, rgba(38, 48, 31, .9), transparent 70%), var(--preto); }
.palco__3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.cena { position: absolute; inset: 88px 20px 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: translateY(28px); transition: opacity .45s, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.cena.on { opacity: 1; transform: none; }
.cena.on > * { pointer-events: auto; }
.cena:not([data-cena="0"]) > :last-child:not(h1, h2) { margin-top: auto; margin-bottom: 118px; }

h1, h2 { margin: 0; font-weight: 800; font-size: clamp(42px, 10.5vw, 88px); line-height: .95; letter-spacing: -0.045em; max-width: 11ch; text-wrap: balance; }
h1 em, h2 em { font: italic 400 1.08em/0.9 'Instrument Serif', serif; letter-spacing: -0.02em; color: var(--terracota); }
.olho { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terracota); }
.sub { margin: 16px 0 0; max-width: 30ch; color: rgba(241, 236, 223, .72); text-wrap: balance; }

.chat, .render { width: min(100%, 460px); padding: 14px 16px; border-radius: 18px; text-align: left;
  background: rgba(18, 18, 18, .8); border: 1px solid rgba(241, 236, 223, .14); backdrop-filter: blur(10px); }
.chat__rotulo, .render__rotulo { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(241, 236, 223, .5); margin-bottom: 6px; }
.chat__texto { font-weight: 800; }
.chat__texto::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--terracota); animation: pisca 1s steps(2) infinite; }

.figurinos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.figurinos button { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; cursor: pointer;
  font: 800 14px 'Inter Tight', sans-serif; color: var(--creme); background: rgba(18, 18, 18, .8); border: 1px solid rgba(241, 236, 223, .14);
  transition: transform .15s, background .2s, color .2s; }
.figurinos button:hover { transform: translateY(-2px); }
.figurinos button[aria-pressed=true] { background: var(--creme); color: var(--preto); }
.figurinos i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(241, 236, 223, .35); }
.c-musgo { background: #4f6a3c; } .c-preto { background: #1b1b1d; } .c-vinho { background: #7a2e2e; } .c-tee { background: #2a2a2e; } .c-creme { background: #F1ECDF; }

.render__barra { display: block; height: 8px; border-radius: 99px; background: rgba(241, 236, 223, .14); overflow: hidden; }
.render__barra b { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--terracota); }
.render__ok { display: block; margin-top: 8px; font-weight: 800; opacity: 0; }
.cena.on .render__barra b { animation: enche 2.2s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.cena.on .render__ok { animation: aparece .4s 2.5s forwards; }
.cena[data-cena="4"] .sub { margin-top: 12px; }
.cena[data-cena="4"] .render { margin-top: auto; }
.cena[data-cena="4"] > :last-child { margin-top: 12px; }

.botao { position: absolute; left: 50%; bottom: 44px; translate: -50% 0; width: min(calc(100% - 40px), 420px); padding: 17px 20px; border-radius: 16px; text-align: center;
  font-weight: 800; color: var(--preto); background: var(--terracota); box-shadow: 0 5px 0 #a4502f, 0 18px 40px rgba(217, 119, 87, .3);
  transition: transform .12s, box-shadow .12s; }
.botao:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #a4502f, 0 22px 44px rgba(217, 119, 87, .38); }
.botao:active { transform: translateY(4px); box-shadow: 0 1px 0 #a4502f; }
.dica { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(241, 236, 223, .5); animation: quica 1.8s ease-in-out infinite; }
:focus-visible { outline: 2px solid var(--creme); outline-offset: 3px; }

.fim { padding: 12vh 20px 6vh; text-align: center; overflow: hidden; }

@keyframes pisca { 50% { opacity: 0; } }
@keyframes enche { to { width: 100%; } }
@keyframes aparece { to { opacity: 1; } }
@keyframes quica { 50% { transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cena { transition: opacity .2s; transform: none; }
  .dica, .chat__texto::after { animation: none; }
  .cena.on .render__barra b { animation: none; width: 100%; }
  .cena.on .render__ok { animation: none; opacity: 1; }
}

.c-v0 { background: #2F5BEA; } .c-v1 { background: #E63946; } .c-v2 { background: #7B2FF7; } .c-v3 { background: #FFC300; } .c-v4 { background: #1FAA59; } .c-v5 { background: #121212; outline: 1px solid #444; }
