/* =========================================================================
   Sequências cinematográficas (abertura, transições, encerramento)
   ========================================================================= */
#cinema { position: absolute; inset: 0; z-index: 20; display: none; background: #070303; overflow: hidden; }
#cinema.on { display: block; }
#cinema.paused, #cinema.paused * { animation-play-state: paused !important; }
#cinema .shot { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s var(--ease-io); overflow: hidden; }
#cinema .shot.on { opacity: 1; }
#cinema .shot.fast { transition-duration: .7s; }
#cinema .shot.slow { transition-duration: 2.2s; }
#cinema svg.full { position: absolute; inset: 0; width: 100%; height: 100%; }
#cinema .bars::before, #cinema .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 70px; background: #000; z-index: 30; }
#cinema .bars::before { top: 0; } #cinema .bars::after { bottom: 0; }
#cinema .vignette { position: absolute; inset: 0; z-index: 25; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.7) 100%); }
#cinema .warm { position: absolute; inset: 0; z-index: 24; pointer-events: none; background: radial-gradient(60% 60% at 50% 40%, rgba(255,180,100,.12), transparent 70%); mix-blend-mode: screen; }
#cinema canvas.flour { z-index: 26; }
#cinema .fade-black { position: absolute; inset: 0; z-index: 40; background: #000; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
#cinema .fade-black.on { opacity: 1; }
#cinema video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 50; background: #000; }

/* SVG: transformar em torno do próprio centro */
#cinema .tb { transform-box: fill-box; transform-origin: center; }

/* Câmera */
.c-push { animation: cPush 9s ease-out both; }
@keyframes cPush { from { transform: scale(1.0); } to { transform: scale(1.1); } }
.c-pull { animation: cPull 9s ease-out both; }
@keyframes cPull { from { transform: scale(1.14); } to { transform: scale(1.0); } }
.c-kb { animation: cKb 7s ease-out both; }
@keyframes cKb { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.04) translate(-1%, -1%); } }
.c-pan { animation: cPan 8s ease-in-out both; }
@keyframes cPan { from { transform: translateX(0); } to { transform: translateX(-680px); } }
.c-sweep { animation: cSweep 7s ease-in-out both; }
@keyframes cSweep { from { transform: translateX(-700px); opacity: .2; } 50% { opacity: .9; } to { transform: translateX(700px); opacity: .3; } }

/* Ingredientes / preparo */
.c-float { animation: cFloat 6s ease-in-out infinite alternate; }
@keyframes cFloat { to { transform: translateY(-14px) rotate(2deg); } }
.c-drop { animation: cDrop 1.1s cubic-bezier(.5,0,.75,0) both; }
@keyframes cDrop { 0% { transform: translateY(-620px); } 82% { transform: translateY(0) scale(1.08,.9); } 100% { transform: translateY(0) scale(1); } }
.c-puff { animation: cPuff 1.6s ease-out both; }
@keyframes cPuff { from { transform: scale(.2); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.c-squash { animation: cSquash 1.3s ease-in-out infinite; }
@keyframes cSquash { 0%,100% { transform: scale(1,1); } 45% { transform: scale(1.18,.82); } 70% { transform: scale(.96,1.05); } }
.c-sheet { animation: cSheet 4.6s ease-in-out both; }
@keyframes cSheet { from { transform: scale(.45,.75); } to { transform: scale(1,1); } }
.c-roll { animation: cRoll 1.5s ease-in-out infinite alternate; }
@keyframes cRoll { from { transform: translateY(-210px); } to { transform: translateY(210px); } }
.c-cut { stroke-dasharray: 760; stroke-dashoffset: 760; animation: cCut .7s ease-out forwards; }
@keyframes cCut { to { stroke-dashoffset: 0; } }
.c-knife { animation: cKnife 3.2s linear both; }
@keyframes cKnife { from { transform: translateX(-620px); } to { transform: translateX(640px); } }
.c-spin { animation: cSpin 24s linear infinite; }
@keyframes cSpin { to { transform: rotate(360deg); } }
.c-steam { animation: cSteam 3.4s ease-in-out infinite; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes cSteam { 0% { transform: translateY(40px) scaleX(1); opacity: 0; } 30% { opacity: .5; } 100% { transform: translateY(-260px) scaleX(1.6); opacity: 0; } }
.c-leaf { animation: cLeaf 1.6s cubic-bezier(.3,.1,.4,1) both; }
@keyframes cLeaf { from { transform: translate(-80px,-560px) rotate(-120deg); opacity: 0; } 20% { opacity: 1; } to { transform: none; opacity: 1; } }
.c-nest .nd { stroke-dasharray: 0 100; animation: cNest 2.4s ease-out forwards; animation-delay: calc(var(--k) * 55ms); }
@keyframes cNest { to { stroke-dasharray: 72 100; } }
.slide:not(.is-active) .c-nest .nd { animation: none; }
.c-serve { animation: cServe 1.7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cServe { from { transform: translateY(760px); } to { transform: none; } }
.c-grow { animation: cGrow 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cGrow { from { transform: scale(0); } to { transform: scale(1); } }
.c-rise { animation: cRise 1.4s var(--ease) both; }
@keyframes cRise { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }
.c-fadein { animation: cFade 1.6s ease both; }
@keyframes cFade { from { opacity: 0; } to { opacity: 1; } }
.c-pop { animation: cPop .7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes cPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.c-slide-l { animation: cSlideL 1.2s var(--ease) both; }
@keyframes cSlideL { from { transform: translateX(260px); opacity: 0; } to { transform: none; opacity: 1; } }
.c-draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: cDraw 1.8s var(--ease) forwards; }
@keyframes cDraw { to { stroke-dashoffset: 0; } }

/* Cidade */
.c-par1 { animation: cPar 18s linear both; } .c-par2 { animation: cPar 11s linear both; } .c-par3 { animation: cPar 7s linear both; }
@keyframes cPar { from { transform: translateX(0); } to { transform: translateX(-520px); } }
.c-walk { animation: cWalk 7s linear both; }
@keyframes cWalk { from { transform: translateX(-200px); } to { transform: translateX(900px); } }
.c-leg { animation: cLeg .55s ease-in-out infinite alternate; transform-origin: top center; transform-box: fill-box; }
@keyframes cLeg { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
.c-leg.b { animation-direction: alternate-reverse; }
.c-win { animation: cWin 2.4s ease-in-out infinite alternate; }
@keyframes cWin { to { opacity: .35; } }

/* Logo */
.c-logo { animation: cLogo 2.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cLogo { from { opacity: 0; transform: scale(.82); filter: blur(18px) brightness(2); } 60% { filter: blur(0) brightness(1.15); } to { opacity: 1; transform: scale(1); filter: none; } }
.c-bloom { animation: cBloom 3.4s ease-out both; }
@keyframes cBloom { 0% { transform: scale(.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.4); opacity: .55; } }
.c-shine { animation: cShine 3s ease-in-out 1s both; }
@keyframes cShine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
