/* ==========================================================================
   MES Platform pages (group B): Fast deployment, Governance and compliance,
   Expert professional services
   ========================================================================== */

/* Hero ------------------------------------------------------------------ */

.mes-b-hero { padding-top: 72px; }
.mes-b-hero .hero__eyebrow { margin-top: 28px; }
.mes-b-title {
  margin-top: 20px; max-width: 1080px;
  font-size: clamp(40px, 5.8vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.04em;
  color: var(--navy);
}
.mes-b-hero__row {
  display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between;
  margin-top: 28px;
}
.mes-b-lede { flex: 1 1 420px; max-width: 660px; font-size: 20px; line-height: 1.55; }
.mes-b-lede--wide { max-width: 740px; text-wrap: balance; }
.mes-b-hero .container--wide { padding-bottom: 88px; }

/* Photo band with floating status cards */
.mes-b-band { position: relative; height: 440px; border-radius: 32px 32px 0 0; overflow: hidden; }
.mes-b-band img { width: 100%; height: 100%; object-fit: cover; }
.mes-b-band::after { content: ""; position: absolute; inset: 0; background: rgba(15,23,41,.18); }
.mes-b-float {
  position: absolute; z-index: 1;
  padding: 14px 18px; border-radius: 16px; background: var(--white);
  box-shadow: 0 16px 36px rgba(15,23,41,.3);
  animation: piq-float 6s ease-in-out infinite;
}
.mes-b-float--a { left: 5%; top: 14%; }
.mes-b-float--b { right: 6%; bottom: 18%; background: var(--orange); animation-duration: 7s; animation-delay: 1s; }
.mes-b-float__label { display: block; font-size: 12px; font-weight: 600; color: var(--petrol); }
.mes-b-float--b .mes-b-float__label { color: var(--navy); }
.mes-b-float__value { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--navy); }
.mes-b-band__note {
  position: absolute; right: 16px; bottom: 12px; z-index: 1;
  padding: 3px 7px; border-radius: 4px; background: rgba(15,23,41,.55);
  font-size: 11px; color: var(--white);
}

/* First section after the hero sits close to it */
.mes-b-first > .container--threaded { padding-top: 24px; }
.mes-b-first .thread__node { top: 8px; }

/* Smaller section headings */
.mes-b-h2 {
  font-size: clamp(28px, 3.2vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  color: var(--navy);
}
.section--slate .mes-b-h2 { color: var(--white); }
.mes-b-h2--md { margin-top: 20px; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; }
.mes-b-h2--lg { margin-top: 20px; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; }

.mes-b-text { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--mist); }
.mes-b-text--lead { margin-top: 18px; }

/* Two-column split used on slate sections */
.mes-b-split { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.mes-b-split--top { gap: 32px 64px; align-items: flex-start; }
.mes-b-split__main { flex: 1 1 380px; }
.mes-b-split__main--md { flex-basis: 420px; }
.mes-b-split__main--sm { flex-basis: 360px; }
.mes-b-split__aside { flex: 1 1 460px; }
.mes-b-split__aside--lg { flex-basis: 520px; }
.mes-b-split__aside p { font-size: 18px; line-height: 1.6; color: var(--mist); }
.mes-b-split__aside .mes-b-small { margin-top: 20px; font-size: 15px; line-height: 1.5; }
.mes-b-split__aside a { color: var(--white); font-weight: 600; }
.mes-b-split__aside a:hover { color: var(--teal-bright); }

/* Five steps on a light background (Fast deployment) -------------------- */

.mes-b-steps { margin-top: 64px; }
.mes-b-steps .steps__track { background: var(--line-strong); }
.mes-b-steps .steps__progress { background: var(--teal); }
.mes-b-steps .step { flex-basis: 180px; }
.mes-b-steps .step h3 { color: var(--navy); }
.mes-b-steps .step p { max-width: none; color: var(--ink); }

/* Deployment models ----------------------------------------------------- */

.mes-b-models {
  display: flex; flex-wrap: wrap; margin-top: 48px;
  background: var(--white); border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,23,41,.1);
}
.mes-b-model { flex: 1 1 300px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.mes-b-model + .mes-b-model { border-left: 1px solid var(--line); }
.mes-b-icon {
  flex: none; width: 34px; height: 34px;
  fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.mes-b-model h3 { font-size: 26px; font-weight: 700; color: var(--navy); }
.mes-b-model > p { font-size: 16px; line-height: 1.5; }
.mes-b-model dl { margin: 6px 0 0; display: flex; flex-direction: column; }
.mes-b-model dl > div { padding: 12px 0; border-top: 1px solid #EEF2F4; }
.mes-b-model dt { font-size: 12px; font-weight: 600; color: var(--petrol); }
.mes-b-model dd { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.mes-b-note { margin-top: 18px; font-size: 15px; color: var(--slate); }
.mes-b-note a { font-weight: 600; }

/* Checklist on slate (What to plan for) ---------------------------------- */

.mes-b-checks { display: flex; flex-direction: column; }
.mes-b-checks li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: 17px; line-height: 1.45; color: var(--white);
}
.mes-b-checks .mes-b-icon { width: 24px; height: 24px; stroke: var(--teal-bright); }

/* Feature grid (Governance capabilities, Services) ----------------------- */

.mes-b-features { display: flex; flex-wrap: wrap; gap: 48px 40px; margin-top: 56px; }
.mes-b-feature { flex: 1 1 300px; padding-top: 24px; border-top: 2px solid var(--navy); }
.mes-b-feature .mes-b-icon { width: 32px; height: 32px; }
.mes-b-feature h3 { margin-top: 16px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.mes-b-feature p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.mes-b-tag {
  display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--teal-bright); color: var(--navy); font-size: 12px; font-weight: 600; line-height: 1.4;
}

.mes-b-features--compact { gap: 44px 40px; }
.mes-b-features--compact .mes-b-feature { flex-basis: 280px; padding-top: 22px; }
.mes-b-features--compact .mes-b-icon { width: 30px; height: 30px; }
.mes-b-features--compact h3 { margin-top: 14px; font-size: 20px; line-height: 1.3; }
.mes-b-features--compact p { margin-top: 8px; font-size: 15px; line-height: 1.55; }

.mes-b-actions {
  display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-strong);
}

/* Numbered process on slate (How we work) -------------------------------- */

.mes-b-process li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.25); }
.mes-b-process__num { flex: none; width: 40px; font-size: 15px; font-weight: 700; color: var(--teal-bright); }
.mes-b-process h3 { font-size: 22px; font-weight: 700; color: var(--white); }
.mes-b-process p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--mist); }

/* Customer quote ------------------------------------------------------- */

.mes-b-quote { max-width: 980px; }
.mes-b-quote__mark { height: 56px; font-size: 120px; line-height: 1; font-weight: 700; color: var(--teal-bright); }
.mes-b-quote blockquote {
  margin: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em;
  color: var(--navy);
}
.mes-b-quote figcaption {
  margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 16px; color: var(--slate);
}
.mes-b-quote figcaption::before { content: ""; width: 32px; height: 2px; background: var(--teal); }

/* Editions matrix (Governance) ------------------------------------------ */

.mes-b-matrix-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.mes-b-matrix-head a { padding: 8px 0; font-size: 16px; font-weight: 600; }
.mes-b-matrix-wrap {
  margin-top: 28px; overflow-x: auto;
  background: var(--white); border-radius: 24px; box-shadow: 0 20px 48px rgba(15,23,41,.08);
}
.mes-b-matrix { width: 100%; min-width: 460px; border-collapse: collapse; table-layout: fixed; }
.mes-b-matrix th, .mes-b-matrix td { padding: 13px 4px; text-align: center; vertical-align: middle; }
.mes-b-matrix th:first-child, .mes-b-matrix td:first-child { width: 40%; padding-left: 28px; text-align: left; }
.mes-b-matrix th:last-child, .mes-b-matrix td:last-child { padding-right: 28px; }
.mes-b-matrix thead th { padding-top: 18px; padding-bottom: 18px; background: var(--navy); color: var(--white); font-size: 15px; font-weight: 700; }
.mes-b-matrix thead th:first-child { font-size: 13px; font-weight: 600; color: #DDF3EF; }
.mes-b-matrix thead th:last-child { color: var(--teal-bright); }
.mes-b-matrix tbody tr { border-top: 1px solid #EEF2F4; }
.mes-b-matrix tbody th { font-size: 15px; font-weight: 400; color: var(--ink); }
.mes-b-yes { display: inline-flex; vertical-align: middle; }
.mes-b-yes svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mes-b-no { display: inline-block; width: 14px; height: 2px; vertical-align: middle; background: #C9D3D9; }
.mes-b-addon {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--line); color: var(--navy); font-size: 12px; font-weight: 600;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 960px) {
  .mes-b-band { height: 360px; }
}

@media (max-width: 720px) {
  .mes-b-hero { padding-top: 48px; }
  .mes-b-lede { font-size: 18px; flex-basis: 100%; }
  .mes-b-hero .container--wide { padding-bottom: 64px; }
  .mes-b-band { height: 300px; border-radius: 24px 24px 0 0; }
  .mes-b-float { padding: 10px 14px; max-width: calc(100% - 32px); }
  .mes-b-float--a { left: 16px; top: 16px; }
  .mes-b-float--b { right: 16px; bottom: 44px; }
  .mes-b-float__value { font-size: 14px; }
  .mes-b-model { padding: 28px 24px; }
  .mes-b-model + .mes-b-model { border-left: 0; border-top: 1px solid var(--line); }
  .mes-b-actions { margin-top: 48px; }
  .mes-b-quote__mark { height: 44px; font-size: 96px; }
  .mes-b-matrix th:first-child, .mes-b-matrix td:first-child { width: 34%; padding-left: 16px; }
  .mes-b-matrix th:last-child, .mes-b-matrix td:last-child { padding-right: 16px; }
  .mes-b-matrix thead th { font-size: 12px; }
  .mes-b-matrix tbody th { font-size: 14px; }
}
