/* BIFROST — movimento
   Regra: só transform e opacity; o conteúdo aparece sempre, mesmo sem JS. */

/* Entrada de elementos */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Títulos: palavras sobem por uma máscara */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-split] .wi {
  display: inline-block; transform: translateY(108%);
  transition: transform .9s var(--ease) calc(var(--i, 0) * 45ms);
}
.js [data-split].is-in .wi { transform: none; }

/* Contato: a faixa de luz flutua devagar */
.contact__ribbon { animation: ribbon-drift 14s ease-in-out infinite; }
@keyframes ribbon-drift {
  0%, 100% { transform: translateY(-50%) rotate(-6deg); }
  50% { transform: translateY(calc(-50% - 14px)) rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-split] .wi, .js .enter { opacity: 1; transform: none; transition: none; }
  .contact__ribbon { animation: none; }
  .contact__ribbon { transform: translateY(-50%) rotate(-6deg); }
  .island, .island__panel, .nav > *, .nav-toggle__icon i, .screen, .screen__in > *, .ui-chart i, .net-line, .btn, .btn__arrow, .link-arrow svg { transition-duration: .01ms; transition-delay: 0s !important; }
  .net-line { stroke-dashoffset: 0; }
}

/* ——— Modo simplificado (botão da ilha ou prefers-reduced-motion) ———
   Mesma estrutura, conteúdo e funções; sem pin, parallax, loops, 3D nem animações de rolagem.
   Tudo fica visível e parado; o JS deixa de escrever as variáveis de rolagem e tira as classes de pin. */
html.motion-simple { scroll-behavior: auto; }
.motion-simple [data-reveal], .motion-simple [data-split], .motion-simple [data-split] .wi, .motion-simple [data-hv],
.motion-simple .enter, .motion-simple .note, .motion-simple .pp-step, .motion-simple .pp-note, .motion-simple .wd {
  opacity: 1 !important; transform: none !important; transition: opacity .2s ease-out !important;
}
.motion-simple [data-parallax] { transform: none !important; }
.motion-simple .contact__ribbon { animation: none; transform: translateY(-50%) rotate(-6deg); }
.motion-simple .phone { transform: none; will-change: auto; }
.motion-simple .pp__beam { transform: translate3d(-50%, -46%, 0) rotate(-18deg); }
.motion-simple .pp__ghost { transform: none; }
.motion-simple .phone__sheen::before { transform: translate3d(-40%, 0, 0) skewX(-8deg); }
.motion-simple .hb-persp { perspective: none; }
.motion-simple .hb-slice, .motion-simple .hb-halo { display: none; }
.motion-simple .screen__in { transform: none; }
.motion-simple .ui-chart i { transform: none; transition: none; }
.motion-simple .net-line { stroke-dashoffset: 0; transition: none; }
.motion-simple .phone__screen:hover .screen.is-active { transform: none; }
.motion-simple .island, .motion-simple .island__panel, .motion-simple .nav > *, .motion-simple .nav-toggle__icon i,
.motion-simple .screen, .motion-simple .screen__in > *, .motion-simple .btn__arrow, .motion-simple .link-arrow svg { transition-duration: .15s !important; transition-delay: 0s !important; }

/* Aviso inicial de movimento: entra subindo um pouco e some rápido (só opacity e transform).
   Desaceleração na entrada, aceleração na saída; com movimento reduzido, só o fade. */
.motion-prompt { animation: mp-in .32s cubic-bezier(0, 0, .2, 1) both; }
.motion-prompt.is-leaving { animation: mp-out .18s cubic-bezier(.4, 0, 1, 1) both; pointer-events: none; }
@keyframes mp-in { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mp-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, 8px, 0); } }
@media (prefers-reduced-motion: reduce) {
  @keyframes mp-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mp-out { from { opacity: 1; } to { opacity: 0; } }
}
