/* Movimento de entrada e feedback de interação. Ativado apenas pelo controlador JS. */
main { overflow-x: clip; }
/* Movimento visível de títulos, cenários e elementos visuais. */
.hero-seal { translate:0 var(--scroll-drift,0px); }
.motion-enabled .motion-in-view.hero-stage::before,
.motion-enabled .motion-in-view.page-hero::after { animation:fust-scene-drift 14s ease-in-out infinite alternate; }
.motion-enabled .motion-in-view.media-slot::before { animation:fust-frame-drift 6s ease-in-out infinite alternate; }
.motion-enabled .motion-in-view.media-slot svg { animation:fust-icon-float 4s ease-in-out infinite; }
.motion-enabled .motion-in-view.cta::before { animation:fust-frame-drift 8s ease-in-out infinite alternate; }
.motion-enabled main .media-slot>span { translate:0 var(--scroll-drift,0px); }
.motion-enabled main .media-slot img { transform:scale(1.08) translateY(var(--scroll-drift,0px)); }
.motion-toggle,.page-hero .motion-toggle { position:fixed; inset:auto 22px 84px auto; z-index:90; margin:0; background:#081525ed; color:#fff; border-color:#c4a56890; box-shadow:0 8px 25px #0003; min-height:42px; backdrop-filter:blur(10px); }
.motion-toggle:hover { background:#18364c; }
.motion-suspended .motion-in-view::before,.motion-suspended .motion-in-view::after,.motion-suspended .motion-in-view svg { animation-play-state:paused!important; }
.motion-disabled .hero-seal,.motion-disabled main .media-slot>span { translate:none; }
@keyframes fust-scene-drift { from { transform:translateX(-15px) scale(1.03); } to { transform:translateX(15px) scale(1.09); } }
@keyframes fust-frame-drift { from { transform:translateY(8px) rotate(-5deg) scale(.96); } to { transform:translateY(-8px) rotate(6deg) scale(1.07); } }
@keyframes fust-icon-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
.motion-enabled [data-entrance]:not(.entrance-visible) { opacity: 0; }
.motion-enabled [data-entrance]:focus-within { opacity: 1; }
.entrance-running { will-change: transform, opacity; }
.hero-copy,.hero-visual,.page-hero h1 { animation: none!important; }
.motion-toggle { display: inline-flex!important; min-height: 36px; padding: 8px 10px; border: 1px solid #e3b69140; border-radius: 5px; gap: 9px; font-size: .67rem; color: #ecd3c1; background: #ffffff06; }
.motion-toggle:hover { background: #ffffff12; border-color: #e3b69180; }
.page-hero .motion-toggle { position: static; margin-top: 25px; }
.motion-available .orbital-sphere { animation: fust-orbit 16s ease-in-out infinite alternate!important; }
.motion-available .orbital-path { animation: fust-path 12s ease-in-out infinite alternate!important; }
.motion-available .orbital-halo { animation: fust-glow 6s ease-in-out infinite alternate!important; }
.motion-disabled .ambient-motion { animation-play-state: paused!important; }
.motion-suspended .ambient-motion,.ambient-offscreen .ambient-motion { animation-play-state: paused!important; }
.motion-disabled .orbital-art { translate: none!important; }
.motion-disabled .btn,.motion-disabled .course-card,.motion-disabled .principle,.motion-disabled .text-link::after { transform: none!important; }
@keyframes fust-orbit { from { transform: rotate(-18deg) translateY(-4px); } to { transform: rotate(4deg) translateY(8px); } }
@keyframes fust-path { from { transform: rotate(-32deg) scale(1); } to { transform: rotate(-13deg) scale(1.04); } }
@keyframes fust-glow { from { opacity: .55; transform: scale(.85); } to { opacity: 1; transform: scale(1.1); } }
@media(hover:hover) and (pointer:fine) {
  .motion-enabled .course-card { transition: transform .4s var(--ease), box-shadow .4s, border-color .3s!important; }
  .motion-enabled .course-card:hover { transform: perspective(950px) translateY(-9px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); }
  .motion-enabled .course-card::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: radial-gradient(280px circle at var(--glow-x,50%) var(--glow-y,30%),#f8d1a71c,transparent 70%); pointer-events: none; opacity: 0; transition: opacity .3s!important; }
  .motion-enabled .course-card:hover::before { opacity: 1; }
  .motion-enabled .btn { overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), background .25s, box-shadow .3s!important; }
  .motion-enabled .btn::before { content: ''; position: absolute; inset: -30% -100%; z-index: -1; background: linear-gradient(110deg,transparent 40%,#ffffff35 50%,transparent 60%); transform: translateX(-60%); pointer-events: none; }
  .motion-enabled .btn:not(:disabled):hover::before { animation: fust-button-shine .7s ease-out both!important; }
  .motion-enabled .btn:not(:disabled):hover { transform: translateY(-4px); }
  .motion-enabled .btn:not(:disabled):active { transform: translateY(-1px) scale(.98); }
  .motion-enabled .text-link::after { transition: transform .35s var(--ease)!important; }
  .motion-enabled .text-link:hover::after { transform: translate(5px,-5px); }
  .motion-enabled .principle { transition: transform .4s var(--ease), background .3s!important; }
  .motion-enabled .principle:hover { transform: translateY(-7px); }
  @keyframes fust-button-shine { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
}
@media(max-width:560px) {
  .motion-toggle { font-size: .61rem; bottom: 84px; right: 16px; }
  .hero { padding-bottom: 76px; }
}
@media print {
  [data-entrance] { opacity: 1!important; transform: none!important; }
  .motion-toggle { display: none!important; }
}
/* No modo reduzido, o JavaScript mantém apenas a transição de opacidade. */
.motion-gentle .ambient-motion,.motion-gentle .hero-seal,
.motion-gentle .motion-in-view::before,.motion-gentle .motion-in-view::after,
.motion-gentle .motion-in-view svg { animation-play-state:paused!important; }
.motion-gentle .orbital-art,.motion-gentle .hero-seal,
.motion-gentle main .media-slot>span { translate:none!important; }
.motion-gentle .btn,.motion-gentle .course-card,.motion-gentle .principle,
.motion-gentle .text-link::after { transform:none!important; transition:none!important; }
.motion-gentle .btn::before { animation:none!important; }
