/* Animações v3: sourcing-story (Sourcing Completo) e journey (Casos). Só transform/opacity animados. */

/* ---------- Sourcing: "Da busca ao horizonte" ---------- */
.sf-static { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); max-width: 60ch; }
.sf__frame { display: none; }
.sf--js { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 300vh; }
.sf--js .sf-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sf--js .sf__frame { display: flex; flex-direction: column; position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
  overflow: hidden; background: var(--navy-deep); color: var(--cream); }
.sf__head { position: relative; z-index: 2; padding: 20px max(16px, calc(50vw - 566px)) 0; }
.sf-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--fs-small); }
.sf-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.sf-tab { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--celeste); opacity: .6; transition: opacity var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.sf-tab span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor;
  font: 500 11px/1 var(--font-sans); }
.sf-tab.is-done { opacity: .85; }
.sf-tab.is-on { opacity: 1; color: var(--amber-navy); }
.sf-caps { position: relative; height: 2.6em; margin-top: 10px; }
.sf-cap { position: absolute; inset: 0 auto auto 0; margin: 0; font: 400 clamp(20px, 2.2vw, 30px)/1.2 var(--font-serif); color: var(--cream);
  opacity: 0; transform: translateY(6px); transition: none; }
.sf-cap.is-on { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) .12s, transform .45s var(--ease-out) .12s; }
.sf__stage { position: relative; flex: 1; min-height: 0; }
.sf-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-desk { display: none; }
@media (min-width: 900px) { .sf-desk { display: inline; } }
/* o horizonte do site atual, agora de ponta a ponta */
.sf-horizon { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 16px; pointer-events: none;
  background: radial-gradient(120% 38% at 50% 64%, rgba(188,214,238,.45), transparent 60%),
    linear-gradient(180deg, #070d15 0%, #0c1726 28%, #132941 40%, #1e4266 52%, #4f7fae 58%, #bcd6ee 60.8%, #eef5fb 61.6%, #6a9bcc 63.2%, #1a3552 70%, #0a1320 84%, #070d15 100%); }
.sf-horizon::after { content: ""; position: absolute; inset: 0; background: var(--grain); mix-blend-mode: overlay; opacity: .45; }
.sf-horizon__glow { position: absolute; left: 50%; top: 61%; width: 80%; height: 18%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(219,236,250,.55), transparent); }
.sf-horizon__t { position: relative; z-index: 1; margin: 0 auto; font: 400 clamp(36px, 5.4vw, 84px)/1.04 var(--font-serif); letter-spacing: -.025em;
  color: var(--cream); text-shadow: 0 0 42px rgba(188,214,238,.35), 0 2px 20px rgba(0,0,0,.45); max-width: 16ch; }
.sf-horizon__s { position: relative; z-index: 1; margin: 0 auto; font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase;
  color: #e6eef6; text-shadow: 0 1px 10px rgba(7,13,21,.9); }
@media (max-width: 899px) { .sf--js { height: 280vh; } .sf-caps { height: 3.4em; } }

/* ---------- Casos: "Da ideia ao sucesso" ---------- */
.cj__frame { position: relative; }
.cj__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); position: relative; z-index: 1; }
.cj-item { position: relative; padding-left: 64px; min-height: 52px; }
.cj-ico { position: absolute; left: 0; top: 0; color: var(--muted); }
.cj-item--or .cj-ico { color: var(--amber-deep); }
.cj-dot { display: none; }
.cj-n { margin: 0; font: 500 12px/1 var(--font-sans); letter-spacing: .08em; color: var(--muted); }
.cj-t { margin: 4px 0 2px; font-size: 18px; }
.cj-l { margin: 0; color: var(--muted); font-size: var(--fs-small); max-width: 28ch; }
.cj__track { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; }
.cj__line { position: absolute; left: 0; width: 2px; }
.cj__line--a { top: 0; height: 37.5%; background: var(--slate, #8aa4bf); }
.cj__line--b { top: 37.5%; bottom: 0; background: var(--amber-cream); }
.cj-ico { background: var(--cream); }
@media (min-width: 900px) {
  .cj--js { height: 240vh; }
  .cj--js .cj__frame { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .cj--js .cj__list { width: 100%; }
  .cj__list { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0 12px; }
  .cj-item { padding-left: 0; padding-top: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .cj-ico { position: static; margin-bottom: 18px; }
  .cj-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--cream); border: 2px solid var(--muted);
    position: absolute; top: 59px; left: calc(50% - 5px); }
  .cj-item--or .cj-dot { border-color: var(--amber-cream); }
  .cj-n { margin-top: 14px; }
  .cj-l { max-width: 18ch; }
  .cj__track { left: 5.55%; right: 5.55%; top: 63px; bottom: auto; width: auto; height: 2px; }
  .cj__line { top: 0; height: 2px; }
  .cj__line--a { left: 0; width: 37.5%; }
  .cj__line--b { left: 37.5%; right: 0; width: auto; top: 0; bottom: auto; }
}

.sf-tab:hover { opacity: 1; }
.sf-tab:focus-visible, .sf-next:focus-visible { outline: 2px solid var(--amber-navy); outline-offset: 3px; border-radius: 6px; }
.sf-next { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(250,249,245,.5); background: none; color: var(--cream); font: 500 14px/1 var(--font-sans); cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.sf-next:hover { background: var(--cream); color: var(--navy-deep); }
.sf-next[disabled] { opacity: .35; cursor: default; background: none; color: var(--cream); }

/* ---------- Casos v2: "Da ideia ao sucesso" (cena de criação, tons claros) ---------- */
.cx-static { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); max-width: 60ch; }
.cx__frame { display: none; }
.cx--js { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 460vh; }
.cx--js .cx-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cx--js .cx__frame { display: flex; flex-direction: column; position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
  overflow: hidden; background: radial-gradient(90% 70% at 50% 55%, #fbfaf6 0%, var(--paper) 70%); color: var(--ink); }
.cx__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap;
  padding: 22px max(16px, calc(50vw - 566px)) 0; }
.cx-caps { position: relative; min-height: 104px; flex: 1 1 320px; }
.cx-cap { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(8px); transition: none; }
.cx-cap.is-on { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) .12s, transform .45s var(--ease-out) .12s; }
.cx-k { margin: 0; font: 500 12px/1 var(--font-sans); letter-spacing: .14em; color: var(--amber-deep); }
.cx-t { margin: 8px 0 4px; font: 400 clamp(26px, 3vw, 40px)/1.1 var(--font-serif); letter-spacing: -.015em; }
.cx-l { margin: 0; color: var(--muted); max-width: 44ch; }
.cx-nav { display: flex; align-items: center; gap: 18px; }
.cx-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.cx-dot { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.cx-dot span { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.cx-dot.is-done span { background: var(--muted); }
.cx-dot.is-on span { background: var(--amber-cream); border-color: var(--amber-cream); transform: scale(1.4); }
.cx-dot:focus-visible, .cx-next:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.cx-next { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--navy); background: none; color: var(--navy); font: 500 14px/1 var(--font-sans); cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.cx-next:hover { background: var(--navy); color: var(--cream); }
.cx-next[disabled] { opacity: .35; cursor: default; background: none; color: var(--navy); }
.cx__stage { position: relative; flex: 1; min-height: 0; }
.cx-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 899px) { .cx--js { height: 420vh; } .cx-caps { min-height: 118px; } .cx-dot { width: 22px; } }

/* ---------- Sourcing: final (linha de luz que vira horizonte) ---------- */
.sf-hline { position: absolute; left: 0; right: 0; top: calc(61.2% - 1px); height: 2px; z-index: 4; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(238,245,251,0) 0%, #eef5fb 18%, #fff 50%, #eef5fb 82%, rgba(238,245,251,0) 100%);
  box-shadow: 0 0 22px 5px rgba(188,214,238,.55); }

/* frases do horizonte: nascem da linha (para cima e para baixo), recortadas na própria linha */
.sf-hz-up, .sf-hz-down { position: absolute; left: 0; right: 0; z-index: 5; overflow: hidden; text-align: center; pointer-events: none; padding: 0 16px; }
.sf-hz-up { bottom: 38.8%; padding-bottom: 56px; }
.sf-hz-down { top: 61.2%; padding-top: 34px; }
.sf-hz-up p, .sf-hz-down p { visibility: hidden; }
.sf--open .sf-hz-up p, .sf--open .sf-hz-down p { visibility: visible; }
.sf-btns, .cx-btns { display: flex; gap: 8px; }
.sf-prev { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(250,249,245,.3); background: none; color: var(--cream); font: 500 14px/1 var(--font-sans); cursor: pointer; }
.sf-prev:hover { border-color: var(--cream); }
.sf-prev[disabled] { opacity: .3; cursor: default; }
.sf-prev:focus-visible { outline: 2px solid var(--amber-navy); outline-offset: 3px; }
.cx-prev { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(30,66,102,.35); background: none; color: var(--navy); font: 500 14px/1 var(--font-sans); cursor: pointer; }
.cx-prev:hover { border-color: var(--navy); }
.cx-prev[disabled] { opacity: .3; cursor: default; }
.cx-prev:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
