/* Logo NuFervo animada — montada com as partes em assets/img/logo/.
   Posições em % da arte original (1450 × 923). Entrada de ~2,4 s e depois
   o coração pulsa e um brilho neon passa pelo "fervo" de tempos em tempos. */
.nf-logo { position: relative; width: 100%; aspect-ratio: 1450 / 923; }
.nf-logo > * { position: absolute; display: block; height: auto; }
.nf-logo img { pointer-events: none; user-select: none; }

.nf-arco { left: 20.828%; top: 27.086%; width: 43.448%; }
.nf-pino { left: 34.345%; top: 4.334%; width: 20.690%; }
.nf-coracao { left: 40.414%; top: 15.493%; width: 8.552%; }
.nf-canudo { left: 69.172%; top: 13.326%; width: 3.793%; }
.nf-taca { left: 56.828%; top: 18.310%; width: 18.345%; }
.nf-liquido { left: 61.310%; top: 24.377%; width: 9.862%; }
.nf-azeitona { left: 67.103%; top: 22.535%; width: 2.759%; }
.nf-nu { left: 2.759%; top: 57.638%; width: 32.621%; }
.nf-fervo, .nf-brilho { left: 34.483%; top: 51.788%; width: 62.759%; }
.nf-brilho { aspect-ratio: 910 / 392; }

/* ---------- Entrada ---------- */
@keyframes nfLogoCai { 0% { transform: translateY(-140%) scale(.9); opacity: 0; } 12% { opacity: 1; } 55% { transform: translateY(0) scale(1.06, .9); } 70% { transform: translateY(-9%) scale(.97, 1.04); } 85% { transform: translateY(0) scale(1.02, .98); } 100% { transform: none; opacity: 1; } }
@keyframes nfLogoPop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 80% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes nfLogoDesenha { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nfLogoTaca { 0% { transform: translateX(40%) rotate(18deg); opacity: 0; } 60% { transform: translateX(-3%) rotate(-8deg); opacity: 1; } 80% { transform: rotate(4deg); } 100% { transform: none; opacity: 1; } }
@keyframes nfLogoEnche { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nfLogoCanudo { from { transform: translate(40%, -60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nfLogoSobe { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nfLogoFervo { 0% { transform: scale(.4) rotate(-6deg); opacity: 0; } 60% { transform: scale(1.08) rotate(1deg); opacity: 1; } 80% { transform: scale(.97); } 100% { transform: none; opacity: 1; } }

/* ---------- Depois da entrada (fica vivo) ---------- */
@keyframes nfLogoBate { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(1.18); } 82% { transform: scale(.96); } 88% { transform: scale(1.1); } }
@keyframes nfLogoBrilho { 0%, 72% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes nfLogoNeon { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 79, 224, 0)); } 50% { filter: drop-shadow(0 0 14px rgba(255, 79, 224, .55)); } }

.nf-pino { animation: nfLogoCai .9s cubic-bezier(.3, .7, .4, 1) both; transform-origin: 50% 100%; }
.nf-coracao { animation: nfLogoPop .6s cubic-bezier(.3, .7, .4, 1) .7s both, nfLogoBate 3.2s ease-in-out 2.6s infinite; }
.nf-arco { animation: nfLogoDesenha .7s ease-out .55s both; }
.nf-taca { animation: nfLogoTaca .8s cubic-bezier(.3, .7, .4, 1) .9s both; transform-origin: 50% 100%; }
.nf-liquido { animation: nfLogoEnche .5s ease-out 1.45s both; }
.nf-canudo { animation: nfLogoCanudo .4s ease-out 1.7s both; }
.nf-azeitona { animation: nfLogoPop .45s cubic-bezier(.3, .7, .4, 1) 1.85s both; }
.nf-nu { animation: nfLogoSobe .5s ease-out 1.5s both; }
.nf-fervo { animation: nfLogoFervo .7s cubic-bezier(.3, .7, .4, 1) 1.75s both, nfLogoNeon 6s ease-in-out 3s infinite; }
/* Faixa de brilho que passa só por dentro das letras do "fervo" */
.nf-brilho {
  -webkit-mask: url(../img/logo/fervo.png) center / 100% 100% no-repeat;
          mask: url(../img/logo/fervo.png) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%) 130% 0 / 250% 100% no-repeat;
  animation: nfLogoBrilho 6s ease-in-out 2.2s infinite;
}

/* Já tocou uma vez nesta tela: pula a entrada e mantém só o movimento leve. */
.nf-logo.ja > * { animation-delay: 0s !important; }
.nf-logo.ja .nf-pino, .nf-logo.ja .nf-arco, .nf-logo.ja .nf-taca, .nf-logo.ja .nf-liquido,
.nf-logo.ja .nf-canudo, .nf-logo.ja .nf-azeitona, .nf-logo.ja .nf-nu { animation: none; }
.nf-logo.ja .nf-coracao { animation: nfLogoBate 3.2s ease-in-out infinite; }
.nf-logo.ja .nf-fervo { animation: nfLogoNeon 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .nf-logo > * { animation: none !important; clip-path: none !important; opacity: 1 !important; transform: none !important; }
  .nf-brilho { display: none; }
}
