/* Animações de rolagem (text-reveal, painel que expande com parallax, faixa de CTA, botões magnéticos).
   Sem biblioteca: o JS só escreve variáveis CSS (--p, --x) e classes. Com "reduzir movimento", tudo fica parado e legível. */
:root { --navy: #102540; --orange: #f2832b; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 1. Frase que acende palavra por palavra */
.fx-reveal { background: var(--paper); padding: clamp(4rem, 12vw, 8rem) 0; }
.fx-reveal__kicker { font-family: 'IBM Plex Mono', monospace; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 1.25rem; }
.fx-reveal__text { font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 88%; font-size: clamp(1.75rem, 5.4vw, 3.75rem); line-height: 1.08; letter-spacing: -.015em; color: var(--ink); max-width: 22ch; margin: 0; }
.fx-reveal__text .w { color: #cfc6b8; transition: color .25s linear; }
.fx-reveal__text .w.on { color: var(--ink); }
.fx-reveal__text .w.on.hl { color: var(--red); }

/* 2. Painel que cresce até a tela cheia, com camadas em parallax e palavras correndo de lado */
.fx-expand { position: relative; height: 230vh; background: var(--paper); --p: 0; }
.fx-expand__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fx-expand__panel {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  width: calc(100% - (1 - var(--p)) * 2 * clamp(1rem, 9vw, 9rem));
  height: calc(100% - (1 - var(--p)) * 2 * clamp(4rem, 16vh, 11rem));
  border-radius: calc((1 - var(--p)) * 32px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.fx-layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.fx-layer span { position: absolute; font-family: 'Archivo', sans-serif; font-weight: 900; line-height: 1; }
.fx-layer--fundo { transform: translateY(calc((0.5 - var(--p)) * 30%)); }
.fx-layer--fundo span { color: rgba(255,255,255,.05); font-size: clamp(10rem, 40vw, 30rem); }
.fx-layer--meio { transform: translateY(calc((0.5 - var(--p)) * 70%)); }
.fx-layer--meio span { color: rgba(242,131,43,.18); font-size: clamp(4rem, 14vw, 10rem); }
@media (max-width: 575.98px) { .fx-layer--meio span:nth-child(2) { display: none; } }
.fx-layer--perto { transform: translateY(calc((0.5 - var(--p)) * 130%)); }
.fx-layer--perto span { width: 2px; height: 30vh; background: linear-gradient(transparent, rgba(255,255,255,.18), transparent); }
.fx-expand__kicker { position: relative; font-family: 'IBM Plex Mono', monospace; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 1rem; }
.fx-expand__title { position: relative; color: #fff; font-size: clamp(2.5rem, 9vw, 6.5rem); line-height: .95; font-stretch: 84%; margin: 0 1rem; transform: scale(calc(.86 + var(--p) * .14)); }
.fx-expand__title b { color: var(--orange); font-weight: inherit; }
.fx-expand__sub { position: relative; font-size: clamp(1rem, 2.4vw, 1.25rem); color: rgba(255,255,255,.78); margin: 1.25rem 1rem 0; max-width: 34ch; }
.fx-words { position: absolute; left: 0; bottom: clamp(1.25rem, 6vh, 3rem); white-space: nowrap; font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 80%; font-size: clamp(2.5rem, 10vw, 7rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transform: translateX(calc(var(--p) * -45%)); will-change: transform; }

/* 3. Faixa final de CTA com a frase correndo */
.fx-cta { background: var(--red); color: #fff; padding: clamp(3.5rem, 10vw, 6rem) 0; overflow: hidden; text-align: center; }
.fx-cta__track { display: flex; width: max-content; animation: fx-marquee 22s linear infinite; }
.fx-cta__track span { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 82%; font-size: clamp(2.5rem, 9vw, 6rem); line-height: 1.05; padding-right: .5em; white-space: nowrap; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }
.fx-cta__sub { margin: 1.25rem auto 1.75rem; color: rgba(255,255,255,.88); font-size: 1.0625rem; max-width: 36ch; padding: 0 1rem; }
.fx-cta__btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; padding: 0 1rem; }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s; }
.fx-btn--dark { background: var(--ink); color: #fff; }
.fx-btn--dark:hover, .fx-btn--dark:focus-visible { background: #000; color: #fff; }
.fx-btn--line { border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
.fx-btn--line:hover, .fx-btn--line:focus-visible { background: #fff; color: var(--red); }

/* 4. Botões magnéticos (o JS só liga em mouse de verdade) */
[data-magnetic] { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .15s, color .15s; }
[data-magnetic].is-near { transition: transform .12s linear, background-color .15s, color .15s; }

/* 5. Foto de cada pergunta do quiz: troca junto com a pergunta, entrando com um fade curto */
.quiz-foto { display: block; width: 100%; height: auto; aspect-ratio: 9 / 5; object-fit: cover; border-radius: 14px; margin: 0 0 1.25rem; background: var(--soft); }
.quiz-step.active .quiz-foto { animation: quiz-foto-in .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes quiz-foto-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .quiz-foto { aspect-ratio: 16 / 9; border-radius: 10px; margin-bottom: 1rem; } }

/* Sem JS ou com "reduzir movimento": tudo parado e legível */
.no-fx .fx-reveal__text .w { color: var(--ink); }
.no-fx .fx-expand { height: auto; }
.no-fx .fx-expand__sticky { position: static; height: auto; padding: 4rem 0; }
.no-fx .fx-expand__panel { --p: 1; min-height: 70vh; }
@media (prefers-reduced-motion: reduce) {
  .fx-reveal__text .w { color: var(--ink); transition: none; }
  .fx-expand { height: auto; }
  .fx-expand__sticky { position: static; height: auto; padding: 4rem 0; }
  .fx-expand__panel { --p: 1; min-height: 70vh; }
  .fx-cta__track { animation: none; }
  [data-magnetic] { transform: none; }
  .quiz-step.active .quiz-foto { animation: none; }
}
