/* MMPL website — page layout and block styles. Builds on tokens + components. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--on-surface); font-family: var(--font-body); font-size: 15px; line-height: 24px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--vermilion-deep); }
:focus-visible { outline: 2px solid var(--status-critical); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--slate-black); color: var(--on-primary); padding: 10px 16px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.skip-link:focus { top: 8px; color: var(--on-primary); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mm-icon { font-family: 'Material Symbols Outlined'; }

:root { --pad: 96px; --sec-y: 96px; --gap: 48px; }
@media (max-width: 1100px) { :root { --pad: 40px; --sec-y: 72px; --gap: 40px; } }
@media (max-width: 767px) { :root { --pad: 20px; --sec-y: 48px; --gap: 32px; } }

.wrap { max-width: calc(1248px + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- type */
.code { margin: 0; font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.code.muted { color: var(--secondary); }
.code.copper { color: var(--mineral-bronze); }
.h1 { margin: 0; font-family: var(--font-display); font-size: 52px; line-height: 56px; font-weight: 700; letter-spacing: -.03em; }
.h1-hero { font-size: 60px; line-height: 62px; }
.h1 em { font-style: normal; color: var(--primary); }
.h2 { margin: 0; font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; }
.h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; }
.lead { margin: 0; font-size: 18px; line-height: 28px; color: var(--on-surface-variant); }
.body { margin: 0; font-size: 15px; line-height: 24px; color: var(--on-surface-variant); }
.body-lg { margin: 0; font-size: 17px; line-height: 28px; color: var(--on-surface-variant); }
.small { margin: 0; font-size: 13px; line-height: 20px; color: var(--secondary); }
@media (max-width: 767px) {
  .h1, .h1-hero { font-size: 34px; line-height: 38px; }
  .h1-hero { font-size: 38px; line-height: 42px; }
  .h2 { font-size: 28px; line-height: 32px; letter-spacing: -.01em; }
  .lead { font-size: 17px; }
}

/* ---------- chrome: top strip, header, nav */
.topstrip { background: var(--stone-surface); border-bottom: 1px solid var(--blueprint-border); font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.topstrip .group { display: flex; gap: 20px; align-items: center; }
.topstrip a { color: var(--secondary); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.topstrip .accent { color: var(--primary); }
@media (max-width: 1100px) { .topstrip { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface-container-lowest); border-bottom: 1px solid var(--blueprint-border); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-text { display: flex; flex-direction: column; border-left: 1px solid var(--blueprint-border); padding-left: 12px; }
.brand-name { font-family: var(--font-display); font-size: 15px; line-height: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface); }
.brand-sub { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav a { display: block; padding: 26px 0 24px; border-bottom: 2px solid transparent; color: var(--on-surface-variant); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; }
.main-nav a:hover { color: var(--primary); }
.main-nav a[aria-current] { color: var(--primary); border-bottom-color: var(--primary); }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; background: transparent; border: 1px solid var(--outline); border-radius: 0; cursor: pointer; color: var(--on-surface); }
@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .brand img { height: 28px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface-container-lowest); border-bottom: 1px solid var(--blueprint-border); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--pad) 16px; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--blueprint-border-light); }
  .main-nav a[aria-current] { border-bottom-color: var(--blueprint-border-light); }
  .main-nav .mobile-cta { display: block; padding-top: 16px; }
}
.main-nav .mobile-cta { display: none; }

.subnav { background: var(--stone-surface); border-bottom: 1px solid var(--blueprint-border); }
.subnav ul { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { display: block; padding: 10px 14px; border: 1px solid var(--blueprint-border); background: var(--surface-container-lowest); color: var(--on-surface); font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.subnav a:hover { border-color: var(--slate-black); color: var(--on-surface); }
.subnav a[aria-current] { background: var(--slate-black); border-color: var(--slate-black); color: var(--on-primary); }
.subnav-toggle { display: none; }

.preview-bar { background: var(--status-caution); color: var(--slate-black); font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-align: center; padding: 8px; }

/* ---------- sections */
.sec { padding-block: var(--sec-y); border-top: 1px solid var(--blueprint-border); }
.sec-white { background: var(--surface-container-lowest); }
.sec-stone { background: var(--stone-surface); }
.sec-dark { background: var(--slate-black); border-top-color: var(--slate-black); color: var(--on-primary); }
.sec-dark .h2, .sec-dark .h3 { color: var(--on-primary); }
.sec-dark .body, .sec-dark .lead { color: var(--secondary-fixed-dim); }
.sec-dark .code { color: var(--inverse-primary); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.sec-head > div { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.sec-head .body { max-width: 440px; }
@media (max-width: 900px) { .sec-head { flex-direction: column; align-items: flex-start; } }

.dots { background-color: var(--surface-container-lowest); background-image: radial-gradient(var(--blueprint-border-light) 1px, transparent 1px); background-size: 28px 28px; }
.hero { padding-block: 72px; border-bottom: 1px solid var(--blueprint-border); }
.hero-inner { display: flex; flex-direction: column; gap: 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
@media (max-width: 767px) { .hero { padding-block: 40px 48px; } .hero-inner { gap: 32px; } }

.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.home-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.home-hero-sub { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--secondary); }
.badges span { display: inline-flex; gap: 6px; align-items: center; }
.hero-photo { position: relative; }
.hero-photo .mm-hud { position: absolute; left: -40px; bottom: 40px; }
@media (max-width: 1100px) { .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; } .hero-photo .mm-hud { left: 12px; bottom: -40px; } }

/* ---------- grids */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid.gap-sm { gap: 16px; }
.cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; } .cols-5 { --cols: 5; } .cols-6 { --cols: 6; }
@media (max-width: 1100px) { .cols-4, .cols-5, .cols-6 { --cols: 3; } .cols-3 { --cols: 2; } }
@media (max-width: 767px) { .grid { --cols: 1; gap: 16px; } .grid.keep-2 { --cols: 2; } .grid.keep-3 { --cols: 3; } }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); gap: 24px; } .split.flip > :first-child { order: 0; } }
.col { display: flex; flex-direction: column; gap: 20px; }
.col-lg { display: flex; flex-direction: column; gap: 28px; }

/* ---------- photo placeholder / media */
.photo { position: relative; min-height: 240px; background-color: var(--slate-black); background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 28px 28px; display: flex; align-items: flex-end; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .photo-label { position: relative; padding: 16px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary-fixed-dim); }
.photo .mm-tag { position: absolute; top: 16px; left: 16px; z-index: 1; }
.photo .photo-spec { position: absolute; top: 16px; right: 16px; z-index: 1; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--tertiary-fixed-dim); }
.photo.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,20,28,.7), rgba(15,20,28,0) 55%); }
.photo.has-img .photo-label { z-index: 1; color: var(--on-primary); }
.photo-lg { min-height: 360px; } .photo-xl { min-height: 520px; }
@media (max-width: 767px) { .photo-lg { min-height: 220px; } .photo-xl { min-height: 300px; } .photo .photo-spec { display: none; } }

/* ---------- lists, specs, tables */
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bullets li { position: relative; padding-left: 16px; font-size: 15px; line-height: 24px; color: var(--on-surface-variant); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--primary); }
.sec-dark .bullets li { color: var(--secondary-fixed-dim); }
.specs { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 1px solid var(--blueprint-border-light); }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--blueprint-border-light); }
.specs dt { padding-right: 16px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.specs dd { font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 600; color: var(--on-surface); text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--blueprint-border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th[scope=col] { padding: 12px 16px; text-align: left; background: var(--slate-black); color: var(--on-primary); font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.data-table th[scope=row] { padding: 12px 16px; text-align: left; font-family: var(--font-display); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--on-surface); }
.data-table td { padding: 12px 16px; font-size: 13px; line-height: 20px; color: var(--on-surface-variant); }
.data-table tbody tr { border-bottom: 1px solid var(--blueprint-border-light); background: var(--surface-container-lowest); }
.data-table tbody tr:nth-child(even) { background: var(--stone-surface); }
.data-table .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.data-table caption { caption-side: bottom; text-align: left; padding: 12px 16px; font-size: 13px; color: var(--secondary); }
@media (max-width: 767px) {
  /* Tables become stacked record cards on phones. */
  .data-table.stack-mobile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table.stack-mobile, .data-table.stack-mobile tbody, .data-table.stack-mobile tr, .data-table.stack-mobile th, .data-table.stack-mobile td { display: block; }
  .data-table.stack-mobile tr { padding: 12px 16px; border-bottom: 1px solid var(--blueprint-border); }
  .data-table.stack-mobile th[scope=row] { padding: 0 0 8px; font-size: 16px; }
  .data-table.stack-mobile td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--blueprint-border-light); text-align: right; }
  .data-table.stack-mobile td::before { content: attr(data-label); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); text-align: left; }
  .table-wrap { overflow: visible; }
  .hide-mobile { display: none !important; }
}

/* ---------- cards */
.card { border: 1px solid var(--blueprint-border); background: var(--surface-container-lowest); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.icon-well { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-container); color: var(--primary); }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--blueprint-border-light); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--status-critical); box-shadow: var(--shadow-focus); color: inherit; }
.card-plain { padding: 0; }
.card-plain .card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.year { font-family: var(--font-mono); font-size: 20px; line-height: 24px; font-weight: 600; color: var(--primary); }
.statement { border: 1px solid var(--hairline-dark); background: var(--slate-surface); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.statement .num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--inverse-primary); }
.statement .code { color: var(--tertiary-fixed-dim); }
.statement p { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--on-primary); }
.statement.plain p { font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 400; }
.link-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--blueprint-border); background: var(--surface-container-lowest); text-decoration: none; color: var(--on-surface); }
.link-card:hover { border-color: var(--status-critical); color: var(--on-surface); }
.link-card strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 17px; line-height: 22px; font-weight: 600; }
.name-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--blueprint-border); border-left: 1px solid var(--blueprint-border); background: var(--surface-container-lowest); }
.name-grid li { display: grid; place-items: center; min-height: 80px; padding: 8px; text-align: center; border-right: 1px solid var(--blueprint-border); border-bottom: 1px solid var(--blueprint-border); font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--on-surface-variant); }
.name-grid img { max-height: 44px; width: auto; }
@media (max-width: 1100px) { .name-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .name-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .name-grid li { min-height: 64px; font-size: 14px; } }

/* ---------- metrics */
.metric-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .mm-metric { padding: 16px; } .mm-metric-value { font-size: 28px; line-height: 32px; } }

/* ---------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.timeline li { display: grid; grid-template-columns: 140px 24px minmax(0, 1fr); gap: 24px; }
.timeline .t-year { font-family: var(--font-mono); font-size: 24px; line-height: 28px; font-weight: 700; color: var(--on-surface); }
.timeline li:first-child .t-year, .timeline li:last-child .t-year { color: var(--primary); }
.timeline .t-mark { position: relative; display: flex; justify-content: center; }
.timeline .t-mark::before { content: ""; width: 12px; height: 12px; margin-top: 8px; background: var(--primary-container); }
.timeline li:not(:last-child) .t-mark::after { content: ""; position: absolute; top: 24px; bottom: -4px; width: 1px; background: var(--blueprint-border); }
.timeline .t-body { display: flex; flex-direction: column; gap: 6px; padding-bottom: 32px; }
@media (max-width: 767px) { .timeline li { grid-template-columns: 64px 16px minmax(0, 1fr); gap: 12px; } .timeline .t-year { font-size: 17px; } }

/* ---------- lifecycle */
.lc-panel { border: 1px solid var(--blueprint-border); background: var(--surface-container-lowest); padding: 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.lc-panel[hidden] { display: none; }
.lc-panel .col { gap: 16px; }
@media (max-width: 900px) { .lc-panel { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.mm-stages { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 767px) { .mm-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mm-stage { border-bottom: 1px solid var(--blueprint-border); } }

/* ---------- depth chart (server rendered) */
.mm-depth-col .mm-hud { display: none; }
.mm-depth-col:hover .mm-hud, .mm-depth-col:focus .mm-hud, .mm-depth-col:focus-within .mm-hud { display: block; }
.mm-depth-bar { height: var(--h, 40px); }
@media (max-width: 767px) { .mm-depth-cols .hide-mobile { display: none; } }

/* ---------- elements */
.elements { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; justify-items: center; }
@media (max-width: 900px) { .elements { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; } }

/* ---------- quote */
.quote { margin: 0; background: var(--slate-black); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 38px; font-weight: 600; color: var(--on-primary); }
.quote figcaption .code { color: var(--tertiary-fixed-dim); }
@media (max-width: 767px) { .quote { padding: 24px; } .quote blockquote { font-size: 22px; line-height: 30px; } }

/* ---------- bars */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; grid-template-columns: 200px minmax(0, 1fr) 72px; gap: 12px; align-items: center; font-size: 14px; }
.bar-track { height: 16px; background: var(--stone-subtle); }
.bar-fill { display: block; height: 16px; width: var(--w, 0%); background: var(--slate-black); }
.bar:first-child .bar-fill { background: var(--primary); }
.bar-val { font-family: var(--font-mono); font-weight: 600; text-align: right; }
@media (max-width: 767px) { .bar { grid-template-columns: 110px minmax(0, 1fr) 56px; } }

/* ---------- video */
.video { display: flex; flex-direction: column; gap: 10px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--slate-black); }
.video-frame iframe, .video-frame button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame button { display: grid; place-items: center; cursor: pointer; background: var(--slate-black) center / cover no-repeat; }
.video-frame .play { width: 64px; height: 64px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }

/* ---------- forms */
.form-card { border: 1px solid var(--blueprint-border); background: var(--surface-container-lowest); padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 767px) { .form-card { padding: 20px; } .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--on-surface-variant); }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.alert { padding: 14px 16px; border: 1px solid; font-size: 14px; line-height: 20px; }
.alert-ok { border-color: var(--status-active); background: #ecfdf5; color: #065f46; }
.alert-err { border-color: var(--error); background: var(--error-container); color: var(--on-error-container); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
input[type=file].mm-field-control { padding: 12px var(--space-md); font-family: var(--font-body); font-size: 13px; }

/* ---------- CTA band & footer */
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band .copy { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
@media (max-width: 900px) { .cta-band .wrap { flex-direction: column; align-items: flex-start; } }
.site-footer { background: var(--slate-black); color: var(--secondary-fixed-dim); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h2 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tertiary-fixed-dim); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { color: var(--secondary-fixed-dim); text-decoration: none; font-size: 14px; line-height: 22px; }
.footer-grid a:hover { color: var(--on-primary); }
.footer-grid p { margin: 0 0 12px; font-size: 14px; line-height: 22px; }
.footer-grid .strong { color: var(--on-primary); }
.footer-logo { width: 200px; margin-bottom: 16px; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline-dark); display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .footer-bottom { flex-direction: column; } .site-footer { padding: 48px 0 32px; } }

/* ---------- error page */
.error-page { min-height: 60vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print { .site-header, .topstrip, .subnav, .cta-band, .site-footer, .nav-toggle { display: none !important; } .sec { padding-block: 24px; } }

/* ---------- refinements */
.main-nav a { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1360px) { .main-nav ul { gap: 20px; } .main-nav a { font-size: 13px; } }
.mm-depth-cols { min-width: 0; grid-auto-columns: minmax(72px, 1fr); }
.mm-depth-name { overflow-wrap: break-word; hyphens: auto; }
.mm-card-media.no-img { aspect-ratio: 3 / 1; }
@media (max-width: 767px) {
  .mm-btn { white-space: normal; max-width: 100%; text-align: left; }
  .mm-depth-cols { grid-auto-columns: minmax(56px, 1fr); gap: 8px; }
  .mm-depth-col .mm-hud { min-width: 180px; }
  .mm-card-media.no-img { aspect-ratio: 4 / 1; }
}

/* ======================================================================
   Mobile optimisation (≤ 767px unless noted)
   - 44px minimum touch targets, 16px form inputs (no iOS zoom),
   - 12px minimum text, swipeable card rows, single-line section tabs,
   - full-screen menu, collapsible footer, safe-area insets.
   ====================================================================== */
.wrap { padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right)); }
.nav-toggle .when-open, .nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline; }
.foot-col summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: default; }
.foot-col summary::-webkit-details-marker { display: none; }
.foot-col summary .chev { display: none; }
.foot-col summary h2 { margin: 0 0 12px; }
.social { list-style: none; padding: 0; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 4px; }
.form-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  html.menu-open { overflow: hidden; }
  .site-header .wrap { min-height: 60px; }
  .main-nav { position: fixed; top: 60px; bottom: 0; height: auto; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--blueprint-border); }
  .main-nav ul { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .main-nav a { padding: 16px 0; font-size: 17px; line-height: 24px; font-family: var(--font-display); font-weight: 600; color: var(--on-surface); }
  .main-nav a[aria-current] { color: var(--primary); }
  .nav-toggle { width: 48px; height: 48px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .brand img { height: 26px; }
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 11px; letter-spacing: .08em; }
  .brand { min-height: 48px; }

  /* Minimum readable sizes for mono labels */
  .code, .mm-tag, .mm-metric-code, .mm-stage-code, .mm-stage-meta, .mm-hud-code, .mm-hud dt, .mm-hud dd,
  .specs dt, .mm-specs dt, .mm-field-label, .mm-depth-sub, .photo .photo-label, .card-link, .mm-card-link,
  .data-table th[scope=col], .data-table.stack-mobile td::before, .footer-bottom, .footer-grid h2, .mm-element-name { font-size: 12px; line-height: 16px; }
  .mm-depth-val { font-size: 12px; }
  .body, .bullets li, .mm-card-text, .mm-metric-label { font-size: 15px; line-height: 23px; }
  .small, .mm-element-note, .mm-field-hint { font-size: 13px; line-height: 19px; }

  /* Touch targets */
  .mm-btn { min-height: 48px; justify-content: center; }
  .mm-btn-sm { min-height: 44px; }
  .row > .mm-btn { flex: 1 1 100%; }
  .card-link, .mm-card-link { min-height: 44px; }
  .link-card { min-height: 64px; }
  .footer-grid a { display: inline-block; padding: 10px 0; }
  .footer-grid li { line-height: 0; }
  .social a { padding: 12px 12px 12px 0; }
  .card-foot a { display: inline-block; padding: 8px 0; }
  .check { font-size: 14px; line-height: 21px; padding: 4px 0; }
  .check input { width: 24px; height: 24px; }
  .skip-link { padding: 14px 16px; }

  /* Form inputs at 16px so iOS Safari does not zoom on focus */
  .mm-field-control, input[type=file].mm-field-control { font-size: 16px; line-height: 22px; min-height: 48px; }
  select.mm-field-control { padding-right: 40px; }
  .form-card { gap: 20px; }
  .form-head .mm-tag { order: -1; }

  /* Enquiry page: quick-contact cards first, then the form */
  .contact-cards { order: -1; }
  .contact-cards .card { padding: 16px; }

  /* Hero: HUD sits under the photo instead of over the metrics */
  .hero-photo .mm-hud { position: static; margin-top: -1px; min-width: 0; box-shadow: none; }
  .photo-xl { min-height: 220px; }
  .home-hero-grid { gap: 32px; }
  .home-hero-sub { font-size: 19px; line-height: 26px; }
  .badges { flex-direction: column; gap: 10px; }

  /* Metric tiles: an odd last tile spans both columns */
  .metric-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Swipeable card rows */
  .grid.m-scroll { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 12px; scroll-padding-inline: var(--pad); scrollbar-width: thin; }
  .grid.m-scroll > * { flex: 0 0 84%; scroll-snap-align: start; }
  .grid.m-scroll:focus-visible { outline-offset: -2px; }
  .mm-card-media.no-img { display: none; }
  .mm-card { clip-path: none; }

  /* Section navigation: all links remain available without JavaScript. */
  .subnav ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 0; }
  .subnav a { min-height: 48px; display: flex; align-items: center; padding: 13px 16px; white-space: normal; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 15px; line-height: 22px; letter-spacing: 0; text-transform: none; }
  .subnav a[aria-current] { border-left: 3px solid var(--primary); padding-left: 14px; }
  .subnav.is-enhanced .subnav-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 76px; padding: 14px 0; border: 0; background: transparent; color: var(--on-surface); cursor: pointer; text-align: left; }
  .subnav-toggle > span:first-child { min-width: 0; display: grid; gap: 4px; }
  .subnav-caption { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }
  .subnav-current { font-family: var(--font-display); font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
  .subnav-toggle > .mm-icon { flex-shrink: 0; color: var(--primary); transition: transform .18s; }
  .subnav-toggle[aria-expanded="true"] > .mm-icon { transform: rotate(180deg); }
  .subnav.is-enhanced .subnav-toggle[aria-expanded="false"] + ul { display: none; }
  .subnav.is-enhanced .subnav-toggle[aria-expanded="true"] + ul { border-top: 1px solid var(--blueprint-border-light); }

  /* Lifecycle stages: one swipeable row of tabs */
  .mm-stages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: none; }
  .mm-stages::-webkit-scrollbar { display: none; }
  .mm-stage { flex: 0 0 42%; min-height: 76px; scroll-snap-align: start; border-bottom: 0; }
  .lc-panel h3 { font-size: 22px !important; line-height: 28px !important; }

  /* Footer: collapsible groups */
  .foot-col { border-bottom: 1px solid var(--hairline-dark); }
  .foot-col summary { cursor: pointer; min-height: 52px; }
  .foot-col summary h2 { margin: 0; }
  .foot-col summary .chev { display: inline-block; color: var(--secondary-fixed-dim); transition: transform .15s; }
  .foot-col[open] summary .chev { transform: rotate(180deg); }
  .foot-col ul { padding-bottom: 12px; }
  .footer-grid { gap: 24px; }
  .footer-grid > div:last-child { padding-top: 8px; }
  .site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

  /* Denser cards and tables */
  .card { padding: 18px; }
  .data-table.stack-mobile tr { padding: 14px 16px; }
  .timeline .t-body { padding-bottom: 24px; }
  .quote blockquote { font-size: 20px; line-height: 28px; }
  .statement { padding: 20px; }
  .statement p { font-size: 18px; line-height: 26px; }
  .cta-band .row { width: 100%; }
  .sec-head .body { max-width: none; }
}

@media (max-width: 380px) {
  :root { --pad: 16px; }
  .h1, .h1-hero { font-size: 30px; line-height: 34px; }
  .h2 { font-size: 25px; line-height: 30px; }
  .mm-stage { flex-basis: 48%; }
  .grid.m-scroll > * { flex-basis: 88%; }
  .name-grid li { font-size: 13px; }
}
.mm-card, .card, .link-card { position: relative; }
@media (max-width: 767px) {
  .footer-grid a { padding: 11px 0; }
  .social a { min-width: 44px; min-height: 44px; }
  .footer-bottom span, .footer-bottom a, .brand-sub { font-size: 12px; }
  .contact-cards a { display: inline-block; padding: 10px 0; }
}
.skip-link { top: -100px; }
@media (max-width: 1100px) { .main-nav li.mobile-cta { display: block; padding-top: 20px; border: 0; } .main-nav li.mobile-cta a { border: 0; padding: 14px 20px; justify-content: space-between; color: var(--on-primary); font-family: var(--font-display); font-size: 15px; } }
@media (max-width: 767px) {
  .mm-depth-datum, .social a { font-size: 12px; }
  .mm-depth-datum { flex-direction: column; gap: 4px; }
  .footer-grid li a { min-height: 44px; }
}
@media (max-width: 767px) {
  .footer-bottom a { display: inline-block; padding: 14px 4px; margin: -14px 0; }
  .footer-grid a { padding: 12px 0; }
  .social a { min-width: 48px; }
}

/* ---------- real images in photo boxes: keep the file's 16:10 frame (no crop) */
.photo.has-img, .photo-lg.has-img, .photo-xl.has-img { min-height: 0; aspect-ratio: 16 / 10; }
@media (max-width: 767px) { .photo.has-img, .photo-lg.has-img, .photo-xl.has-img { min-height: 0; } }
.photo.has-img::after { content: none; }

/* Public-site finishing: quieter surfaces, clearer type and consistent details. */
:root { --on-surface-variant: #485261; --surface: #f8f9fb; }
html { scroll-padding-top: 96px; }
::selection { background: #ffdad6; color: #410002; }
.h1, .h2, .h3, .home-hero-sub { text-wrap: balance; }
.body, .body-lg, .lead, .mm-card-text { text-wrap: pretty; }
.site-header { box-shadow: 0 4px 20px rgba(15, 20, 28, .035); }
.brand { flex-shrink: 0; }
.main-nav a { transition: color .18s, border-color .18s; }
.main-nav a:hover { border-bottom-color: var(--primary); }
.topstrip { letter-spacing: .035em; }
.dots { background-image: radial-gradient(#e3e7ed .7px, transparent .7px); background-size: 32px 32px; }
.home-hero-copy { gap: 20px; }
.home-hero-copy .body-lg { max-width: 58ch; }
.home-hero-copy .row { margin-top: 6px; }
.home-hero-copy .badges { gap: 12px 20px; padding-top: 18px; border-top: 1px solid var(--blueprint-border-light); }
.home-hero-sub { line-height: 1.4; }
.hero-photo .photo { border: 1px solid #293440; box-shadow: 0 20px 44px -24px rgba(15, 20, 28, .4); }
.hero-photo .mm-hud { border-left: 3px solid var(--primary); }
.hero .mm-metric { border-color: var(--blueprint-border-light); border-top: 2px solid var(--primary); padding: 22px 24px; }
.hero .mm-metric-value { font-variant-numeric: tabular-nums; }
.sec-head > div { gap: 12px; }
.sec-head .body { line-height: 1.75; }
.card, .mm-card, .link-card { transition: border-color .2s, box-shadow .2s; }
.card, .mm-card { border-color: var(--blueprint-border-light); }
.card:focus-within, .mm-card:focus-within { border-color: var(--primary); }
.icon-well { background: #fff1f2; }
.mm-btn-primary:hover:not(:disabled) { color: var(--on-primary); }
.mm-btn-secondary { background: var(--surface-container-lowest); border-color: var(--blueprint-border); }
.mm-btn-secondary:hover:not(:disabled) { border-color: var(--slate-black); }
.mm-field-control { transition: border-color .18s, box-shadow .18s; }
.mm-field-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(183, 0, 17, .08); }
.form-card { border-color: var(--blueprint-border-light); box-shadow: 0 12px 36px -24px rgba(15, 20, 28, .22); }
.subnav a { transition: background-color .18s, border-color .18s, color .18s; }
.footer-grid a { transition: color .18s; text-underline-offset: 5px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { line-height: 1.7; }
@media (hover: hover) {
  a.card:hover, .mm-card:has(a):hover, a.link-card:hover {
    border-color: var(--primary); box-shadow: 0 10px 26px -18px rgba(15, 20, 28, .3);
  }
}
@media (min-width: 1101px) {
  .hero { padding-block: 64px; }
  .hero-inner { gap: 40px; }
  .home-hero-grid { gap: 56px; }
  .h1-hero { font-size: clamp(44px, 4.1vw, 60px); line-height: 1.06; }
  .hero-photo .mm-hud { left: -24px; bottom: 24px; }
}
@media (min-width: 1101px) and (max-width: 1360px) {
  .site-header .wrap { gap: 16px; }
  .main-nav ul { gap: 16px; }
  .site-header .wrap, .topstrip .wrap { padding-inline: 32px; }
  .topstrip .group { gap: 12px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 76px; }
  .home-hero-copy { gap: 18px; }
  .home-hero-copy .badges { gap: 12px; }
  .hero .mm-metric { padding: 18px 16px; }
  .hero-photo .mm-hud { border-left-width: 3px; }
  .main-nav a:hover { border-bottom-color: var(--blueprint-border-light); }
}
