/* About page — extends MF design system */
.mf-about-page {
  font-family: "Outfit", sans-serif;
  color: var(--mf-text, #334155);
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(14,165,233,0.14), transparent 60%),
    radial-gradient(700px 360px at 100% 30%, rgba(20,184,166,0.12), transparent 55%),
    #f8fbff;
}

.mf-about-page h1,
.mf-about-page h2,
.mf-about-page h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  color: var(--mf-ink, #0c4a6e);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Page hero */
.mf-page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.mf-page-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: mfKen 18s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
  z-index: 0;
}

.mf-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, rgba(12,74,110,0.9) 0%, rgba(14,165,233,0.55) 55%, rgba(20,184,166,0.4) 100%),
    linear-gradient(0deg, rgba(12,74,110,0.55), transparent 50%);
}

.mf-page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 72px 0 56px;
}

.mf-page-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.mf-page-hero__crumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.mf-page-hero__crumb a:hover { color: #fff; }
.mf-page-hero__crumb span { color: rgba(255,255,255,0.5); }
.mf-page-hero__crumb li:last-child { color: #fde68a; }

.mf-page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  margin: 0 0 12px;
  max-width: 16ch;
}

.mf-page-hero p {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}

/* Story */
.mf-story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.mf-story__visual {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  background: center/cover no-repeat;
  box-shadow: 0 18px 40px rgba(14,165,233,0.14);
  overflow: hidden;
}

.mf-story__visual-secondary {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  right: 18px;
  bottom: 18px;
  border-radius: 20px;
  background: center/cover no-repeat;
  border: 4px solid #fff;
  box-shadow: 0 14px 30px rgba(12,74,110,0.2);
  animation: mfFloat 6s ease-in-out infinite;
}

.mf-story__copy p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 14px;
}

.mf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 26px;
}

.mf-stat {
  background: #fff;
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(12,74,110,0.05);
  transition: transform 0.25s ease;
}

.mf-stat:hover { transform: translateY(-4px); }

.mf-stat strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.45rem;
  color: #0ea5e9;
  line-height: 1.1;
  margin-bottom: 4px;
}

.mf-stat span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Values / vision mission */
.mf-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mf-value {
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px;
  border: 1px solid rgba(14,165,233,0.1);
  box-shadow: 0 12px 28px rgba(12,74,110,0.06);
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}

.mf-value:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(14,165,233,0.14);
}

.mf-value__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  box-shadow: 0 10px 20px rgba(14,165,233,0.25);
}

.mf-value:nth-child(2) .mf-value__icon {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 10px 20px rgba(245,158,11,0.25);
}

.mf-value:nth-child(3) .mf-value__icon {
  background: linear-gradient(135deg, #14b8a6, #34d399);
  box-shadow: 0 10px 20px rgba(20,184,166,0.25);
}

.mf-value h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.mf-value p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
}

.mf-why-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mf-why-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

.mf-why-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px rgba(14,165,233,0.35);
}

/* Affiliations */
.mf-affils {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mf-affil {
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(14,165,233,0.1);
  box-shadow: 0 12px 28px rgba(12,74,110,0.06);
  transition: transform 0.3s ease;
}

.mf-affil:hover { transform: translateY(-6px); }

.mf-affil img {
  max-height: 100px;
  max-width: 100%;
  margin: 0 auto 16px;
  display: block;
}

.mf-affil h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.mf-affil p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

/* Clients compact */
.mf-clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mf-client {
  background: #fff;
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid rgba(14,165,233,0.1);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mf-client:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(14,165,233,0.12);
}

.mf-client img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.mf-client span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

@media (max-width: 991px) {
  .mf-story,
  .mf-values,
  .mf-affils { grid-template-columns: 1fr; }
  .mf-story__visual { min-height: 320px; }
  .mf-clients { grid-template-columns: 1fr 1fr; }
  .mf-page-hero { min-height: 36vh; }
}

@media (max-width: 767px) {
  .mf-stats { grid-template-columns: 1fr; }
  .mf-clients { grid-template-columns: 1fr 1fr; }
  .mf-page-hero__inner { padding: 56px 0 40px; }
}