/**
 * OFF MARKET — Qui sommes-nous static editorial section
 * Scoped to .mav-who only — tokens aligned with hero + om-featured-projects
 */

.mav-who {
  position: relative;
  overflow: hidden;
  background: var(--om-ivory);
  color: var(--om-graphite);
  padding:
    var(--om-section-padding)
    clamp(1.25rem, 4vw, 4rem)
    var(--om-section-padding);
}

.mav-who__inner {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mav-who__eyebrow {
  margin: 0 0 clamp(1.75rem, 2.8vw, 2.5rem);
  font-family: var(--om-font-body);
  font-size: var(--om-label);
  line-height: 1;
  font-weight: 650;
  letter-spacing: var(--om-letter-label);
  text-transform: uppercase;
  color: var(--om-ruby-800);
}

.mav-who__title {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--font-main, 'Inter', system-ui, sans-serif);
  font-size: clamp(56px, 5.6vw, 82px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.065em;
  color: #252222;
  text-align: center;
  text-wrap: balance;
}

.mav-who__lead {
  max-width: 760px;
  margin: 28px auto 0;
  font-family: var(--font-main, 'Inter', system-ui, sans-serif);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: rgba(17, 18, 13, 0.62);
  text-wrap: pretty;
}

.mav-who__points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mav-who__points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10000px;
  background: rgba(86, 84, 73, 0.07);
  border: 1px solid rgba(86, 84, 73, 0.14);
  color: var(--om-red);
  font-family: var(--font-main, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mav-who .om-cta {
  margin-top: clamp(2.25rem, 3.4vw, 3.25rem);
}

.mav-who + .om-featured-projects {
  padding-top: clamp(4rem, 8vh, 6rem);
}

.mav-who .mav-reveal-item {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(5px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.mav-who.is-visible .mav-reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Pure-CSS time failsafe: if the reveal script never adds .is-visible (blocked
   or slow boot), fade the section in anyway so it never stays blank. The normal
   scroll reveal still wins when JS runs (adding .is-visible drops this match). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes omWhoRevealFailsafe {
    from {
      opacity: 0;
      transform: translate3d(0, 22px, 0);
      filter: blur(5px);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
      filter: blur(0);
    }
  }
  .mav-who:not(.is-visible) .mav-reveal-item {
    animation: omWhoRevealFailsafe 900ms cubic-bezier(0.22, 1, 0.36, 1) 2000ms
      forwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mav-who:not(.is-visible) .mav-reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.mav-who.is-visible .mav-who__eyebrow {
  transition-delay: 80ms;
}

.mav-who.is-visible .mav-who__points {
  transition-delay: 200ms;
}

.mav-who.is-visible .om-cta {
  transition-delay: 280ms;
}

@media (max-width: 767px) {
  #qui-sommes-nous {
    padding: 4.5rem 1.25rem 5rem;
  }

  .mav-who__eyebrow {
    margin-bottom: 1.35rem;
  }

  .mav-who__title {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .mav-who__lead {
    margin-top: 1.25rem;
    font-size: 17px;
    line-height: 1.55;
  }

  .mav-who__points {
    margin-top: 1.5rem;
    gap: 8px;
  }

  .mav-who .om-cta {
    margin-top: 2.25rem;
  }

  .mav-who.is-visible .mav-who__eyebrow {
    transition-delay: 40ms;
  }

  .mav-who.is-visible .mav-who__title {
    transition-delay: 120ms;
  }

  .mav-who.is-visible .mav-who__lead {
    transition-delay: 200ms;
  }

  .mav-who.is-visible .mav-who__points {
    transition-delay: 280ms;
  }

  .mav-who.is-visible .om-cta {
    transition-delay: 360ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mav-who .mav-reveal-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .mav-who .om-cta {
    transition: none;
  }

  .mav-who .om-cta:hover {
    transform: none;
  }
}

html.om-reveal-fallback #qui-sommes-nous .mav-reveal-item,
html.om-reveal-fallback #about-qui-sommes-nous .mav-reveal-item {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}
