/* Organny — revelação animada do logo (rodapé e 404)
   Sem JavaScript, ou com "reduzir movimento" ativado, o logo aparece pronto e parado. */

.orv { position: relative; user-select: none; -webkit-user-select: none; }
.orv-svg { display: block; width: 100%; height: auto; overflow: visible; }
.orv-ink { fill: #111214; }
.orv-flame { fill: #FF5B14; transform-box: fill-box; transform-origin: 50% 0%; }
.orv-rocket, .orv-craft, .orv-l { transform-box: fill-box; }
.orv-rocket { cursor: pointer; }
.orv-sheen { opacity: 0; }
.orv-sparks { position: absolute; left: -25%; top: -20%; width: 125%; height: 130%; pointer-events: none; }

/* Estado inicial: só quando o JS arma a animação */
.orv.is-armed .orv-craft { opacity: 0; transform: translate(-260px, 260px) scale(.9); }
.orv.is-armed .orv-flame { opacity: 0; transform: scale(.05); }
.orv.is-armed .orv-l { opacity: 0; transform: translateY(780px); }

/* Sequência (1,9 s) */
.orv.is-playing .orv-flame { animation: orv-ignite .62s cubic-bezier(.22,1,.36,1) both; }
.orv.is-playing .orv-craft { animation: orv-launch .78s .38s cubic-bezier(.19,1,.22,1) both; }
.orv.is-playing .orv-l { animation: orv-rise .52s cubic-bezier(.22,1,.36,1) both; }
.orv.is-playing .orv-l:nth-child(1) { animation-delay: .98s; }
.orv.is-playing .orv-l:nth-child(2) { animation-delay: 1.025s; }
.orv.is-playing .orv-l:nth-child(3) { animation-delay: 1.07s; }
.orv.is-playing .orv-l:nth-child(4) { animation-delay: 1.115s; }
.orv.is-playing .orv-l:nth-child(5) { animation-delay: 1.16s; }
.orv.is-playing .orv-l:nth-child(6) { animation-delay: 1.205s; }
.orv.is-playing .orv-l:nth-child(7) { animation-delay: 1.25s; }
.orv.is-playing .orv-sheen { animation: orv-sheen 1.05s 1.46s cubic-bezier(.22,1,.36,1) both; }

/* Depois da entrada: flutuação leve a 45° e chama pulsando */
.orv.is-idle .orv-rocket { animation: orv-float 2.4s ease-in-out infinite alternate; }
.orv.is-idle .orv-flame { animation: orv-pulse 1.35s ease-in-out infinite alternate; }
.orv.is-boost .orv-rocket { animation: orv-boost .56s cubic-bezier(.22,1,.36,1); }
.orv.is-boost .orv-flame { animation: orv-flare .52s cubic-bezier(.22,1,.36,1); }

@keyframes orv-ignite {
  0% { opacity: 0; transform: translate(-40px, 40px) scale(.05); }
  55% { opacity: 1; transform: translate(4px, -4px) scale(1.24); }
  80% { opacity: 1; transform: scale(.95); }
  100% { opacity: 1; transform: none; }
}
@keyframes orv-launch {
  0% { opacity: 0; transform: translate(-260px, 260px) scale(.9); }
  66% { opacity: 1; transform: translate(24px, -24px) scale(1.03); }
  85% { opacity: 1; transform: translate(-6px, 6px) scale(.995); }
  100% { opacity: 1; transform: none; }
}
@keyframes orv-rise {
  0% { opacity: 0; transform: translateY(780px); }
  72% { opacity: 1; transform: translateY(-36px); }
  100% { opacity: 1; transform: none; }
}
@keyframes orv-sheen {
  0% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(5600px); }
}
@keyframes orv-float { from { transform: none; } to { transform: translate(14px, -14px); } }
@keyframes orv-pulse { 0% { transform: none; } 50% { transform: scale(1.08); } 100% { transform: scale(.97); } }
@keyframes orv-boost {
  0% { transform: none; }
  32% { transform: translate(40px, -40px) scale(1.04); }
  72% { transform: translate(-6px, 6px) scale(.99); }
  100% { transform: none; }
}
@keyframes orv-flare { 0% { transform: none; } 25% { transform: scale(1.42); } 65% { transform: scale(.94); } 100% { transform: none; } }

/* Rodapé: logo grande inteiro, com respiro até o fim da página */
.wordmark.orv { display: block; margin: 8px 0 0; padding-bottom: clamp(32px, 4vw, 64px); }

/* 404: logo centralizado acima do título */
.orv--404 { width: min(560px, 100%); margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) {
  .orv.is-armed .orv-craft, .orv.is-armed .orv-flame, .orv.is-armed .orv-l { opacity: 1; transform: none; }
  .orv *, .orv.is-idle .orv-rocket, .orv.is-idle .orv-flame { animation: none !important; }
  .orv-sparks { display: none; }
}
