:root {
  --fb-color-navy: #003366;
  --fb-color-red: #d90429;
  --fb-color-ink: #111820;
  --fb-color-muted: #49515a;
  --fb-color-page: #ede6ed;
  --fb-color-panel: #ffffff;
  --fb-color-blue-panel: #edf2f4;
  --fb-color-footer: #f5f5f5;
  --fb-color-border: rgba(0, 51, 102, 0.28);
  --fb-color-shadow: rgba(0, 0, 0, 0.12);
  --fb-font-display: "Canela Deck Trial", Georgia, "Times New Roman", serif;
  --fb-font-body: Inter, "Helvetica Neue", Arial, sans-serif;
  --fb-font-utility: "Kdam Thmor", Inter, Arial, sans-serif;
  --fb-container: 1120px;
  --fb-container-narrow: 950px;
  --fb-gutter: clamp(20px, 5vw, 48px);
  --fb-header-wide-container: 1052px;
  --fb-section: clamp(48px, 7vw, 92px);
  --fb-section-tight: clamp(28px, 4vw, 48px);
  --fb-radius: 5px;
  --fb-focus: 0 0 0 3px rgba(217, 4, 41, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fb-color-page);
  color: var(--fb-color-ink);
  font-family: var(--fb-font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.has-open-modal {
  overflow: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--fb-focus);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--fb-color-navy);
  font-family: var(--fb-font-display);
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 6.8vw, 64px);
  max-width: 9.5em;
}

h2 {
  font-size: clamp(30px, 4.8vw, 42px);
}

h3 {
  color: var(--fb-color-navy);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.14;
}

p {
  margin-bottom: 1rem;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--fb-color-panel);
  color: var(--fb-color-navy);
}

.site-main {
  min-height: 60vh;
}

.section {
  width: min(var(--fb-container), calc(100% - (var(--fb-gutter) * 2)));
  margin-inline: auto;
  padding-block: var(--fb-section-tight);
}

.section--narrow {
  width: min(var(--fb-container-narrow), calc(100% - (var(--fb-gutter) * 2)));
}

.section--compact {
  padding-block: 0 var(--fb-section-tight);
}

.panel {
  padding: clamp(32px, 5vw, 52px);
}

.panel--white {
  background: var(--fb-color-panel);
}

.panel--blue {
  background: var(--fb-color-blue-panel);
}

.section-heading {
  margin-bottom: clamp(24px, 4vw, 36px);
  text-align: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: var(--fb-radius);
  font-family: var(--fb-font-utility);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.button--primary {
  border-color: var(--fb-color-red);
  background: var(--fb-color-red);
  color: #fff;
}

.button--ghost {
  background: transparent;
  color: #fff;
}

.button--portfolio {
  border-color: var(--fb-color-navy);
  background: transparent;
  color: var(--fb-color-navy);
}

.button--portfolio:hover,
.button--portfolio:focus-visible {
  border-color: var(--fb-color-navy);
  background: rgba(0, 51, 102, 0.08);
  color: var(--fb-color-navy);
}

.button--outline {
  border-color: var(--fb-color-navy);
  background: transparent;
  color: var(--fb-color-navy);
}

.button--outline:hover,
.button--outline:focus-visible {
  background: rgba(0, 51, 102, 0.08);
}

.button-row--center {
  justify-content: center;
}

.image-placeholder:not(img) {
  display: grid;
  min-height: 220px;
  place-items: center;
  background:
    linear-gradient(rgba(0, 51, 102, 0.2), rgba(0, 51, 102, 0.32)),
    linear-gradient(135deg, #d9e2e8, #f8f6f3);
  color: var(--fb-color-navy);
  font-family: var(--fb-font-utility);
  font-size: 12px;
  text-transform: uppercase;
}

.image-placeholder:not(img) span {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.82);
}

.image-placeholder--hero:not(img) {
  min-height: 420px;
}

.site-header {
  position: absolute;
  z-index: 60;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
}

.site-header__inner {
  display: flex;
  width: min(var(--fb-container), calc(100% - (var(--fb-gutter) * 2)));
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  padding-block: 24px;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.site-brand img,
.site-brand .custom-logo {
  width: auto;
  height: 47px;
  max-height: 47px;
}

.site-brand__logo--mobile {
  display: none;
}

.site-brand__mark {
  display: grid;
  width: 28px;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.site-brand__mark span {
  width: 14px;
  height: 14px;
}

.site-brand__mark span:first-child {
  background: var(--fb-color-red);
}

.site-brand__mark span:last-child {
  background: #004cff;
}

.site-brand__text {
  display: grid;
  color: currentColor;
  font-family: var(--fb-font-body);
  line-height: 1;
  text-transform: uppercase;
}

.site-brand__text > span {
  font-size: 22px;
  letter-spacing: 0;
}

.site-brand__text small {
  font-size: 8px;
  letter-spacing: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}

.site-header__phone svg {
  width: 18px;
  height: 18px;
  stroke: var(--fb-color-red);
}

.home .site-header__phone svg {
  fill: var(--fb-color-red);
  stroke: none;
}

body:not(.home) .site-header {
  position: relative;
  background: #fff;
  color: var(--fb-color-navy);
  border-bottom: 1px solid rgba(0, 51, 102, 0.12);
}

body:not(.home) .site-header__phone {
  color: var(--fb-color-navy);
}

body:not(.home) .site-header__phone svg {
  stroke: var(--fb-color-navy);
}

body:not(.home) .site-brand__logo--desktop {
  display: none;
}

body:not(.home) .site-brand__logo--mobile {
  display: block;
}

body:not(.home) .menu-toggle {
  color: var(--fb-color-navy);
}

.menu-toggle {
  position: relative;
  z-index: 70;
  display: block;
  width: 48px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.menu-toggle__line {
  position: absolute;
  right: 8px;
  left: 8px;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: top 180ms ease, transform 180ms ease, opacity 140ms ease;
  transform-origin: center;
}

.menu-toggle__line--top {
  top: 10px;
}

.menu-toggle__line--middle {
  top: 20px;
}

.menu-toggle__line--bottom {
  top: 30px;
}

.menu-toggle[data-open] .menu-toggle__line--top,
.menu-toggle[aria-expanded="true"] .menu-toggle__line--top {
  top: 20px;
  background: #fff;
  transform: rotate(45deg);
}

.menu-toggle[data-open] .menu-toggle__line--middle,
.menu-toggle[aria-expanded="true"] .menu-toggle__line--middle {
  opacity: 0;
}

.menu-toggle[data-open] .menu-toggle__line--bottom,
.menu-toggle[aria-expanded="true"] .menu-toggle__line--bottom {
  top: 20px;
  background: #fff;
  transform: rotate(-45deg);
}

.site-header[data-menu-open] .menu-toggle {
  color: #fff;
}

body:not(.home) .site-header[data-menu-open] .menu-toggle {
  color: var(--fb-color-navy);
}

body:not(.home) .menu-toggle[data-open] .menu-toggle__line--top,
body:not(.home) .menu-toggle[aria-expanded="true"] .menu-toggle__line--top,
body:not(.home) .menu-toggle[data-open] .menu-toggle__line--bottom,
body:not(.home) .menu-toggle[aria-expanded="true"] .menu-toggle__line--bottom {
  background: var(--fb-color-navy);
}

.primary-menu {
  position: fixed;
  z-index: 55;
  top: 84px;
  right: max(var(--fb-gutter), calc((100vw - var(--fb-container)) / 2));
  width: min(360px, calc(100vw - (var(--fb-gutter) * 2)));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 35, 70, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-menu[data-open] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-menu__list,
.site-footer__menu,
.site-footer__legal-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.primary-menu a,
.site-footer a {
  text-decoration: none;
}

.primary-menu a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-menu li:last-child a {
  border-bottom: 0;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  width: min(1134px, 100%);
  min-height: 560px;
  padding: 0;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #173452;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 22, 42, 0.58));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  padding: 120px clamp(24px, 7vw, 96px) 96px;
}

.hero__content h1 {
  max-width: 8.4em;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(38px, 4.7vw, 52px);
  line-height: 1.08;
}

.hero__content h1 .accent,
.hero__content h1 em {
  color: var(--fb-color-red);
  font-style: normal;
}

.hero__content p {
  max-width: 360px;
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: 1.2;
}

.hero .button-row {
  gap: 18px;
}

.hero .button {
  width: 300px;
  height: 40px;
  min-height: 0;
  text-align: center;
}

.intro {
  padding-top: clamp(32px, 5vw, 48px);
  color: var(--fb-color-navy);
  text-align: center;
}

.intro h2 {
  display: none;
}

.intro p {
  max-width: 920px;
  margin-inline: auto;
  font-family: var(--fb-font-display);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.22;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(940px, 100%);
  margin-inline: auto;
  gap: 18px 34px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fb-color-navy);
}

.cms-page-content .trust-item::before {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: url("../img/icon-tick-circle.png") center / contain no-repeat;
  content: "";
}

.trust-item .icon,
.quick-link .icon,
.quick-link svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.quick-link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.trust-item .icon {
  object-fit: contain;
}

.quick-link .icon {
  object-fit: contain;
}

.trust-item p {
  display: grid;
  margin: 0;
  line-height: 1.08;
}

.trust-item strong {
  font-size: 20px;
}

.service-grid {
  display: grid;
  gap: 26px;
}

.service-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 454 / 303;
  overflow: hidden;
  background: var(--fb-color-navy);
  color: #fff;
}

.service-card.wp-block-cover {
  display: block;
  padding: 0;
}

.service-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.service-card .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 36%, rgba(0, 0, 0, 0.68) 100%);
}

.service-card__content {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -12px;
  left: 0;
  padding: 0 28px 30px;
}

.service-card .wp-block-cover__inner-container {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -12px;
  left: 0;
  padding: 0 28px 30px;
}

.service-card h3 {
  margin-bottom: 4px;
  color: #fff;
  font-family: var(--fb-font-body);
  font-size: 36px;
  font-weight: 700;
  line-height: 0.98;
}

.service-card p {
  max-width: 18.5rem;
  margin-bottom: 11px;
  font-size: 16px;
  line-height: 1.24;
}

.service-card .wp-block-cover__inner-container p {
  color: #fff;
}

.service-card a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  gap: 24px;
}

.work-card__button {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fb-color-navy);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.work-card__button:hover .work-card__image,
.work-card__button:focus-visible .work-card__image {
  filter: saturate(1.02) contrast(1.04);
}

.work-card__button:focus-visible {
  outline: none;
  box-shadow: var(--fb-focus);
}

.work-card__title {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
}

.work-card__cue {
  margin-top: 8px;
  color: var(--fb-color-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.work-card__detail-link {
  display: none;
}

.work-card__image {
  display: block;
  width: 100%;
  height: clamp(190px, 62vw, 238px);
  aspect-ratio: 287 / 191;
  object-fit: cover;
  transition: filter 160ms ease;
}

.selected-work__actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 42px);
}

.projects-hero {
  padding-top: clamp(68px, 8vw, 104px);
  padding-bottom: clamp(38px, 5vw, 62px);
}

.projects-hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(58px, 8vw, 92px);
  letter-spacing: -0.035em;
}

.projects-hero .page-lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--fb-color-muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
}

.projects-index {
  padding-top: 0;
  margin-bottom: var(--fb-section-tight);
}

.page-recent-projects .work-grid {
  justify-items: center;
}

.page-recent-projects .work-card {
  width: min(100%, 352px);
}

.work-modal[hidden] {
  display: none;
}

.work-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
}

.work-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 24, 48, 0.78);
  backdrop-filter: blur(8px);
}

.work-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1280px, 100%);
  height: min(720px, calc(100vh - clamp(36px, 8vw, 88px)));
  height: min(720px, calc(100dvh - clamp(36px, 8vw, 88px)));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #f8f8f7;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.work-modal__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 51, 102, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fb-color-navy);
  cursor: pointer;
}

.work-modal__close span:not(.screen-reader-text) {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.work-modal__close span:not(.screen-reader-text):nth-child(2) {
  transform: rotate(45deg);
}

.work-modal__close span:not(.screen-reader-text):nth-child(3) {
  transform: rotate(-45deg);
}

.work-modal__viewport {
  min-height: 0;
  overflow: auto;
}

.work-modal__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.32fr);
  height: 100%;
  min-height: 0;
}

.work-modal__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #e2e7ea;
}

.work-carousel,
.work-carousel__track,
.work-carousel__slide {
  height: 100%;
}

.work-carousel__slide {
  position: relative;
  min-height: 0;
}

.work-carousel__slide[hidden] {
  display: none !important;
}

.work-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.work-carousel[data-active-orientation="portrait"] .work-modal__image {
  object-fit: scale-down;
}

.work-carousel[data-active-orientation="portrait"] .work-carousel__slide {
  padding: clamp(20px, 3vw, 42px);
}

.work-carousel__controls {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 34px minmax(48px, auto) 34px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 24, 48, 0.66);
  backdrop-filter: blur(10px);
}

.work-carousel__nav {
  position: relative;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.work-carousel__nav:hover,
.work-carousel__nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.work-carousel__nav:hover {
  transform: translateY(-1px);
}

.work-carousel__nav:focus-visible {
  box-shadow: var(--fb-focus);
}

.work-carousel__chevron {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.work-carousel__chevron--prev {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.work-carousel__chevron--next {
  transform: translate(-62%, -50%) rotate(45deg);
}

.work-carousel__count {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.work-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(34px, 3.5vw, 52px);
  color: var(--fb-color-ink);
}

.work-modal__eyebrow {
  margin-bottom: 12px;
  color: var(--fb-color-red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.work-modal__content h2 {
  margin-bottom: 14px;
}

.work-modal__location {
  color: var(--fb-color-navy);
  font-weight: 700;
}

.work-modal__gallery-link {
  align-self: flex-start;
  margin-top: 24px;
}

.work-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.work-modal__meta span {
  padding: 7px 10px;
  border: 1px solid rgba(0, 51, 102, 0.18);
  color: var(--fb-color-navy);
  font-size: 12px;
}

.quick-links__grid {
  display: grid;
  gap: 18px;
}

.quick-link {
  display: grid;
  min-height: 138px;
  align-content: center;
  justify-items: center;
  padding: 22px 18px;
  border: 1px solid rgba(0, 0, 0, 0.62);
  border-radius: var(--fb-radius);
  background: #fff;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.08);
  color: var(--fb-color-navy);
  text-align: center;
  text-decoration: none;
  gap: 4px;
}

.quick-link:hover {
  border-color: var(--fb-color-navy);
}

.quick-link a {
  color: inherit;
  text-decoration: none;
}

.quick-link__title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.quick-link span:last-child {
  color: var(--fb-color-ink);
  font-size: 16px;
  line-height: 1.32;
}

.contact-band {
  text-align: center;
}

.contact-band p {
  color: var(--fb-color-muted);
  font-size: 18px;
}

.contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  align-items: center;
}

.text-link {
  color: inherit;
  font-family: var(--fb-font-utility);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid #284cff;
  background: var(--fb-color-footer);
  font-family: var(--fb-font-utility);
  font-size: 12px;
}

.site-footer__inner {
  display: grid;
  width: min(var(--fb-container), calc(100% - (var(--fb-gutter) * 2)));
  margin-inline: auto;
  padding: 42px 0;
  gap: 34px;
}

.site-footer__brand {
  display: grid;
  color: var(--fb-color-navy);
  gap: 8px;
}

.site-brand--footer {
  color: var(--fb-color-navy);
}

.site-footer__licence {
  margin: 4px 0 0;
  color: var(--fb-color-navy);
}

.site-footer__credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  color: var(--fb-color-navy);
  text-align: center;
}

.site-footer__legal-note,
.site-footer__developer-credit {
  margin: 0;
}

.site-footer__developer-credit,
.site-footer__developer-credit a {
  display: inline-flex;
  align-items: center;
}

.site-footer__developer-credit {
  gap: 6px;
}

.site-footer__developer-credit a {
  gap: 5px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__developer-credit img {
  display: block;
  width: 16px;
  height: 16px;
}

.site-footer__developer-credit a:hover span,
.site-footer__developer-credit a:focus-visible span {
  text-decoration: underline;
}

.site-footer__legal-list {
  grid-auto-flow: column;
  justify-content: start;
  gap: 28px;
}

.content-area {
  padding-top: var(--fb-section);
}

.entry {
  color: var(--fb-color-ink);
}

.entry__content {
  font-size: 18px;
}

.archive-grid {
  display: grid;
  gap: 20px;
}

.archive-card {
  padding: 24px;
  background: #fff;
}

.page-hero {
  padding-top: clamp(52px, 8vw, 96px);
  padding-bottom: clamp(34px, 5vw, 60px);
}

.page-hero h1 {
  max-width: 12em;
  margin-bottom: 22px;
}

.page-eyebrow {
  margin-bottom: 12px;
  color: var(--fb-color-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-lead {
  max-width: 800px;
  color: var(--fb-color-navy);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.4;
}

.service-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: stretch;
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(48px, 7vw, 82px);
  gap: clamp(38px, 6vw, 76px);
}

.service-page-hero__content {
  align-self: start;
  padding-top: clamp(26px, 3vw, 42px);
}

.service-page-hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(58px, 8vw, 92px);
  letter-spacing: -0.035em;
}

.service-page-hero__statement {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--fb-color-navy);
  font-family: var(--fb-font-display);
  font-size: clamp(27px, 3.5vw, 40px);
  line-height: 1.08;
}

.service-page-hero .page-lead {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--fb-color-muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
}

.service-page-hero__media {
  min-height: 480px;
  margin: 0;
  overflow: hidden;
  background: var(--fb-color-blue-panel);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.service-page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 90px);
}

.editorial-split h2 {
  margin-bottom: 0;
}

.prose {
  color: var(--fb-color-muted);
  font-size: 18px;
}

.section-heading--left {
  text-align: left;
}

.service-list__grid,
.audience-path__grid,
.partner-paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0, 51, 102, 0.18);
}

.service-list .wp-block-columns.service-list__grid,
.inspection-services .wp-block-columns.service-list__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-list .service-list__grid > .wp-block-column,
.inspection-services .service-list__grid > .wp-block-column {
  flex-basis: auto !important;
  flex-grow: 0;
}

.service-list__grid article,
.service-list__grid > .wp-block-column,
.audience-path__grid article,
.audience-path__grid > .wp-block-column,
.partner-paths__grid article,
.partner-paths__grid > .wp-block-column {
  padding: clamp(26px, 4vw, 42px);
  background: #fff;
}

.service-list__grid h3,
.partner-paths__grid h3 {
  margin-bottom: 12px;
}

.service-list__grid p,
.audience-path__grid p,
.partner-paths__grid p {
  color: var(--fb-color-muted);
}

.content-note {
  padding-left: 16px;
  border-left: 2px solid var(--fb-color-red);
  color: var(--fb-color-muted);
  font-size: 14px;
}

.consulting-intro .editorial-split {
  align-items: start;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 14px 30px;
}

.check-list li {
  position: relative;
  padding: 14px 14px 14px 42px;
  border-top: 1px solid rgba(0, 51, 102, 0.2);
  color: var(--fb-color-navy);
}

.check-list li::before {
  position: absolute;
  top: 15px;
  left: 12px;
  width: 18px;
  height: 18px;
  background: url("../img/icon-tick-circle.png") center / contain no-repeat;
  content: "";
}

.process-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fairbairn-process;
  gap: 0;
}

.process-list li {
  display: grid;
  grid-template-columns: 42px minmax(160px, 0.65fr) minmax(0, 1fr);
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 51, 102, 0.22);
  counter-increment: fairbairn-process;
  gap: 20px;
}

.process-list li::before {
  color: var(--fb-color-red);
  content: "0" counter(fairbairn-process);
  font-size: 12px;
  font-weight: 700;
}

.process-list strong {
  color: var(--fb-color-navy);
  font-size: 18px;
}

.process-list span {
  color: var(--fb-color-muted);
}

.profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
}

.profile__image {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  border-top: 3px solid var(--fb-color-red);
  background: #fff;
}

.testimonial blockquote {
  margin: 0;
  color: var(--fb-color-navy);
  font-family: var(--fb-font-display);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.35;
}

.testimonial .wp-block-quote {
  border: 0;
  padding: 0;
}

.testimonial figcaption {
  margin-top: 24px;
  color: var(--fb-color-muted);
  font-size: 13px;
  font-weight: 700;
}

.testimonial cite {
  display: block;
  margin-top: 24px;
  color: var(--fb-color-muted);
  font-family: var(--fb-font-body);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.testimonials--home {
  padding-top: var(--fb-section);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(38px, 8vw, 110px);
}

.contact-details {
  position: sticky;
  top: 24px;
}

.contact-details__link {
  display: block;
  margin-bottom: 10px;
  color: var(--fb-color-navy);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-form-wrap {
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
}

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

.contact-form__field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.contact-form__field--wide {
  grid-column: 1 / -1;
}

.contact-form label {
  color: var(--fb-color-navy);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(0, 51, 102, 0.38);
  border-radius: 0;
  background: #fff;
  color: var(--fb-color-ink);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--fb-color-navy);
  outline: 2px solid rgba(217, 4, 41, 0.22);
  outline-offset: 1px;
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
}

.form-status {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--fb-color-navy);
  background: var(--fb-color-blue-panel);
}

.form-status--error {
  border-left-color: var(--fb-color-red);
}

.faq-list details {
  border-top: 1px solid rgba(0, 51, 102, 0.25);
}

.faq-list details:last-child {
  border-bottom: 1px solid rgba(0, 51, 102, 0.25);
}

.faq-list summary {
  padding: 22px 44px 22px 0;
  color: var(--fb-color-navy);
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
}

.faq-list details p {
  max-width: 760px;
  padding: 0 0 24px;
  color: var(--fb-color-muted);
  font-size: 17px;
}

.project-detail__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  padding-top: 0;
  gap: 18px;
}

.project-detail__gallery figure {
  align-self: start;
  margin: 0;
}

.project-detail__gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-detail__feature {
  grid-column: 1 / -1;
}

.project-detail__feature.project-detail__item--portrait {
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 36px);
  background: var(--fb-color-blue-panel);
}

.project-detail__feature.project-detail__item--portrait img {
  width: auto;
  max-width: 100%;
  max-height: min(900px, 82vh);
}

.project-detail__content {
  color: var(--fb-color-muted);
  font-size: 18px;
}

@media (max-width: 767px) {
  body.has-open-menu {
    overflow: hidden;
  }

  body {
    background: #fff;
  }

  .site-header {
    position: relative;
    z-index: 80;
    background: #fff;
    color: var(--fb-color-navy);
  }

  body:not(.home) .site-header {
    background: #fff;
  }

  .site-header__inner {
    width: 100%;
    padding: 12px clamp(20px, 5vw, 32px);
  }

  .site-brand img,
  .site-brand .custom-logo {
    height: 36px;
    max-height: 36px;
  }

  .site-brand__logo--desktop {
    display: none;
  }

  .site-brand__logo--mobile {
    display: block;
  }

  .site-brand__text > span {
    font-size: 15px;
  }

  .site-brand__text small {
    font-size: 6px;
  }

  .primary-menu {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 92px clamp(24px, 6vw, 44px) 32px;
    border: 0;
    background: rgba(0, 36, 72, 0.98);
    box-shadow: none;
    transform: translateY(-100%);
  }

  .primary-menu[data-open] {
    transform: translateY(0);
  }

  .primary-menu__list {
    gap: 0;
  }

  .primary-menu a {
    padding: 18px 0;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    font-size: 22px;
    letter-spacing: 0;
  }

  .hero {
    display: grid;
    width: 100%;
    min-height: 0;
    margin-inline: auto;
    color: var(--fb-color-ink);
  }

  .hero__media {
    position: relative;
    height: clamp(245px, 58vw, 360px);
    min-height: 0;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }

  .hero__media::after {
    background: linear-gradient(rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  }

  .hero__content {
    width: min(460px, calc(100% - 48px));
    min-height: 0;
    margin-inline: auto;
    padding: 24px 0 38px;
    align-items: center;
    text-align: center;
  }

  .hero__content h1 {
    display: block;
    max-width: 360px;
    margin-bottom: 14px;
    color: var(--fb-color-navy);
    font-family: var(--fb-font-display);
    font-size: clamp(34px, 8vw, 48px);
    font-weight: 500;
    line-height: 1.04;
    text-transform: none;
  }

  .hero__summary {
    max-width: 360px;
    color: var(--fb-color-navy);
    font-size: clamp(16px, 3vw, 19px);
    line-height: 1.25;
  }

  .hero .button-row {
    display: flex;
    width: min(560px, 100%);
    max-width: 560px;
    justify-content: center;
    gap: 10px;
  }

  .hero .button {
    width: auto;
    flex: 1 1 0;
    height: 42px;
    min-height: 0;
    padding-inline: 10px;
    font-size: 10px;
  }

  .hero .button--ghost {
    display: inline-flex;
    border-color: var(--fb-color-navy);
    color: var(--fb-color-navy);
  }

  .intro {
    width: min(620px, calc(100% - 48px));
    padding-block: 42px;
    padding-inline: 0;
  }

  .intro h2 {
    display: block;
  }

  .intro p {
    max-width: 500px;
    color: var(--fb-color-ink);
    font-family: var(--fb-font-body);
    font-size: 14px;
    line-height: 1.2;
  }

  .trust-strip {
    display: block;
    width: min(620px, calc(100% - 48px));
    padding: 0 clamp(14px, 4vw, 24px) 38px;
  }

  .trust-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 16px clamp(18px, 6vw, 40px);
  }

  .trust-item {
    gap: 8px;
  }

  .trust-item .icon {
    width: 30px;
    height: 30px;
  }

  .trust-item strong {
    font-size: 14px;
  }

  .trust-item span {
    font-size: 13px;
  }

  .panel {
    width: min(620px, calc(100% - 48px));
    padding: 32px clamp(20px, 5vw, 34px);
  }

  .services {
    width: 100%;
    background: var(--fb-color-blue-panel);
  }

  .home .selected-work {
    width: 100%;
  }

  .service-card {
    min-height: 0;
    aspect-ratio: auto;
    background: #fff;
    color: var(--fb-color-ink);
  }

  .service-card::after {
    display: none;
  }

  .service-card__image {
    position: relative;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .service-card__content {
    position: relative;
    padding: 22px 12px 26px;
    text-align: center;
  }

  .service-card h3 {
    color: #34364f;
    font-size: 24px;
    text-transform: uppercase;
  }

  .service-card p {
    color: var(--fb-color-ink);
    font-size: 16px;
  }

  .service-card a {
    color: var(--fb-color-navy);
  }

  .work-card__button {
    text-align: left;
  }

  .work-card__cue {
    display: none;
  }

  .work-modal {
    align-items: stretch;
    padding: 0;
  }

  .work-modal__dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
  }

  .work-modal__viewport {
    height: 100%;
  }

  .work-modal__panel {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .work-carousel,
  .work-carousel__track,
  .work-carousel__slide {
    height: auto;
  }

  .work-carousel[data-active-orientation="portrait"] .work-carousel__slide {
    padding: 0;
  }

  .work-carousel[data-active-orientation="portrait"] .work-modal__image {
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .work-modal__image {
    height: auto;
    min-height: 270px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .work-carousel__controls {
    position: static;
    grid-template-columns: 34px 1fr 34px;
    padding: 12px 16px;
    border: 0;
    background: #fff;
    backdrop-filter: none;
  }

  .work-carousel__nav {
    color: var(--fb-color-navy);
    border-color: rgba(0, 51, 102, 0.24);
    background: transparent;
  }

  .work-carousel__nav:last-child {
    justify-self: end;
  }

  .work-carousel__count {
    color: var(--fb-color-muted);
  }

  .work-modal__content {
    overflow: visible;
    padding: 30px 24px 34px;
  }

  .work-modal__content h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .quick-links {
    width: min(620px, calc(100% - 48px));
    padding: 38px clamp(28px, 7vw, 44px);
    background: #d8d8d8;
  }

  .quick-links__grid {
    gap: 16px;
  }

  .quick-link {
    min-height: 132px;
    padding: 24px clamp(18px, 5vw, 28px);
  }

  .site-footer__legal-list {
    grid-auto-flow: row;
    gap: 10px;
  }

  .editorial-split,
  .profile,
  .contact-layout,
  .service-page-hero {
    grid-template-columns: 1fr;
  }

  .service-page-hero {
    gap: 28px;
    padding-top: 36px;
  }

  .service-page-hero__content {
    padding-top: 0;
  }

  .service-page-hero h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .projects-hero {
    padding-top: 36px;
  }

  .projects-hero h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .service-page-hero__media {
    min-height: clamp(300px, 74vw, 460px);
  }

  .service-list__grid,
  .service-list .wp-block-columns.service-list__grid,
  .inspection-services .wp-block-columns.service-list__grid,
  .audience-path__grid,
  .partner-paths__grid,
  .check-list,
  .testimonial-grid,
  .contact-form,
  .project-detail__gallery {
    grid-template-columns: 1fr;
  }

  .process-list li {
    grid-template-columns: 34px 1fr;
  }

  .process-list span {
    grid-column: 2;
  }

  .contact-details {
    position: static;
  }

  .contact-form__field--wide,
  .project-detail__feature {
    grid-column: auto;
  }

  .project-detail__feature.project-detail__item--portrait {
    padding: 14px;
  }

  .project-detail__feature.project-detail__item--portrait img {
    width: 100%;
    max-height: none;
  }
}

@media (min-width: 768px) {
  .site-header__phone {
    display: inline-flex;
  }

  .hero {
    margin-top: 0;
  }

  .hero__content {
    width: 48%;
  }

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

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

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

  .quick-links__grid {
    grid-template-columns: repeat(2, minmax(280px, 450px));
    justify-content: center;
  }

  .quick-link:last-child {
    grid-column: 1 / -1;
    width: min(450px, 100%);
    justify-self: center;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .site-footer__credits {
    grid-column: 1 / -1;
  }

  .site-footer__brand {
    justify-items: end;
    text-align: right;
  }
}

@media (min-width: 1180px) {
  .site-header__inner {
    width: min(var(--fb-header-wide-container), calc(100% - (var(--fb-gutter) * 2)));
  }

  .hero {
    min-height: 756px;
  }

  .hero__content {
    min-height: 756px;
  }

  .services,
  .selected-work {
    width: 1120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
