/* Motion · estilos das 4 animações. Só tokens; nada animado por CSS além de opacidade/cor curtas. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* hero-routes: camada atrás do texto; .hero__motion já cuida da opacidade no celular */
.hero-routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }

/* verify-seal */
.verify { margin: 0; max-width: 640px; }
.verify__cap { margin-top: var(--s-1); font-size: var(--fs-small); opacity: .75; }
.motion[data-motion="verify-seal"] svg { border-radius: 24px; }

/* china-eyes */
.china-eyes { max-width: 880px; }
.china-stops { list-style: none; counter-reset: stop; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: var(--s-2) 0 0; padding: 0; }
.china-stops li { counter-increment: stop; font: 500 var(--fs-small)/1.2 var(--font-sans); letter-spacing: .02em; }
.china-stops li::before { content: counter(stop) " "; color: var(--amber-deep); font-family: var(--font-serif); font-size: 1.15em; }
.china-msg { margin: var(--s-2) 0 0; font: 400 var(--fs-h3)/1.2 var(--font-serif); }
@media (max-width: 699px) { .motion[data-motion="china-eyes"] .c-city { display: none; } }

/* sourcing-funnel */
.funnel { max-width: var(--wrap); margin-inline: auto; }
.funnel__tabs { display: none; visibility: hidden; } /* reservado no desktop; visível só quando o JS liga a animação */
.funnel--anim .funnel__tabs { visibility: visible; }
.funnel__steps { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.funnel__step { font: 400 var(--fs-lead)/1.35 var(--font-serif); transition: opacity var(--dur-ui) var(--ease-out); }
.funnel__cap { margin: var(--s-2) 0 0; font-size: var(--fs-small); opacity: .75; }
.funnel--anim .funnel__step { opacity: .55; }
.funnel--anim .funnel__step.is-on { opacity: 1; }
@media (min-width: 900px) { .funnel--anim .funnel__step:not(.is-on) { opacity: 0; } }
/* desktop com JS e movimento: o estado final (etapas sobrepostas numa linha) já vale antes de o GSAP rodar, sem salto de altura */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .funnel__tabs { display: flex; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3); }
  .js .funnel__steps { grid-template-areas: "s"; gap: 0; margin-top: var(--s-2); min-height: 3.1em; align-content: start; }
  .js .funnel__step { grid-area: s; }
  .js .funnel__step:not(:first-child):not(.is-on) { opacity: 0; }
}
/* celular com JS: quadro fixo no topo enquanto as 5 etapas rolam (sem pin de ScrollTrigger) */
@media (max-width: 899px) {
  .funnel--anim .motion { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; }
  .funnel--anim .funnel__steps { gap: 40vh; padding-block: var(--s-4) 30vh; }
}
@media (min-width: 900px) {
  .funnel--anim .motion svg { max-height: calc(100vh - 300px); }
  .funnel--anim .funnel__tabs { display: flex; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3); }
  .funnel__tab { font: 500 var(--fs-small)/1 var(--font-sans); letter-spacing: .04em; opacity: .65; padding-bottom: 8px; border-bottom: 2px solid transparent; transition: opacity var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out); flex: 1; }
  .funnel__tab.is-on { opacity: 1; color: var(--amber-deep); border-bottom-color: var(--amber-cream); }
  .funnel--anim .funnel__steps { margin-top: var(--s-2); grid-template-areas: "s"; gap: 0; }
  .funnel--anim .funnel__step { grid-area: s; }
}
.on-dark .funnel__tab.is-on, .section--dark .funnel__tab.is-on { color: var(--amber-navy); border-bottom-color: var(--amber-navy); }
@media (prefers-reduced-motion: reduce) { .funnel__step, .funnel__tab { transition: none; } }
