/* Homepage motion — loaded only from index.html */

html.mmv-motion {
  --reveal: 0.52s var(--ease);
}

html.mmv-motion .light-sweep {
  animation-duration: 16s;
  opacity: 0.38;
}

html.mmv-motion .hero-copy > * {
  opacity: 0;
  transform: translateY(8px);
  animation: mmv-rise 0.55s var(--ease) forwards;
}

html.mmv-motion .hero-copy h1 {
  opacity: 1;
  transform: none;
  animation: none;
}

html.mmv-motion.is-hero-ready .hero-copy > *:not(h1) {
  opacity: 1;
  transform: none;
}

html.mmv-motion .hero-copy .kicker { animation-delay: 0.04s; }
html.mmv-motion .hero-copy .lede { animation-delay: 0.28s; }
html.mmv-motion .hero-copy .cta-row { animation-delay: 0.38s; }

html.mmv-motion .hero h1 .hero-line {
  display: block;
  overflow: hidden;
}

html.mmv-motion .hero h1 .hero-line span {
  display: inline-block;
  animation: mmv-rise 0.58s var(--ease) both;
}

html.mmv-motion .hero h1 .hero-line:nth-child(1) span { animation-delay: 0.1s; }
html.mmv-motion .hero h1 .hero-line:nth-child(2) span { animation-delay: 0.18s; }

html.mmv-motion .hero-accent {
  background: linear-gradient(90deg, var(--ink) 12%, color-mix(in srgb, var(--magenta) 55%, var(--ink)) 48%, var(--ink) 88%);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: mmv-sheen 1.8s var(--ease) 0.42s both;
}

html.mmv-motion .aperture img {
  transform: scale(1.02);
  transform-origin: 32% 48%;
  animation: mmv-settle 0.9s var(--ease) 0.05s forwards;
}

html.mmv-motion .aperture::after {
  animation: mmv-aperture 1.4s var(--ease) 0.2s 1 forwards;
}

html.mmv-motion .aperture-meta {
  opacity: 0;
  animation: mmv-rise 0.5s var(--ease) 0.42s forwards;
}

@keyframes mmv-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes mmv-settle {
  to { transform: scale(1); }
}

@keyframes mmv-aperture {
  from { opacity: 0.4; }
  to { opacity: 0.85; }
}

@keyframes mmv-sheen {
  from { background-position: 92% 50%; }
  to { background-position: 8% 50%; }
}

html.mmv-motion .chapter .kicker {
  letter-spacing: 0.18em;
  transition: letter-spacing 0.45s var(--ease);
}

html.mmv-motion .chapter.is-visible .kicker {
  letter-spacing: 0.2em;
}

html.mmv-motion .chapter h2 {
  opacity: 0;
  transform: translateY(6px);
}

html.mmv-motion .chapter.is-visible h2 {
  opacity: 1;
  transform: none;
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
}

html.mmv-motion .grade {
  clip-path: inset(3% 2% 3% 2%);
  transition: clip-path 0.7s var(--ease);
}

html.mmv-motion .grade.is-visible,
html.mmv-motion .chapter.is-visible .grade {
  clip-path: inset(0);
}

html.mmv-motion .grade img {
  transform: scale(1.02);
  transition: transform 0.75s var(--ease);
}

html.mmv-motion .chapter.is-visible .grade img {
  transform: scale(1);
}

html.mmv-motion .portal-stage {
  opacity: 0;
  transform: translate3d(8px, 4px, 0);
}

html.mmv-motion .chapter.is-visible .portal-stage {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

html.mmv-motion .portal-chip {
  animation: none;
  opacity: 0;
  transform: translateY(6px);
}

html.mmv-motion .chapter.is-visible .portal-chip {
  animation: mmv-chip 0.45s var(--ease) forwards;
}

html.mmv-motion .chapter.is-visible .portal-chip:nth-child(2) { animation-delay: 0.12s; }
html.mmv-motion .chapter.is-visible .portal-chip:nth-child(3) { animation-delay: 0.18s; }
html.mmv-motion .chapter.is-visible .portal-chip:nth-child(4) { animation-delay: 0.24s; }

@keyframes mmv-chip {
  to { opacity: 1; transform: none; }
}

html.mmv-motion .fail-list li {
  opacity: 0;
  transform: translateY(6px);
}

html.mmv-motion .chapter.is-visible .fail-list li {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

html.mmv-motion .chapter.is-visible .fail-list li:nth-child(1) { transition-delay: 0.04s; }
html.mmv-motion .chapter.is-visible .fail-list li:nth-child(2) { transition-delay: 0.1s; }
html.mmv-motion .chapter.is-visible .fail-list li:nth-child(3) { transition-delay: 0.16s; }

html.mmv-motion .workflow {
  position: relative;
}

html.mmv-motion .workflow::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 1.35rem;
  height: 1px;
  background: color-mix(in srgb, var(--aqua) 22%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

html.mmv-motion .workflow.is-visible::before {
  transform: scaleX(1);
  transition: transform 1.05s var(--ease) 0.08s;
}

html.mmv-motion .step {
  opacity: 0;
  transform: translateY(6px);
  position: relative;
}

html.mmv-motion .workflow.is-visible .step {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s var(--ease);
}

html.mmv-motion .workflow.is-visible .step:nth-child(1) { transition-delay: 0.03s; }
html.mmv-motion .workflow.is-visible .step:nth-child(2) { transition-delay: 0.07s; }
html.mmv-motion .workflow.is-visible .step:nth-child(3) { transition-delay: 0.11s; }
html.mmv-motion .workflow.is-visible .step:nth-child(4) { transition-delay: 0.15s; }
html.mmv-motion .workflow.is-visible .step:nth-child(5) { transition-delay: 0.19s; }
html.mmv-motion .workflow.is-visible .step:nth-child(6) { transition-delay: 0.23s; }
html.mmv-motion .workflow.is-visible .step:nth-child(7) { transition-delay: 0.27s; }
html.mmv-motion .workflow.is-visible .step:nth-child(8) { transition-delay: 0.31s; }

html.mmv-motion .workflow.is-visible .step.is-active {
  border-color: color-mix(in srgb, var(--aqua) 70%, var(--line-strong));
}

html.mmv-motion .industry {
  opacity: 0;
  transform: translateY(8px);
  background-size: 103%;
  transition: opacity 0.5s var(--ease), transform 0.45s var(--ease), border-color 0.3s var(--ease), background-size 0.55s var(--ease);
}

html.mmv-motion .industries.is-visible .industry {
  opacity: 1;
  transform: none;
  background-size: 100%;
}

html.mmv-motion .industries.is-visible .industry:nth-child(1) { transition-delay: 0.02s; }
html.mmv-motion .industries.is-visible .industry:nth-child(2) { transition-delay: 0.05s; }
html.mmv-motion .industries.is-visible .industry:nth-child(3) { transition-delay: 0.08s; }
html.mmv-motion .industries.is-visible .industry:nth-child(4) { transition-delay: 0.04s; }
html.mmv-motion .industries.is-visible .industry:nth-child(5) { transition-delay: 0.07s; }
html.mmv-motion .industries.is-visible .industry:nth-child(6) { transition-delay: 0.1s; }
html.mmv-motion .industries.is-visible .industry:nth-child(7) { transition-delay: 0.06s; }
html.mmv-motion .industries.is-visible .industry:nth-child(8) { transition-delay: 0.09s; }
html.mmv-motion .industries.is-visible .industry:nth-child(9) { transition-delay: 0.12s; }
html.mmv-motion .industries.is-visible .industry:nth-child(10) { transition-delay: 0.08s; }
html.mmv-motion .industries.is-visible .industry:nth-child(11) { transition-delay: 0.11s; }

html.mmv-motion .industries.is-visible .industry:hover,
html.mmv-motion .industries.is-visible .industry:focus-visible {
  transition-delay: 0s;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--electric) 55%, var(--line));
  background-size: 102%;
}

html.mmv-motion .industry[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--aqua) 55%, var(--line));
  box-shadow: none;
}

html.mmv-motion .wl-visual {
  opacity: 0;
  transform: translate3d(8px, 0, 0);
}

html.mmv-motion .chapter.is-visible .wl-visual {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.mmv-motion .swatch {
  transform: scale(0.94);
  opacity: 0.7;
}

html.mmv-motion .chapter.is-visible .swatch {
  transform: none;
  opacity: 1;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

html.mmv-motion .chapter.is-visible .swatch:nth-child(1) { transition-delay: 0.06s; }
html.mmv-motion .chapter.is-visible .swatch:nth-child(2) { transition-delay: 0.1s; }
html.mmv-motion .chapter.is-visible .swatch:nth-child(3) { transition-delay: 0.14s; }
html.mmv-motion .chapter.is-visible .swatch:nth-child(4) { transition-delay: 0.18s; }

html.mmv-motion .feat-visual {
  position: relative;
  overflow: hidden;
}

html.mmv-motion .feat-visual img {
  clip-path: inset(0 6% 0 0);
  transition: clip-path 0.7s var(--ease);
}

html.mmv-motion .chapter.is-visible .feat-visual img {
  clip-path: inset(0);
}

html.mmv-motion .feat-visual::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 34%;
  bottom: 11%;
  height: 1px;
  background: color-mix(in srgb, var(--aqua) 42%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  z-index: 2;
}

html.mmv-motion .chapter.is-visible .feat-visual::after {
  transform: scaleX(0.72);
  transition: transform 0.9s var(--ease) 0.18s;
}

html.mmv-motion .feat-visual::before {
  content: "";
  position: absolute;
  top: 12%;
  right: 9%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--aqua) 70%, white);
  opacity: 0;
  z-index: 2;
}

html.mmv-motion .chapter.is-visible .feat-visual::before {
  animation: mmv-pulse 0.8s var(--ease) 0.35s 1 forwards;
}

@keyframes mmv-pulse {
  from { opacity: 0; }
  to { opacity: 0.7; }
}

html.mmv-motion .feat {
  opacity: 0;
  transform: translateY(6px);
}

html.mmv-motion .feature-orchestra.is-visible .feat {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

html.mmv-motion .feature-orchestra.is-visible .feat:nth-child(1) { transition-delay: 0.02s; }
html.mmv-motion .feature-orchestra.is-visible .feat:nth-child(2) { transition-delay: 0.05s; }
html.mmv-motion .feature-orchestra.is-visible .feat:nth-child(3) { transition-delay: 0.08s; }
html.mmv-motion .feature-orchestra.is-visible .feat:nth-child(4) { transition-delay: 0.11s; }
html.mmv-motion .feature-orchestra.is-visible .feat:nth-child(5) { transition-delay: 0.14s; }
html.mmv-motion .feature-orchestra.is-visible .feat:nth-child(6) { transition-delay: 0.17s; }
html.mmv-motion .feature-orchestra.is-visible .feat:nth-child(7) { transition-delay: 0.07s; }
html.mmv-motion .feature-orchestra.is-visible .feat:nth-child(8) { transition-delay: 0.1s; }

html.mmv-motion .outcome {
  opacity: 0;
  transform: translateY(5px);
}

html.mmv-motion .outcomes.is-visible .outcome {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

html.mmv-motion .outcomes.is-visible .outcome:nth-child(odd) { transition-delay: 0.03s; }
html.mmv-motion .outcomes.is-visible .outcome:nth-child(even) { transition-delay: 0.08s; }

html.mmv-motion .price-card {
  opacity: 0;
  transform: translateY(8px);
}

html.mmv-motion .pricing-grid.is-visible .price-card,
html.mmv-motion .wl-pricing.is-visible .price-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

html.mmv-motion .pricing-grid.is-visible .price-card:nth-child(1) { transition-delay: 0.03s; }
html.mmv-motion .pricing-grid.is-visible .price-card:nth-child(2) { transition-delay: 0.08s; }
html.mmv-motion .pricing-grid.is-visible .price-card:nth-child(3) { transition-delay: 0.13s; }

html.mmv-motion .price-card:hover {
  transform: translateY(-2px);
}

html.mmv-motion .billing-toggle button {
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

html.mmv-motion .price {
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

html.mmv-motion .price.is-updating {
  opacity: 0.45;
  transform: translateY(2px);
}

html.mmv-motion .btn-primary:hover,
html.mmv-motion .btn-brass:hover {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--electric) 22%, transparent);
}

html.mmv-motion .cta-stage {
  overflow: hidden;
}

html.mmv-motion .cta-stage img {
  opacity: 0;
  transform: scale(1.02);
  filter: saturate(0.86) contrast(1.04) brightness(0.92);
}

html.mmv-motion #capture.is-visible .cta-stage img {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.75s var(--ease), transform 0.8s var(--ease);
}

html.mmv-motion #capture > .wrap > div:last-child > * {
  opacity: 0;
  transform: translateY(6px);
}

html.mmv-motion #capture.is-visible > .wrap > div:last-child > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.48s var(--ease), transform 0.48s var(--ease);
}

html.mmv-motion #capture h2 .hero-line {
  display: block;
  overflow: hidden;
}

html.mmv-motion #capture.is-visible .kicker { transition-delay: 0.06s; }
html.mmv-motion #capture.is-visible h2 { transition-delay: 0.12s; }
html.mmv-motion #capture.is-visible .lede { transition-delay: 0.18s; }
html.mmv-motion #capture.is-visible form { transition-delay: 0.28s; }

html.mmv-motion .nav-links a {
  transition: color 0.22s var(--ease);
}

html.mmv-motion .nav-links a:hover {
  color: var(--ink);
}

html.mmv-motion .site-footer a {
  transition: color 0.22s var(--ease);
}

html.mmv-motion .faq summary {
  transition: color 0.22s var(--ease);
}

html.mmv-motion .faq summary:hover {
  color: color-mix(in srgb, var(--ink) 88%, var(--electric));
}

html.mmv-motion .future-band {
  opacity: 0;
  transform: translateY(6px);
}

html.mmv-motion .future-grid.is-visible .future-band {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

html.mmv-motion .future-grid.is-visible .future-band:nth-child(2) { transition-delay: 0.06s; }
html.mmv-motion .future-grid.is-visible .future-band:nth-child(3) { transition-delay: 0.12s; }

@media (max-width: 980px) {
  html.mmv-motion .aperture img { animation-duration: 0.7s; }
  html.mmv-motion .hero-accent { animation-duration: 1.2s; }
  html.mmv-motion .portal-stage,
  html.mmv-motion .wl-visual { transform: translate3d(0, 6px, 0); }
  html.mmv-motion .workflow::before { display: none; }
  html.mmv-motion .feat-visual::after,
  html.mmv-motion .feat-visual::before { display: none; }
  html.mmv-motion .industry:hover,
  html.mmv-motion .industries.is-visible .industry:hover {
    transform: none;
    background-size: 100%;
  }
  html.mmv-motion .price-card:hover { transform: none; }
  html.mmv-motion #capture h2 .hero-line { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html.mmv-motion .hero-copy > *,
  html.mmv-motion .hero h1 .hero-line span,
  html.mmv-motion .aperture img,
  html.mmv-motion .aperture::after,
  html.mmv-motion .aperture-meta,
  html.mmv-motion .hero-accent,
  html.mmv-motion .feat-visual::before,
  html.mmv-motion .light-sweep {
    animation: none !important;
  }

  html.mmv-motion .hero-copy > *,
  html.mmv-motion .chapter h2,
  html.mmv-motion .grade,
  html.mmv-motion .grade img,
  html.mmv-motion .industry,
  html.mmv-motion .step,
  html.mmv-motion .feat,
  html.mmv-motion .price-card,
  html.mmv-motion .cta-stage img,
  html.mmv-motion .portal-chip,
  html.mmv-motion .outcome,
  html.mmv-motion .future-band,
  html.mmv-motion #capture > .wrap > div:last-child > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
  }
}
