/* Motion layer for the Skippa home page mockup. Only transform and opacity animate.
   Every rule is gated on a class that motion.js adds, so no script or reduced motion = the live page. */

/* 1. content fades up */
.m-reveal .rv { opacity: 0; transform: translate3d(0, 18px, 0); }
.m-reveal .rv.in {
  opacity: 1; transform: none;
  transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* 2. the verdict lands with weight */
.m-land .hero-card, .m-land .verdict-card { position: relative; isolation: isolate; }
.m-land .hero-card::before, .m-land .verdict-card::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: var(--radius);
  box-shadow: 0 0 90px 18px color-mix(in srgb, var(--halo, var(--verdict-ink-go)) 55%, transparent);
  opacity: 0; transform: scale(.88);
}
.m-land .hero-card::before { left: 0; top: 0; width: 100%; aspect-ratio: 768 / 830; }
.m-land .verdict-card::before { inset: 0; }
.m-land .verdict-card.caution { --halo: var(--verdict-ink-caution); }
.m-land .verdict-card.nogo { --halo: var(--verdict-ink-nogo); }

.m-land .hero-card img, .m-land .verdict-card { opacity: 0; transform: scale(.94); }
.m-land .hero-card figcaption, .m-land .verdict-card .chip { opacity: 0; transform: translate3d(0, 6px, 0); }

.m-land .hero-card.in img,
.m-land .verdict-card.in {
  animation: land 520ms cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.m-land .hero-card.in::before, .m-land .verdict-card.in::before {
  animation: bloom 900ms cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(var(--i, 0) * 80ms + 120ms);
}
.m-land .hero-card.in figcaption, .m-land .verdict-card.in .chip {
  animation: settle 500ms cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(var(--i, 0) * 80ms + 300ms);
}
@keyframes land   { from { opacity: 0; transform: scale(.94); } 60% { opacity: 1; transform: scale(1.012); } to { opacity: 1; transform: scale(1); } }
@keyframes bloom  { from { opacity: 0; transform: scale(.88); } 55% { opacity: 1; transform: scale(1.03); } to { opacity: .75; transform: scale(1); } }
@keyframes settle { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

/* 3. scroll journey: one fixed layer per scene, cross-faded by opacity */
.journey { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.journey .scene { position: absolute; inset: 0; opacity: 0; background: var(--ground); will-change: opacity; }
.journey .scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60vmax 50vmax at 88% 6%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50vmax 40vmax at 4% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.journey .scene:first-child { opacity: 1; }

/* 4. phone video slots */
.vslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xxl); justify-items: center; }
@media (max-width: 800px) { .vslots { grid-template-columns: 1fr; } }
.vslot { margin: 0; width: min(100%, 300px); display: flex; flex-direction: column; gap: var(--space-md); }
.vframe {
  position: relative; aspect-ratio: 360 / 772; border-radius: 34px; padding: 9px;
  background: var(--brand); box-shadow: 0 30px 60px -24px rgba(8, 15, 28, .55), 0 0 0 1px var(--border);
}
.vframe video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: #000; }
.vslot figcaption { font-size: var(--type-caption); color: var(--text-muted); text-align: center; }
.vslot figcaption strong { display: block; color: var(--text); font-size: var(--type-body); }

@media (prefers-reduced-motion: reduce) {
  .rv, .hero-card img, .verdict-card, .hero-card figcaption, .verdict-card .chip { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hero-card::before, .verdict-card::before { display: none !important; }
}
.m-land main { overflow-x: clip; }
