:root {
  --fm-ink: #163247;
  --fm-text: #3d5263;
  --fm-muted: #6a7d8c;
  --fm-brand: #1f6f8b;
  --fm-brand-deep: #145168;
  --fm-accent: #2a9aad;
  --fm-bg: #f7fafb;
  --fm-wash: #eef4f6;
  --fm-surface: #ffffff;
  --fm-line: #d5e0e6;
  --fm-hero: #0f2c3e;
  --fm-font-display: 'Fraunces', 'Roboto Slab', Georgia, serif;
  --fm-font-body: 'Source Sans Pro', 'Ubuntu', 'Segoe UI', sans-serif;
  --fm-content: 67.5rem;
  --fm-shadow: 0 8px 20px -12px rgba(22, 50, 71, 0.28);
}

.fm-skip {
  position: fixed;
  left: 0.75rem;
  top: 4.6rem;
  z-index: 6000;
  padding: 0.55rem 0.9rem;
  background: #fff;
  color: var(--fm-ink);
  font-family: var(--fm-font-body);
  font-weight: 600;
  text-decoration: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.fm-skip:focus {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

body:has(.fm-page) {
  --font: var(--fm-font-body);
  --font-logo: var(--fm-font-display);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--fm-font-body);
}

body:has(.fm-page) header {
  width: 100%;
  max-width: 100%;
}

body:has(.fm-page) header nav .nav-link {
  font-family: var(--fm-font-body);
}

.fm-page {
  color: var(--fm-text);
  font-family: var(--fm-font-body);
  background: var(--fm-bg);
  overflow-x: clip;
}

.fm-page :is(h1, h2, h3) {
  font-family: var(--fm-font-display);
  color: var(--fm-ink);
  font-weight: 550;
  letter-spacing: -0.01em;
  text-wrap: wrap;
  text-transform: none;
  margin: 0 0 0.75em;
  max-width: 100%;
}

.fm-page h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.15;
  overflow-wrap: break-word;
}

#home-heading > span {
  display: inline-block;
  opacity: 0;
  animation: fm-heading-line 1.15s ease forwards;
}

#home-heading > span:nth-of-type(1) {
  --fm-line-opacity: 0.7;
  animation-delay: 0.15s;
}

#home-heading > span:nth-of-type(2) {
  --fm-line-opacity: 0.85;
  animation-delay: 0.6s;
}

#home-heading > span:nth-of-type(3) {
  --fm-line-opacity: 1;
  animation-delay: 1.05s;
}

@keyframes fm-heading-line {
  from { opacity: 0; }
  to { opacity: var(--fm-line-opacity); }
}

.fm-page h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.fm-page h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.55em;
}

.fm-page p,
.fm-page li {
  font-family: var(--fm-font-body);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--fm-text);
  margin: 0 0 1em;
}

.fm-page strong,
.fm-page .bold {
  font-weight: 400;
  color: var(--fm-ink);
}

.fm-wrap {
  width: min(100% - 2.5rem, var(--fm-content));
  margin-inline: auto;
  min-width: 0;
}

.fm-section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  scroll-margin-top: 5.5rem;
}

.fm-section-white { background: var(--fm-surface); }
.fm-section-mist { background: var(--fm-bg); }
.fm-section-wash { background: var(--fm-wash); }

.fm-section-index {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-section-index::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--fm-line);
}

.fm-section-index span {
  color: var(--fm-accent);
}

.fm-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.fm-hero {
  position: relative;
  isolation: isolate;
  background: var(--fm-hero);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.75rem, 6vw, 4.75rem);
  overflow: hidden;
}

.fm-home .fm-hero,
.fm-yfm .fm-hero {
  background-color: #040c15;
  background-image: url("../img/banner/FM-Banner-Image-Far-Right.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.fm-home .fm-hero::before,
.fm-yfm .fm-hero::before {
  content: none;
}

.fm-hero :is(h1, h2, h3, .bold, .fm-kicker, strong) {
  color: #fff;
}

.fm-hero :is(p, li) {
  color: rgba(255, 255, 255, 0.92);
}

.fm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}

.fm-hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

.fm-home .fm-hero-copy {
  position: relative;
}

.fm-home .fm-hero-copy::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.1rem;
  bottom: 0.1rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(42, 154, 173, 0.72) 15%, rgba(42, 154, 173, 0.2) 82%, transparent);
}

.fm-hero-lead {
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.fm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: 1.5rem 0 0.35rem;
}

.fm-hero-map {
  position: relative;
  margin: 0;
  background: var(--fm-surface);
  color: var(--fm-ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--fm-shadow);
  padding: 1.35rem 1.35rem 0.4rem;
}

.fm-hero .fm-hero-map figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  color: var(--fm-muted);
  font-family: var(--fm-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fm-map-ref {
  color: var(--fm-accent);
  white-space: nowrap;
}

.fm-hero .fm-hero-map li {
  color: var(--fm-text);
}

.fm-hero .fm-hero-map span {
  color: var(--fm-ink);
}

.fm-hero-map ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-hero-map li {
  position: relative;
  margin: 0;
  padding: 0 0 1.15rem 1.35rem;
  color: var(--fm-text);
  font-size: 1rem;
  font-weight: 400;
}

.fm-hero-map li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--fm-accent);
}

.fm-hero-map li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.24rem;
  top: 1.15rem;
  bottom: 0.15rem;
  width: 1px;
  background: var(--fm-line);
}

.fm-hero-map span {
  display: block;
  font-family: var(--fm-font-display);
  font-size: 1.2rem;
  font-weight: 550;
  color: var(--fm-ink);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.fm-hero .fm-map-note {
  margin: 0 -1.35rem;
  padding: 0.8rem 1.35rem;
  border-top: 1px solid var(--fm-line);
  color: var(--fm-muted);
  background: var(--fm-bg);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
}

.fm-cta,
.fm-cta-secondary,
.fm-text-link {
  font-family: var(--fm-font-body);
  text-decoration: none;
}

.fm-cta,
.fm-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  max-width: 100%;
  padding: 0.75rem 1.35rem;
  border-radius: 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.fm-cta .bold { color: inherit; }

.fm-cta-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.fm-cta-secondary:hover {
  background: #fff;
  color: var(--fm-ink);
}

.fm-text-link {
  color: var(--fm-brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.fm-text-link:hover { color: var(--fm-brand-deep); }

.fm-hero .fm-text-link,
.fm-closing .fm-text-link {
  color: #fff;
}

.fm-hero .fm-text-link:hover,
.fm-closing .fm-text-link:hover {
  color: #fff;
}

.fm-assurance,
.fm-page blockquote {
  margin: 1.25rem 0 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--fm-accent);
  font-family: var(--fm-font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--fm-ink);
}

.fm-hero .fm-assurance {
  color: #fff;
  border-left-color: var(--fm-accent);
  font-size: 1.05rem;
}

.fm-stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
}

.fm-stages li {
  position: relative;
  margin: 0;
  padding: 0 1.4rem 0 0;
  font-family: var(--fm-font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 550;
  line-height: 1.3;
  color: var(--fm-ink);
}

.fm-stages li .bold { color: inherit; }

.fm-stages li::before {
  content: "";
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  margin-bottom: 0.8rem;
  background: var(--fm-accent);
}

.fm-stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 0.65rem;
  right: 0.45rem;
  height: 1px;
  background: var(--fm-line);
}

.fm-journey-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.fm-journey-copy {
  display: grid;
  gap: 1.5rem;
}

.fm-journey-layout .fm-stages {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
}

.fm-journey-layout .fm-stages li {
  padding: 0 0 1.55rem 2rem;
}

.fm-journey-layout .fm-stages li::before {
  position: absolute;
  left: 0;
  top: 0.35rem;
  margin: 0;
}

.fm-journey-layout .fm-stages li:not(:last-child)::after {
  top: 1.15rem;
  left: 0.28rem;
  right: auto;
  bottom: 0.15rem;
  width: 1px;
  height: auto;
}

.fm-journey-layout .fm-stages li:last-child {
  padding-bottom: 0;
}

.fm-journey-section .fm-board {
  margin-top: 0;
}

.fm-board {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fm-line);
}

.fm-board:has([data-route-map]) {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--fm-line);
  background:
    linear-gradient(rgba(213, 224, 230, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 224, 230, 0.28) 1px, transparent 1px),
    var(--fm-bg);
  background-size: 2rem 2rem;
}

.fm-board-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.fm-page .fm-board-label {
  margin: 0 0 0.25rem;
  color: var(--fm-ink);
  font-family: var(--fm-font-display);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 550;
  line-height: 1.25;
}

.fm-board-intro {
  max-width: 62rem;
  margin: 0;
}

.fm-board-key {
  flex: 0 0 auto;
  margin: 0;
  color: var(--fm-muted);
  font-size: 0.82rem;
  font-weight: 400;
  white-space: nowrap;
}

.fm-board-key span {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  background: var(--fm-accent);
}

.fm-nodes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
}

.fm-node {
  position: relative;
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.45rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  border: 1px solid var(--fm-line);
  border-radius: 0;
  background: transparent;
  color: var(--fm-ink);
  font-family: var(--fm-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.fm-board:has([data-route-map]) .fm-node {
  background: rgba(247, 250, 251, 0.78);
}

.fm-node.is-on {
  opacity: 1;
  background: var(--fm-surface);
  border-color: var(--fm-brand);
  box-shadow: inset 0 -3px 0 var(--fm-accent);
}

.fm-board:has([data-route-map]) .fm-node.is-on::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--fm-accent);
}

.fm-node:hover,
.fm-node:focus-visible {
  opacity: 1;
}

.fm-node img {
  width: auto;
  height: 3.1rem;
  object-fit: contain;
}

/* Medium sheet is 3600×360: ten square cells, left to right. */
.fm-sprite {
  --icon-width: 4.69rem;
  --sprite-i: 0;
  display: block;
  width: var(--icon-width);
  height: var(--icon-width);
  background-image: url(../img/FM26-Example-Icons/FM-ICONS-26-medium.png);
  background-repeat: no-repeat;
  background-size: calc(var(--icon-width) * 10) var(--icon-width);
  background-position: calc(var(--icon-width) * var(--sprite-i) * -1) 0;
  flex: 0 0 auto;
}

.fm-sprite-people { --sprite-i: 0; }
.fm-sprite-systems { --sprite-i: 1; }
.fm-sprite-finance { --sprite-i: 2; }
.fm-sprite-investment { --sprite-i: 3; }
.fm-sprite-communication { --sprite-i: 4; }
.fm-sprite-direction { --sprite-i: 5; }
.fm-sprite-structure { --sprite-i: 6; }
.fm-sprite-customers { --sprite-i: 7; }
.fm-sprite-supply { --sprite-i: 8; }
.fm-sprite-cashflow { --sprite-i: 9; }

.fm-node-label { display: block; }

.fm-route-status {
  margin: 0;
  font-size: 0.98rem;
  color: var(--fm-ink);
  font-weight: 400;
}

.fm-route-story {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem 1.1rem 1.5rem;
  border: 1px solid var(--fm-line);
  border-left: 3px solid var(--fm-accent);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--fm-shadow);
}

.fm-route-story-label {
  margin: 0 0 0.35rem;
  color: var(--fm-accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fm-route-story .fm-route-status {
  font-family: var(--fm-font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  line-height: 1.55;
}

.fm-route {
  position: relative;
  display: none;
  margin: 1.75rem 0 0.5rem;
}

.fm-route.is-ready { display: block; }

.fm-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.fm-route-path {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 0 16;
}

.fm-route-grad-start { stop-color: var(--fm-brand-deep); }
.fm-route-grad-end { stop-color: var(--fm-accent); }

.fm-route-stop,
.fm-route-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  will-change: transform;
}

.fm-route-dot {
  position: absolute;
  left: -56px;
  top: -56px;
  width: 112px;
  height: 112px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--fm-wash);
  box-shadow: 0 0 0 1px var(--fm-line), 0 10px 18px -12px rgba(22, 50, 71, 0.55);
}

.fm-route-dot img {
  width: auto;
  max-width: none;
  height: 70px;
}

.fm-route-dot .fm-sprite { --icon-width: 67.2px; }

.fm-route-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
  font-family: var(--fm-font-body);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fm-ink);
  background: rgba(247, 250, 251, 0.9);
}

.fm-route-marker .fm-route-dot {
  left: -32px;
  top: -32px;
  width: 64px;
  height: 64px;
  border: 0;
  box-shadow: 0 12px 22px -12px rgba(22, 50, 71, 0.6);
}

.fm-route-start .fm-route-dot { background: var(--fm-brand); }

.fm-route-start .fm-route-dot::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}

.fm-route-end .fm-route-dot {
  background: var(--fm-accent);
  color: #fff;
}

.fm-route-end .fm-route-dot svg {
  width: 24px;
  height: 28px;
  margin-left: 4px;
}

.fm-route-caption {
  position: absolute;
  top: 40px;
  display: flex;
  flex-direction: column;
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
  background: rgba(247, 250, 251, 0.9);
}

.fm-page .fm-route-caption strong {
  font-family: var(--fm-font-display);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.25;
  color: var(--fm-ink);
}

.fm-route-caption span {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--fm-text);
}

.fm-route-start .fm-route-caption { left: -36px; }

.fm-route-end .fm-route-caption {
  right: -36px;
  align-items: flex-end;
  text-align: right;
}

.fm-route.is-vertical .fm-route-caption {
  top: 0;
  left: 44px;
  right: auto;
  align-items: flex-start;
  text-align: left;
  transform: translateY(-50%);
}

.fm-services,
.fm-receive,
.fm-connected {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.fm-card {
  background: var(--fm-surface);
  border: 1px solid var(--fm-line);
  padding: 1.35rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.fm-service-card {
  position: relative;
  padding: 1.45rem 0.15rem 1.2rem;
  border-width: 1px 0 0;
  background: transparent;
}

.fm-card-index {
  margin-bottom: 0.85rem;
  color: var(--fm-accent);
  font-family: var(--fm-font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.fm-service-card .fm-text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
}

.fm-service-card .fm-text-link::after {
  content: "→";
  color: var(--fm-accent);
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform 180ms ease;
}

.fm-service-card .fm-text-link:hover::after {
  transform: translateX(0.3rem);
}

.fm-card p:last-child { margin-bottom: 0; }

.fm-card .fm-text-link {
  margin-top: auto;
  padding-top: 0.35rem;
}

.fm-steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: fm-step;
}

.fm-steps > li {
  counter-increment: fm-step;
  position: relative;
  margin: 0;
  padding: 1.35rem 0 1.35rem 3.2rem;
  border-bottom: 1px solid var(--fm-line);
}

.fm-steps > li::before {
  content: counter(fm-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--fm-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fm-brand);
}

.fm-steps h3 { margin-bottom: 0.35rem; }

.fm-home .fm-steps > li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--fm-accent);
  transition: width 300ms ease;
}

.fm-home .fm-steps > li:hover::after {
  width: 100%;
}

.fm-why-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.fm-why-layout blockquote {
  margin-top: 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.fm-review {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.fm-review > li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem 1.25rem;
  align-items: center;
  margin: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--fm-line);
}

.fm-review img,
.fm-review .fm-sprite {
  justify-self: center;
}

.fm-review img {
  width: auto;
  height: 3.4rem;
  object-fit: contain;
}

.fm-review h3 { margin-bottom: 0.25rem; }
.fm-review p { margin: 0; }

.fm-faq details {
  border-bottom: 1px solid var(--fm-line);
  padding: 0.95rem 0;
}

.fm-faq summary {
  cursor: pointer;
  position: relative;
  padding-left: 1.8rem;
  font-weight: 560;
  font-size: 1.08rem;
  color: var(--fm-ink);
  line-height: 1.4;
  list-style: none;
}

.fm-faq summary::-webkit-details-marker { display: none; }

.fm-faq summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--fm-accent);
  font-weight: 600;
}

.fm-faq details[open] summary::before { content: "–"; }

.fm-faq details p {
  margin: 0.8rem 0 0.25rem;
  padding-left: 1.8rem;
}

.fm-closing {
  background: linear-gradient(135deg, #145168 0%, #1f6f8b 55%, #25899a 100%);
  color: #fff;
}

.fm-closing :is(h2, .bold, strong) { color: #fff; }

.fm-closing p { color: rgba(255, 255, 255, 0.92); }

.fm-closing .fm-book-title {
  max-width: none;
  margin: 1.5rem 0 0;
  color: #ffcc7e;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.3;
  text-wrap: pretty;
}

.fm-book-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.fm-book-title a:hover {
  color: #ffcc7e;
  text-decoration-thickness: 2px;
}

.fm-closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  margin-top: 0.5rem;
}

.fm-closing-actions p { margin: 0; }

.fm-closing-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.fm-closing-grid .fm-closing-actions {
  flex-direction: column;
  align-items: flex-start;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.fm-section-index-dark {
  color: rgba(255, 255, 255, 0.72);
}

.fm-section-index-dark::after {
  background: rgba(255, 255, 255, 0.28);
}

#yf-form {
  scroll-margin-top: 5.5rem;
}

.fm-book-panel .fm-text-link { color: var(--fm-brand); }
.fm-book-panel .fm-text-link:hover { color: var(--fm-brand-deep); }

.fm-book-panel {
  background: var(--fm-surface);
  color: var(--fm-text);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border: 2px solid #ffcc7e;
  box-shadow: var(--fm-shadow), inset 0 0 16px #ffcc7e;
}

.fm-book-panel :is(h2, h3, .bold) { color: var(--fm-ink); }
.fm-book-panel p { color: var(--fm-text); }

.fm-form-intro { margin-bottom: 1rem; }

.fm-success {
  border: 1px solid var(--fm-line);
  background: #e4f3f1;
  padding: 1.25rem 1.2rem 0.4rem;
}

.fm-success h3 { color: var(--fm-brand-deep); }

.fm-success p { color: var(--fm-brand-deep); }

.fm-page :is(a, button, summary):focus-visible,
header nav .nav-link:focus-visible {
  outline: 2px solid var(--fm-brand);
  outline-offset: 3px;
}

.fm-hero :is(a, button):focus-visible,
.fm-closing :is(a, button):focus-visible {
  outline-color: #fff;
}

header nav .nav-link,
header nav .nav-link[aria-current="page"] {
  color: #326d9e;
}

#footer,
#footer.showing {
  position: relative;
  left: auto;
  right: auto;
  top: auto !important;
  transform: none !important;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) max(1.25rem, calc((100% - min(100%, var(--fm-content))) / 2));
  background-color: #102838;
  background-image:
    linear-gradient(180deg, rgba(42, 154, 173, 0.16) 0%, transparent 28%),
    linear-gradient(135deg, #102838 0%, var(--fm-ink) 48%, #1a3f55 100%);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--fm-font-body);
  border-top: 1px solid rgba(42, 154, 173, 0.35);
}

#footer h3 {
  font-family: var(--fm-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-accent);
  margin: 1.15rem 0 0.35rem;
}

#footer h3:first-child { margin-top: 0; }

#footer p,
#footer a,
#footer li {
  font-family: var(--fm-font-body);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

#footer a { text-decoration: none; }
#footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.15em; }

#footer .footer.links ul,
#footer .footer.socials .ul,
#footer .footer.socials ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .footer.logo .logo {
  font-family: var(--fm-font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: #fff;
  text-transform: none;
  margin: 0 0 0.3rem;
}

#footer .footer.socials {
  display: block !important;
  margin-top: 1.25rem;
}

#footer .footer.socials li a {
  color: #fff;
  font-size: 1.35rem;
}

#footer .footer.socials svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.12em;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 220ms; }

@media (min-width: 1851px) {
  .fm-home .fm-hero,
  .fm-yfm .fm-hero {
    background-image: none;
  }

  .fm-home .fm-hero::before,
  .fm-yfm .fm-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    aspect-ratio: 1118 / 723;
    opacity: 1;
    transform: none;
    pointer-events: none;
    background: url("../img/banner/FM-Banner-Image-Dark-Above-Right.png") right center / 100% 100% no-repeat;
  }

  .fm-yfm .fm-hero::before {
    background-image: url("../img/banner/YFM-Banner-Image-Dark-Above-Right.png");
  }
}

@media (min-width: 860px) {
  .fm-home .fm-hero {
    min-height: min(44rem, calc(100vh - 4.2rem));
    display: grid;
    align-items: center;
  }

  .fm-hero-grid { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); }

  .fm-home .fm-hero-map {
    transform: translateY(1rem);
  }

  .fm-services,
  .fm-connected { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-receive { grid-template-columns: 1fr 1fr; }
  .fm-connected { grid-template-columns: 1fr 1fr; }

  .fm-services .fm-service-card:first-child {
    padding-left: 0;
  }

  .fm-home .fm-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2.5rem;
  }

  .fm-home .fm-steps > li {
    padding: 3.5rem 1.4rem 1.5rem 0;
    border-bottom: 0;
  }

  .fm-home .fm-steps > li:not(:last-child) {
    border-right: 1px solid var(--fm-line);
    margin-right: 1.4rem;
  }

  .fm-home .fm-steps > li::before {
    top: 1.1rem;
  }

  .fm-why-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
  }

  .fm-closing-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  }

  .fm-journey-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(13rem, 0.8fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
    margin-bottom: 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--fm-line);
  }

  .fm-journey-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .fm-journey-section .fm-board {
    border-top: 0;
  }
}

@media (max-width: 900px) {
  .fm-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 900px) {
  .fm-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .fm-section-index {
    margin-bottom: 0.8rem;
  }

  .fm-home .fm-hero-copy::before {
    display: none;
  }

  .fm-hero .fm-hero-map figcaption {
    align-items: start;
  }

  .fm-board:has([data-route-map]) {
    margin-inline: -0.25rem;
    padding: 1rem;
  }

  .fm-board-heading {
    display: block;
  }

  .fm-board-key {
    margin-top: 0.75rem;
    white-space: normal;
  }

  .fm-stages { grid-template-columns: 1fr; }
  .fm-stages li { padding: 0 0 1.35rem 1.4rem; }
  .fm-stages li::before {
    position: absolute;
    left: 0;
    top: 0.35rem;
    margin: 0;
  }
  .fm-stages li:not(:last-child)::after {
    top: 1.15rem;
    left: 0.28rem;
    right: auto;
    width: 1px;
    height: calc(100% - 0.85rem);
  }
  .fm-cta,
  .fm-cta-secondary { width: 100%; }
  .fm-hero-actions,
  .fm-closing-actions { align-items: stretch; }

  .fm-service-card {
    padding-inline: 0.25rem;
  }

  .fm-closing-grid .fm-closing-actions {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
  }

  #footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .fm-node,
  .fm-cta,
  .fm-cta-secondary,
  .fm-text-link {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  #home-heading > span {
    animation: none;
    opacity: var(--fm-line-opacity);
  }
}
