/* =============================================================
   Metal Bureau — main stylesheet
   Mobile-first. Vanilla CSS, design tokens on :root.
   Brand hex values sampled from the supplied LANDING PAGE.png.
   ============================================================= */

/* ---------- Self-hosted variable fonts (assets/fonts/) ------- */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Open Sans";
	src: url("../fonts/open-sans-var.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Design tokens ------------------------------------ */
:root {
	/* Brand reds (sampled from source design) */
	--mb-red-900: #580201;            /* top header bar / darkest */
	--mb-red-800: #680101;            /* footer logo band */
	--mb-red-700: #910105;            /* notice bar + feature strip */
	--mb-red-500: #970000;            /* primary button */
	--mb-red-400: #B50D0D;            /* button hover */
	--mb-red-bright: #F20000;         /* eyebrow label, accent rules, card icons */

	/* Accents & neutrals */
	--mb-gold: #F9BD05;               /* gold lead text in hero */
	--mb-ink: #020D18;                /* dark hero base (blue-black) */
	--mb-overlay: rgba(26, 7, 7, .78);/* glass cards over hero image */
	--mb-white: #FFFFFF;
	--mb-muted: #E8DCDC;              /* muted light text */

	/* Type */
	--mb-font-head: "Montserrat", system-ui, Arial, sans-serif;
	--mb-font-body: "Open Sans", system-ui, Arial, sans-serif;

	/* Scale */
	--mb-radius: 8px;
	--mb-radius-pill: 999px;
	--mb-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	--mb-maxw: min(100%, 1800px);
	--mb-ease: cubic-bezier(.22, .61, .36, 1);
	--mb-speed: 220ms;
}

/* ---------- Reset / base ------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--mb-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--mb-ink);
	background: var(--mb-white);
	-webkit-font-smoothing: antialiased;
	/* Sticky footer: keep the footer at the bottom on short pages so no
	   blank background shows beneath it. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Main content grows to fill the viewport, pushing the footer down. */
.mb-main {
	flex: 1 0 auto;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

h1, h2, h3, h4 {
	font-family: var(--mb-font-head);
	line-height: 1.15;
	margin: 0 0 .5em;
}

p {
	margin: 0 0 1em;
}

a {
	color: inherit;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 3px solid var(--mb-gold);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---------- Utilities ----------------------------------------- */
.mb-container {
	max-width: var(--mb-maxw);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	background: var(--mb-white);
	color: var(--mb-red-700);
	padding: .75rem 1.25rem;
	font-weight: 700;
	border-radius: var(--mb-radius);
}

.skip-link:focus {
	position: fixed !important;
	width: auto;
	height: auto;
	margin: 0;
	clip-path: none;
	white-space: normal;
}

/* Icons inherit currentColor; sized per context below. */
.mb-icon {
	flex: none;
	width: 24px;
	height: 24px;
	transition: transform var(--mb-speed) var(--mb-ease);
}

/* ---------- Buttons ------------------------------------------- */
.mb-btn {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	background: var(--mb-red-500);
	color: var(--mb-white);
	font-family: var(--mb-font-head);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	padding: .85em 1.7em;
	border-radius: var(--mb-radius);
	transition: background var(--mb-speed) var(--mb-ease),
		transform var(--mb-speed) var(--mb-ease),
		box-shadow var(--mb-speed) var(--mb-ease);
}

.mb-btn .mb-icon--arrow {
	width: 18px;
	height: 18px;
}

.mb-btn:hover,
.mb-btn:focus-visible {
	background: var(--mb-red-400);
	transform: translateY(-2px);
	box-shadow: var(--mb-shadow);
}

.mb-btn:hover .mb-icon--arrow,
.mb-btn:focus-visible .mb-icon--arrow {
	transform: translateX(4px);
}

.mb-btn-pill {
	display: inline-block;
	border: 1.5px solid var(--mb-white);
	border-radius: var(--mb-radius-pill);
	color: var(--mb-white);
	font-family: var(--mb-font-head);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	padding: .55em 1.6em;
	transition: background 200ms var(--mb-ease), color 200ms var(--mb-ease);
}

.mb-btn-pill:hover,
.mb-btn-pill:focus-visible {
	background: var(--mb-white);
	color: var(--mb-red-700);
}

/* ---------- Header -------------------------------------------- */
.mb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--mb-red-700);
	color: var(--mb-white);
	transition: box-shadow var(--mb-speed) var(--mb-ease);
}

.admin-bar .mb-header {
	top: 32px;
}

.mb-header.is-scrolled {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.mb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 76px;
	position: relative;
}

.mb-brand {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.mb-brand__mark .mb-icon {
	width: 52px;
	height: 52px;
	display: block;
}

/* Custom logo: keep its real proportions — height is driven by the
   admin control (Customize → Header → Header logo height); width follows
   automatically so any logo (wide lockup or square mark) fits cleanly. */
.mb-brand .custom-logo {
	width: auto;
	height: var(--mb-header-logo-h, 60px);
	max-width: 70vw;
	display: block;
	object-fit: contain;
}

.mb-brand__mark,
.mb-brand__text {
	color: var(--mb-white);
	text-decoration: none;
}

.mb-brand__title {
	display: block;
	font-family: var(--mb-font-head);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1.1;
}

.mb-brand__subtitle {
	display: block;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .92;
}

/* ---------- Navigation ---------------------------------------- */
.mb-nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	padding: 10px;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, .5);
	border-radius: var(--mb-radius);
	cursor: pointer;
}

.mb-nav-toggle__bar {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--mb-white);
	transition: transform var(--mb-speed) var(--mb-ease), opacity var(--mb-speed) var(--mb-ease);
}

.mb-nav-toggle[aria-expanded="true"] .mb-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.mb-nav-toggle[aria-expanded="true"] .mb-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.mb-nav-toggle[aria-expanded="true"] .mb-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile panel */
.mb-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--mb-red-700);
	padding: .5rem clamp(1rem, 4vw, 2rem) 1.5rem;
	box-shadow: 0 14px 24px rgba(0, 0, 0, .35);
}

.mb-nav.is-open {
	display: block;
}

.mb-nav__list {
	display: flex;
	flex-direction: column;
}

.mb-nav__list a {
	position: relative;
	display: block;
	color: var(--mb-white);
	text-decoration: none;
	font-family: var(--mb-font-head);
	font-weight: 600;
	font-size: 1rem;
	padding: .8em 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	transition: color var(--mb-speed) var(--mb-ease);
}

.mb-nav__list a:hover,
.mb-nav__list a:focus-visible {
	color: var(--mb-muted);
}

.mb-nav .mb-btn-pill {
	margin-top: 1.25rem;
}

/* Desktop nav */
@media (min-width: 900px) {
	.mb-nav-toggle {
		display: none;
	}

	.mb-nav {
		display: flex;
		align-items: center;
		gap: 1.75rem;
		position: static;
		background: none;
		padding: 0;
		box-shadow: none;
	}

	.mb-nav__list {
		flex-direction: row;
		gap: 1.75rem;
	}

	.mb-nav__list a {
		padding: .4em 0;
		border-bottom: 0;
		white-space: nowrap;
	}

	/* Animated underline grows from the left on hover/focus. */
	.mb-nav__list a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 2px;
		background: var(--mb-white);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform var(--mb-speed) var(--mb-ease);
	}

	.mb-nav__list a:hover::after,
	.mb-nav__list a:focus-visible::after {
		transform: scaleX(1);
	}

	.mb-nav .mb-btn-pill {
		margin-top: 0;
	}
}

/* ---------- Notice bar ----------------------------------------- */
.mb-notice {
	background: var(--mb-red-900);
	color: var(--mb-white);
	border-top: 1px solid rgba(255, 255, 255, .15);
}

.mb-notice__inner {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding-block: .65rem;
}

.mb-notice .mb-icon--pointer {
	width: 26px;
	height: 26px;
}

.mb-notice__text {
	margin: 0;
	font-size: .95rem;
}

.mb-notice__link {
	color: var(--mb-white);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mb-notice__link:hover,
.mb-notice__link:focus-visible {
	color: var(--mb-gold);
}

/* ---------- Hero ----------------------------------------------- */
.mb-hero {
	position: relative;
	background: var(--mb-ink);
	color: var(--mb-white);
	overflow: hidden;

	/* Mobile: stack text → image → cards (markup order is media first,
	   so flex + display:contents lets us reorder accessibly). */
	display: flex;
	flex-direction: column;
}

.mb-hero__inner {
	display: contents;
}

.mb-hero__media {
	order: 2;
	position: relative;
}

.mb-hero__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.mb-hero__scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(2, 13, 24, .55) 0%, rgba(2, 13, 24, 0) 35%, rgba(2, 13, 24, .55) 100%);
}

.mb-hero__content {
	order: 1;
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) 2.5rem;
	max-width: 620px;
}

.mb-hero__eyebrow {
	color: var(--mb-red-bright);
	font-family: var(--mb-font-head);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: .9rem;
}

.mb-hero__title {
	font-size: clamp(1.4rem, 2.6vw, 2.1rem);
	line-height: 1.1;
	font-weight: 800;
	color: var(--mb-white);
	max-width: 14em;
}

.mb-hero__divider {
	display: block;
	width: 110px;
	height: 3px;
	background: var(--mb-red-bright);
	margin: 1rem 0 1.2rem;
}

.mb-hero__feature {
	display: flex;
	align-items: flex-start;
	gap: 1.1rem;
	margin-bottom: 0.9rem;
	max-width: 34em;
}

.mb-hero__feature .mb-icon {
	width: 44px;
	height: 44px;
	margin-top: .15em;
}

.mb-hero__feature p {
	margin: 0;
	font-size: 1.05rem;
}

.mb-hero__feature--gold {
	color: var(--mb-gold);
}

.mb-hero__feature--gold p {
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.45;
}

.mb-hero .mb-btn {
	margin-top: .6rem;
}

/* ---------- Hero feature cards --------------------------------- */
.mb-cards {
	order: 3;
	display: grid;
	gap: 1.1rem;
	padding: 1.5rem clamp(1rem, 4vw, 2rem) 2.5rem;
}

.mb-card {
	background: var(--mb-overlay);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--mb-radius);
	padding: 1.4rem 1.3rem 1.2rem;
	transition: transform var(--mb-speed) var(--mb-ease), box-shadow var(--mb-speed) var(--mb-ease);
}

.mb-card .mb-icon {
	width: 40px;
	height: 40px;
	color: var(--mb-red-bright);
	margin-bottom: .8rem;
}

.mb-card__title {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--mb-white);
	margin-bottom: .45em;
}

.mb-card__text {
	font-size: .92rem;
	color: var(--mb-muted);
	margin: 0 0 .9em;
}

.mb-card__rule {
	display: block;
	width: 34px;
	height: 3px;
	background: var(--mb-red-bright);
	transition: width var(--mb-speed) var(--mb-ease);
}

.mb-card:hover,
.mb-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--mb-shadow);
}

.mb-card:hover .mb-icon,
.mb-card:focus-within .mb-icon {
	transform: scale(1.08);
}

.mb-card:hover .mb-card__rule,
.mb-card:focus-within .mb-card__rule {
	width: 100%;
}

@media (min-width: 640px) {
	.mb-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Desktop hero: image fills the right side, cards overlap its bottom. */
@media (min-width: 1200px) {
	.mb-hero {
		display: block;
	}

	.mb-hero__inner {
		display: flex;
		align-items: center;
		position: relative;
		min-height: calc(100vh - 120px);
		max-width: var(--mb-maxw);
		margin-inline: auto;
		padding-inline: clamp(1rem, 4vw, 2rem);
	}

	.mb-hero__media {
		position: absolute;
		inset: 0 0 0 34%;
	}

	.mb-hero__img {
		width: 100%;
		height: 100%;
	}

	/* Blend the image into the dark left panel and darken its base. */
	.mb-hero__scrim {
		background:
			linear-gradient(90deg, var(--mb-ink) 0%, rgba(2, 13, 24, .55) 22%, rgba(2, 13, 24, 0) 48%),
			linear-gradient(180deg, rgba(2, 13, 24, .35) 0%, rgba(2, 13, 24, 0) 30%, rgba(2, 13, 24, .6) 100%);
	}

	.mb-hero__content {
		position: relative;
		z-index: 2;
		max-width: 480px;
		padding: 1.5rem 0;
	}

	.mb-cards {
		position: absolute;
		z-index: 2;
		left: 50%;
		right: clamp(1rem, 4vw, 2rem);
		bottom: 2.5rem;
		padding: 0;
	}
}

/* ---------- Red feature strip ----------------------------------- */
.mb-strip {
	background: var(--mb-red-900);
	color: var(--mb-white);
}

.mb-strip__list {
	display: grid;
	gap: 1.5rem;
	padding-block: 2rem;
}

.mb-strip__item {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding-inline: .5rem;
}

.mb-strip__item .mb-icon {
	width: 52px;
	height: 52px;
	stroke-width: 1.6;
}

.mb-strip__item:hover .mb-icon {
	transform: scale(1.07);
}

/* Linkable columns (e.g. Jack-Up / Land Rig → BOM pages). */
.mb-strip__link {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.mb-strip__item--link {
	cursor: pointer;
}

.mb-strip__item--link:hover .mb-strip__title,
.mb-strip__link:focus-visible .mb-strip__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mb-strip__title {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin-bottom: .25em;
}

.mb-strip__text {
	font-size: .9rem;
	margin: 0;
	opacity: .92;
}

@media (min-width: 640px) {
	.mb-strip__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.mb-strip__item:nth-child(even) {
		border-left: 1px solid rgba(255, 255, 255, .28);
		padding-left: 1.5rem;
	}
}

@media (min-width: 1100px) {
	.mb-strip__list {
		grid-template-columns: repeat(4, 1fr);
	}

	.mb-strip__item:nth-child(n+2) {
		border-left: 1px solid rgba(255, 255, 255, .28);
		padding-left: 1.5rem;
	}
}

/* ---------- Footer logo bands ------------------------------------ */
.mb-logos {
	background: var(--mb-red-800);
	color: var(--mb-white);
	border-top: 1px solid rgba(255, 255, 255, .15);
}

.mb-logos__inner {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding-block: 2rem;
}

.mb-logos__heading {
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 1.25rem;
}

.mb-logos__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem 1.1rem;
}

.mb-icon--img {
	object-fit: contain;
}

.mb-logos__item {
	flex: 0 0 auto;
	/* Every logo sits on a solid white tile, so any uploaded logo
	   (transparent PNG or coloured) always reads cleanly on the red band. */
	background: #fff;
	border-radius: 6px;
	padding: 8px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mb-logos__item a {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Footer logo auto-scroll marquee (enabled by main.js only when a row overflows) */
.mb-logos__group.mb-has-marquee {
	overflow: hidden;
}

.mb-logos__list.mb-marquee {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
	will-change: transform;
	animation: mb-logos-scroll var(--mb-marquee-dur, 30s) linear infinite;
}

.mb-logos__group.mb-has-marquee:hover .mb-logos__list.mb-marquee {
	animation-play-state: paused;
}

@keyframes mb-logos-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(var(--mb-marquee-shift, 600px) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
	.mb-logos__list.mb-marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.mb-logos__group.mb-has-marquee { overflow: visible; }
}

.mb-logos__item img {
	display: block;
	width: auto;
	height: var(--mb-logo-size, 44px);
	opacity: .85;
	filter: grayscale(35%);
	transition: opacity var(--mb-speed) var(--mb-ease), filter var(--mb-speed) var(--mb-ease);
}

.mb-logos__item:hover img,
.mb-logos__item a:focus-visible img {
	opacity: 1;
	filter: grayscale(0%);
}

@media (min-width: 900px) {
	.mb-logos__inner {
		flex-direction: row;
		align-items: flex-start;
	}

	.mb-logos__group:first-child {
		flex: 5;
	}

	.mb-logos__group:last-child {
		flex: 8;
		border-left: 1px solid rgba(255, 255, 255, .3);
		padding-left: 2.5rem;
	}
}

/* ---------- Footer: dark info block (all pages) -------------------- */
.mb-footer__main {
	background: #0F172A;
	color: #C7CDD6;
}

.mb-footer__grid {
	display: grid;
	gap: 2rem;
	padding-block: 2.75rem;
}

.mb-footer__heading {
	color: var(--mb-white);
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: .7rem;
}

.mb-footer__blurb {
	margin: 0;
	max-width: 34em;
	line-height: 1.65;
}

.mb-footer__list {
	display: flex;
	flex-direction: column;
	gap: .45rem;
}

.mb-footer__list a {
	color: #C7CDD6;
	text-decoration: none;
	transition: color var(--mb-speed) var(--mb-ease);
}

.mb-footer__list a:hover,
.mb-footer__list a:focus-visible {
	color: var(--mb-white);
}

@media (min-width: 768px) {
	.mb-footer__grid {
		grid-template-columns: 1.4fr 1fr;
	}
}

/* ---------- Footer: bottom bar -------------------------------------- */
.mb-footer__bottom {
	background: #0B111F;
	color: #8E96A3;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.mb-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .5rem 1.5rem;
	padding-block: 1.1rem;
}

.mb-footer__copy,
.mb-footer__badges {
	margin: 0;
	font-size: .85rem;
}

/* ---------- Generic inner-page content ----------------------------- */
.mb-page {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.mb-entry__title {
	color: var(--mb-ink);
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.mb-entry__title a {
	text-decoration: none;
}

.mb-entry__content a {
	color: var(--mb-red-700);
}

.mb-404 {
	text-align: center;
}

/* ---------- Scroll-in reveal ----------------------------------------
   The hidden state only applies once main.js has tagged <html> with
   .js — if JavaScript ever fails to load, nothing is hidden. */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 520ms var(--mb-ease), transform 520ms var(--mb-ease);
}

.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* Stagger sibling cards / strip columns. */
.mb-card:nth-child(2),
.mb-strip__item:nth-child(2) {
	transition-delay: 110ms;
}

.mb-card:nth-child(3),
.mb-strip__item:nth-child(3) {
	transition-delay: 220ms;
}

.mb-strip__item:nth-child(4) {
	transition-delay: 330ms;
}

/* ---------- About page ----------------------------------------------- */
.mb-about-hero {
	background: linear-gradient(135deg, var(--mb-red-900) 0%, var(--mb-red-700) 100%);
	color: var(--mb-white);
	text-align: center;
	padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 5vw, 3.25rem);
}

.mb-about-hero__title {
	font-size: clamp(1.9rem, 3.5vw, 2.4rem);
	font-weight: 800;
	color: var(--mb-white);
	margin-bottom: .25em;
}

.mb-about-hero__tagline {
	font-size: clamp(1rem, 2vw, 1.15rem);
	font-weight: 600;
	color: var(--mb-muted);
	margin-bottom: .9rem;
}

.mb-about-hero__lead {
	max-width: 56em;
	margin: 0 auto;
	font-size: .98rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .94);
}

.mb-about__section {
	padding: clamp(2.25rem, 5vw, 3rem) 0;
	background: var(--mb-white);
}

.mb-about__section--alt {
	background: #F6F7F9;
}

.mb-about__section h2 {
	color: var(--mb-red-900);
	font-size: clamp(1.4rem, 2.8vw, 1.8rem);
	margin-bottom: .45em;
}

.mb-about__section h3 {
	color: var(--mb-red-700);
	font-size: 1.1rem;
	margin-bottom: .6em;
}

.mb-about__section p {
	max-width: none;
	color: #334155;
}

/* Rich-text section bodies (ACF WYSIWYG) on prose pages */
.mb-section-body {
	color: #334155;
}
.mb-section-body p {
	margin: 0 0 1rem;
}
.mb-section-body ul {
	list-style: none;
	margin: 0 0 1.1rem;
	padding: 0;
}
.mb-section-body li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: .45em;
}
.mb-section-body li::before {
	content: "";
	position: absolute;
	left: .2em;
	top: .55em;
	width: .45em;
	height: .45em;
	background: var(--mb-red-bright);
	border-radius: 2px;
}
.mb-section-body strong {
	color: var(--mb-red-900);
}
.mb-section-body blockquote {
	margin: 1.2rem 0;
	padding-left: 1.2rem;
	border-left: 4px solid var(--mb-red-bright);
	font-style: italic;
	font-size: 1.15rem;
	color: var(--mb-ink);
}

.mb-about__divider {
	display: block;
	width: 52px;
	height: 3px;
	background: var(--mb-red-bright);
	border-radius: 2px;
	margin-bottom: .9rem;
}

.mb-about__divider--center {
	margin-inline: auto;
}

.mb-about__list {
	margin: 0 0 1.1rem;
	color: #334155;
}

.mb-about__list li {
	position: relative;
	padding-left: 1.5em;
	margin-bottom: .45em;
}

.mb-about__list li::before {
	content: "";
	position: absolute;
	left: .2em;
	top: .55em;
	width: .45em;
	height: .45em;
	border-radius: 50%;
	background: var(--mb-red-bright);
}

/* Umbrella-solution cards */
.mb-about-cards {
	display: grid;
	gap: 1.25rem;
	margin-top: 1.25rem;
}

.mb-about-card {
	background: var(--mb-white);
	border: 1px solid #E2E8F0;
	border-radius: var(--mb-radius);
	padding: 1.4rem 1.3rem;
	transition: transform var(--mb-speed) var(--mb-ease), box-shadow var(--mb-speed) var(--mb-ease);
}

.mb-about-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--mb-shadow);
}

@media (min-width: 640px) {
	.mb-about-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.mb-about-cards {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Region tags */
.mb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .9rem 0 1.1rem;
}

.mb-tags li {
	padding: .3em .9em;
	background: #FDF2F2;
	border: 1px solid #F5D5D5;
	border-radius: var(--mb-radius-pill);
	color: var(--mb-red-900);
	font-size: .86rem;
	font-weight: 500;
}

/* Certifications */
.mb-cert-grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 1rem;
}

@media (min-width: 768px) {
	.mb-cert-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.mb-cert-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
}

.mb-cert-chips li {
	background: var(--mb-white);
	border: 1px solid #E2E8F0;
	border-radius: 6px;
	padding: .25em .7em;
	font-size: .86rem;
	font-weight: 500;
	color: #334155;
}

/* Commitment */
.mb-about__commit {
	max-width: 880px;
	text-align: center;
}

.mb-quote {
	background: #FDF2F2;
	border-left: 4px solid var(--mb-red-bright);
	border-radius: 0 var(--mb-radius) var(--mb-radius) 0;
	padding: 1.3rem 1.5rem;
	margin: 1.25rem 0;
	font-style: italic;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #1E293B;
	text-align: left;
}

.mb-about__closing {
	font-weight: 700;
	color: var(--mb-red-900);
	margin-top: .75rem;
}

/* ---------- MRO scope-matrix pages ------------------------------------ */
/* Pipe-separated inline capability list (Engineering Basis) */
.mb-mro-pipes {
	display: block;
	margin: 0;
	color: #1E293B;
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.7;
}

.mb-mro-pipes li {
	display: inline;
}

.mb-mro-pipes li:not(:last-child)::after {
	content: " | ";
	color: var(--mb-red-700);
	font-weight: 400;
	margin: 0 .35em;
}

/* Zone matrix card grid */
.mb-mro-matrix {
	display: grid;
	gap: .9rem;
	margin-top: 1.25rem;
}

@media (min-width: 640px) {
	.mb-mro-matrix {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.mb-mro-matrix {
		grid-template-columns: repeat(4, 1fr);
	}
}

.mb-mro-card {
	background: linear-gradient(160deg, var(--mb-red-700) 0%, #4A0608 100%);
	color: var(--mb-white);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--mb-radius);
	padding: 1.15rem 1rem;
	transition: transform var(--mb-speed) var(--mb-ease), box-shadow var(--mb-speed) var(--mb-ease);
}

.mb-mro-card:nth-child(3n+2) {
	background: linear-gradient(160deg, #A11420 0%, #6E0E14 100%);
}

.mb-mro-card:nth-child(3n) {
	background: linear-gradient(160deg, #6E1013 0%, #420709 100%);
}

.mb-mro-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--mb-shadow);
}

.mb-mro-card__head {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .75rem;
}

.mb-mro-card__head svg,
.mb-mro-card__img {
	width: var(--mb-icon-size, 44px);
	height: var(--mb-icon-size, 44px);
	object-fit: contain;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mb-mro-card__head h3 {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.25;
	color: var(--mb-white);
}

.mb-mro-card__block + .mb-mro-card__block {
	border-top: 1px solid rgba(255, 255, 255, .3);
	margin-top: .75rem;
	padding-top: .75rem;
}

.mb-mro-card__block h4 {
	display: flex;
	align-items: center;
	gap: .45rem;
	margin: 0 0 .3em;
	font-size: .85rem;
	color: var(--mb-white);
}

.mb-mro-card__block h4::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--mb-white);
	flex: none;
}

.mb-mro-card__block p {
	margin: 0;
	font-size: .83rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, .95);
	max-width: none;
}

/* Data tables */
.mb-table-wrap {
	overflow-x: auto;
	margin-top: 1rem;
}

.mb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9rem;
	background: var(--mb-white);
}

.mb-table th {
	background: var(--mb-red-700);
	color: var(--mb-white);
	text-align: left;
	padding: .7em .85em;
	border: 1px solid rgba(255, 255, 255, .2);
	font-family: var(--mb-font-head);
	font-weight: 600;
}

.mb-table td {
	padding: .65em .85em;
	border: 1px solid #E2E8F0;
	vertical-align: top;
	color: #334155;
}

/* Engineering note callout */
.mb-note {
	background: #FFF8DC;
	border-left: 5px solid #E9A100;
	border-radius: 0 var(--mb-radius) var(--mb-radius) 0;
	padding: 1.1rem 1.3rem;
	color: #1E293B;
}

.mb-note strong {
	display: block;
	margin-bottom: .5rem;
	color: #1E293B;
}

.mb-note .mb-about__list {
	margin-bottom: 0;
}

/* ---------- Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
	}

	.mb-btn:hover,
	.mb-card:hover {
		transform: none;
	}
}
