/* juice.css — motion compartilhado do portfólio (home + cases).
   Tudo aqui some com prefers-reduced-motion: reduce. */

/* ── Transição suave entre páginas (View Transitions, sem JS; navegadores sem suporte ignoram) ── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: juice-vt-out .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: juice-vt-in .42s cubic-bezier(.16,1,.3,1) both; }
@keyframes juice-vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes juice-vt-in  { from { opacity: 0; transform: translateY(14px); } }

/* ── Barra de progresso de leitura nos cases (scroll-driven, sem JS) ── */
.juice-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 9999; pointer-events: none;
  background: var(--juice-accent, #0A0A0A); transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .juice-progress { animation: juice-progress linear both; animation-timeline: scroll(root); }
}
@keyframes juice-progress { to { transform: scaleX(1); } }


/* ── Botões magnéticos: usa a propriedade `translate`, que soma com o `transform` do hover ── */
.juice-magnetic { transition: translate .35s cubic-bezier(.2,.9,.3,1.2); }
.juice-magnetic.is-near { transition: translate .12s linear; }

/* ── Números contando ── */
.juice-count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .juice-progress { display: none; }
  .juice-magnetic { translate: none !important; }
}


/* ── Vídeo do produto no topo do case ── */
.juice-reel { padding: 4rem 4rem 4.5rem; background: linear-gradient(180deg,#FAFAFB 0%,#F3F4F7 100%); border-bottom: 1px solid rgba(0,0,0,0.07); }
.juice-reel-head { max-width: 1200px; margin: 0 auto 1.75rem; }
.juice-reel-eyebrow { font-family: 'Manrope', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #A1A1AA; }
.juice-reel-title { font-family: 'Manrope', sans-serif; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; color: #0A0A0A; margin-top: 0.5rem; }
.juice-reel-video { display: block; width: 100%; max-width: 1200px; margin: 0 auto; aspect-ratio: 16 / 10; border-radius: 20px; background: #F3F4F7; box-shadow: 0 30px 80px -30px rgba(10,20,60,.28), 0 0 0 1px rgba(0,0,0,.05); }
@media (max-width: 1023px) { .juice-reel { padding: 3rem 2.5rem 3.5rem; } }
@media (max-width: 767px)  { .juice-reel { padding: 2.25rem 1rem 2.5rem; } .juice-reel-video { border-radius: 14px; } }

/* ── Prévia em vídeo no hover dos cards da home ── */
.juice-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; pointer-events: none; z-index: 2; background: #F3F4F7; }
.juice-preview.is-on { opacity: 1; }

/* ── Vídeos curtos dentro das seções do case ── */
.juice-clip { display: block; width: 100%; aspect-ratio: 16 / 10; margin-top: 2rem; border-radius: 1rem; background: #F6F7F9; border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 18px 50px -24px rgba(10,20,60,.22); }
.case-section-dark .juice-clip, .case-section-blue .juice-clip { border-color: rgba(255,255,255,0.08); box-shadow: 0 24px 70px -20px rgba(0,0,0,.5); }
