@font-face {
  font-family: "Geist";
  src: url("../fonts/geist/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --mf-bg: #f2f3f0;
  --mf-surface: #fffdf9;
  --mf-surface-soft: #e8eae6;
  --mf-surface-strong: #d7dad5;
  --mf-ink: #0b2239;
  --mf-muted: #53606a;
  --mf-line: #c9cec8;
  --mf-line-strong: #aeb5ae;
  --mf-accent: #d65f32;
  --mf-accent-strong: #b94a24;
  --mf-accent-hover: #9f3d1d;
  --mf-accent-soft: #f5dfd5;
  --mf-navy: #0b2239;
  --mf-button-text: #ffffff;
  --mf-error: #b42318;
  --mf-error-soft: #fff1f0;
  --mf-success: #176b42;
  --mf-success-soft: #ebf8f1;
  --mf-radius: 6px;
  --mf-control-radius: 4px;
  --mf-gutter: clamp(18px, 3vw, 32px);
  --mf-wide: 1240px;
  --mf-content: 720px;
  --mf-header-height: 72px;
  --mf-shadow-form: none;
  --mf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mf-header-height) + 24px);
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--mf-bg);
  color: var(--mf-ink);
  font-family: "Geist", Arial, sans-serif;
  font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .mf-site-header,
body.admin-bar .mf-v3-header {
  top: 32px;
}

.wp-site-blocks {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: clip;
}

main {
  display: block;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure,
p,
h1,
h2,
h3,
h4,
ul,
ol {
  margin-top: 0;
}

figure {
  margin-inline: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--mf-accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--mf-accent);
  color: var(--mf-button-text);
}

.alignwide,
.mf-shell,
.mf-v3-header__inner,
.mf-v3-hero__inner,
.mf-v3-capability,
.mf-v3-services__inner,
.mf-v3-projects__inner,
.mf-v3-process__inner,
.mf-v3-final-cta__inner,
.mf-v3-footer__inner {
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  max-width: none;
}

.mf-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.mf-main.has-global-padding {
  padding-inline: 0 !important;
}

.mf-v3-front-page {
  background: var(--mf-bg);
}

.mf-main > .wp-block-post-content,
.mf-front-page > .wp-block-post-content {
  margin: 0;
}

.mf-main > .wp-block-post-content > * {
  margin-block-start: 0;
}

.mf-main > .wp-block-post-content > :where(p, ul, ol, h2, h3, h4, blockquote, details),
.mf-page-shell > .wp-block-post-content > :where(p, ul, ol, h2, h3, h4, blockquote, details) {
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-content));
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  color: var(--mf-ink);
  font-family: "Geist", Arial, sans-serif;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

p:last-child {
  margin-bottom: 0;
}

.has-display-font-size {
  font-size: clamp(2.75rem, 5.2vw, 4.5rem) !important;
}

.has-headline-font-size {
  font-size: clamp(2.15rem, 4vw, 3.75rem) !important;
}

.has-title-font-size {
  font-size: clamp(1.35rem, 2vw, 1.8rem) !important;
}

.has-lead-font-size,
.mf-lead {
  color: var(--mf-muted);
  font-size: clamp(1.08rem, 1.25vw, 1.25rem) !important;
  line-height: 1.5;
}

.mf-kicker,
.mf-label,
.mf-v3-eyebrow,
.mf-project-meta {
  color: var(--mf-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mf-kicker,
.mf-v3-eyebrow {
  margin-bottom: 1rem;
}

.mf-text-link,
.mf-v3-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  border-bottom: 1px solid var(--mf-accent);
  color: var(--mf-accent-strong);
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms var(--mf-ease), border-color 180ms var(--mf-ease);
}

.mf-text-link:hover,
.mf-text-link:focus-visible,
.mf-v3-text-link:hover,
.mf-v3-text-link:focus-visible {
  border-color: var(--mf-ink);
  color: var(--mf-ink);
}

.mf-v3-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--mf-control-radius);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms var(--mf-ease), border-color 180ms var(--mf-ease), color 180ms var(--mf-ease), transform 160ms var(--mf-ease);
}

.mf-v3-button--primary {
  border-color: var(--mf-accent-strong);
  background: var(--mf-accent-strong);
  color: var(--mf-button-text);
}

.mf-v3-button--primary:hover,
.mf-v3-button--primary:focus-visible {
  border-color: var(--mf-accent-hover);
  background: var(--mf-accent-hover);
  color: var(--mf-button-text);
}

.mf-v3-button--text {
  min-height: 44px;
  padding-inline: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  border-bottom-color: var(--mf-accent);
  color: var(--mf-accent);
}

.mf-v3-button--text:hover,
.mf-v3-button--text:focus-visible {
  border-bottom-color: var(--mf-ink);
  color: var(--mf-ink);
}

.mf-v3-button--light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--mf-accent-hover);
}

.mf-v3-button--light:hover,
.mf-v3-button--light:focus-visible {
  border-color: var(--mf-navy);
  background: var(--mf-navy);
  color: #ffffff;
}

.mf-v3-button:active {
  transform: translateY(1px);
}

.wp-block-button__link,
.wp-element-button,
.mf-contact-form button,
.mf-nav-cta .wp-block-navigation-item__content,
.mf-v3-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--mf-accent-strong);
  border-radius: var(--mf-control-radius);
  background: var(--mf-accent-strong);
  color: var(--mf-button-text) !important;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms var(--mf-ease), border-color 180ms var(--mf-ease), color 180ms var(--mf-ease), transform 160ms var(--mf-ease);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.wp-element-button:hover,
.wp-element-button:focus-visible,
.mf-contact-form button:hover,
.mf-contact-form button:focus-visible,
.mf-nav-cta .wp-block-navigation-item__content:hover,
.mf-nav-cta .wp-block-navigation-item__content:focus-visible,
.mf-v3-header__action:hover,
.mf-v3-header__action:focus-visible {
  border-color: var(--mf-accent-hover);
  background: var(--mf-accent-hover);
  color: var(--mf-button-text) !important;
}

.wp-block-button__link:active,
.wp-element-button:active,
.mf-contact-form button:active,
.mf-nav-cta .wp-block-navigation-item__content:active,
.mf-v3-header__action:active {
  transform: translateY(1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-color: var(--mf-line-strong);
  background: var(--mf-surface);
  color: var(--mf-ink) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
  border-color: var(--mf-accent);
  background: var(--mf-accent-soft);
  color: var(--mf-accent-hover) !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--mf-accent);
  outline-offset: 4px;
}

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

.skip-link.screen-reader-text:focus {
  position: fixed !important;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  clip-path: none;
  border-radius: var(--mf-control-radius);
  background: var(--mf-navy);
  color: #ffffff;
}

/* Header */
.mf-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--mf-header-height);
  border-bottom: 1px solid var(--mf-line);
  background: var(--mf-surface);
}

.mf-v3-header {
  width: 100%;
  min-height: var(--mf-header-height);
  padding-inline: 0 !important;
  background: var(--mf-surface);
}

.mf-site-header__body,
.mf-site-footer__body {
  padding-inline: 0 !important;
}

.mf-site-header__inner,
.mf-v3-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--mf-header-height);
  gap: clamp(18px, 3vw, 44px);
  padding-block: 8px;
}

.mf-wordmark,
.mf-v3-header__brand {
  flex: 0 0 auto;
  margin: 0;
  color: var(--mf-ink);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.mf-wordmark a,
.mf-v3-header__brand,
.mf-v3-header__brand a {
  color: inherit;
  text-decoration: none;
}

.mf-v3-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-v3-header__location {
  margin: 0;
  padding-left: 10px;
  border-left: 1px solid var(--mf-line-strong);
  color: var(--mf-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.mf-primary-nav,
.mf-v3-header__nav {
  margin-left: auto;
}

.mf-v3-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.mf-v3-header__nav .mf-header-phone .wp-block-navigation-item__content {
  color: var(--mf-accent-strong);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  white-space: nowrap;
}

.mf-v3-header__action.wp-block-buttons {
  display: flex;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit !important;
  transform: none;
}

.mf-v3-header__action.wp-block-buttons:hover,
.mf-v3-header__action.wp-block-buttons:focus-within {
  border: 0;
  background: transparent;
  color: inherit !important;
  transform: none;
}

.mf-v3-header__action .wp-block-button,
.mf-v3-header__action .wp-block-button__link {
  margin: 0;
}

.mf-v3-header__action .wp-block-button__link::after {
  display: none;
}

.mf-primary-nav .wp-block-navigation__container,
.mf-v3-header__nav .wp-block-navigation__container,
.mf-v3-header__nav ul {
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  flex-wrap: nowrap;
}

.mf-primary-nav .wp-block-navigation-item__content,
.mf-v3-header__nav .wp-block-navigation-item__content,
.mf-v3-header__nav a {
  color: var(--mf-ink);
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
}

.mf-primary-nav .wp-block-navigation-item:not(.mf-nav-cta) .wp-block-navigation-item__content,
.mf-v3-header__nav .wp-block-navigation-item__content,
.mf-v3-header__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.mf-primary-nav .wp-block-navigation-item:not(.mf-nav-cta) .wp-block-navigation-item__content::after,
.mf-v3-header__nav .wp-block-navigation-item__content::after,
.mf-v3-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--mf-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms var(--mf-ease);
}

.mf-primary-nav .wp-block-navigation-item:not(.mf-nav-cta) .wp-block-navigation-item__content:hover::after,
.mf-primary-nav .wp-block-navigation-item:not(.mf-nav-cta) .wp-block-navigation-item__content:focus-visible::after,
.mf-primary-nav .current-menu-item .wp-block-navigation-item__content::after,
.mf-v3-header__nav .wp-block-navigation-item__content:hover::after,
.mf-v3-header__nav .wp-block-navigation-item__content:focus-visible::after,
.mf-v3-header__nav .current-menu-item .wp-block-navigation-item__content::after,
.mf-v3-header__nav a:hover::after,
.mf-v3-header__nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mf-primary-nav .wp-block-navigation__responsive-container-open,
.mf-primary-nav .wp-block-navigation__responsive-container-close,
.mf-v3-header__nav .wp-block-navigation__responsive-container-open,
.mf-v3-header__nav .wp-block-navigation__responsive-container-close {
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-control-radius);
  color: var(--mf-ink);
}

.mf-primary-nav .wp-block-navigation__responsive-container,
.mf-v3-header__nav .wp-block-navigation__responsive-container {
  background: var(--mf-surface);
  color: var(--mf-ink);
}

.mf-primary-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.mf-v3-header__nav .is-menu-open .wp-block-navigation__responsive-container-content {
  padding: 96px var(--mf-gutter) 48px;
}

/* Homepage hero */
.mf-v3-hero {
  position: relative;
  padding-block: clamp(26px, 3.6vw, 52px) clamp(38px, 5vw, 68px);
  overflow: clip;
  background: var(--mf-bg);
}

.mf-v3-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
  grid-template-rows: auto auto;
  align-items: start;
  min-height: 0;
  gap: clamp(18px, 2vw, 28px);
}

.mf-v3-hero__stage {
  display: contents;
}

.mf-v3-hero__copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  max-width: 660px;
  padding: clamp(18px, 2vw, 30px) 0 4px;
}

.mf-v3-hero__copy h1 {
  max-width: 13ch;
  margin-bottom: clamp(20px, 2.5vw, 30px);
  font-size: clamp(2.75rem, 3.55vw, 3.45rem);
  line-height: 1;
  text-wrap: balance;
}

.mf-v3-hero__copy .mf-lead,
.mf-v3-hero__copy > p:not(.mf-v3-eyebrow),
.mf-v3-hero__lead {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--mf-muted);
  font-size: clamp(1.06rem, 1.25vw, 1.2rem);
  line-height: 1.52;
}

.mf-v3-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px 22px;
  margin-top: clamp(24px, 3vw, 34px);
  flex-wrap: wrap;
}

.mf-v3-hero__actions .wp-block-buttons,
.mf-v3-hero__actions .wp-block-button,
.mf-v3-hero__actions p {
  margin: 0;
}

.mf-v3-hero__media {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  height: clamp(270px, 25vw, 340px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--mf-radius);
  background: var(--mf-surface-strong);
}

.mf-v3-hero__media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(7, 30, 56, 0.08);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.mf-v3-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

.mf-v3-hero__form {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  margin: 0;
  padding: clamp(20px, 2vw, 26px);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
  box-shadow: var(--mf-shadow-form);
}

.mf-v3-hero__form-intro {
  margin-bottom: 16px;
}

.mf-v3-hero__form-intro h2,
.mf-v3-hero__form > h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.mf-v3-hero__form-intro p,
.mf-v3-hero__form > p {
  margin-bottom: 0;
  color: var(--mf-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mf-v3-hero__form .mf-contact-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mf-v3-hero__form .mf-contact-form__required-note {
  margin-bottom: 12px;
  color: var(--mf-muted);
  font-size: 0.7rem;
}

.mf-v3-hero__form .mf-contact-form form {
  grid-template-columns: 1fr;
  gap: 10px;
}

.mf-v3-hero__form .mf-contact-form__field,
.mf-v3-hero__form .mf-contact-form__field:nth-child(n),
.mf-v3-hero__form .mf-contact-form__privacy,
.mf-v3-hero__form .mf-contact-form form > button,
.mf-v3-hero__form .mf-contact-form form > [hidden] {
  grid-column: 1;
}

.mf-v3-hero__form .mf-contact-form__field {
  gap: 5px;
}

.mf-v3-hero__form .mf-contact-form label {
  font-size: 0.8rem;
}

.mf-v3-hero__form .mf-contact-form label span:not([aria-hidden="true"]) {
  font-size: 0.75rem;
}

.mf-v3-hero__form .mf-contact-form input,
.mf-v3-hero__form .mf-contact-form select,
.mf-v3-hero__form .mf-contact-form textarea {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.mf-v3-hero__form .mf-contact-form textarea {
  min-height: 88px;
}

.mf-v3-hero__form .mf-contact-form__privacy {
  font-size: 0.74rem;
  line-height: 1.4;
}

.mf-v3-hero__form .mf-contact-form button {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}

/* Capability rail */
.mf-v3-capability {
  position: relative;
  z-index: 5;
  margin-top: clamp(18px, 2.5vw, 28px);
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-control-radius);
  background: var(--mf-surface);
}

.mf-v3-capability__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-v3-capability__track > li {
  display: flex;
  flex: 1 0 auto;
}

.mf-v3-capability__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 58px;
  padding: 10px clamp(18px, 2.5vw, 30px);
  border-right: 1px solid var(--mf-line);
  color: var(--mf-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.mf-v3-capability__track > li:last-child .mf-v3-capability__item {
  border-right: 0;
}

.mf-v3-capability__item:hover,
.mf-v3-capability__item:focus-visible {
  background: var(--mf-accent-soft);
  color: var(--mf-accent-hover);
}

.mf-v3-capability.is-ready .mf-v3-capability__track {
  animation: mf-v3-capability-rail 34s linear infinite;
}

.mf-v3-capability:hover .mf-v3-capability__track,
.mf-v3-capability:focus-within .mf-v3-capability__track,
.mf-v3-capability.is-paused .mf-v3-capability__track {
  animation-play-state: paused;
}

@keyframes mf-v3-capability-rail {
  to {
    transform: translateX(-50%);
  }
}

/* Homepage section rhythm */
.mf-v3-section {
  padding-block: clamp(70px, 8vw, 108px);
}

.mf-v3-services {
  background: var(--mf-surface);
}

.mf-v3-services__intro,
.mf-v3-process__intro {
  display: block;
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.mf-v3-projects__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.mf-v3-projects__heading > .mf-text-link {
  justify-self: end;
}

.mf-v3-services__intro h2,
.mf-v3-projects__heading h2,
.mf-v3-process__intro h2 {
  max-width: 17ch;
  margin-bottom: 0;
  text-wrap: balance;
}

.mf-v3-services__intro h2,
.mf-v3-process__intro h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.25rem);
}

.mf-v3-services__intro p,
.mf-v3-projects__heading p,
.mf-v3-process__intro p {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--mf-muted);
}

.mf-v3-services__intro > p:last-child,
.mf-v3-process__intro > p:last-child {
  max-width: 60ch;
  margin-top: 18px;
}

/* Service selector */
.mf-v3-services__layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.mf-v3-services__layout.is-enhanced {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.35fr);
}

.mf-v3-service-tabs {
  display: none;
  gap: 0;
  border-top: 1px solid var(--mf-line);
}

.mf-v3-services__layout.is-enhanced .mf-v3-service-tabs {
  display: grid;
}

.mf-v3-service-tab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  width: 100%;
  min-height: 78px;
  padding: 17px 36px 17px 18px;
  border: 0;
  border-bottom: 1px solid var(--mf-line);
  border-radius: 0;
  background: transparent;
  color: var(--mf-ink);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms var(--mf-ease), background-color 180ms var(--mf-ease), color 180ms var(--mf-ease), transform 180ms var(--mf-ease);
}

.mf-v3-service-tab__title {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.mf-v3-service-tab__summary {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  color: var(--mf-muted);
  font-size: 0.84rem;
  font-weight: 430;
  line-height: 1.4;
}

.mf-v3-service-tab::after {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--mf-accent);
  content: "→";
  font-size: 1.1rem;
}

.mf-v3-service-tab:hover,
.mf-v3-service-tab:focus-visible {
  background: var(--mf-surface-soft);
}

.mf-v3-service-tab.is-active,
.mf-v3-service-tab[aria-selected="true"] {
  background: transparent;
  color: var(--mf-accent-hover);
}

.mf-v3-service-tab.is-active::before,
.mf-v3-service-tab[aria-selected="true"]::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--mf-accent);
  content: "";
}

.mf-v3-service-panels {
  min-width: 0;
}

.mf-v3-service-panel[hidden] {
  display: none !important;
}

.mf-v3-service-panel {
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-bg);
}

.mf-v3-service-panel__media {
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mf-surface-strong);
}

.mf-v3-service-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--mf-ease);
}

.mf-v3-service-panel.is-active .mf-v3-service-panel__media img,
.mf-v3-service-panel:not([hidden]) .mf-v3-service-panel__media img {
  transform: scale(1.01);
}

.mf-v3-service-panel__copy {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 18px;
  padding: clamp(20px, 2.6vw, 30px);
}

.mf-v3-service-panel__copy h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.mf-v3-service-panel__copy p {
  margin-bottom: 0;
  color: var(--mf-muted);
}

/* Project proof */
.mf-v3-projects {
  background: var(--mf-bg);
}

.mf-v3-projects__stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mf-v3-project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
}

.mf-v3-project-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.mf-v3-project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mf-surface-strong);
}

.mf-v3-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--mf-ease);
}

.mf-v3-project-card:hover .mf-v3-project-card__media img,
.mf-v3-project-card:focus-within .mf-v3-project-card__media img {
  transform: scale(1.025);
}

.mf-v3-project-card:focus-within {
  box-shadow: inset 0 0 0 3px var(--mf-accent);
}

.mf-v3-project-card__copy {
  padding: clamp(20px, 2.3vw, 28px);
}

.mf-v3-project-card__copy h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
}

.mf-v3-project-card__copy p {
  margin-bottom: 0;
  color: var(--mf-muted);
  font-size: 0.96rem;
}

.mf-v3-project-card__copy a {
  color: inherit;
  text-decoration: none;
}

/* Process */
.mf-v3-process {
  padding-block: clamp(62px, 7vw, 92px);
  background: var(--mf-surface);
}

.mf-v3-process__intro {
  margin-bottom: clamp(30px, 4vw, 44px);
}

.mf-v3-process__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mf-line-strong);
  list-style: none;
}

.mf-v3-process__step {
  position: relative;
  min-height: 150px;
  padding: 28px clamp(22px, 3vw, 34px) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mf-v3-process__step + .mf-v3-process__step {
  padding-left: clamp(22px, 3vw, 34px);
  border-left: 1px solid var(--mf-line);
}

.mf-v3-process__step > span[aria-hidden="true"] {
  display: block;
  margin-bottom: 1.05rem;
  color: var(--mf-blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1;
}

.mf-v3-process__step::before {
  content: none;
}

.mf-v3-process__step h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.mf-v3-process__step p {
  margin-bottom: 0;
  color: var(--mf-muted);
  font-size: 0.94rem;
}

/* Final CTA */
.mf-v3-final-cta {
  padding-block: 24px clamp(64px, 7vw, 90px);
  background: var(--mf-surface);
}

.mf-v3-final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--mf-radius);
  background: var(--mf-accent);
  color: #ffffff;
}

.mf-v3-final-cta__copy h2,
.mf-v3-final-cta__copy h3 {
  margin-bottom: 0.55rem;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.mf-v3-final-cta__copy p {
  max-width: 48ch;
  margin-bottom: 0;
  color: #ffffff;
}

.mf-v3-final-cta__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.mf-v3-final-cta .wp-block-button__link,
.mf-v3-final-cta .wp-element-button,
.mf-v3-final-cta__actions > a {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--mf-accent-hover) !important;
}

.mf-v3-final-cta .wp-block-button__link:hover,
.mf-v3-final-cta .wp-block-button__link:focus-visible,
.mf-v3-final-cta .wp-element-button:hover,
.mf-v3-final-cta .wp-element-button:focus-visible,
.mf-v3-final-cta__actions > a:hover,
.mf-v3-final-cta__actions > a:focus-visible {
  border-color: var(--mf-navy);
  background: var(--mf-navy);
  color: #ffffff !important;
}

/* Contact form */
.mf-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
}

.mf-contact-layout__aside {
  position: sticky;
  top: calc(var(--mf-header-height) + 28px);
}

.mf-contact-layout__aside h2 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  text-wrap: balance;
}

.mf-contact-layout__aside p {
  max-width: 38ch;
  color: var(--mf-muted);
}

.mf-contact-layout__form {
  min-width: 0;
}

.mf-contact-form {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
}

.mf-contact-form__required-note {
  margin-bottom: 1.25rem;
  color: var(--mf-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.mf-contact-form form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.mf-contact-form__field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.mf-contact-form__field:nth-child(3),
.mf-contact-form__field:nth-child(4),
.mf-contact-form__privacy,
.mf-contact-form form > [hidden],
.mf-contact-form form > button {
  grid-column: 1 / -1;
}

.mf-contact-form label,
.mf-contact-form legend {
  color: var(--mf-ink);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.mf-contact-form label span:not([aria-hidden="true"]) {
  color: var(--mf-muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.mf-contact-form input,
.mf-contact-form select,
.mf-contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--mf-line-strong);
  border-radius: var(--mf-control-radius);
  background: var(--mf-bg);
  color: var(--mf-ink);
  caret-color: var(--mf-accent);
  transition: border-color 180ms var(--mf-ease), background-color 180ms var(--mf-ease), box-shadow 180ms var(--mf-ease);
}

.mf-contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.mf-contact-form input:focus-visible,
.mf-contact-form select:focus-visible,
.mf-contact-form textarea:focus-visible {
  border-color: var(--mf-accent);
  background: var(--mf-surface);
  outline: 3px solid var(--mf-accent-soft);
  outline-offset: 1px;
}

.mf-contact-form [aria-invalid="true"] {
  border-color: var(--mf-error);
  box-shadow: 0 0 0 2px var(--mf-error-soft);
}

.mf-contact-form__privacy {
  max-width: 62ch;
  margin: 0;
  color: var(--mf-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.mf-contact-form button {
  justify-self: start;
  min-width: 168px;
  margin-top: 2px;
}

.mf-contact-form [hidden],
.mf-contact-form__honeypot {
  display: none !important;
}

.mf-contact-form__error-summary,
.mf-contact-form__success {
  margin-bottom: 1.2rem;
  padding: 15px 17px;
  border: 1px solid currentColor;
  border-radius: var(--mf-control-radius);
}

.mf-contact-form__error-summary {
  color: var(--mf-error);
  background: var(--mf-error-soft);
}

.mf-contact-form__success {
  color: var(--mf-success);
  background: var(--mf-success-soft);
}

.mf-contact-form__error-summary h3 {
  margin-bottom: 0.5rem;
  color: currentColor;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.mf-contact-form__error-summary p,
.mf-contact-form__success p {
  margin-bottom: 0.65rem;
}

.mf-contact-form__error-summary > :last-child,
.mf-contact-form__success > :last-child {
  margin-bottom: 0;
}

.mf-contact-form__field-error {
  margin: 0;
  color: var(--mf-error);
  font-size: 0.88rem;
}

.mf-contact-form__field-hint {
  margin: 0;
  color: var(--mf-muted);
  font-size: 0.84rem;
}

/* Inner page shells */
.mf-page-shell,
.mf-project-archive,
.mf-project-single,
.mf-search-shell,
.mf-index-shell,
.mf-error-shell {
  padding-bottom: clamp(76px, 9vw, 128px);
}

.mf-page-heading,
.mf-archive-heading,
.mf-project-single__heading,
.mf-search-heading,
.mf-index-heading,
.mf-error-content {
  padding-top: clamp(62px, 7vw, 96px);
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--mf-line);
}

.mf-page-heading h1,
.mf-archive-heading h1,
.mf-project-single__heading h1,
.mf-search-heading h1,
.mf-index-heading h1,
.mf-error-content h1 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2.75rem, 5vw, 4.75rem) !important;
  text-wrap: balance;
}

.mf-archive-heading .has-lead-font-size,
.mf-project-single__heading .wp-block-post-excerpt,
.mf-search-heading p,
.mf-index-heading p,
.mf-error-content p {
  max-width: 48rem;
  margin-top: 1.35rem;
  color: var(--mf-muted);
}

.mf-page-shell > .wp-block-post-content {
  padding-top: clamp(50px, 6vw, 80px);
}

/* Services page */
.mf-services-page {
  display: grid;
  gap: clamp(44px, 6vw, 76px);
}

.mf-services-page__intro {
  max-width: 900px;
}

.mf-services-page__intro .mf-lead {
  margin-bottom: 0;
  color: var(--mf-ink);
  font-size: clamp(1.45rem, 2.5vw, 2.35rem) !important;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.mf-service-catalog {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.mf-service-catalog__item {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
}

.mf-service-catalog__item,
.mf-service-catalog__copy h2 {
  scroll-margin-top: calc(var(--mf-header-height) + 24px);
}

.mf-service-catalog__item--wide {
  grid-column: span 7;
}

.mf-service-catalog__item--narrow {
  grid-column: span 5;
}

.mf-service-catalog__media {
  height: 340px;
  overflow: hidden;
  background: var(--mf-surface-strong);
}

.mf-service-catalog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--mf-ease);
}

.mf-service-catalog__item:hover .mf-service-catalog__media img,
.mf-service-catalog__item:focus-within .mf-service-catalog__media img {
  transform: scale(1.025);
}

.mf-service-catalog__item--adaptacije .mf-service-catalog__media img {
  object-position: 50% 48%;
}

.mf-service-catalog__item--roof .mf-service-catalog__media img {
  object-position: 50% 45%;
}

.mf-service-catalog__item--flat .mf-service-catalog__media img {
  object-position: 50% 46%;
}

.mf-service-catalog__copy {
  padding: 24px;
}

.mf-service-catalog__copy h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

.mf-service-catalog__copy p {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--mf-muted);
}

.mf-service-catalog__item--plain {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  padding: clamp(26px, 4vw, 48px);
  border: 0;
  background: var(--mf-surface-soft);
}

.mf-service-catalog__item--plain .mf-service-catalog__copy {
  padding: 0;
}

.mf-service-catalog__item--plain .mf-text-link {
  align-self: flex-start;
}

/* About page */
.mf-about-story {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.mf-about-story__statement {
  max-width: 25ch;
  margin: 0;
  color: var(--mf-ink);
  font-size: clamp(1.85rem, 3.6vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.mf-about-story__visuals {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 16px;
}

.mf-about-story__visuals figure {
  margin: 0;
}

.mf-about-story__visuals figure:first-child img {
  aspect-ratio: 4 / 3;
}

.mf-about-story__visuals figure:last-child img {
  aspect-ratio: 4 / 5;
}

.mf-about-story__visuals img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--mf-radius);
}

.mf-about-story__copy {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(30px, 5vw, 76px);
  padding-top: 34px;
  border-top: 1px solid var(--mf-line);
}

.mf-about-story__copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.mf-about-story__copy p {
  max-width: 58ch;
  color: var(--mf-muted);
  font-size: 1.06rem;
}

/* Project archive */
.mf-project-archive .wp-block-query {
  padding-top: clamp(50px, 6vw, 80px);
}

.mf-project-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.mf-project-grid > li {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
}

.mf-project-grid .wp-block-post-featured-image {
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--mf-surface-strong);
}

.mf-project-grid .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 600ms var(--mf-ease);
}

.mf-project-grid .wp-block-post-featured-image:hover img,
.mf-project-grid .wp-block-post-featured-image:focus-within img {
  transform: scale(1.025);
}

.mf-project-grid .wp-block-post-title,
.mf-project-grid .wp-block-post-excerpt {
  padding-inline: 22px;
}

.mf-project-grid .wp-block-post-title {
  margin-bottom: 0.6rem;
}

.mf-project-grid .wp-block-post-title a {
  text-decoration: none;
}

.mf-project-grid .wp-block-post-excerpt {
  color: var(--mf-muted);
}

.mf-project-grid .wp-block-post-excerpt__more-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.7rem;
  color: var(--mf-accent);
  font-weight: 650;
  text-decoration-color: var(--mf-accent);
}

/* Project case studies */
.mf-project-single__heading {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(30px, 5vw, 72px);
}

.mf-project-single__heading .mf-kicker {
  grid-column: 1 / -1;
}

.mf-project-single__heading .wp-block-post-excerpt {
  margin: 0;
}

.mf-case-rail-wrap,
.mf-case-rail-wrap .wp-block-shortcode {
  margin-top: 0;
  margin-bottom: 0;
}

.mf-case-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--mf-line);
}

.mf-case-rail__item {
  min-width: 0;
  padding: 20px 22px 22px 0;
}

.mf-case-rail__item + .mf-case-rail__item {
  padding-left: 22px;
  border-left: 1px solid var(--mf-line);
}

.mf-case-rail__item span,
.mf-project-gallery .wp-element-caption {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--mf-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mf-case-rail__item strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.mf-project-single__hero {
  margin-top: clamp(38px, 5vw, 64px);
  overflow: hidden;
  border-radius: var(--mf-radius);
}

.mf-project-single__hero img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}

.mf-project-single > .wp-block-post-content {
  padding-top: clamp(58px, 7vw, 96px);
}

.mf-project-single > .wp-block-post-content h2 {
  margin-top: clamp(60px, 7vw, 92px);
  margin-bottom: 1.2rem;
}

.mf-project-single > .wp-block-post-content > h2:first-child {
  margin-top: 0;
}

.mf-project-single .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px !important;
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  max-width: none;
  margin: 2.6rem auto 0;
}

.mf-project-single .wp-block-gallery > .wp-block-image {
  grid-column: span 6;
  margin: 0 !important;
}

.mf-project-single .wp-block-gallery > .wp-block-image:nth-child(3n + 1) {
  grid-column: span 7;
}

.mf-project-single .wp-block-gallery > .wp-block-image:nth-child(3n + 2) {
  grid-column: span 5;
}

.mf-project-single .wp-block-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--mf-radius);
}

.mf-project-gallery .wp-element-caption {
  margin: 9px 0 24px;
  text-align: left;
  text-transform: none;
}

.mf-post-navigation {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 26px;
  border-top: 1px solid var(--mf-line);
}

.mf-post-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--mf-accent);
  font-weight: 650;
}

/* Compact project CTA */
.mf-inline-cta {
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  margin: clamp(64px, 8vw, 104px) auto 0;
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--mf-radius);
  background: var(--mf-surface-soft);
}

.mf-inline-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  gap: 2.5rem;
}

.mf-inline-cta h2 {
  max-width: 13ch;
  margin-bottom: 0.85rem !important;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.mf-inline-cta p {
  max-width: 48ch;
  color: var(--mf-muted);
}

.mf-inline-cta__action {
  justify-self: end;
}

/* Search, index and 404 */
.mf-query-grid:not(.mf-project-grid) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(30px, 5vw, 60px) 18px !important;
  padding-top: clamp(50px, 6vw, 80px);
}

.mf-query-grid:not(.mf-project-grid) > li {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
}

.mf-query-grid .wp-block-post-title a {
  text-decoration: none;
}

.mf-error-content {
  min-height: calc(100dvh - var(--mf-header-height));
}

.mf-error-content .wp-block-buttons {
  margin-top: 1.8rem;
}

/* V3 inner pages */
.mf-v3-inner-hero {
  position: relative;
}

.mf-v3-inner {
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  margin-inline: auto;
}

.mf-v3-page-shell,
.mf-v3-project-archive,
.mf-v3-project-single,
.mf-v3-search-shell,
.mf-v3-index-shell,
.mf-v3-error-shell,
.mf-v3-entry-single {
  padding-bottom: clamp(76px, 9vw, 128px);
}

.mf-v3-page-heading,
.mf-v3-archive-heading,
.mf-v3-project-single__heading,
.mf-v3-search-heading,
.mf-v3-index-heading,
.mf-v3-error-content,
.mf-v3-entry-single__heading {
  padding-top: clamp(62px, 7vw, 96px);
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--mf-line);
}

.mf-v3-page-heading h1,
.mf-v3-archive-heading h1,
.mf-v3-project-single__heading h1,
.mf-v3-search-heading h1,
.mf-v3-index-heading h1,
.mf-v3-error-content h1,
.mf-v3-entry-single__heading h1 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2.65rem, 4.4vw, 4.25rem) !important;
  text-wrap: balance;
}

.mf-v3-archive-heading .has-lead-font-size,
.mf-v3-project-single__heading .wp-block-post-excerpt,
.mf-v3-entry-single__heading .wp-block-post-excerpt,
.mf-v3-search-heading p,
.mf-v3-index-heading p,
.mf-v3-error-content p {
  max-width: 48rem;
  margin-top: 1.35rem;
  color: var(--mf-muted);
}

.mf-v3-page-shell > .wp-block-post-content,
.mf-v3-entry-single > .wp-block-post-content {
  width: 100%;
  max-width: none !important;
  margin-inline: 0;
  padding-inline: 0 !important;
  padding-top: clamp(50px, 6vw, 80px);
}

.mf-v3-project-single > .wp-block-post-content {
  width: 100%;
  max-width: none !important;
  margin-inline: 0;
  padding-inline: 0 !important;
}

/* Services page */
.mf-v3-services-page {
  display: grid;
  gap: clamp(44px, 6vw, 76px);
}

.mf-v3-services-page__intro {
  max-width: 900px;
  padding: 0;
  border: 0;
}

.mf-v3-services-page__intro .mf-lead {
  margin-bottom: 0;
  color: var(--mf-ink);
  font-size: clamp(1.4rem, 2.35vw, 2.2rem) !important;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.mf-v3-service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.mf-v3-service-card {
  grid-column: span 5;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
}

.mf-v3-service-card,
.mf-v3-service-card__copy h2 {
  scroll-margin-top: calc(var(--mf-header-height) + 24px);
}

.mf-v3-service-card--wide,
.mf-v3-service-card--cta {
  grid-column: span 7;
}

.mf-v3-service-card__media {
  height: clamp(260px, 24vw, 320px);
  overflow: hidden;
  background: var(--mf-surface-strong);
}

.mf-v3-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--mf-ease);
}

.mf-v3-service-card:hover .mf-v3-service-card__media img,
.mf-v3-service-card:focus-within .mf-v3-service-card__media img {
  transform: scale(1.025);
}

.mf-v3-service-card__copy {
  padding: 24px;
}

.mf-v3-service-card__meta {
  margin-bottom: 0.55rem;
  color: var(--mf-accent);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.mf-v3-service-card__copy h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

.mf-v3-service-card__copy p:not(.mf-v3-eyebrow):not(.mf-v3-service-card__meta) {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--mf-muted);
}

.mf-v3-service-card--cta {
  display: flex;
  min-height: 450px;
  align-items: flex-end;
  padding: clamp(26px, 4vw, 48px);
  border-color: var(--mf-accent-soft);
  background: var(--mf-surface-soft);
}

.mf-v3-service-card--cta .mf-v3-service-card__copy {
  padding: 0;
}

.mf-v3-service-card--cta .mf-v3-button {
  margin-top: 1.25rem;
}

/* About page */
.mf-v3-about-page {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.mf-v3-about-page__intro {
  padding: 0;
  border: 0;
}

.mf-v3-about-page__statement {
  max-width: 25ch;
  margin: 0;
  color: var(--mf-ink);
  font-size: clamp(1.85rem, 3.6vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.mf-v3-about-page__visuals {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 16px;
}

.mf-v3-about-page__visuals figure {
  margin: 0;
}

.mf-v3-about-page__visuals figure:first-child img {
  aspect-ratio: 4 / 3;
}

.mf-v3-about-page__visuals figure:last-child img {
  aspect-ratio: 4 / 5;
}

.mf-v3-about-page__visuals img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--mf-radius);
}

.mf-v3-about-page__copy {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(30px, 5vw, 76px);
  padding-top: 34px;
  border-top: 1px solid var(--mf-line);
}

.mf-v3-about-page__copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.mf-v3-about-page__copy p {
  max-width: 58ch;
  color: var(--mf-muted);
  font-size: 1.06rem;
}

/* Contact page */
.mf-v3-contact-page {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
}

.mf-v3-contact-page__aside {
  position: sticky;
  top: calc(var(--mf-header-height) + 28px);
}

.mf-v3-contact-page__aside h2 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 3.5vw, 3.3rem);
  text-wrap: balance;
}

.mf-v3-contact-page__aside p:not(.mf-v3-eyebrow) {
  max-width: 38ch;
  color: var(--mf-muted);
}

.mf-v3-contact-page__form {
  min-width: 0;
}

/* Project and query listings */
.mf-v3-project-archive .wp-block-query,
.mf-v3-index-shell .wp-block-query,
.mf-v3-search-shell .wp-block-query {
  padding-top: clamp(50px, 6vw, 80px);
}

.mf-v3-query-grid.mf-v3-project-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.mf-v3-query-grid.mf-v3-project-grid > li,
.mf-v3-query-grid:not(.mf-v3-project-grid) > li {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
}

.mf-v3-query-grid.mf-v3-project-grid > li {
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
}

.mf-v3-query-grid.mf-v3-project-grid > li:focus-within {
  box-shadow: inset 0 0 0 3px var(--mf-accent);
}

.mf-v3-project-grid__media,
.mf-v3-query-grid.mf-v3-project-grid .wp-block-post-featured-image {
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--mf-surface-strong);
}

.mf-v3-project-grid__media img,
.mf-v3-query-grid.mf-v3-project-grid .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 600ms var(--mf-ease);
}

.mf-v3-project-grid__media:hover img,
.mf-v3-project-grid__media:focus-within img {
  transform: scale(1.025);
}

.mf-v3-project-grid__title,
.mf-v3-query-grid.mf-v3-project-grid .wp-block-post-title,
.mf-v3-query-grid.mf-v3-project-grid .wp-block-post-excerpt {
  padding-inline: 22px;
}

.mf-v3-project-grid__title,
.mf-v3-query-grid.mf-v3-project-grid .wp-block-post-title {
  margin-bottom: 0.6rem;
}

.mf-v3-query-grid .wp-block-post-title a {
  text-decoration: none;
}

.mf-v3-query-grid .wp-block-post-excerpt {
  color: var(--mf-muted);
}

.mf-v3-query-grid .wp-block-post-excerpt__more-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.7rem;
  color: var(--mf-accent);
  font-weight: 650;
}

.mf-v3-query-grid:not(.mf-v3-project-grid) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(30px, 5vw, 60px) 18px !important;
}

.mf-v3-query-grid:not(.mf-v3-project-grid) > li {
  padding: 24px;
}

/* Project case studies */
.mf-v3-project-single__heading {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(20px, 4vw, 64px);
}

.mf-v3-project-single__heading > .mf-v3-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -0.25rem;
}

.mf-v3-project-single__heading .wp-block-post-excerpt {
  margin: 0;
}

.mf-v3-case-rail,
.mf-v3-case-rail .wp-block-shortcode {
  margin-top: 0;
  margin-bottom: 0;
}

.mf-v3-case-rail .mf-case-rail {
  width: 100%;
}

.mf-v3-project-single__hero,
.mf-v3-entry-single__hero {
  margin-top: clamp(38px, 5vw, 64px);
  overflow: hidden;
  border-radius: var(--mf-radius);
}

.mf-v3-project-single__hero img,
.mf-v3-entry-single__hero img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}

.mf-v3-project-single > .wp-block-post-content,
.mf-v3-entry-single > .wp-block-post-content {
  padding-top: clamp(58px, 7vw, 96px);
}

.mf-v3-case-content h2,
.mf-v3-project-single > .wp-block-post-content > h2 {
  margin-bottom: 1.2rem;
}

.mf-v3-project-single .wp-block-gallery,
.mf-v3-project-gallery {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px !important;
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  max-width: none;
  margin: 2.6rem auto 0;
}

.mf-v3-project-single > .wp-block-post-content > .mf-v3-project-gallery-heading {
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  max-width: var(--mf-wide);
  margin: 0 auto;
}

.mf-v3-project-single .wp-block-gallery > .wp-block-image,
.mf-v3-project-gallery__item {
  grid-column: span 6;
  min-width: 0;
  margin: 0 !important;
}

.mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 1),
.mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 4),
.mf-v3-project-gallery__item:nth-child(4n + 1),
.mf-v3-project-gallery__item:nth-child(4n + 4) {
  grid-column: span 7;
}

.mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 2),
.mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 3),
.mf-v3-project-gallery__item:nth-child(4n + 2),
.mf-v3-project-gallery__item:nth-child(4n + 3) {
  grid-column: span 5;
}

.mf-v3-project-single .wp-block-gallery img,
.mf-v3-project-gallery img {
  width: 100%;
  height: clamp(260px, 30vw, 420px);
  object-fit: cover;
  border-radius: var(--mf-radius);
}

.mf-v3-project-single .wp-block-gallery figcaption.wp-element-caption,
.mf-v3-project-gallery figcaption {
  position: static;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 10px 2px 0;
  background: transparent;
  color: var(--mf-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
}

.mf-v3-project-single .mf-v3-final-cta {
  background: transparent;
}

.mf-v3-project-single .mf-v3-final-cta__inner {
  border: 1px solid var(--mf-line);
  background: var(--mf-surface);
  color: var(--mf-ink);
}

.mf-v3-project-single .mf-v3-final-cta__copy h2,
.mf-v3-project-single .mf-v3-final-cta__copy h3 {
  color: var(--mf-ink);
}

.mf-v3-project-single .mf-v3-final-cta__copy p {
  color: var(--mf-muted);
}

.mf-v3-project-single .mf-v3-final-cta__actions > a {
  border-color: var(--mf-accent);
  background: var(--mf-accent);
  color: #ffffff !important;
}

.mf-v3-project-single .mf-v3-final-cta__actions > a:hover,
.mf-v3-project-single .mf-v3-final-cta__actions > a:focus-visible {
  border-color: var(--mf-navy);
  background: var(--mf-navy);
  color: #ffffff !important;
}

.mf-v3-post-navigation {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 26px;
  border-top: 1px solid var(--mf-line);
}

.mf-v3-post-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--mf-accent-strong);
  font-weight: 650;
}

.mf-v3-error-content {
  min-height: calc(100dvh - var(--mf-header-height));
}

.mf-v3-error-content .wp-block-buttons {
  margin-top: 1.8rem;
}

/* Footer */
.mf-site-footer,
.mf-v3-footer {
  border-top: 0;
  background: var(--mf-navy);
  color: #ffffff;
}

.mf-site-footer__grid,
.mf-v3-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(42px, 7vw, 96px);
  padding-top: clamp(50px, 6vw, 72px);
  padding-bottom: clamp(38px, 5vw, 58px);
}

.mf-v3-footer__inner {
  grid-template-columns: minmax(0, 6fr) minmax(160px, 3fr) minmax(170px, 3fr);
  align-items: start;
}

.mf-v3-footer__action {
  margin: 0;
}

.mf-v3-footer__contact {
  justify-self: end;
  min-width: 190px;
}

.mf-v3-footer__contact-label {
  margin: 0 0 6px;
  color: #b9ccdf;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mf-v3-footer__phone {
  margin: 0 0 18px;
}

.mf-v3-footer__phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 5px;
}

.mf-v3-footer__phone a:hover,
.mf-v3-footer__phone a:focus-visible {
  color: #b8d8ff;
  text-decoration-color: currentColor;
}

.mf-wordmark--footer,
.mf-v3-footer__brand {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 720;
}

.mf-wordmark--footer a,
.mf-v3-footer__brand a {
  color: #ffffff;
}

.mf-site-footer__brand p,
.mf-v3-footer__brand p {
  max-width: 34rem;
  color: #c9d8e7;
  font-size: 1rem;
}

.mf-footer-nav,
.mf-v3-footer__nav {
  align-self: start;
}

.mf-footer-nav .wp-block-navigation__container,
.mf-v3-footer__nav,
.mf-v3-footer__nav .wp-block-navigation__container,
.mf-v3-footer__nav ul {
  gap: 0.45rem;
}

.mf-footer-nav .wp-block-navigation-item__content,
.mf-v3-footer__nav .wp-block-navigation-item__content,
.mf-v3-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ffffff;
  font-weight: 550;
  text-decoration: none;
}

.mf-footer-nav .wp-block-navigation-item__content:hover,
.mf-footer-nav .wp-block-navigation-item__content:focus-visible,
.mf-v3-footer__nav a:hover,
.mf-v3-footer__nav a:focus-visible {
  color: #b8d8ff;
}

.mf-site-footer__bottom,
.mf-v3-footer__meta {
  min-height: 62px;
  padding-block: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #b9ccdf;
}

.mf-site-footer__bottom p,
.mf-v3-footer__meta p {
  margin: 0;
}

/* Medium desktop and tablet */
@media (max-width: 1180px) {
  .mf-v3-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
    grid-template-rows: auto auto;
    align-items: start;
    min-height: 0;
    gap: 24px;
  }

  .mf-v3-hero__copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 580px;
    padding: 28px 0;
    border-radius: 0;
  }

  .mf-v3-hero__copy h1 {
    font-size: clamp(2.65rem, 4.7vw, 3.5rem);
  }

  .mf-v3-hero__form {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    width: 100%;
    margin-right: 0;
  }

  .mf-v3-hero__media {
    grid-column: 1;
    grid-row: 2;
    height: clamp(230px, 28vw, 310px);
    min-height: 0;
  }

  .mf-v3-projects__stack {
    grid-template-columns: 1fr;
    max-width: 980px;
    margin-inline: auto;
  }

  .mf-v3-project-card {
    position: sticky;
    top: calc(var(--mf-header-height) + 20px);
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
    min-height: 330px;
    box-shadow: 0 14px 34px rgba(7, 30, 56, 0.09);
  }

  .mf-v3-project-card:nth-child(2) {
    top: calc(var(--mf-header-height) + 36px);
  }

  .mf-v3-project-card:nth-child(3) {
    top: calc(var(--mf-header-height) + 52px);
  }

  .mf-v3-project-card__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .mf-v3-project-card__copy {
    align-self: end;
    padding: clamp(26px, 4vw, 44px);
  }
}

@media (max-width: 1024px) {
  :root {
    --mf-gutter: clamp(18px, 3vw, 28px);
  }

  .mf-v3-header__action,
  .mf-v3-header__action.wp-block-buttons {
    display: none;
  }

  .mf-v3-services__layout.is-enhanced {
    grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
    gap: 24px;
  }

  .mf-v3-service-panel__copy {
    grid-template-columns: 1fr;
  }

  .mf-v3-query-grid.mf-v3-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mf-v3-service-card,
  .mf-v3-service-card--wide,
  .mf-v3-service-card--cta {
    grid-column: span 6;
  }

  .mf-contact-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 36px;
  }

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

  .mf-case-rail__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .mf-case-rail__item:nth-child(n + 3) {
    border-top: 1px solid var(--mf-line);
  }

  .mf-v3-footer__inner {
    grid-template-columns: minmax(0, 5fr) minmax(150px, 3fr) minmax(160px, 2fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .mf-v3-hero__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mf-v3-hero__copy,
  .mf-v3-hero__media,
  .mf-v3-hero__form {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  .mf-v3-hero__copy {
    grid-row: 1;
    max-width: 660px;
    padding-bottom: 8px;
  }

  .mf-v3-hero__media {
    grid-row: 2;
    height: clamp(240px, 45vw, 360px);
  }

  .mf-v3-hero__form {
    grid-row: 3;
    max-width: 680px;
    justify-self: start;
  }

  .mf-v3-services__layout.is-enhanced {
    grid-template-columns: 1fr;
  }

  .mf-v3-service-tabs {
    grid-template-columns: none;
    grid-auto-columns: minmax(190px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    border-top: 0;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .mf-v3-service-tab {
    min-height: 60px;
    padding-block: 14px;
    scroll-snap-align: start;
  }

  .mf-v3-service-tab__summary {
    display: none;
  }

  .mf-v3-contact-page {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mf-v3-contact-page__aside {
    position: static;
  }

  .mf-v3-contact-page__aside h2 {
    max-width: 14ch;
  }

  .mf-v3-service-card,
  .mf-v3-service-card--wide,
  .mf-v3-service-card--cta {
    grid-column: 1 / -1;
  }

  .mf-v3-project-single .wp-block-gallery > .wp-block-image,
  .mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 1),
  .mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 2),
  .mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 3),
  .mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 4),
  .mf-v3-project-gallery__item,
  .mf-v3-project-gallery__item:nth-child(4n + 1),
  .mf-v3-project-gallery__item:nth-child(4n + 2),
  .mf-v3-project-gallery__item:nth-child(4n + 3),
  .mf-v3-project-gallery__item:nth-child(4n + 4) {
    grid-column: span 6;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --mf-header-height: 64px;
    --mf-gutter: 18px;
    --mf-shadow-form: 0 16px 36px rgba(7, 30, 56, 0.11);
  }

  body.admin-bar .mf-site-header,
  body.admin-bar .mf-v3-header {
    top: 46px;
  }

  .mf-site-header__inner,
  .mf-v3-header__inner {
    min-height: var(--mf-header-height);
    padding-block: 7px;
  }

  .mf-wordmark,
  .mf-v3-header__brand {
    font-size: 1rem;
  }

  .mf-primary-nav .wp-block-navigation__responsive-container-content,
  .mf-v3-header__nav .wp-block-navigation__responsive-container-content {
    align-items: flex-start;
  }

  .mf-primary-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
  .mf-v3-header__nav .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    gap: 0;
  }

  .mf-primary-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
  .mf-v3-header__nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    width: 100%;
    border-bottom: 1px solid var(--mf-line);
  }

  .mf-primary-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content,
  .mf-v3-header__nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    width: 100%;
    min-height: 60px;
    justify-content: flex-start;
    font-size: 1.25rem;
  }

  .mf-primary-nav .wp-block-navigation__responsive-container-content .mf-nav-cta,
  .mf-v3-header__nav .wp-block-navigation__responsive-container-content .mf-nav-cta {
    margin-top: 22px;
    border-bottom: 0;
  }

  .mf-primary-nav .wp-block-navigation__responsive-container-content .mf-nav-cta .wp-block-navigation-item__content,
  .mf-v3-header__nav .wp-block-navigation__responsive-container-content .mf-nav-cta .wp-block-navigation-item__content {
    justify-content: center;
    font-size: 1rem;
  }

  .mf-v3-hero {
    padding-block: 32px 48px;
  }

  .mf-v3-hero__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mf-v3-hero__copy,
  .mf-v3-hero__media,
  .mf-v3-hero__form {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  .mf-v3-hero__copy {
    grid-row: 1;
    padding: 0;
  }

  .mf-v3-hero__copy h1 {
    max-width: 12ch;
    margin-bottom: 18px;
    font-size: clamp(2.45rem, 10vw, 3.25rem);
  }

  .mf-v3-hero__actions {
    margin-top: 24px;
  }

  .mf-v3-hero__media {
    grid-row: 2;
    height: clamp(190px, 52vw, 240px);
    min-height: 0;
  }

  .mf-v3-hero__form {
    grid-row: 3;
    margin: 0;
    padding: 22px 18px;
  }

  .mf-v3-capability {
    width: 100%;
    margin-top: 24px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .mf-v3-capability__track {
    min-width: max-content;
  }

  .mf-v3-capability__item {
    min-width: 154px;
    min-height: 54px;
    padding-inline: 18px;
  }

  .mf-v3-section {
    padding-block: 56px;
  }

  .mf-v3-services__intro,
  .mf-v3-projects__heading,
  .mf-v3-process__intro {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .mf-v3-services__intro h2,
  .mf-v3-projects__heading h2,
  .mf-v3-process__intro h2 {
    max-width: 13ch;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .mf-v3-services__layout,
  .mf-v3-services__layout.is-enhanced {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mf-v3-service-tab {
    min-height: 58px;
  }

  .mf-v3-service-tabs {
    grid-template-columns: none;
  }

  .mf-v3-service-tab__summary {
    display: none;
  }

  .mf-v3-service-panel__media {
    aspect-ratio: 16 / 9;
  }

  .mf-v3-service-panel__copy {
    gap: 12px;
    padding: 18px;
  }

  .mf-v3-projects__stack {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: min(82vw, 320px);
    grid-auto-flow: column;
    gap: 16px;
    margin-right: calc(var(--mf-gutter) * -1);
    padding-right: var(--mf-gutter);
    padding-bottom: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--mf-gutter);
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--mf-line-strong) transparent;
  }

  .mf-v3-project-card,
  .mf-v3-project-card:nth-child(n) {
    position: static;
    display: block;
    min-height: 0;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .mf-v3-project-card__media {
    aspect-ratio: 4 / 3;
  }

  .mf-v3-process {
    padding-block: 56px;
  }

  .mf-v3-process__steps {
    grid-template-columns: 1fr;
    border-top-color: var(--mf-line);
  }

  .mf-v3-process__step {
    min-height: 0;
    padding: 22px 0;
  }

  .mf-v3-process__step + .mf-v3-process__step {
    padding-left: 0;
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-v3-process__step h3 {
    margin-bottom: 0.35rem;
  }

  .mf-v3-final-cta {
    padding-bottom: 56px;
  }

  .mf-v3-final-cta__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px;
  }

  .mf-v3-final-cta__actions {
    justify-content: flex-start;
  }

  .mf-contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mf-v3-contact-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mf-contact-layout__aside {
    position: static;
  }

  .mf-v3-contact-page__aside {
    position: static;
  }

  .mf-contact-layout__aside h2 {
    font-size: clamp(2.25rem, 10vw, 3.3rem);
  }

  .mf-v3-contact-page__aside h2 {
    font-size: clamp(2.25rem, 10vw, 3.3rem);
  }

  .mf-contact-form {
    padding: 22px 18px;
  }

  .mf-contact-form form {
    grid-template-columns: 1fr;
  }

  .mf-contact-form__field,
  .mf-contact-form__field:nth-child(n),
  .mf-contact-form__privacy,
  .mf-contact-form form > [hidden],
  .mf-contact-form form > button {
    grid-column: 1;
  }

  .mf-contact-form button {
    width: 100%;
  }

  .mf-page-heading,
  .mf-archive-heading,
  .mf-project-single__heading,
  .mf-search-heading,
  .mf-index-heading,
  .mf-error-content {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .mf-v3-page-heading,
  .mf-v3-archive-heading,
  .mf-v3-project-single__heading,
  .mf-v3-search-heading,
  .mf-v3-index-heading,
  .mf-v3-error-content,
  .mf-v3-entry-single__heading {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .mf-page-heading h1,
  .mf-archive-heading h1,
  .mf-project-single__heading h1,
  .mf-search-heading h1,
  .mf-index-heading h1,
  .mf-error-content h1 {
    font-size: clamp(2.55rem, 12vw, 4rem) !important;
  }

  .mf-v3-page-heading h1,
  .mf-v3-archive-heading h1,
  .mf-v3-project-single__heading h1,
  .mf-v3-search-heading h1,
  .mf-v3-index-heading h1,
  .mf-v3-error-content h1,
  .mf-v3-entry-single__heading h1 {
    font-size: clamp(2.4rem, 9vw, 3.35rem) !important;
  }

  .mf-page-shell > .wp-block-post-content {
    padding-top: 50px;
  }

  .mf-v3-page-shell > .wp-block-post-content,
  .mf-v3-entry-single > .wp-block-post-content {
    padding-top: 50px;
  }

  .mf-service-catalog {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mf-v3-service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mf-service-catalog__item--wide,
  .mf-service-catalog__item--narrow {
    grid-column: 1;
  }

  .mf-v3-service-card,
  .mf-v3-service-card--wide,
  .mf-v3-service-card--cta {
    grid-column: 1;
    min-height: 0;
  }

  .mf-v3-service-card__media {
    height: min(76vw, 430px);
  }

  .mf-v3-service-card--cta {
    min-height: 340px;
  }

  .mf-service-catalog__item,
  .mf-service-catalog__item--plain {
    min-height: 0;
  }

  .mf-service-catalog__media {
    height: min(76vw, 430px);
  }

  .mf-service-catalog__item--plain {
    min-height: 360px;
  }

  .mf-about-story__visuals,
  .mf-about-story__copy {
    grid-template-columns: 1fr;
  }

  .mf-v3-about-page__visuals,
  .mf-v3-about-page__copy {
    grid-template-columns: 1fr;
  }

  .mf-about-story__visuals figure:last-child {
    width: 74%;
    margin-left: auto;
  }

  .mf-v3-about-page__visuals figure:last-child {
    width: 74%;
    margin-left: auto;
  }

  .mf-project-grid,
  .mf-query-grid:not(.mf-project-grid) {
    grid-template-columns: 1fr !important;
  }

  .mf-v3-query-grid.mf-v3-project-grid,
  .mf-v3-query-grid:not(.mf-v3-project-grid) {
    grid-template-columns: 1fr !important;
  }

  .mf-project-single__heading {
    display: block;
  }

  .mf-v3-project-single__heading {
    display: block;
  }

  .mf-project-single__heading .wp-block-post-excerpt {
    margin-top: 1.35rem;
  }

  .mf-v3-project-single__heading .wp-block-post-excerpt {
    margin-top: 1.35rem;
  }

  .mf-case-rail {
    grid-template-columns: 1fr;
  }

  .mf-case-rail__item,
  .mf-case-rail__item + .mf-case-rail__item,
  .mf-case-rail__item:nth-child(odd) {
    padding: 17px 0;
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-case-rail__item:first-child {
    border-top: 0;
  }

  .mf-project-single .wp-block-gallery {
    grid-template-columns: 1fr;
  }

  .mf-v3-project-single .wp-block-gallery {
    grid-template-columns: 1fr;
  }

  .mf-v3-project-gallery {
    grid-template-columns: 1fr;
  }

  .mf-project-single .wp-block-gallery > .wp-block-image,
  .mf-project-single .wp-block-gallery > .wp-block-image:nth-child(3n + 1),
  .mf-project-single .wp-block-gallery > .wp-block-image:nth-child(3n + 2) {
    grid-column: 1;
  }

  .mf-v3-project-single .wp-block-gallery > .wp-block-image,
  .mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 1),
  .mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 2),
  .mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 3),
  .mf-v3-project-single .wp-block-gallery > .wp-block-image:nth-child(4n + 4),
  .mf-v3-project-gallery__item,
  .mf-v3-project-gallery__item:nth-child(4n + 1),
  .mf-v3-project-gallery__item:nth-child(4n + 2),
  .mf-v3-project-gallery__item:nth-child(4n + 3),
  .mf-v3-project-gallery__item:nth-child(4n + 4) {
    grid-column: 1;
  }

  .mf-inline-cta__inner {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .mf-inline-cta__action {
    justify-self: start;
  }

  .mf-site-footer__grid,
  .mf-v3-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mf-v3-footer__action {
    justify-self: start;
  }

  .mf-v3-footer__contact {
    justify-self: start;
  }

  .mf-footer-nav .wp-block-navigation__container,
  .mf-v3-footer__nav .wp-block-navigation__container,
  .mf-v3-footer__nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --mf-gutter: 16px;
  }

  body.admin-bar .mf-site-header,
  body.admin-bar .mf-v3-header {
    top: 0;
  }

  .mf-wordmark,
  .mf-v3-header__brand {
    font-size: 0.94rem;
  }

  .mf-v3-hero__copy h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .mf-v3-hero__actions {
    display: grid;
    justify-items: start;
  }

  .mf-v3-hero__actions .wp-block-buttons,
  .mf-v3-hero__actions .wp-block-button,
  .mf-v3-hero__actions .wp-block-button__link {
    width: 100%;
  }

  .mf-v3-hero__form {
    padding: 20px 16px;
  }

  .mf-v3-capability__item {
    min-width: 146px;
  }

  .mf-v3-service-tab {
    padding-inline: 14px;
    font-size: 0.95rem;
  }

  .mf-v3-final-cta__actions,
  .mf-v3-final-cta__actions .wp-block-buttons,
  .mf-v3-final-cta__actions .wp-block-button,
  .mf-v3-final-cta__actions .wp-block-button__link {
    width: 100%;
  }

  .mf-about-story__visuals figure:last-child {
    width: 88%;
  }
}

@media (hover: none) {
  .mf-v3-service-panel__media img,
  .mf-v3-project-card__media img,
  .mf-service-catalog__media img,
  .mf-project-grid .wp-block-post-featured-image img {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mf-v3-capability__track {
    width: max-content;
    animation: none !important;
    transform: none !important;
  }

  .mf-v3-capability {
    overflow-x: auto;
  }

  .mf-scrub-word,
  .mf-motion-media,
  .mf-motion-media img,
  [data-mf-project-card] {
    opacity: 1 !important;
    transform: none !important;
  }

  .mf-v3-project-card,
  .mf-v3-project-card:nth-child(n) {
    position: static;
  }
}

@media (forced-colors: active) {
  .wp-block-button__link,
  .wp-element-button,
  .mf-contact-form button,
  .mf-nav-cta .wp-block-navigation-item__content,
  .mf-v3-header__action,
  .mf-v3-service-tab {
    border: 1px solid ButtonText;
  }

  .mf-v3-hero__media,
  .mf-v3-hero__form,
  .mf-v3-capability,
  .mf-v3-service-panel,
  .mf-v3-project-card,
  .mf-v3-process__step,
  .mf-contact-form,
  .mf-service-catalog__item,
  .mf-about-story__visuals img,
  .mf-project-grid > li {
    border: 1px solid CanvasText;
  }

  .mf-v3-service-tab.is-active::before,
  .mf-v3-service-tab[aria-selected="true"]::before {
    background: Highlight;
  }
}

@media print {
  :root {
    --mf-bg: #ffffff;
    --mf-surface: #ffffff;
    --mf-ink: #000000;
    --mf-muted: #303030;
    --mf-line: #8a8a8a;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .mf-site-header,
  .mf-v3-header,
  .mf-v3-capability,
  .mf-v3-hero__form,
  .mf-v3-final-cta,
  .mf-contact-form,
  .mf-site-footer,
  .mf-v3-footer,
  .mf-post-navigation {
    display: none !important;
  }

  .mf-v3-hero,
  .mf-v3-section,
  .mf-v3-process,
  .mf-page-heading,
  .mf-archive-heading,
  .mf-project-single__heading {
    padding-block: 18pt;
  }

  .mf-v3-hero__inner,
  .mf-v3-services__layout,
  .mf-v3-projects__stack,
  .mf-v3-process__steps,
  .mf-service-catalog,
  .mf-project-grid {
    display: block !important;
  }

  .mf-v3-hero__copy,
  .mf-v3-hero__media,
  .mf-v3-project-card,
  .mf-v3-process__step,
  .mf-service-catalog__item,
  .mf-project-grid > li {
    position: static;
    margin-bottom: 16pt;
    break-inside: avoid;
    box-shadow: none;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    font-weight: 400;
  }
}

/* V4 architectural contractor editorial */
.mf-v4-shell {
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  margin-inline: auto;
}

.mf-v4-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms var(--mf-ease), border-color 180ms var(--mf-ease), color 180ms var(--mf-ease), transform 180ms var(--mf-ease);
}

.mf-v4-button--accent {
  border-color: var(--mf-accent-strong);
  background: var(--mf-accent-strong);
  color: #ffffff !important;
}

.mf-v4-button--accent:hover,
.mf-v4-button--accent:focus-visible {
  border-color: var(--mf-accent-hover);
  background: var(--mf-accent-hover);
  color: #ffffff !important;
  text-decoration: none;
}

.mf-v4-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.mf-v4-text-link::after {
  margin-left: 10px;
  content: "\2192";
  transition: transform 180ms var(--mf-ease);
}

.mf-v4-text-link:hover::after,
.mf-v4-text-link:focus-visible::after {
  transform: translateX(4px);
}

.mf-v4-text-link--light {
  color: #ffffff;
}

/* Homepage hero and open inquiry band */
.mf-v4-hero {
  padding: 0 !important;
  background: var(--mf-surface);
}

.mf-v4-hero__stage {
  position: relative;
  height: clamp(520px, 66vh, 650px);
  min-height: 520px;
  overflow: hidden;
  background: var(--mf-navy);
}

.mf-v4-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.mf-v4-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 44%;
}

.mf-v4-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 25, 43, 0.94) 0%, rgba(6, 25, 43, 0.82) 35%, rgba(6, 25, 43, 0.35) 63%, rgba(6, 25, 43, 0.08) 100%),
    linear-gradient(0deg, rgba(6, 25, 43, 0.32), transparent 52%);
}

.mf-v4-hero__copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(var(--mf-gutter), calc((100vw - var(--mf-wide)) / 2));
  width: min(720px, calc(100% - (2 * var(--mf-gutter))));
  color: #ffffff;
  transform: translateY(-50%);
}

.mf-v4-kicker {
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mf-v4-hero__copy h1 {
  max-width: 11.5ch;
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(3.35rem, 5.4vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

.mf-v4-hero__copy > p:not(.mf-v4-kicker) {
  max-width: 48ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.5;
}

.mf-v4-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.mf-v4-quick-inquiry {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 5vw, 72px);
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  margin: 0 auto;
  padding-block: clamp(42px, 5vw, 62px);
  border-bottom: 1px solid var(--mf-line);
}

.mf-v4-quick-inquiry__intro {
  padding-top: 22px;
}

.mf-v4-quick-inquiry__intro h2 {
  max-width: 9ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.mf-v4-quick-inquiry__intro p {
  max-width: 34ch;
  margin: 0;
  color: var(--mf-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.mf-v4-quick-inquiry__intro .mf-v5-quick-phone {
  margin-top: 18px;
  color: var(--mf-ink);
  font-weight: 600;
}

.mf-phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mf-accent-strong);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mf-v4-quick-inquiry .wp-block-shortcode,
.mf-v4-quick-inquiry .mf-contact-form {
  min-width: 0;
  margin: 0;
}

.mf-v4-quick-inquiry .mf-contact-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mf-v4-quick-inquiry .mf-contact-form__required-note {
  margin-bottom: 12px;
  font-size: 0.74rem;
}

.mf-v4-quick-inquiry .mf-contact-form form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 16px;
}

.mf-v4-quick-inquiry .mf-contact-form__field:nth-child(1) {
  grid-column: 1 / 5;
}

.mf-v4-quick-inquiry .mf-contact-form__field:nth-child(2) {
  grid-column: 5 / 9;
}

.mf-v4-quick-inquiry .mf-contact-form__field:nth-child(3) {
  grid-column: 9 / 13;
}

.mf-v4-quick-inquiry .mf-contact-form__field:nth-child(4) {
  grid-column: 1 / 9;
  grid-row: 2 / 4;
}

.mf-v4-quick-inquiry .mf-contact-form input,
.mf-v4-quick-inquiry .mf-contact-form textarea {
  min-height: 54px;
  background: #ffffff;
}

.mf-v4-quick-inquiry .mf-contact-form textarea {
  height: 118px;
  min-height: 118px;
  resize: vertical;
}

.mf-v4-quick-inquiry .mf-contact-form__field-hint {
  display: none;
}

.mf-v4-quick-inquiry .mf-contact-form__privacy {
  grid-column: 9 / 13;
  grid-row: 2;
  align-self: start;
  max-width: none;
  font-size: 0.78rem;
}

.mf-v4-quick-inquiry .mf-contact-form form > button {
  grid-column: 9 / 13;
  grid-row: 3;
  align-self: end;
  justify-self: stretch;
  min-height: 54px;
  margin: 0;
}

/* Homepage photographic service accordion */
.mf-v4-services {
  padding-block: clamp(74px, 8vw, 104px);
  background: var(--mf-bg);
}

.mf-v4-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mf-line-strong);
}

.mf-v4-section-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.5vw, 4.65rem);
  line-height: 0.96;
}

.mf-v4-section-heading p {
  max-width: 47ch;
  margin: 0;
  color: var(--mf-muted);
}

.mf-v4-service-accordion {
  display: flex;
  gap: 3px;
  height: clamp(470px, 42vw, 560px);
  overflow: hidden;
  background: var(--mf-navy);
}

.mf-v4-service-accordion__item {
  position: relative;
  flex: 2 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--mf-navy);
  color: #ffffff;
}

.mf-v4-service-accordion__item.is-active {
  flex-grow: 7;
}

.mf-v4-service-accordion__media,
.mf-v4-service-accordion__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mf-v4-service-accordion__media img {
  object-fit: cover;
  transition: transform 700ms var(--mf-ease), filter 300ms var(--mf-ease);
}

.mf-v4-service-accordion__item:nth-child(1) img {
  object-position: 50% 40%;
}

.mf-v4-service-accordion__item:nth-child(3) img {
  object-position: 44% 50%;
}

.mf-v4-service-accordion__item:nth-child(4) img {
  object-position: 32% 50%;
}

.mf-v4-service-accordion__item:not(.is-active) .mf-v4-service-accordion__media img {
  filter: saturate(0.68) brightness(0.72);
  transform: scale(1.04);
}

.mf-v4-service-accordion__item.is-active .mf-v4-service-accordion__media img {
  transform: scale(1);
}

.mf-v4-service-accordion__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 25, 43, 0.96) 0%, rgba(6, 25, 43, 0.56) 36%, rgba(6, 25, 43, 0.08) 78%);
}

.mf-v4-service-accordion__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(22px, 2.6vw, 36px);
}

.mf-v4-service-accordion__index {
  display: block;
  margin-bottom: 14px;
  color: var(--mf-accent);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.mf-v4-service-accordion__content h3 {
  margin: 0;
}

.mf-v4-service-accordion__content h3 button {
  width: 100%;
  max-width: 13ch;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-align: left;
  cursor: pointer;
}

.mf-v4-service-accordion__details {
  max-width: 46ch;
  margin-top: 16px;
}

.mf-v4-service-accordion__details[hidden] {
  display: none;
}

.mf-v4-service-accordion__details p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
  line-height: 1.5;
}

.mf-v4-service-accordion__details a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: var(--mf-accent);
  text-underline-offset: 5px;
}

/* Keep the homepage compact and photographic */
.mf-v3-projects {
  padding-block: clamp(72px, 7vw, 94px);
}

.mf-v3-projects__stack {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: none !important;
}

.mf-v3-project-card,
.mf-v3-project-card:nth-child(n) {
  position: static !important;
  display: block !important;
  min-height: 0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.mf-v3-project-card__media {
  height: auto !important;
  aspect-ratio: 5 / 4 !important;
}

.mf-v3-project-card__copy {
  padding: 22px 2px 0;
  background: var(--mf-bg);
}

.mf-v4-process {
  padding-block: 0;
  background: var(--mf-navy);
}

.mf-v4-process .mf-v3-process__inner {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
  min-height: 330px;
  padding-block: 50px;
}

.mf-v4-process .mf-v3-process__intro {
  margin: 0;
}

.mf-v4-process .mf-v3-process__intro h2 {
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
}

.mf-v4-process .mf-v3-process__intro p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.mf-v4-process .mf-v3-process__steps {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.mf-v4-process .mf-v3-process__step {
  min-height: 188px;
  padding-top: 26px;
}

.mf-v4-process .mf-v3-process__step + .mf-v3-process__step {
  border-left-color: rgba(255, 255, 255, 0.22);
}

.mf-v4-process .mf-v3-process__step > span[aria-hidden="true"] {
  display: block;
  color: var(--mf-accent);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.mf-v4-process .mf-v3-process__step h3 {
  color: #ffffff;
}

.mf-v4-process .mf-v3-process__step p {
  color: rgba(255, 255, 255, 0.68);
}

/* Dedicated services page */
.mf-v4-services-shell > .wp-block-post-content,
.mf-v4-contact-shell > .wp-block-post-content {
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 0 !important;
}

.mf-v4-services-page {
  padding-block: clamp(62px, 7vw, 96px) clamp(80px, 9vw, 124px);
}

.mf-v4-services-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  align-items: end;
  gap: 42px;
  margin-bottom: clamp(42px, 6vw, 72px);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--mf-line-strong);
}

.mf-v4-services-page__intro h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.2rem, 5.8vw, 6rem);
  line-height: 0.92;
}

.mf-v4-services-page__intro p {
  max-width: 48ch;
  margin: 0;
  color: var(--mf-muted);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

.mf-v4-service-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  background: var(--mf-navy);
}

.mf-v4-service-tile {
  display: grid;
  min-width: 0;
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  background: var(--mf-surface);
  scroll-margin-top: calc(var(--mf-header-height) + 20px);
}

.mf-v4-service-tile--wide {
  grid-column: span 7;
  grid-template-columns: minmax(0, 4fr) minmax(250px, 3fr);
}

.mf-v4-service-tile--narrow {
  grid-column: span 5;
  grid-template-rows: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.mf-v4-service-tile--plain {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.mf-v4-service-tile--plain .mf-v4-service-tile__copy {
  min-height: 100%;
}

.mf-v4-service-tile--plain .mf-v4-service-tile__copy > span {
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.mf-v4-service-tile--dark {
  background: var(--mf-navy);
  color: #ffffff;
}

.mf-v4-service-tile--dark .mf-v4-service-tile__copy h2 {
  color: #ffffff;
}

.mf-v4-service-tile--dark .mf-v4-service-tile__copy p {
  color: rgba(255, 255, 255, 0.72);
}

.mf-v4-service-tile__media {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--mf-surface-strong);
}

.mf-v4-service-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-v4-service-tile:nth-child(1) img {
  object-position: 50% 42%;
}

.mf-v4-service-tile:nth-child(3) img {
  object-position: 42% 50%;
}

.mf-v4-service-tile:nth-child(4) img {
  object-position: 34% 50%;
}

.mf-v4-service-tile__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 3.4vw, 44px);
}

.mf-v4-service-tile__copy > span {
  margin-bottom: auto;
  padding-bottom: 42px;
  color: var(--mf-accent-strong);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.mf-v4-service-tile__copy h2 {
  max-width: 14ch;
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 2.55vw, 2.85rem);
  line-height: 0.98;
}

.mf-v4-service-tile__copy p {
  max-width: 45ch;
  margin: 0;
  color: var(--mf-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.mf-v4-services-page__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  margin-top: 3px;
  padding: 22px 28px;
  background: var(--mf-navy);
  color: #ffffff;
}

.mf-v4-services-page__cta p {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Single-project gallery and compact CTA */
.mf-v3-project-single > .wp-block-post-content {
  padding-top: clamp(48px, 5vw, 72px);
}

.mf-v4-case-content {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(34px, 6vw, 86px);
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  max-width: var(--mf-wide) !important;
  margin-inline: auto;
  padding-bottom: clamp(44px, 5vw, 68px);
  border-bottom: 1px solid var(--mf-line-strong);
}

.mf-v4-case-content h2,
.mf-v4-case-content p {
  margin: 0 !important;
}

.mf-v4-case-content h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.mf-v4-case-content p {
  max-width: 56ch;
}

.mf-v4-project-gallery-section {
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  margin: clamp(52px, 6vw, 82px) auto 0;
}

.mf-v4-project-gallery-section__heading {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(250px, 5fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mf-line-strong);
}

.mf-v4-project-gallery-section__heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 0.94;
}

.mf-v4-project-gallery-section__heading p {
  margin: 0;
  color: var(--mf-muted);
}

.mf-v4-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 3vw, 38px);
}

.mf-v4-project-gallery__item {
  grid-column: auto;
  min-width: 0;
  margin: 0;
}

.mf-v4-project-gallery__item:nth-child(4n + 1),
.mf-v4-project-gallery__item:nth-child(4n + 4) {
  grid-column: auto;
}

.mf-v4-project-gallery__item:nth-child(4n + 2),
.mf-v4-project-gallery__item:nth-child(4n + 3) {
  grid-column: auto;
}

.mf-v4-project-gallery__item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.mf-v4-project-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.mf-v4-project-gallery__item figcaption {
  margin: 0;
  padding: 11px 0 2px;
  color: var(--mf-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.mf-v4-project-cta {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(260px, 4fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  width: min(calc(100% - (2 * var(--mf-gutter))), var(--mf-wide));
  min-height: 178px;
  margin: 30px auto 0;
  padding: 30px clamp(26px, 4vw, 48px);
  background: var(--mf-navy);
  color: #ffffff;
}

.mf-v4-project-cta h2 {
  max-width: 13ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 0.98;
}

.mf-v4-project-cta p {
  max-width: 36ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

/* Dedicated contact page */
.mf-v4-contact-page {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: min(100%, 1440px);
  min-height: calc(100dvh - var(--mf-header-height));
  margin: 0 auto;
  background: var(--mf-surface);
}

.mf-v4-contact-page__visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--mf-navy);
}

.mf-v4-contact-page__visual figure,
.mf-v4-contact-page__visual figure img {
  width: 100%;
  height: 100%;
  margin: 0;
}

.mf-v4-contact-page__visual figure {
  position: absolute;
  inset: 0;
}

.mf-v4-contact-page__visual figure img {
  object-fit: cover;
  object-position: 52% 50%;
}

.mf-v4-contact-page__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 25, 43, 0.96) 0%, rgba(6, 25, 43, 0.34) 44%, rgba(6, 25, 43, 0.04) 75%);
  content: "";
}

.mf-v4-contact-page__visual-copy {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 4vw, 56px);
  bottom: clamp(34px, 5vw, 66px);
  left: clamp(28px, 4vw, 56px);
}

.mf-v4-contact-page__visual-copy p {
  margin-bottom: 14px;
  color: var(--mf-accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mf-v4-contact-page__visual-copy h1 {
  max-width: 9ch;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.92;
}

.mf-v4-contact-page__visual-copy span {
  display: block;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.72);
}

.mf-v4-contact-page__visual-copy .mf-v5-contact-phone {
  margin: 20px 0 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.mf-v4-contact-page__visual-copy .mf-phone-link {
  margin-left: 4px;
  color: #ffffff;
}

.mf-v4-contact-page__form {
  align-self: center;
  width: min(100%, 760px);
  padding: clamp(42px, 6vw, 82px);
}

.mf-v4-contact-page__form-heading {
  margin-bottom: 26px;
}

.mf-v4-contact-page__form-heading h2 {
  max-width: 13ch;
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 0.96;
}

.mf-v4-contact-page__form-heading p {
  max-width: 52ch;
  margin: 0;
  color: var(--mf-muted);
}

.mf-v4-contact-page__form .wp-block-shortcode,
.mf-v4-contact-page__form .mf-contact-form {
  margin: 0;
}

.mf-v4-contact-page__form .mf-contact-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mf-v4-contact-page__form .mf-contact-form input,
.mf-v4-contact-page__form .mf-contact-form textarea {
  background: var(--mf-bg);
}

.mf-v4-contact-page__form .mf-contact-form textarea {
  min-height: 136px;
}

.mf-v4-contact-page__form .mf-contact-form button {
  min-width: 220px;
}

@media (max-width: 1180px) {
  .mf-v4-quick-inquiry {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mf-v4-quick-inquiry__intro {
    display: grid;
    grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr);
    align-items: end;
    gap: 32px;
    padding-top: 0;
  }

  .mf-v4-quick-inquiry__intro h2,
  .mf-v4-quick-inquiry__intro p {
    margin: 0;
  }

  .mf-v4-service-tile--wide {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .mf-v4-service-tile--wide.mf-v4-service-tile--copy-first .mf-v4-service-tile__copy {
    order: 2;
  }

  .mf-v4-contact-page__form {
    padding: 42px;
  }
}

@media (max-width: 900px) {
  .mf-v4-hero__stage {
    height: clamp(500px, 74vh, 600px);
  }

  .mf-v4-hero__veil {
    background: linear-gradient(90deg, rgba(6, 25, 43, 0.92) 0%, rgba(6, 25, 43, 0.66) 62%, rgba(6, 25, 43, 0.18) 100%);
  }

  .mf-v4-quick-inquiry {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mf-v4-quick-inquiry__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
    align-items: end;
    gap: 24px;
    padding-top: 0;
  }

  .mf-v4-quick-inquiry__intro h2,
  .mf-v4-quick-inquiry__intro p {
    margin: 0;
  }

  .mf-v4-section-heading,
  .mf-v4-services-page__intro,
  .mf-v4-project-gallery-section__heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mf-v4-service-accordion {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: min(82vw, 560px);
    grid-auto-flow: column;
    height: 500px;
    margin-right: calc(var(--mf-gutter) * -1);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 0 var(--mf-gutter);
    scroll-snap-type: inline mandatory;
  }

  .mf-v4-service-accordion__item,
  .mf-v4-service-accordion__item.is-active {
    flex: none;
    scroll-snap-align: start;
  }

  .mf-v4-service-accordion__item:not(.is-active) .mf-v4-service-accordion__media img {
    filter: saturate(0.84) brightness(0.82);
  }

  .mf-v4-service-mosaic {
    grid-template-columns: 1fr;
  }

  .mf-v4-service-tile,
  .mf-v4-service-tile--wide,
  .mf-v4-service-tile--narrow {
    grid-column: 1;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: none;
    height: auto;
    min-height: 350px;
  }

  .mf-v4-service-tile--plain {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .mf-v4-service-tile--copy-first .mf-v4-service-tile__copy {
    order: 2;
  }

  .mf-v4-process .mf-v3-process__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mf-v4-process .mf-v3-process__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
    gap: 24px;
  }

  .mf-v4-project-gallery__item,
  .mf-v4-project-gallery__item:nth-child(n) {
    grid-column: span 6;
  }

  .mf-v4-project-gallery__item:last-child:nth-child(odd) {
    grid-column: span 12;
  }

  .mf-v4-project-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mf-v4-project-cta p {
    grid-column: 1;
  }

  .mf-v4-project-cta > a {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .mf-v4-contact-page {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .mf-v4-contact-page__visual {
    min-height: 660px;
  }

  .mf-v4-contact-page__form {
    padding: 34px 28px;
  }

  .mf-v4-contact-page__form .mf-contact-form form {
    grid-template-columns: 1fr;
  }

  .mf-v4-contact-page__form .mf-contact-form__field,
  .mf-v4-contact-page__form .mf-contact-form__field:nth-child(n),
  .mf-v4-contact-page__form .mf-contact-form__privacy,
  .mf-v4-contact-page__form .mf-contact-form form > button {
    grid-column: 1;
  }
}

@media (max-width: 767px) {
  .mf-v4-hero__stage {
    height: 540px;
    min-height: 0;
  }

  .mf-v4-hero__media img {
    object-position: 64% 50%;
  }

  .mf-v4-hero__veil {
    background: linear-gradient(0deg, rgba(6, 25, 43, 0.96) 0%, rgba(6, 25, 43, 0.72) 60%, rgba(6, 25, 43, 0.22) 100%);
  }

  .mf-v4-hero__copy {
    top: auto;
    right: var(--mf-gutter);
    bottom: 42px;
    left: var(--mf-gutter);
    width: auto;
    transform: none;
  }

  .mf-v4-kicker {
    margin-bottom: 16px;
  }

  .mf-v4-hero__copy h1 {
    max-width: 10.5ch;
    margin-bottom: 18px;
    font-size: clamp(2.85rem, 13vw, 4.1rem);
  }

  .mf-v4-hero__copy > p:not(.mf-v4-kicker) {
    font-size: 0.98rem;
  }

  .mf-v4-hero__actions {
    margin-top: 24px;
  }

  .mf-v4-quick-inquiry {
    gap: 26px;
    padding-block: 38px 46px;
  }

  .mf-v4-quick-inquiry__intro {
    display: block;
  }

  .mf-v4-quick-inquiry__intro h2 {
    max-width: 11ch;
    margin-bottom: 14px;
  }

  .mf-v4-quick-inquiry .mf-contact-form form {
    grid-template-columns: 1fr;
  }

  .mf-v4-quick-inquiry .mf-contact-form__field:nth-child(n),
  .mf-v4-quick-inquiry .mf-contact-form__privacy,
  .mf-v4-quick-inquiry .mf-contact-form form > button {
    grid-column: 1;
    grid-row: auto;
  }

  .mf-v4-quick-inquiry .mf-contact-form textarea {
    height: 120px;
    min-height: 120px;
  }

  .mf-v4-quick-inquiry .mf-contact-form__field-hint {
    display: block;
  }

  .mf-v4-services {
    padding-block: 62px;
  }

  .mf-v4-section-heading h2,
  .mf-v4-project-gallery-section__heading h2 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .mf-v4-service-accordion {
    height: 470px;
  }

  .mf-v4-service-accordion__content {
    padding: 24px;
  }

  .mf-v4-service-accordion__content h3 button {
    font-size: 1.75rem;
  }

  .mf-v3-projects {
    padding-block: 62px;
  }

  .mf-v3-projects__stack {
    grid-template-columns: none !important;
  }

  .mf-v4-process .mf-v3-process__inner {
    min-height: 0;
    padding-block: 48px;
  }

  .mf-v4-process .mf-v3-process__intro {
    display: block;
  }

  .mf-v4-process .mf-v3-process__intro h2 {
    margin-bottom: 16px;
  }

  .mf-v4-process .mf-v3-process__steps {
    border-top-color: rgba(255, 255, 255, 0.24);
  }

  .mf-v4-process .mf-v3-process__step {
    padding: 24px 0;
  }

  .mf-v4-process .mf-v3-process__step + .mf-v3-process__step {
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .mf-v4-services-page {
    padding-block: 48px 76px;
  }

  .mf-v4-services-page__intro h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .mf-v4-service-tile,
  .mf-v4-service-tile--wide,
  .mf-v4-service-tile--narrow {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .mf-v4-service-tile__media {
    order: 1 !important;
    height: min(72vw, 360px);
  }

  .mf-v4-service-tile__copy {
    order: 2 !important;
    min-height: 280px;
    padding: 26px 22px 30px;
  }

  .mf-v4-service-tile__copy > span {
    padding-bottom: 28px;
  }

  .mf-v4-services-page__cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .mf-v4-case-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mf-v4-project-gallery {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .mf-v4-project-gallery__item,
  .mf-v4-project-gallery__item:nth-child(n),
  .mf-v4-project-gallery__item:last-child:nth-child(odd) {
    grid-column: 1;
  }

  .mf-v4-project-gallery__item img {
    height: auto;
    aspect-ratio: auto;
  }

  .mf-v4-project-cta {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
    padding: 28px 22px;
  }

  .mf-v4-project-cta p,
  .mf-v4-project-cta > a {
    grid-column: 1;
    grid-row: auto;
  }

  .mf-v4-project-cta > a {
    justify-self: start;
  }

  .mf-v4-contact-page {
    grid-template-columns: 1fr;
  }

  .mf-v4-contact-page__visual {
    min-height: 520px;
  }

  .mf-v4-contact-page__visual-copy h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .mf-v4-contact-page__form {
    width: 100%;
    padding: 46px var(--mf-gutter) 66px;
  }

  .mf-v4-contact-page__form .mf-contact-form button {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .mf-v4-button,
  .mf-v4-service-accordion__content h3 button,
  .mf-v4-service-tile,
  .mf-v4-project-cta,
  .mf-v4-contact-page__visual {
    border: 1px solid CanvasText;
  }

  .mf-v4-service-accordion__veil,
  .mf-v4-hero__veil,
  .mf-v4-contact-page__visual::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-v4-service-accordion__item,
  .mf-v4-service-accordion__media img {
    transition: none !important;
  }
}

@media print {
  .mf-v4-quick-inquiry,
  .mf-v4-project-cta,
  .mf-v4-contact-page__form {
    display: none !important;
  }
}

/* V5 media-led service and project expansion */
.mf-v5-eyebrow {
  margin: 0 0 14px;
  color: var(--mf-accent-strong);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mf-v5-hero .mf-v4-hero__media img {
  object-position: 50% 46%;
}

.mf-v5-hero .mf-v4-hero__veil {
  background: rgba(6, 25, 43, 0.68);
}

.mf-v5-hero .mf-v4-hero__copy h1 {
  max-width: 14ch;
}

.mf-v5-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  align-items: end;
  gap: clamp(30px, 5vw, 70px);
  margin-bottom: clamp(34px, 5vw, 58px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mf-line-strong);
}

.mf-v5-section-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
  line-height: 0.94;
}

.mf-v5-section-heading > p {
  max-width: 50ch;
  margin: 0;
  color: var(--mf-muted);
}

.mf-v5-section-heading--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.mf-v5-section-heading--compact h2 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 4.2vw, 4.25rem);
}

.mf-v5-capabilities {
  padding-block: clamp(72px, 8vw, 112px);
  background: var(--mf-bg);
}

.mf-v5-capabilities__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  align-items: stretch;
  gap: clamp(32px, 5vw, 72px);
}

.mf-v5-capabilities__gallery {
  min-width: 0;
}

.mf-v5-capabilities__media {
  position: relative;
  grid-column: 8 / 13;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--mf-surface-strong);
}

.mf-v5-capabilities__media--primary {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.mf-v5-capabilities__media a,
.mf-v5-capabilities__media img {
  width: 100%;
  height: 100%;
}

.mf-v5-capabilities__media a {
  display: block;
  color: #ffffff;
  text-decoration: none;
}

.mf-v5-capabilities__media img {
  object-fit: cover;
  transition: transform 500ms var(--mf-ease), filter 220ms var(--mf-ease);
}

.mf-v5-capabilities__media--primary img {
  object-position: 54% 50%;
}

.mf-v5-capabilities__media:nth-child(2) img {
  object-position: 50% 52%;
}

.mf-v5-capabilities__media:nth-child(3) img {
  object-position: 46% 45%;
}

.mf-v5-capabilities__media span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 17px 20px;
  background: rgba(6, 25, 43, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mf-v5-capabilities__gallery--single {
  display: block;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.mf-v5-capabilities__gallery--single .mf-v5-capabilities__media,
.mf-v5-capabilities__gallery--single .mf-v5-capabilities__media--primary {
  display: block;
  margin: 0;
}

.mf-v5-capabilities__gallery--single .mf-v5-capabilities__media a,
.mf-v5-capabilities__gallery--single .mf-v5-capabilities__media img {
  display: block;
  width: 100%;
  height: auto;
}

.mf-v5-capabilities__gallery--single .mf-v5-capabilities__media img {
  object-fit: contain;
  object-position: center;
}

.mf-v5-capabilities__media a:hover img,
.mf-v5-capabilities__media a:focus-visible img {
  filter: saturate(1.05);
  transform: scale(1.025);
}

.mf-v5-service-index {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.mf-v5-service-index a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1px 16px;
  align-items: baseline;
  padding: 16px 8px 16px 0;
  border-top: 1px solid var(--mf-line);
  color: var(--mf-ink);
  text-decoration: none;
  transition: background-color 180ms var(--mf-ease), padding-inline 180ms var(--mf-ease);
}

.mf-v5-service-index a:last-child {
  border-bottom: 1px solid var(--mf-line);
}

.mf-v5-service-index a:hover,
.mf-v5-service-index a:focus-visible {
  padding-inline: 12px;
  background: var(--mf-surface);
}

.mf-v5-service-index span {
  grid-row: 1 / 3;
  color: var(--mf-accent-strong);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.mf-v5-service-index strong {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.15;
}

.mf-v5-service-index small {
  margin-top: 4px;
  color: var(--mf-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.mf-v5-work {
  padding-block: clamp(72px, 8vw, 112px);
  background: var(--mf-surface);
}

.mf-v5-work__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 4px;
  min-height: 650px;
  background: var(--mf-navy);
}

.mf-v5-work article,
.mf-v5-work figure {
  min-width: 0;
  margin: 0;
}

.mf-v5-work article > a {
  display: flex;
  height: 100%;
  color: var(--mf-ink);
  text-decoration: none;
}

.mf-v5-work__feature > a {
  flex-direction: column;
  background: var(--mf-bg);
}

.mf-v5-work__feature figure {
  height: 455px;
  overflow: hidden;
}

.mf-v5-work__feature figure img,
.mf-v5-work__secondary figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--mf-ease);
}

.mf-v5-work__feature figure img {
  object-position: 50% 52%;
}

.mf-v5-work__feature div {
  flex: 1;
  padding: 28px 30px 32px;
}

.mf-v5-work article span {
  color: var(--mf-accent-strong);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mf-v5-work article h3 {
  margin: 9px 0 0;
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
}

.mf-v5-work article p {
  max-width: 55ch;
  margin: 13px 0 0;
  color: var(--mf-muted);
}

.mf-v5-work__secondary {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.mf-v5-work__secondary article > a {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(190px, 0.85fr);
  background: var(--mf-bg);
}

.mf-v5-work__secondary figure {
  min-height: 0;
  overflow: hidden;
}

.mf-v5-work__secondary article:nth-child(1) img {
  object-position: 50% 52%;
}

.mf-v5-work__secondary article:nth-child(2) img {
  object-position: 48% 42%;
}

.mf-v5-work__secondary article div {
  align-self: end;
  padding: 26px 24px;
}

.mf-v5-work__secondary article h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.mf-v5-work article > a:hover img,
.mf-v5-work article > a:focus-visible img {
  transform: scale(1.025);
}

/* Detailed services page */
.mf-v5-services-page {
  padding: clamp(58px, 7vw, 96px) 0 clamp(78px, 9vw, 128px);
  background: var(--mf-bg);
}

.mf-v5-services-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  align-items: end;
  gap: clamp(34px, 6vw, 84px);
  padding-bottom: clamp(34px, 5vw, 58px);
}

.mf-v5-services-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6.3rem);
  line-height: 0.91;
}

.mf-v5-services-hero > div:last-child > p {
  max-width: 50ch;
  margin: 0 0 26px;
  color: var(--mf-muted);
  font-size: clamp(1.03rem, 1.35vw, 1.16rem);
}

.mf-v5-services-nav {
  display: flex;
  gap: 0 24px;
  flex-wrap: wrap;
  padding-block: 19px;
  border-block: 1px solid var(--mf-line-strong);
}

.mf-v5-services-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--mf-muted);
  font-size: 0.83rem;
  font-weight: 680;
  text-decoration: none;
}

.mf-v5-services-nav a:hover,
.mf-v5-services-nav a:focus-visible {
  color: var(--mf-accent-strong);
}

.mf-v5-service-stories {
  margin-top: clamp(56px, 8vw, 106px);
}

.mf-v5-service-story {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  min-height: 0;
  padding-block: clamp(56px, 7vw, 92px);
  border-top: 1px solid var(--mf-line-strong);
  scroll-margin-top: calc(var(--mf-header-height) + 24px);
}

.mf-v5-service-story:first-child {
  border-top: 0;
  padding-top: 0;
}

.mf-v5-service-story--reverse .mf-v5-service-story__copy {
  order: 2;
}

.mf-v5-service-story--reverse .mf-v5-service-story__media {
  order: 1;
}

.mf-v5-service-story__copy h2 {
  max-width: 12ch;
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  line-height: 0.94;
}

.mf-v5-service-story__lead {
  margin-bottom: 16px;
  color: var(--mf-ink);
  font-size: clamp(1.07rem, 1.45vw, 1.24rem);
  line-height: 1.5;
}

.mf-v5-service-story__copy > p:not(.mf-v5-eyebrow, .mf-v5-service-story__lead) {
  color: var(--mf-muted);
}

.mf-v5-service-story__copy ul {
  display: grid;
  gap: 9px;
  margin: 24px 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--mf-line);
  list-style: none;
}

.mf-v5-service-story__copy li {
  position: relative;
  padding-left: 20px;
  color: var(--mf-muted);
  font-size: 0.93rem;
}

.mf-v5-service-story__copy li::before {
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--mf-accent-strong);
  content: "";
}

.mf-v5-service-story__media {
  display: block;
  min-width: 0;
  height: auto;
  overflow: visible;
  background: transparent;
}

.mf-v5-service-story__media figure,
.mf-v5-service-story__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.mf-v5-service-story__media figure {
  min-width: 0;
  overflow: visible;
}

.mf-v5-service-story__media img {
  object-fit: contain;
  object-position: center;
}

.mf-v5-service-story__media--single {
  display: block;
}

.mf-v5-service-story__media--single img {
  object-position: center;
}

.mf-v5-service-story__media--duo {
  display: block;
}

.mf-v5-service-story__media--duo figure:nth-child(2) {
  margin-top: 24px;
}

.mf-v5-service-story__media--triple {
  display: block;
}

.mf-v5-service-story__media--triple figure:first-child {
  grid-row: auto;
}

.mf-v5-service-story__media--triple figure + figure {
  margin-top: 24px;
}

.mf-v5-service-story--feature {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 5vw, 58px);
}

.mf-v5-service-story--feature .mf-v5-service-story__copy {
  max-width: 760px;
}

.mf-v5-service-story--feature .mf-v5-service-story__media {
  width: min(100%, 1040px);
  margin-left: auto;
}

.mf-v5-service-story--text-only {
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  min-height: 0;
  margin-top: clamp(42px, 6vw, 76px);
  padding: clamp(38px, 6vw, 76px);
  border: 0;
  background: var(--mf-navy);
  color: #ffffff;
}

.mf-v5-service-story--text-only .mf-v5-service-story__copy {
  max-width: 680px;
}

.mf-v5-service-story--text-only h2,
.mf-v5-service-story--text-only .mf-v5-service-story__lead {
  color: #ffffff;
}

.mf-v5-service-story--text-only .mf-v5-service-story__copy > p:not(.mf-v5-eyebrow, .mf-v5-service-story__lead),
.mf-v5-service-story--text-only li {
  color: rgba(255, 255, 255, 0.7);
}

.mf-v5-service-story--text-only .mf-v5-service-story__copy ul {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.mf-v5-service-story--text-only aside {
  align-self: end;
  padding: 26px 0 4px 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.mf-v5-service-process {
  margin-top: clamp(74px, 9vw, 124px);
  padding-block: clamp(58px, 7vw, 86px);
  background: var(--mf-surface);
}

.mf-v5-service-process .mf-v4-shell {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 7vw, 94px);
}

.mf-v5-service-process header h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.mf-v5-service-process ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mf-line-strong);
  list-style: none;
}

.mf-v5-service-process li {
  min-height: 190px;
  padding: 24px 26px 28px 0;
  border-bottom: 1px solid var(--mf-line);
}

.mf-v5-service-process li:nth-child(even) {
  padding-left: 26px;
  border-left: 1px solid var(--mf-line);
}

.mf-v5-service-process li > span {
  color: var(--mf-accent-strong);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.mf-v5-service-process h3 {
  margin: 22px 0 9px;
  font-size: 1.38rem;
}

.mf-v5-service-process li p {
  margin: 0;
  color: var(--mf-muted);
  font-size: 0.9rem;
}

.mf-v5-services-cta {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(260px, 4fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-height: 200px;
  margin-top: clamp(48px, 7vw, 86px);
  padding: clamp(30px, 4vw, 52px);
  background: var(--mf-navy);
  color: #ffffff;
}

.mf-v5-services-cta h2 {
  max-width: 13ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.mf-v5-services-cta > p {
  max-width: 38ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* About page */
.mf-v5-about-page {
  padding: clamp(58px, 7vw, 96px) 0 clamp(78px, 9vw, 126px);
}

.mf-v5-about-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  align-items: end;
  gap: clamp(36px, 7vw, 94px);
  padding-bottom: clamp(42px, 6vw, 76px);
}

.mf-v5-about-page__hero .mf-v5-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.mf-v5-about-page__hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 6.1rem);
  line-height: 0.91;
}

.mf-v5-about-page__hero > p:last-child {
  margin: 0;
  color: var(--mf-muted);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
}

.mf-v5-about-page__visuals {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  grid-template-rows: 560px;
  gap: 4px;
  overflow: hidden;
  background: var(--mf-navy);
}

.mf-v5-about-page__visuals figure,
.mf-v5-about-page__visuals img {
  width: 100%;
  height: 100%;
  margin: 0;
}

.mf-v5-about-page__visuals figure {
  min-width: 0;
  overflow: hidden;
}

.mf-v5-about-page__visuals img {
  object-fit: cover;
}

.mf-v5-about-page__visuals--single {
  display: block;
  grid-template-columns: none;
  grid-template-rows: none;
  overflow: visible;
  background: transparent;
}

.mf-v5-about-page__visuals--single figure,
.mf-v5-about-page__visuals--single img {
  display: block;
  width: 100%;
  height: auto;
}

.mf-v5-about-page__visuals--single img {
  object-fit: contain;
  object-position: center;
}

.mf-v5-about-page__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(320px, 7fr);
  gap: clamp(38px, 7vw, 96px);
  padding-block: clamp(68px, 8vw, 110px);
}

.mf-v5-about-page__body h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.mf-v5-about-page__body > div:last-child {
  max-width: 650px;
}

.mf-v5-about-page__body > div:last-child p {
  color: var(--mf-muted);
  font-size: 1.04rem;
}

.mf-v5-about-page__body .mf-v4-text-link {
  margin-top: 12px;
}

.mf-v5-about-page__principles {
  padding-block: clamp(48px, 6vw, 76px);
  background: var(--mf-surface);
}

.mf-v5-about-page__principles .mf-v4-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--mf-line-strong);
}

.mf-v5-about-page__principles article {
  min-height: 220px;
  padding: 28px 28px 20px 0;
}

.mf-v5-about-page__principles article + article {
  padding-left: 28px;
  border-left: 1px solid var(--mf-line);
}

.mf-v5-about-page__principles span {
  color: var(--mf-accent-strong);
  font-size: 0.76rem;
  font-weight: 760;
}

.mf-v5-about-page__principles h3 {
  margin: 54px 0 10px;
}

.mf-v5-about-page__principles p {
  max-width: 34ch;
  margin: 0;
  color: var(--mf-muted);
  font-size: 0.9rem;
}

.mf-v5-contact-page .mf-v4-contact-page__visual figure img {
  object-position: 50% 42%;
}

.mf-v5-contact-page .mf-v4-contact-page__visual::after {
  background: rgba(6, 25, 43, 0.5);
}

.mf-v5-contact-page .mf-v4-contact-page__form-heading > .mf-v5-eyebrow {
  margin-bottom: 16px;
}

/* Project archive polish for the expanded case-study library */
.mf-v3-project-archive {
  padding-bottom: clamp(76px, 9vw, 126px);
}

.mf-v3-project-archive .mf-v3-archive-heading {
  padding-bottom: clamp(38px, 5vw, 68px);
}

.mf-v3-project-archive .mf-v3-project-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 22px;
}

.mf-v3-project-archive .mf-v3-project-grid > li {
  grid-column: span 4;
}

.mf-v3-project-archive .mf-v3-project-grid > li:nth-child(5n + 1),
.mf-v3-project-archive .mf-v3-project-grid > li:nth-child(5n + 2) {
  grid-column: span 6;
}

@media (max-width: 1100px) {
  .mf-v5-capabilities__layout,
  .mf-v5-work__layout {
    grid-template-columns: 1fr;
  }

  .mf-v5-capabilities__gallery {
    min-height: 580px;
  }

  .mf-v5-capabilities__gallery--single {
    min-height: 0;
  }

  .mf-v5-service-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-v5-service-index a:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--mf-line);
  }

  .mf-v5-work__layout {
    min-height: 0;
  }

  .mf-v5-work__feature figure {
    height: 520px;
  }

  .mf-v5-work__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .mf-v5-work__secondary article > a {
    min-height: 320px;
  }

  .mf-v5-service-story {
    grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
    gap: 44px;
  }

  .mf-v5-service-story__media {
    height: auto;
  }
}

@media (max-width: 900px) {
  .mf-v5-section-heading,
  .mf-v5-section-heading--compact,
  .mf-v5-services-hero,
  .mf-v5-about-page__hero,
  .mf-v5-about-page__body {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mf-v5-section-heading--compact > a {
    justify-self: start;
  }

  .mf-v5-services-hero h1,
  .mf-v5-about-page__hero h1 {
    max-width: 13ch;
  }

  .mf-v5-service-story,
  .mf-v5-service-story--text-only {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
  }

  .mf-v5-service-story--reverse .mf-v5-service-story__copy,
  .mf-v5-service-story--reverse .mf-v5-service-story__media {
    order: initial;
  }

  .mf-v5-service-story__media {
    height: auto;
  }

  .mf-v5-service-story--text-only aside {
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 0;
  }

  .mf-v5-service-process .mf-v4-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mf-v5-services-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mf-v5-services-cta > p {
    grid-column: 1;
  }

  .mf-v5-services-cta > a {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .mf-v5-about-page__hero .mf-v5-eyebrow {
    grid-column: 1;
    margin-bottom: 0;
  }

  .mf-v5-about-page__visuals {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    grid-template-rows: 360px 260px;
  }

  .mf-v5-about-page__visuals figure:first-child {
    grid-row: 1 / 3;
  }

  .mf-v3-project-archive .mf-v3-project-grid > li,
  .mf-v3-project-archive .mf-v3-project-grid > li:nth-child(n) {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .mf-v5-hero .mf-v4-hero__media img {
    object-position: 58% 50%;
  }

  .mf-v5-hero .mf-v4-hero__veil {
    background: rgba(6, 25, 43, 0.74);
  }

  .mf-v5-capabilities,
  .mf-v5-work {
    padding-block: 62px;
  }

  .mf-v5-capabilities__gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px 230px;
    min-height: 0;
  }

  .mf-v5-capabilities__media,
  .mf-v5-capabilities__media--primary {
    grid-column: auto;
    grid-row: auto;
  }

  .mf-v5-capabilities__media--primary {
    grid-column: 1 / 3;
  }

  .mf-v5-capabilities__media span {
    padding: 13px 14px;
    font-size: 0.76rem;
  }

  .mf-v5-service-index {
    grid-template-columns: 1fr;
  }

  .mf-v5-service-index a:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .mf-v5-service-index a:hover,
  .mf-v5-service-index a:focus-visible {
    padding-inline: 8px;
  }

  .mf-v5-work__feature figure {
    height: 340px;
  }

  .mf-v5-work__feature div {
    padding: 24px 20px 28px;
  }

  .mf-v5-work__secondary {
    grid-template-columns: 1fr;
  }

  .mf-v5-work__secondary article > a {
    grid-template-columns: 1fr 1fr;
    min-height: 240px;
  }

  .mf-v5-work__secondary article div {
    padding: 20px;
  }

  .mf-v5-services-page,
  .mf-v5-about-page {
    padding-top: 48px;
  }

  .mf-v5-services-hero h1,
  .mf-v5-about-page__hero h1 {
    font-size: clamp(3rem, 14vw, 4.25rem);
  }

  .mf-v5-services-nav {
    gap: 0 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .mf-v5-services-nav a {
    flex: 0 0 auto;
  }

  .mf-v5-service-stories {
    margin-top: 46px;
  }

  .mf-v5-service-story {
    padding-block: 52px;
  }

  .mf-v5-service-story__copy h2 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .mf-v5-service-story__media,
  .mf-v5-service-story__media--single,
  .mf-v5-service-story__media--duo,
  .mf-v5-service-story__media--triple {
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
    height: auto;
  }

  .mf-v5-service-story__media--single {
    display: block;
  }

  .mf-v5-service-story__media--duo {
    display: block;
  }

  .mf-v5-service-story__media--duo figure:nth-child(2) {
    margin-top: 0;
  }

  .mf-v5-service-story__media--triple figure:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .mf-v5-service-story--text-only {
    margin-top: 42px;
    padding: 34px 22px;
  }

  .mf-v5-service-process ol {
    grid-template-columns: 1fr;
  }

  .mf-v5-service-process li,
  .mf-v5-service-process li:nth-child(even) {
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
  }

  .mf-v5-services-cta {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 22px;
  }

  .mf-v5-services-cta > p,
  .mf-v5-services-cta > a {
    grid-column: 1;
    grid-row: auto;
  }

  .mf-v5-services-cta > a {
    justify-self: start;
  }

  .mf-v5-about-page__visuals {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px 230px;
  }

  .mf-v5-about-page__visuals figure:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .mf-v5-about-page__visuals--single {
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
  }

  .mf-v5-about-page__visuals--single figure:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .mf-v5-about-page__principles .mf-v4-shell {
    grid-template-columns: 1fr;
  }

  .mf-v5-about-page__principles article,
  .mf-v5-about-page__principles article + article {
    min-height: 0;
    padding: 26px 0;
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-v5-about-page__principles article:first-child {
    border-top: 0;
  }

  .mf-v5-about-page__principles h3 {
    margin-top: 30px;
  }

  .mf-v3-project-archive .mf-v3-project-grid {
    grid-template-columns: 1fr;
  }

  .mf-v3-project-archive .mf-v3-project-grid > li,
  .mf-v3-project-archive .mf-v3-project-grid > li:nth-child(n) {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-v5-capabilities__media img,
  .mf-v5-work article img {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .mf-v5-capabilities__media,
  .mf-v5-work article,
  .mf-v5-service-story--text-only,
  .mf-v5-services-cta {
    border: 1px solid CanvasText;
  }
}
