mf-page {
  --mf-navy: #0c2238;
  --mf-ink: #10273d;
  --mf-muted: #52687c;
  --mf-soft: #f0f5f8;
  --mf-line: #d2e0ea;
  --mf-orange: #f87522;
}

.mf-wrap {
  width: min(calc(100% - 48px),1200px);
  margin-inline: auto;
}

.mf-hero {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 64px 0 86px;
  background: #0c1b29;
  color: #fff;
  overflow: hidden;
}

.mf-frames,.mf-frame,.mf-hero::after {
  position: absolute;
  inset: 0;
}

.mf-frames {
  z-index: -2;
}

.mf-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  opacity: 0;
  transition: opacity .65s ease;
}

.mf-frame.is-visible {
  opacity: 1;
}

.mf-hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg,#06182cf5 3%,#0a1d32dd 37%,#0a1d3268 78%,#08172554),linear-gradient(0deg,#091b2ccb,transparent 43%);
}

.mf-hero .eyebrow,.mf-quality .eyebrow {
  color: #84d1f0;
}

.mf-hero h1 {
  font-size: clamp(38px,5.3vw,76px);
  letter-spacing: -.052em;
  line-height: 1.035;
  color: #fff;
  max-width: 980px;
  margin: 16px 0 19px;
}

.mf-hero p {
  max-width: 490px;
  margin: 0;
  color: #e0eaf3;
  font-size: clamp(15px,1.3vw,19px);
}

.mf-hero .hero-actions {
  margin-top: 25px;
}

.mf-hero .button-secondary {
  border-color: #a4bdd0;
  color: #fff;
  background: #0b1f36a8;
}

.mf-slides {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
}

.mf-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mf-caption {
  font-size: 12px;
  letter-spacing: .06em;
  margin-right: 10px;
  color: #e7f2fb;
}

.mf-control {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #7993a9;
  border-radius: 6px;
  background: #0a2037cd;
  color: #fff;
  cursor: pointer;
  font: 600 12px/1 Inter,Arial,sans-serif;
}

.mf-control:is(:hover,:focus-visible) {
  border-color: #ffae82;
}

.mf-control[aria-pressed="true"] {
  border-color: #f87522;
  background: #f87522;
  color: #102237;
}

.mf-play-control {
  margin-left: 4px;
  font-size: 14px;
}

.mf-block {
  padding: 78px 0;
  color: var(--mf-ink);
  scroll-margin-top: 16px;
}

.mf-soft {
  background: var(--mf-soft);
}

.mf-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,390px);
  gap: 28px;
  align-items: end;
  margin-bottom: 29px;
}

.mf-head h2 {
  font-size: clamp(32px,4vw,57px);
  line-height: 1.055;
  letter-spacing: -.05em;
  margin: 6px 0 0;
  color: inherit;
}

.mf-head p {
  margin: 0 0 2px;
  color: var(--mf-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 390px;
}

.mf-grid {
  display: grid;
  gap: 14px;
}

.mf-steps {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.mf-step {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: 9px;
  overflow: hidden;
}

.mf-step img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.mf-step-copy {
  padding: 16px 17px 18px;
}

.mf-step-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mf-step-tag {
  color: #9e3f0a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.mf-step h3,.mf-row h3 {
  margin: 0;
  color: inherit;
  line-height: 1.2;
  font-size: clamp(15px,1.28vw,20px);
}

.mf-step p,.mf-row p {
  margin: 8px 0 0;
  color: var(--mf-muted);
  font-size: 13px;
  line-height: 1.55;
}

.mf-machines {
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 176px 176px;
}

.mf-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 9px;
  background: #132b40;
}

.mf-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  min-height: 65px;
  display: flex;
  align-items: flex-end;
  padding: 15px 13px 11px;
  color: #fff;
  background: linear-gradient(0deg,#07192bf2,#07192b00);
  font-size: 13px;
  font-weight: 700;
}

.mf-photo.mf-main-photo {
  grid-row: span 2;
}

.mf-main-photo figcaption {
  font-size: 20px;
  padding: 20px;
}

.mf-detail-line {
  border-top: 1px solid var(--mf-line);
  margin: 19px 0 0;
  padding: 14px 0 0;
  color: var(--mf-muted);
  font-size: 14px;
}

.mf-split {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  align-items: stretch;
  gap: 36px;
}

.mf-four-images {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.mf-four-images .mf-photo img {
  aspect-ratio: 16/10;
}

.mf-rows {
  display: grid;
  align-content: stretch;
}

.mf-row {
  border-top: 1px solid var(--mf-line);
  padding: 15px 0 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-content: center;
}

.mf-row:last-child {
  border-bottom: 1px solid var(--mf-line);
}

.mf-number,.mf-mark {
  color: #a94912;
  font-size: 12px;
  font-weight: 800;
  min-width: 25px;
  line-height: 1.5;
}

.mf-quality {
  background: radial-gradient(ellipse at 88% 0,#123f5b,#0a2339 56%,#071d31);
  color: #f5faff;
}

.mf-quality .mf-head p,.mf-quality .mf-row p {
  color: #c2d2e0;
}

.mf-quality .mf-number {
  color: #ffc196;
}

.mf-quality .mf-row {
  border-color: #38576d;
}

.mf-quality .mf-photo img {
  aspect-ratio: 16/8.5;
}

.mf-lab-grid {
  margin-top: 22px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.mf-lab {
  margin: 0;
  border: 1px solid #36536b;
  border-radius: 8px;
  overflow: hidden;
  background: #112e46;
}

.mf-lab img {
  width: 100%;
  height: 152px;
  display: block;
  object-fit: contain;
  background: #f8fafc;
  padding: 10px;
}

.mf-lab figcaption {
  padding: 11px 13px;
  color: #f6faff;
  font-size: 13px;
  font-weight: 700;
}

.mf-methods {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 0;
  margin: 18px 0 0;
  gap: 0 18px;
  list-style: none;
}

.mf-methods li {
  border-top: 1px solid #38576d;
  padding: 10px 0;
  color: #deebf4;
  font-size: 13px;
}

.mf-methods li::before {
  content: "✓";
  color: #ffb483;
  margin-right: 9px;
  font-weight: 800;
}

.mf-scope-note {
  font-size: 12px;
  color: #b8cadb;
  margin: 11px 0 0;
}

.mf-5s {
  background: #fff;
}

.mf-5s .mf-head {
  grid-template-columns: 1fr;
}

.mf-5s-gallery {
  display: grid;
  gap: 9px;
}

.mf-5s-overview img {
  height: 230px;
  object-position: center 62%;
}

.mf-5s-overview figcaption {
  font-size: 18px;
  padding: 16px;
}

.mf-5s-details {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}

.mf-5s-details .mf-photo img {
  height: 112px;
}

.mf-5s-details .mf-photo:first-child img {
  object-position: 72% 50%;
}

.mf-5s .mf-row {
  padding: 12px 0;
}

.mf-export {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.mf-export .mf-photo img {
  aspect-ratio: 16/9;
}

.mf-page .factory-final-cta {
  padding-top: 0;
}

@media (max-width:950px) {
  .mf-block {
    padding: 60px 0;
  }
  .mf-split {
    gap: 24px;
  }
  .mf-machines {
    grid-template-rows: 145px 145px;
  }
  .mf-steps {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .mf-hero {
    min-height: 510px;
  }
  .mf-caption {
    font-size: 11px;
  }
}

@media (max-width:660px) {
  .mf-wrap {
    width: calc(100% - 32px);
  }
  .mf-block {
    padding: 45px 0;
  }
  .mf-hero {
    padding: 54px 0 90px;
    min-height: 485px;
  }
  .mf-hero::after {
    background: linear-gradient(90deg,#071a2dec,#0b1e3292),linear-gradient(0deg,#091b2ce9,transparent);
  }
  .mf-hero h1 {
    font-size: clamp(34px,9vw,46px);
    margin: 13px 0 15px;
  }
  .mf-hero .hero-actions {
    gap: 8px;
  }
  .mf-hero .button {
    font-size: 12px;
    padding-inline: 10px;
  }
  .mf-controls {
    justify-content: flex-start;
  }
  .mf-caption {
    flex: 1;
    letter-spacing: 0;
    margin: 0;
  }
  .mf-control {
    width: 36px;
    height: 36px;
  }
  .mf-controls {
    gap: 5px;
  }
  .mf-head {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 21px;
  }
  .mf-head h2 {
    font-size: clamp(31px,8.35vw,41px);
  }
  .mf-head p {
    font-size: 14px;
  }
  .mf-grid {
    gap: 9px;
  }
  .mf-step-copy {
    padding: 12px;
  }
  .mf-step-top {
    align-items: flex-start;
    gap: 6px;
  }
  .mf-step-tag {
    font-size: 9px;
  }
  .mf-step h3 {
    font-size: 14px;
  }
  .mf-step p {
    font-size: 12px;
  }
  .mf-machines {
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-rows: 170px 118px 118px;
  }
  .mf-photo.mf-main-photo {
    grid-row: 1;
    grid-column: 1/-1;
  }
  .mf-photo figcaption {
    min-height: 46px;
    padding: 10px 8px 6px;
    font-size: 11px;
  }
  .mf-main-photo figcaption {
    font-size: 15px;
    padding: 12px;
  }
  .mf-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mf-row {
    padding: 12px 0;
    gap: 9px;
  }
  .mf-5s-overview img {
    height: 172px;
  }
  .mf-5s-overview figcaption {
    font-size: 15px;
    padding: 10px;
  }
  .mf-5s-details {
    gap: 6px;
  }
  .mf-5s-details .mf-photo img {
    height: 91px;
  }
  .mf-5s-details .mf-photo figcaption {
    font-size: 10px;
    line-height: 1.24;
    padding: 9px 6px 6px;
  }
  .mf-lab-grid {
    margin-top: 17px;
    gap: 7px;
  }
  .mf-lab img {
    height: 78px;
    padding: 4px;
  }
  .mf-lab figcaption {
    font-size: 10px;
    padding: 8px 6px;
  }
  .mf-methods {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 9px;
  }
  .mf-methods li {
    font-size: 11px;
  }
  .mf-export {
    grid-template-columns: 1fr;
  }
  .mf-export .mf-photo img {
    aspect-ratio: 16/7;
  }
}

@media (prefers-reduced-motion:reduce) {
  .mf-frame {
    transition: none;
  }
}

.mf-page .mf-hero h1,
.mf-page .mf-head h2,
.mf-page .factory-cta-panel h2 {
  font-family: "Barlow Semi Condensed",Inter,Arial,sans-serif;
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.08;
}

.mf-page .mf-hero h1 {
  font-size: clamp(38px,5.05vw,73px);
  max-width: 1000px;
  text-wrap: balance;
}

.mf-page .mf-head h2 {
  font-size: clamp(33px,4vw,57px);
}

.mf-page .mf-hero p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
}

.mf-page .mf-head p,.mf-page .mf-step p,.mf-page .mf-row p {
  font-size: 16px;
  line-height: 1.58;
}

.mf-page .mf-row h3,.mf-page .mf-step h3 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.28;
}

.mf-page .mf-photo figcaption,.mf-page .mf-lab figcaption {
  line-height: 1.3;
}

@media (max-width:660px) {
  .mf-page .mf-hero h1 {
    font-size: clamp(32px,9vw,40px);
    text-wrap: balance;
  }
  .mf-page .mf-hero p {
    font-size: 16px;
  }
  .mf-page .mf-head h2 {
    font-size: clamp(31px,8.9vw,41px);
  }
  .mf-page .mf-step p {
    font-size: 14px;
  }
  .mf-page .mf-photo figcaption,.mf-page .mf-lab figcaption,.mf-page .mf-5s-details .mf-photo figcaption {
    font-size: 12px;
  }
  .mf-page .mf-5s-overview figcaption {
    font-size: 15px;
  }
}

.mf-page .mf-5s figcaption {
  text-shadow: 0 1px 3px #071727d9;
  background: linear-gradient(0deg,#07192bd9 0%,#07192b47 53%,transparent 100%);
}

#manufacturing-process .mf-step:nth-child(2) img {
  object-position: center 63%;
}

#manufacturing-process .mf-step:nth-child(3) img {
  object-position: center 59%;
}

#manufacturing-process .mf-step:nth-child(4) img {
  object-position: 57% 54%;
}

.mf-page .mf-5s {
  scroll-margin-top: 92px;
}

/* Six documentary packing/export photos, no caption overlays. */
.mf-export.mf-export--six .mf-photo{aspect-ratio:16/9}
.mf-export.mf-export--six .mf-photo img{height:100%;aspect-ratio:auto}
