/* Modern editorial layer. Motion owns movement when html.mf-motion is set. */

.mf-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 3000;
  background: linear-gradient(90deg, #2f6bff, #bfdbfe);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

html.mf-motion .mf-reveal,
html.mf-motion .mf-reveal.is-in {
  opacity: 0;
}

html.mf-motion .mf-service:hover,
html.mf-motion .mf-project:hover,
html.mf-motion .mf-project:hover img,
html.mf-motion .mf-client:hover,
html.mf-motion .mf-industry:hover,
html.mf-motion .mf-why__list li:hover,
html.mf-motion .mf-proj-card:hover,
html.mf-motion .mf-proj-featured__main:hover,
html.mf-motion .mf-proj-featured__side a:hover,
html.mf-motion .mf-svc-card:hover,
html.mf-motion .mf-about__sectors li:hover,
html.mf-motion .mf-service:hover .mf-service__img {
  transform: none;
  background-size: cover;
}

html.mf-motion .mf-about__visual::before,
html.mf-motion .mf-about__badge,
html.mf-motion .mf-why::before,
html.mf-motion .mf-industries-visual img,
html.mf-motion .mf-btn--primary,
html.mf-motion .mf-nav-cta {
  animation: none;
}

.mf-section { padding: 104px 0; }

.mf-title {
  letter-spacing: -0.035em;
  font-weight: 800;
}

.mf-kicker {
  letter-spacing: 0.16em;
  background: rgba(47, 107, 255, 0.1);
}

.mf-service {
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(18, 24, 32, 0.04), 0 16px 40px rgba(18, 24, 32, 0.06);
}

.mf-service__img {
  height: 220px;
  transform-origin: center;
}

.mf-service__body { padding: 22px 22px 24px; }

.mf-project,
.mf-proj-card,
.mf-proj-featured__main,
.mf-proj-featured__side a {
  border-radius: 22px;
}

.mf-project img,
.mf-home-video video {
  transform-origin: center;
}

.mf-client {
  border-radius: 20px;
  min-height: 148px;
  padding: 22px 16px 18px;
  box-shadow: 0 10px 28px rgba(18, 24, 32, 0.05);
}

.mf-client img {
  max-height: 56px;
  filter: grayscale(1);
}

.mf-industry {
  border-radius: 20px;
  border: 1px solid rgba(18, 24, 32, 0.06);
}

.mf-about__visual,
.mf-why__visual,
.mf-story__visual {
  border-radius: 28px;
  transform-origin: center;
}

.mf-page-hero {
  min-height: 48vh;
}

.mf-page-hero__media {
  transform-origin: center;
}

.mf-proj-grid {
  gap: 16px;
}

.mf-proj-card,
.mf-proj-featured__main,
.mf-proj-featured__side a {
  box-shadow: 0 14px 32px rgba(18, 24, 32, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  html.mf-motion .mf-reveal,
  html.mf-motion .mf-reveal.is-in {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .mf-client img { filter: none; }
  .mf-scroll-progress { display: none; }
}
