/* Homepage-specific styles — compose on top of colors_and_type.css */

/* ===== NAV ===== */
.mf-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.mf-nav.scrolled { border-bottom-color: var(--mf-ink-20); background: rgba(250, 250, 247, 0.94); }
.mf-nav-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}
/* ============ LOGO SYSTEM ============ */
.mf-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--mf-ink);
  line-height: 1;
}
.mf-wordmark em { font-style: italic; font-weight: 300; }

/* Horizontal lockup (nav, default) */
.mf-lockup {
  display: inline-flex; align-items: center; gap: var(--s-4);
  color: var(--mf-ink); border-bottom: 0;
  text-decoration: none;
}
.mf-lockup-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  display: block; color: inherit;
}
.mf-lockup-mark svg { width: 100%; height: 100%; display: block; }
.mf-lockup .mf-wordmark {
  font-size: 22px; color: inherit;
  /* Optical baseline alignment to lower rule of mark */
  transform: translateY(2px);
}
.mf-lockup--reverse { color: var(--mf-paper); }
.mf-lockup--reverse .mf-wordmark { color: var(--mf-paper); }

/* Stacked lockup (about hero, footer-stacked, contact, error pages) */
.mf-lockup--stacked {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: var(--s-3);
}
.mf-lockup--stacked .mf-lockup-mark { width: 64px; height: 64px; }
.mf-lockup--stacked .mf-wordmark {
  font-size: 22px; transform: none;
}
.mf-lockup--stacked.mf-lockup--lg .mf-lockup-mark { width: 80px; height: 80px; }
.mf-lockup--stacked.mf-lockup--lg .mf-wordmark { font-size: 24px; }

/* Mobile sizing for nav lockup */
@media (max-width: 720px) {
  .mf-lockup .mf-lockup-mark { width: 32px; height: 32px; }
  .mf-lockup .mf-wordmark { font-size: 18px; }
}

/* Legacy alias — keep .mf-logo + .mf-logo-nav working but stripped of placeholder */
.mf-logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--mf-ink); border-bottom: 0;
  line-height: 1;
}
.mf-logo em { font-style: italic; font-weight: 300; color: inherit; }

/* Hero video element underneath the crossfade frames (fallback) */
.mf-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(0.9) brightness(0.82);
}

/* Retailer audits row — smaller, under the primary cert row */
.mf-retailer-row {
  max-width: var(--container-max); margin: var(--s-6) auto 0;
  padding: 0 var(--container-pad);
  display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap;
}
.mf-retailer-marks { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
.mf-retailer-mark { opacity: 0.7; }

/* Brand tiles — real client logos, full colour, sized to dominate the tile */
.mf-brand-logo {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform var(--dur-base) var(--ease-out);
}
.mf-brand:hover .mf-brand-logo {
  transform: scale(1.04);
}

/* Story placeholder */
.mf-story-placeholder { position: relative; filter: none; background: var(--mf-paper-warm); }
.mf-story-placeholder img { opacity: 0.65; }
.mf-story-pending {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--s-3) var(--s-4);
  background: rgba(20, 33, 61, 0.88);
  color: var(--mf-paper);
  font-family: var(--font-body); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  text-align: center;
}
.mf-nav-links { display: flex; gap: var(--s-6); align-items: center; }
.mf-nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--mf-ink-80); border-bottom: 0; letter-spacing: 0.01em;
}
.mf-nav-links a:hover { color: var(--mf-accent); }
.mf-nav-right { display: flex; align-items: center; gap: var(--s-4); }
.mf-menu-btn {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--mf-ink-20); border-radius: 2px; background: transparent;
}

/* ===== BUTTONS ===== */
.mf-btn-p {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--mf-paper); background: var(--mf-accent);
  padding: 14px 28px; border-radius: 2px; border: 0; cursor: pointer;
  letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 10px;
  transition: background var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.mf-btn-p:hover { background: var(--mf-accent-hover); color: var(--mf-paper); }
.mf-btn-p:active { transform: translateY(1px); }

.mf-btn-s {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--mf-ink); background: transparent;
  padding: 13px 27px; border-radius: 2px; border: 1px solid var(--mf-ink);
  cursor: pointer; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.mf-btn-s:hover { background: var(--mf-ink); color: var(--mf-paper); }

.mf-btn-g {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--mf-ink); background: transparent; border: 0;
  cursor: pointer; padding: 4px 0 6px;
  border-bottom: 1px solid var(--mf-ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  letter-spacing: 0.02em;
}
.mf-btn-g:hover { color: var(--mf-accent); border-color: var(--mf-accent); }
.mf-btn-g .arrow { transition: transform var(--dur-base) var(--ease-out); }
.mf-btn-g:hover .arrow { transform: translateX(4px); }

.mf-btn-hero {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--mf-paper); background: transparent; border: 0;
  cursor: pointer; padding: 4px 0 6px;
  border-bottom: 1px solid var(--mf-paper);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  letter-spacing: 0.02em;
}
.mf-btn-hero:hover { color: var(--mf-accent-tint); border-color: var(--mf-accent-tint); }

/* ===== HERO ===== */
.mf-hero {
  position: relative; min-height: 100vh; width: 100%; overflow: hidden;
  background: var(--mf-ink);
  color: var(--mf-paper);
  display: flex; align-items: flex-end;
}
.mf-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.9) brightness(0.82);
}
.mf-hero-frames {
  position: absolute; inset: 0; z-index: 0;
}
.mf-hero-frame {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.85) brightness(0.78) sepia(0.08);
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}
.mf-hero-frame.active { opacity: 1; }
.mf-hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(20, 33, 61, 0.45) 100%),
    linear-gradient(180deg, transparent 40%, rgba(20, 33, 61, 0.55) 100%);
}
.mf-hero-content {
  position: relative; z-index: 2;
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad) var(--s-10);
  width: 100%;
}
.mf-hero-eyebrow {
  position: absolute; top: calc(72px + var(--s-7)); left: var(--container-pad);
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(250, 250, 247, 0.7);
}
.mf-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 6.25rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--mf-paper);
  margin: 0 0 var(--s-6); max-width: 22ch;
  font-weight: 400;
}
.mf-hero h1 em { font-style: italic; font-weight: 300; }
.mf-hero-sub {
  font-family: var(--font-body); font-size: 18px; line-height: 1.55;
  color: rgba(250, 250, 247, 0.85); max-width: 38ch;
  margin: 0 0 var(--s-7);
}
.mf-hero-ctas { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
.mf-hero .mf-btn-s { border-color: var(--mf-paper); color: var(--mf-paper); }
.mf-hero .mf-btn-s:hover { background: var(--mf-paper); color: var(--mf-ink); }

.mf-hero-scroll {
  position: absolute; bottom: var(--s-6); left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.2em; color: rgba(250, 250, 247, 0.55);
}
.mf-hero-scroll-line {
  width: 1px; height: 40px; background: rgba(250, 250, 247, 0.3); position: relative; overflow: hidden;
}
.mf-hero-scroll-line::after {
  content: ''; position: absolute; top: -40px; left: 0; width: 1px; height: 40px;
  background: rgba(250, 250, 247, 0.9);
  animation: scrollLine 2.4s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { top: -40px; } 100% { top: 40px; }
}

/* ===== SECTION SCAFFOLD ===== */
.mf-section { padding: var(--s-10) 0; }
.mf-section.warm { background: var(--mf-paper-warm); }
.mf-section.ink { background: var(--mf-ink); color: var(--mf-paper); }
.mf-section-head {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad) var(--s-8);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: end;
}
.mf-section-head.single { grid-template-columns: 1fr; }
.mf-section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-l);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.02;
  margin: 0; max-width: 14ch;
}
.mf-section-head h2 em { font-style: italic; font-weight: 300; }
.mf-section-head .mf-lead { margin-bottom: 4px; }

/* ===== CREDENTIALS STRIP ===== */
.mf-creds {
  padding: var(--s-9) 0;
  background: var(--mf-paper-warm);
}
.mf-creds-grid {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.mf-cred {
  padding: 0 var(--s-6);
  border-left: 1px solid var(--mf-ink-10);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.mf-cred:first-child { border-left: 0; padding-left: 0; }
.mf-cred-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 400; letter-spacing: -0.03em; line-height: 0.9;
  color: var(--mf-ink);
  margin-bottom: var(--s-3);
}
.mf-cred-unit {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--mf-ink-60); margin-bottom: var(--s-5);
}
.mf-cred-label {
  font-family: var(--font-body); font-size: 15px; line-height: 1.45;
  color: var(--mf-ink-80); max-width: 22ch;
}

/* ===== SOLUTIONS ===== */
.mf-solutions-grid {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4);
}
.mf-solution {
  background: var(--mf-paper); border: 1px solid var(--mf-ink-10);
  border-radius: 4px; overflow: hidden;
  transition: box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  display: flex; flex-direction: column;
  cursor: pointer;
}
.mf-solution:hover { box-shadow: var(--shadow-lift); border-color: var(--mf-ink-20); }
.mf-solution-media {
  aspect-ratio: 4/5; overflow: hidden; position: relative; background: var(--mf-ink-10);
}
.mf-solution-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-reveal) var(--ease-out);
  filter: saturate(0.9);
}
.mf-solution:hover .mf-solution-media img { transform: scale(1.04); }
.mf-solution-num {
  position: absolute; top: var(--s-4); left: var(--s-4);
  font-family: var(--font-body); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--mf-paper);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.mf-solution-body { padding: var(--s-5) var(--s-5) var(--s-6); flex-grow: 1; display: flex; flex-direction: column; }
.mf-solution-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  line-height: 1.15; letter-spacing: -0.01em;
  color: var(--mf-ink); margin: 0 0 var(--s-3);
}
.mf-solution-desc {
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  color: var(--mf-ink-60); margin: 0; flex-grow: 1;
}

/* ===== PROGRAMMES (homepage self-recognition section) ===== */
/* Number-led editorial cards. No images. Five archetypes, one row on
   wide desktop, 3+2 on mid-width, stacked on mobile. */
.mf-programmes {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4);
}
.mf-programme {
  display: flex; flex-direction: column;
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--mf-ink-10);
  background: var(--mf-paper);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
  cursor: pointer;
}
.mf-programme:hover {
  border-color: var(--mf-ink-40);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.mf-programme-num {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mf-ink-60);
}
.mf-programme-rule {
  height: 1px; width: 32px; background: var(--mf-ink-20);
  margin: var(--s-3) 0 var(--s-4);
}
.mf-programme-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--mf-ink); margin: 0 0 var(--s-4);
}
.mf-programme-desc {
  font-family: var(--font-body); font-size: 14px; line-height: 1.55;
  color: var(--mf-ink-80); margin: 0; flex-grow: 1;
}
.mf-programme-spec {
  font-family: var(--font-body); font-size: 12px; line-height: 1.4;
  color: var(--mf-ink-40); margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--mf-ink-10);
}
@media (max-width: 1199px) {
  .mf-programmes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .mf-programmes { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ===== FACTORY CARDS ===== */
.mf-factories {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex; flex-direction: column; gap: var(--s-9);
}
.mf-factory {
  display: grid; grid-template-columns: 55fr 45fr; gap: var(--s-8); align-items: center;
}
.mf-factory:nth-child(even) { grid-template-columns: 45fr 55fr; }
.mf-factory:nth-child(even) .mf-factory-img { order: 2; }
.mf-factory-img {
  aspect-ratio: 5/4; overflow: hidden; background: var(--mf-ink-10);
  position: relative;
}
.mf-factory-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-reveal) var(--ease-out);
}
.mf-factory:hover .mf-factory-img img { transform: scale(1.02); }
.mf-factory-index {
  position: absolute; top: var(--s-5); left: var(--s-5);
  font-family: var(--font-display); font-size: 18px;
  color: var(--mf-paper); text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  letter-spacing: -0.01em;
}
.mf-factory-info { padding: var(--s-4) 0; }
.mf-factory-eye {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--mf-ink-40); margin-bottom: var(--s-5);
}
.mf-factory h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 400;
  letter-spacing: -0.015em; line-height: 1.05;
  margin: 0 0 var(--s-5);
}
.mf-factory-specialty {
  font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  color: var(--mf-ink-80); max-width: 38ch; margin: 0 0 var(--s-6);
}
.mf-factory-specs {
  display: grid; grid-template-columns: repeat(3, auto); gap: var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--mf-ink-10);
  border-bottom: 1px solid var(--mf-ink-10);
  margin-bottom: var(--s-6);
}
.mf-factory-spec-label {
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--mf-ink-40); margin-bottom: 6px;
}
.mf-factory-spec-val {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--mf-ink);
}
.mf-factory-spec-val small {
  font-family: var(--font-body); font-size: 12px; color: var(--mf-ink-60);
  margin-left: 4px; letter-spacing: 0;
}

/* ===== WORLD MAP ===== */
.mf-map-wrap {
  margin-top: var(--s-10);
  background: var(--mf-ink);
  color: var(--mf-paper);
  padding: var(--s-9) 0;
  position: relative;
}
.mf-map-head {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad) var(--s-7);
}
.mf-map-head .mf-eyebrow { color: rgba(250, 250, 247, 0.5); }
.mf-map-head h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400; color: var(--mf-paper); max-width: 28ch; letter-spacing: -0.01em;
  margin: 0;
}
.mf-map {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
}
.mf-map svg { width: 100%; height: auto; display: block; }
.mf-map-dot {
  fill: rgba(250, 250, 247, 0.35);
  transition: fill var(--dur-fast) var(--ease-out), r var(--dur-base) var(--ease-out);
}
.mf-map-country { cursor: pointer; }
.mf-map-country:hover .mf-map-dot,
.mf-map-country.active .mf-map-dot {
  fill: var(--mf-paper);
}
.mf-map-country:hover .mf-map-dot-halo,
.mf-map-country.active .mf-map-dot-halo {
  opacity: 1;
}
.mf-map-dot-halo {
  fill: none; stroke: var(--mf-paper); stroke-width: 0.5;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.mf-map-label {
  font-family: var(--font-body); font-size: 11px;
  fill: rgba(250, 250, 247, 0.7);
  text-transform: uppercase; letter-spacing: 0.12em;
  pointer-events: none;
}
.mf-map-country.active .mf-map-label,
.mf-map-country:hover .mf-map-label { fill: var(--mf-paper); }
.mf-map-tooltip {
  position: absolute; pointer-events: none;
  background: var(--mf-paper); color: var(--mf-ink);
  padding: 10px 14px; font-family: var(--font-body); font-size: 13px;
  letter-spacing: 0.02em;
  transform: translate(-50%, -130%);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.mf-map-tooltip.show { opacity: 1; }
.mf-map-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--mf-paper);
}

.mf-map-legend {
  max-width: var(--container-max); margin: var(--s-7) auto 0;
  padding: 0 var(--container-pad);
  display: flex; gap: var(--s-6); flex-wrap: wrap;
}
.mf-map-legend-item {
  font-family: var(--font-body); font-size: 13px;
  color: rgba(250, 250, 247, 0.6);
  border: 0; background: transparent; cursor: pointer;
  padding: 4px 0; letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.mf-map-legend-item:hover, .mf-map-legend-item.active { color: var(--mf-paper); }
/* The wrapping <a> around each map dot group should not inflict default
   link styling on the SVG dots — keep the cursor pointer that the
   underlying .mf-map-country sets and let SVG hover styles cascade. */
.mf-map a { text-decoration: none; outline: none; }
.mf-map a:focus-visible { outline: 2px solid var(--mf-paper); outline-offset: 4px; }

/* ===== COMPLIANCE ===== */
.mf-certs {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  margin-top: var(--s-8);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 1px solid var(--mf-ink-10);
  border-bottom: 1px solid var(--mf-ink-10);
}
.mf-cert {
  padding: var(--s-8) var(--s-4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4);
  text-align: center;
}
.mf-cert-mark {
  height: 96px; display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.mf-cert-mark svg { height: 64px; width: auto; }
.mf-cert-mark img {
  height: 80px; max-width: 170px; width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mf-cert-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--mf-ink-60);
}
.mf-certs-plus {
  margin: var(--s-8) auto 0;
  max-width: 720px;
  text-align: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 400;
  color: var(--mf-ink-60);
  letter-spacing: -0.005em;
}
.mf-certs-plus em {
  font-style: italic;
  color: var(--mf-ink);
}

/* ===== BRANDS ===== */
.mf-brands {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  margin-top: var(--s-8);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--mf-ink-10);
  border-bottom: 1px solid var(--mf-ink-10);
}
.mf-brand:nth-child(n+4) { border-top: 1px solid var(--mf-ink-10); }
.mf-brand:nth-child(3n+1) { border-left: 0; }
.mf-brand {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  border-left: 1px solid var(--mf-ink-10);
  padding: var(--s-7) var(--s-4);
  background: var(--mf-paper);
  transition: background var(--dur-base) var(--ease-out);
  overflow: hidden;
}
.mf-brand:first-child { border-left: 0; }
.mf-brand:hover { background: var(--mf-paper-warm); }
.mf-brand-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 90px;
  margin-bottom: var(--s-4);
}
.mf-brand-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  color: var(--mf-ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.mf-brand-desc {
  margin-top: 4px;
  font-family: var(--font-body); font-size: 12px; font-weight: 400;
  color: var(--mf-ink-60);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ===== STORY ===== */
.mf-story {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-9); align-items: center;
}
.mf-story-img {
  aspect-ratio: 4/5; overflow: hidden; background: var(--mf-ink-10);
  filter: sepia(0.25) contrast(0.95);
  position: relative;
}
.mf-story-img img { width: 100%; height: 100%; object-fit: cover; }
.mf-story-caption {
  font-family: var(--font-body); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--mf-ink-40); margin-top: var(--s-4);
}
.mf-story-text h2 { max-width: 16ch; }
.mf-story-text p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--mf-ink-80); max-width: 56ch;
  margin: var(--s-5) 0 var(--s-7);
}

/* ===== CONTACT FORM ===== */
.mf-contact {
  max-width: 680px; margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}
.mf-contact h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.mf-contact .mf-lead { margin: 0 auto var(--s-8); }

.mf-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5);
  text-align: left; margin-top: var(--s-7);
}
.mf-field { display: flex; flex-direction: column; }
.mf-field.full { grid-column: 1 / -1; }
.mf-field label {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--mf-ink-60); margin-bottom: var(--s-2);
}
.mf-field input, .mf-field textarea {
  font-family: var(--font-body); font-size: 16px;
  background: transparent; color: var(--mf-ink);
  border: 0; border-bottom: 1px solid var(--mf-ink-20);
  padding: var(--s-3) 0; outline: 0; border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.mf-field input:focus, .mf-field textarea:focus {
  border-bottom-color: var(--mf-accent);
  outline: 0;
}
.mf-field textarea { resize: vertical; min-height: 100px; }

.mf-form-submit {
  grid-column: 1 / -1; display: flex; justify-content: center;
  margin-top: var(--s-5);
}
.mf-contact-info {
  margin-top: var(--s-9); display: flex; gap: var(--s-7); justify-content: center;
  flex-wrap: wrap; text-align: left;
  padding-top: var(--s-7); border-top: 1px solid var(--mf-ink-10);
}
.mf-contact-block {
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  color: var(--mf-ink-80);
}
.mf-contact-block .mf-eyebrow { margin-bottom: var(--s-2); }

/* ===== FOOTER ===== */
.mf-footer {
  background: var(--mf-ink); color: rgba(250, 250, 247, 0.75);
  padding: var(--s-10) 0 var(--s-5);
}
.mf-footer a { color: rgba(250, 250, 247, 0.75); border-bottom: 0; }
.mf-footer a:hover { color: var(--mf-paper); }
.mf-footer-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
}
.mf-footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; gap: var(--s-7);
  padding-bottom: var(--s-9);
  border-bottom: 1px solid rgba(250, 250, 247, 0.15);
}
.mf-footer .mf-logo, .mf-footer .mf-wordmark { color: var(--mf-paper); font-size: 28px; }
.mf-footer .mf-logo em, .mf-footer .mf-wordmark em { color: rgba(250,250,247,0.55); }
.mf-footer .mf-lockup--reverse .mf-lockup-mark { width: 44px; height: 44px; }
.mf-footer .mf-lockup--reverse .mf-wordmark { font-size: 22px; transform: translateY(2px); }
.mf-footer-tag {
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  color: rgba(250, 250, 247, 0.55); max-width: 28ch; margin-top: var(--s-4);
}
.mf-footer-col h6 {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(250, 250, 247, 0.5); margin: 0 0 var(--s-5);
}
.mf-footer-col ul { list-style: none; padding: 0; margin: 0; }
.mf-footer-col li { margin-bottom: var(--s-3); font-size: 14px; }
.mf-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-5); gap: var(--s-5); flex-wrap: wrap;
  font-family: var(--font-body); font-size: 12px;
  color: rgba(250, 250, 247, 0.45);
}
.mf-footer-legal { display: flex; gap: var(--s-5); }

/* ===== REVEAL ANIMATION ===== */
.mf-reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.mf-reveal.in {
  opacity: 1; transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
.mf-mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--mf-paper);
  padding: 96px var(--container-pad) var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-4);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.mf-mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s linear 0s;
}
.mf-mobile-menu a {
  font-family: var(--font-display); font-size: 36px; font-weight: 400;
  color: var(--mf-ink); border-bottom: 0; letter-spacing: -0.01em;
  padding: var(--s-3) 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mf-solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .mf-factory, .mf-factory:nth-child(even) { grid-template-columns: 1fr; gap: var(--s-5); }
  .mf-factory:nth-child(even) .mf-factory-img { order: 0; }
  .mf-brands { grid-template-columns: repeat(3, 1fr); }
  .mf-brand { border-top: 1px solid var(--mf-ink-10); }
  .mf-brand:nth-child(-n+3) { border-top: 0; }
  .mf-brand:nth-child(3n+1) { border-left: 0; }
  .mf-certs { grid-template-columns: repeat(2, 1fr); }
  .mf-cert { border-left: 0; border-top: 1px solid var(--mf-ink-10); }
  .mf-cert:nth-child(-n+2) { border-top: 0; }
  .mf-cert:nth-child(2n+1) { border-right: 1px solid var(--mf-ink-10); }
  .mf-section-head { grid-template-columns: 1fr; gap: var(--s-5); }
  .mf-story { grid-template-columns: 1fr; }
  .mf-footer-grid { grid-template-columns: 1fr 1fr; }
  .mf-nav-links { display: none; }
  .mf-menu-btn { display: inline-flex; }
  .mf-nav-right .mf-btn-p { display: none; }
}
@media (max-width: 720px) {
  .mf-creds-grid { grid-template-columns: 1fr 1fr; row-gap: var(--s-8); }
  .mf-cred:nth-child(3) { border-left: 0; padding-left: 0; }
  .mf-solutions-grid { grid-template-columns: 1fr; }
  .mf-form { grid-template-columns: 1fr; }
  .mf-brands { grid-template-columns: repeat(2, 1fr); }
  .mf-brand { border-top: 1px solid var(--mf-ink-10); }
  .mf-brand:nth-child(-n+2) { border-top: 0; }
  .mf-brand:nth-child(2n+1) { border-left: 0; }
  .mf-brand:nth-child(3n+1) { border-left: 0; }
  /* Compliance row: keep 2-col on phones instead of 1-col stack so five
     tall logo tiles do not push the page into a long scroll. */
  .mf-certs { grid-template-columns: repeat(2, 1fr); }
  .mf-cert { padding: var(--s-6) var(--s-4); }
  .mf-cert:nth-child(odd) { border-right: 1px solid var(--mf-ink-10); }
  .mf-cert:nth-child(even) { border-right: 0 !important; }
  .mf-cert:nth-child(-n+2) { border-top: 0; }
  .mf-cert:nth-child(n+3) { border-top: 1px solid var(--mf-ink-10); }
  .mf-cert-mark { height: 72px; }
  .mf-cert-mark img { height: 56px; max-width: 120px; }
  .mf-cert-mark svg { height: 48px; }
  .mf-hero h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); max-width: none; }
  /* The forced break in the H1 only makes sense at desktop widths; on a phone
     the H1 already wraps naturally, so the explicit break creates an odd
     orphan line. Suppress it. */
  .mf-hero h1 br { display: none; }
  .mf-hero-sub { font-size: 16px; max-width: none; }
  .mf-hero-content { padding-bottom: var(--s-8); }
  /* Stack the hero CTAs full-width on phones so the tap targets are big
     and aligned. */
  .mf-hero-ctas { width: 100%; flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .mf-hero-ctas .mf-btn-p,
  .mf-hero-ctas .mf-btn-hero { width: 100%; justify-content: center; }
  .mf-section { padding: var(--s-9) 0; }
  .mf-section-head { padding-bottom: var(--s-6); }
  .mf-section-head h2 { font-size: clamp(2rem, 7vw, 3rem); }
  .mf-factory-specs { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .mf-footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .mf-hero-eyebrow { top: calc(72px + var(--s-5)); font-size: 10px; }
  /* Programmes spec line gets some breathing room when stacked. */
  .mf-programme { padding: var(--s-5) var(--s-4); }
  /* World map legend wraps two-up on phones and is still tappable. */
  .mf-map-legend { flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
  /* Story image stops being a placeholder card, full width on phone. */
  .mf-story-img { aspect-ratio: 4/3; }
}

/* ===== SMALL PHONE (≤ 480px) ===== */
@media (max-width: 480px) {
  .mf-section { padding: var(--s-8) 0; }
  .mf-section-head { padding-bottom: var(--s-5); }
  .mf-hero-content { padding-bottom: var(--s-7); }
  /* Brands row drops to single column when there isn't room for two logos
     side by side. */
  .mf-brands { grid-template-columns: 1fr; }
  .mf-brand { border-left: 0; border-top: 1px solid var(--mf-ink-10); }
  .mf-brand:first-child { border-top: 0; }
  /* Compliance row drops to single column when even two tiles cramp. */
  .mf-certs { grid-template-columns: 1fr; }
  .mf-cert { border-right: 0 !important; border-top: 1px solid var(--mf-ink-10); }
  .mf-cert:first-child { border-top: 0; }
  .mf-creds-grid { gap: var(--s-5) var(--s-3); row-gap: var(--s-6); }
  .mf-hero h1 { font-size: clamp(2.25rem, 11vw, 3.75rem); }
  .mf-hero-sub { font-size: 15px; }
  .mf-eyebrow { font-size: 10px; }
}

/* ===== BREADCRUMBS ===== */
.mf-crumbs {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--s-4) var(--container-pad) 0;
}
.mf-crumbs-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.mf-crumb {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--mf-ink-40);
}
.mf-crumb-link {
  color: var(--mf-ink-60);
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.mf-crumb-link:hover { color: var(--mf-ink); border-color: var(--mf-ink); }
.mf-crumb-current { color: var(--mf-ink); font-weight: 500; }
.mf-crumb-sep {
  display: inline-flex; align-items: center;
  color: var(--mf-ink-20);
}

/* On dark hero, breadcrumbs sit on paper above the hero. No override needed. */

/* ===== FAQ ACCORDION ===== */
.mf-faq {
  background: var(--mf-paper-warm);
  padding: var(--s-10) 0;
  border-top: 1px solid var(--mf-ink-10);
}
.mf-faq-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.mf-faq-head { margin-bottom: var(--s-7); }
.mf-faq-head .mf-eyebrow { margin-bottom: var(--s-3); }
.mf-faq-h {
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  font-weight: var(--fw-display-light);
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.mf-faq-h em { font-style: italic; }
.mf-faq-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--mf-ink-10);
}
.mf-faq-item {
  border-bottom: 1px solid var(--mf-ink-10);
}
.mf-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  background: transparent; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--mf-ink);
  letter-spacing: -0.01em;
  transition: color 160ms ease;
}
.mf-faq-q:hover { color: var(--mf-accent); }
.mf-faq-q-text { flex: 1; }
.mf-faq-q-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--mf-ink-20);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--mf-ink-60);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 160ms ease, color 160ms ease;
}
.mf-faq-item.open .mf-faq-q-icon {
  transform: rotate(45deg);
  border-color: var(--mf-ink);
  color: var(--mf-ink);
}
.mf-faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mf-faq-item.open .mf-faq-a-wrap {
  grid-template-rows: 1fr;
}
.mf-faq-a-inner {
  min-height: 0;
  overflow: hidden;
}
.mf-faq-a {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--mf-ink-80);
  opacity: 1;
  max-width: 68ch;
}
.mf-faq-item.open .mf-faq-a {
  padding: 0 0 var(--s-5);
}
/* Ensure FAQ items don't stay invisible if the IntersectionObserver fails */
.mf-faq-item.mf-reveal { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .mf-faq-q { font-size: 17px; padding: var(--s-4) 0; gap: var(--s-3); }
  .mf-faq-q-icon { width: 24px; height: 24px; }
}

/* ===== RELATED LINKS ===== */
.mf-related {
  background: var(--mf-paper);
  padding: var(--s-9) 0;
  border-top: 1px solid var(--mf-ink-10);
}
.mf-related-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.mf-related-inner > .mf-eyebrow { margin-bottom: var(--s-5); }
.mf-related-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.mf-related-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--mf-white);
  border: 1px solid var(--mf-ink-10);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--mf-ink);
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  min-height: 140px;
}
.mf-related-card:hover {
  border-color: var(--mf-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.mf-related-eye {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--mf-ink-40);
}
.mf-related-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mf-ink);
  flex: 1;
}
.mf-related-arrow {
  align-self: flex-end;
  color: var(--mf-ink-60);
  transition: color 160ms ease, transform 200ms ease;
}
.mf-related-card:hover .mf-related-arrow {
  color: var(--mf-ink);
  transform: translateX(2px);
}
@media (max-width: 980px) {
  .mf-related-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mf-related-list { grid-template-columns: 1fr; }
}

/* ===== RELATED CONTENT (image-card variant) ===== */
.mf-rc {
  background: var(--mf-paper);
  padding: var(--s-9) 0;
  border-top: 1px solid var(--mf-ink-10);
}
.mf-rc-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.mf-rc-inner > .mf-eyebrow { margin-bottom: var(--s-3); }
.mf-rc-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--mf-ink);
  margin: 0 0 var(--s-6) 0;
  max-width: 22ch;
}
.mf-rc-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.mf-rc-card {
  display: flex; flex-direction: column;
  background: var(--mf-paper);
  border: 1px solid var(--mf-ink-10);
  text-decoration: none;
  color: var(--mf-ink);
  transition: border-color 160ms ease, transform 200ms ease, box-shadow 200ms ease;
  height: 100%;
}
.mf-rc-card:hover {
  border-color: var(--mf-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.mf-rc-img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mf-ink-05);
}
.mf-rc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.mf-rc-card:hover .mf-rc-img img { transform: scale(1.03); }
.mf-rc-body {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-4) var(--s-5) var(--s-5);
  flex: 1;
}
.mf-rc-eye {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mf-ink-40);
}
.mf-rc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--mf-ink);
}
.mf-rc-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--mf-ink-60);
  flex: 1;
}
.mf-rc-arrow {
  margin-top: var(--s-3);
  color: var(--mf-ink-60);
  transition: color 160ms ease, transform 200ms ease;
  align-self: flex-start;
}
.mf-rc-card:hover .mf-rc-arrow { color: var(--mf-ink); transform: translateX(3px); }
@media (max-width: 980px) {
  .mf-rc-grid { grid-template-columns: repeat(2, 1fr); }
  .mf-rc-grid > li:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .mf-rc-grid { grid-template-columns: 1fr; }
  .mf-rc-grid > li:nth-child(3) { grid-column: auto; }
}
