/* Formosa v2: Career Path / Staff
   This file is intentionally namespaced with fm- for partial integration. */

.fm-career,
.fm-staff {
  --fm-ink: #070b17;
  --fm-copy: #172033;
  --fm-blue: #0869f6;
  --fm-teal: #09aaa8;
  --fm-green: #74ad10;
  --fm-orange: #ff5b0a;
  --fm-purple: #7147ce;
  --fm-shadow: 0 18px 42px rgba(24, 63, 103, 0.12);
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  overflow: visible;
  color: var(--fm-copy);
  background: transparent;
  font-family: var(--fm-font);
}

.fm-career,
.fm-career *,
.fm-career *::before,
.fm-career *::after,
.fm-staff,
.fm-staff *,
.fm-staff *::before,
.fm-staff *::after {
  box-sizing: border-box;
}

.fm-career h2,
.fm-career h3,
.fm-career h4,
.fm-career p,
.fm-career figure,
.fm-career ol,
.fm-career ul,
.fm-staff h2,
.fm-staff h3,
.fm-staff p,
.fm-staff figure,
.fm-staff ol,
.fm-staff ul {
  margin: 0;
}

.fm-career ol,
.fm-career ul,
.fm-staff ol,
.fm-staff ul {
  padding: 0;
  list-style: none;
}

.fm-career img {
  top: auto;
  display: block;
  max-width: 100%;
}

.fm-staff img:not(.fm-staff__decor) {
  top: -90px;
  display: block;
  max-width: 100%;
}

.fm-career .fm-section__inner,
.fm-staff .fm-section__inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 160px), var(--fm-container));
  height: auto;
  margin-inline: auto;
}

.fm-career .fm-section-heading,
.fm-staff .fm-section-heading {
  position: relative;
  z-index: 4;
}

.fm-career .fm-section-heading__eyebrow,
.fm-staff .fm-section-heading__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fm-blue);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
}

.fm-career .fm-section-heading__eyebrow::before,
.fm-staff .fm-section-heading__eyebrow::before {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  content: "";
  background: var(--fm-blue);
  border-radius: 50%;
}

.fm-career .fm-section-heading h2,
.fm-staff .fm-section-heading h2 {
  margin-top: 25px;
  color: var(--fm-ink);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.015em;
}

.fm-career .fm-section-heading__lead,
.fm-staff .fm-section-heading__lead {
  margin-top: 16px !important;
  color: var(--fm-copy);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.035em;
}

.fm-section-connector {
  position: absolute;
  z-index: 1;
  max-width: none !important;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Career Path */

.fm-career {
  padding-block: 80px;
}

.fm-career__heading {
  width: min(100%, 1160px);
}

.fm-career__heading h2 {
  font-size: clamp(43px, 3.65vw, 56px) !important;
  line-height: 1.35 !important;
  text-wrap: balance;
}

.fm-career__heading .fm-section-heading__lead {
  max-width: 980px;
}

.fm-career-map {
  position: relative;
  z-index: 3;
  margin-top: 64px;
}

.fm-career-route-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 42px;
  padding: 14px 22px;
  color: #536174;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce6f1;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(30, 77, 119, 0.09);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.fm-career-route-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.fm-career-route-legend__title {
  color: var(--fm-ink);
  font-size: 16px;
  font-weight: 850;
}

.fm-career-route-legend__line {
  width: 30px;
  height: 4px;
  flex: 0 0 30px;
  background: var(--fm-teal);
  border-radius: 99px;
}

.fm-career-route-legend__line--b {
  background: repeating-linear-gradient(90deg, var(--fm-orange) 0 8px, transparent 8px 13px);
}

.fm-career-stage {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d8e4ef;
  border-radius: 30px;
}

.fm-career-stage--step1 {
  box-shadow:
    0 0 26px rgba(8, 105, 246, 0.12),
    0 18px 44px rgba(25, 70, 110, 0.1);
}

.fm-career-stage--step2 {
  flex: 1;
  border-color: rgba(9, 170, 168, 0.35);
  box-shadow:
    0 0 28px rgba(9, 170, 168, 0.13),
    0 18px 42px rgba(25, 70, 110, 0.09);
}

.fm-career-stage__label,
.fm-career-goal__label {
  position: absolute;
  top: -18px;
  left: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 20px;
  color: #fff;
  background: var(--fm-blue);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(8, 105, 246, 0.2);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.09em;
}

.fm-career-stage--step2 .fm-career-stage__label {
  background: var(--fm-teal);
  box-shadow: 0 8px 18px rgba(9, 170, 168, 0.2);
}

.fm-career-stage__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  padding: 48px clamp(28px, 3.4vw, 50px) 34px;
}

.fm-career-stage--step2 .fm-career-stage__body {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  padding-inline: clamp(25px, 2.5vw, 38px);
}

.fm-career-stage__copy {
  min-width: 0;
}

.fm-career-stage__meta {
  color: #748196;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.025em;
}

.fm-career-stage__copy h3 {
  margin-top: 10px;
  color: var(--fm-ink);
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 850;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.fm-career-stage--step2 .fm-career-stage__copy h3 {
  font-size: clamp(22px, 1.65vw, 27px);
}

.fm-career-stage__description {
  margin-top: 13px !important;
  color: var(--fm-copy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.fm-career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px !important;
}

.fm-career-tags li {
  padding: 8px 13px;
  color: #526174;
  background: #f7faff;
  border: 1px solid #d8e1ec;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.fm-career-stage__visual {
  display: grid;
  place-items: center;
}

.fm-career-stage__visual img {
  width: min(100%, 250px);
  height: auto;
  object-fit: contain;
}

.fm-career-stage--step2 .fm-career-stage__visual img {
  width: min(100%, 190px);
}

.fm-career-routes {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  align-items: stretch;
  gap: clamp(28px, 3.6vw, 58px);
  margin-top: 94px;
}

.fm-career-routes::before {
  position: absolute;
  top: -49px;
  left: 24%;
  right: 14%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--fm-teal) 0 54%, #c9d5e2 54% 60%, var(--fm-orange) 60% 100%);
  border-radius: 99px;
}

.fm-career-routes::after {
  position: absolute;
  top: -94px;
  left: 50%;
  width: 3px;
  height: 47px;
  content: "";
  background: #c9d5e2;
  border-radius: 99px;
  transform: translateX(-50%);
}

.fm-career-route {
  --fm-route-color: var(--fm-teal);
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.fm-career-route--b {
  --fm-route-color: var(--fm-orange);
}

.fm-career-route::before {
  position: absolute;
  top: -49px;
  left: 50%;
  width: 3px;
  height: 34px;
  content: "";
  background: var(--fm-route-color);
  border-radius: 99px;
  transform: translateX(-50%);
}

.fm-career-route--b::before {
  background: repeating-linear-gradient(180deg, var(--fm-route-color) 0 7px, transparent 7px 12px);
}

.fm-career-route__header {
  align-self: center;
  width: max-content;
  max-width: calc(100% - 28px);
  margin-bottom: 30px;
  color: var(--fm-route-color);
  text-align: center;
}

.fm-career-route__index {
  display: inline-flex;
  padding: 6px 12px;
  color: #fff;
  background: var(--fm-route-color);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.12em;
}

.fm-career-route__header h3 {
  margin-top: 9px;
  color: var(--fm-route-color);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.55;
}

.fm-career-direct {
  display: flex;
  flex: 1;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed rgba(255, 91, 10, 0.45);
  border-radius: 30px;
  box-shadow:
    0 0 28px rgba(255, 91, 10, 0.1),
    0 18px 42px rgba(25, 70, 110, 0.08);
  text-align: center;
}

.fm-career-direct__visual {
  display: grid;
  width: min(100%, 230px);
  place-items: center;
}

.fm-career-direct__visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.fm-career-direct p {
  margin-top: 18px !important;
  color: #536174;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
}

.fm-career-direct strong,
.fm-career-direct span {
  display: block;
}

.fm-career-direct strong {
  margin-bottom: 8px;
  color: var(--fm-orange);
  font-size: 18px;
  font-weight: 850;
}

.fm-career-merge {
  position: relative;
  width: max-content;
  margin: 62px auto 34px !important;
  padding: 9px 18px;
  color: #526174;
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(24, 63, 103, 0.08);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.fm-career-goal {
  position: relative;
  padding: 55px clamp(28px, 4vw, 60px) 48px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(8, 105, 246, 0.28), transparent 32%),
    linear-gradient(135deg, #091322 0%, #111b2d 100%);
  border: 1px solid rgba(134, 166, 202, 0.2);
  border-radius: 34px;
  box-shadow: 0 22px 54px rgba(5, 15, 29, 0.18);
}

.fm-career-goal__label {
  color: var(--fm-ink);
  background: #fff;
  border: 1px solid rgba(8, 105, 246, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.fm-career-goal > h3 {
  color: #fff;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 850;
  line-height: 1.45;
}

.fm-career-goal__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: 30px;
}

.fm-career-option {
  --fm-option-color: var(--fm-blue);
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 24px clamp(18px, 2vw, 28px) 30px;
  background: rgba(15, 27, 45, 0.92);
  border: 1px solid color-mix(in srgb, var(--fm-option-color) 46%, #fff);
  border-radius: 24px;
  box-shadow:
    0 0 24px color-mix(in srgb, var(--fm-option-color) 28%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.fm-career-option--b { --fm-option-color: var(--fm-teal); }
.fm-career-option--c { --fm-option-color: var(--fm-purple); }

.fm-career-option figure {
  display: grid;
  width: 112px;
  height: 102px;
  place-items: center;
}

.fm-career-option figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fm-career-option__label {
  margin-top: 4px !important;
  color: var(--fm-option-color);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.14em;
}

.fm-career-option h4 {
  margin: 14px 0 0;
  color: #fff;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.fm-career-option > p:last-child {
  margin-top: 14px !important;
  color: #b8c5d6;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.fm-career-assurances {
  display: grid;
  gap: 11px;
  margin-top: 30px !important;
  padding: 24px clamp(22px, 3vw, 38px) !important;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce5ef;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(24, 63, 103, 0.08);
}

.fm-career-assurances li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  color: #536174;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

.fm-career-assurances li span {
  color: var(--fm-teal);
  font-weight: 900;
}

.fm-career__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: max-content;
  max-width: 100%;
  margin: 38px auto 0;
  padding: 0 5px 9px;
  color: var(--fm-blue);
  border-bottom: 2px solid currentColor;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.4;
  text-decoration: none;
  transition: gap 260ms ease;
}

.fm-career__cta:hover,
.fm-career__cta:focus-visible {
  gap: 34px;
}

.fm-career__cta:focus-visible {
  outline: 3px solid rgba(8, 105, 246, 0.25);
  outline-offset: 7px;
}

.fm-section-connector--career-staff {
  right: -145px;
  bottom: -96px;
  width: min(48vw, 700px);
  opacity: 0.2;
  transform: translateY(58%);
}

/* Staff */

.fm-staff {
  z-index: 1;
  min-height: 918px;
  padding-block: 80px;
}

.fm-staff__decor {
  position: absolute;
  z-index: 0;
  max-width: none !important;
  height: auto;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.fm-staff__decor--top-right {
  top: 22px;
  right: -180px;
  width: clamp(360px, 34vw, 580px);
  opacity: 0.2;
  transform: translate3d(0, var(--fm-parallax-y, 0), 0) rotate(-8deg);
}

.fm-staff__decor--bottom-right {
  top: auto;
  right: -140px;
  bottom: -170px;
  width: clamp(390px, 32vw, 560px);
  opacity: 0.13;
  transform: translate3d(0, var(--fm-parallax-y, 0), 0) rotate(14deg);
}

.fm-staff__heading {
  width: 760px;
  padding-bottom: 22px;
  background: linear-gradient(90deg, #0869f6 0%, #07b9b1 58%, #b1d913 100%) no-repeat left bottom / 100% 3px;
}

.fm-staff__heading h2 {
  margin-top: 27px;
  font-size: 61px;
  line-height: 1.08;
}

.fm-staff__heading .fm-section-heading__lead {
  margin-top: 22px !important;
  font-size: 18px;
  line-height: 1.55;
}

.fm-staff__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 247px;
  align-items: start;
  gap: clamp(28px, 3vw, 52px);
  margin-block: 80px;
}

.fm-staff__profiles {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1.0615fr) minmax(0, 1fr) minmax(0, 0.9615fr);
  align-items: start;
  gap: clamp(32px, 3.2vw, 55px);
}

.fm-staff-card {
  --fm-staff-color: var(--fm-blue);
  display: flex;
  width: 100%;
}

.fm-staff-card--support { --fm-staff-color: #14b84c; }
.fm-staff-card--instructor { --fm-staff-color: var(--fm-orange); }

.fm-staff-card article {
  position: relative;
  flex: 1;
  min-height: 540px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px dashed color-mix(in srgb, var(--fm-staff-color) 70%, white);
  box-shadow: 0 18px 44px rgba(26, 65, 105, 0.12);
}

.fm-staff-card--service article {
  border-radius: 54px 62px 74px 67px / 54px 65px 78px 64px;
}

.fm-staff-card--support article {
  border-radius: 66px 54px 70px 58px / 62px 55px 65px 73px;
}

.fm-staff-card--instructor article {
  border-radius: 58px 69px 62px 73px / 57px 66px 72px 64px;
}

.fm-staff-card__portrait {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #edf7fb;
  padding: 8px 12px 0;
  box-sizing: border-box;
}

.fm-staff-card__portrait--service {
  border-radius: 54px 58px 44% 23% / 54px 59px 40% 31%;
}

.fm-staff-card__portrait--support {
  border-radius: 66px 54px 34% 42% / 62px 55px 40% 32%;
}

.fm-staff-card__portrait--instructor {
  border-radius: 58px 69px 24% 46% / 57px 66px 42% 31%;
}

.fm-staff-card__portrait img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 100%;
}

.fm-staff-card__body {
  position: relative;
  z-index: 2;
  padding: 11px 33px 28px;
}

.fm-staff-card__role {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fm-staff-color);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.fm-staff-card__role img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
}

.fm-staff-card h3 {
  width: max-content;
  margin-top: 13px;
  padding-bottom: 0;
  color: var(--fm-ink);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.fm-staff-card h3::after {
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  content: "";
  background: var(--fm-staff-color);
  border-radius: 99px;
}

.fm-staff-card__bio {
  margin-top: 16px !important;
  color: var(--fm-copy);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.72;
  letter-spacing: 0.03em;
}

.fm-staff__team {
  position: relative;
  z-index: 3;
  display: block;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: 247px;
  height: auto;
  margin-top: 168px;
}

.fm-staff__team img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Keep the support mark noticeable without competing with the staff cards. */
.fm-motion .fm-staff__team.is-visible img {
  transform-origin: 50% 50%;
  animation: fm-staff-team-breathe 6.4s ease-in-out 900ms infinite;
  will-change: transform, filter;
}

@keyframes fm-staff-team-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 6px 16px rgba(8, 105, 246, 0.08));
  }

  50% {
    transform: translate3d(0, -4px, 0) scale(1.015);
    filter: drop-shadow(0 10px 24px rgba(8, 105, 246, 0.18));
  }
}

.fm-staff__link {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  width: max-content;
  min-width: 280px;
  margin: 16px auto 0;
  padding: 0 6px 9px;
  color: var(--fm-blue);
  border-bottom: 2px solid currentColor;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 220ms ease, gap 220ms ease;
}

.fm-staff__link:hover,
.fm-staff__link:focus-visible {
  gap: 42px;
  color: #05a89b;
}

.fm-staff__link:focus-visible {
  outline: 3px solid rgba(8, 105, 246, 0.28);
  outline-offset: 7px;
}

.fm-section-connector--staff-next {
  top: auto;
  left: -130px;
  bottom: -100px;
  width: min(50vw, 720px);
  opacity: 0.22;
  transform: translateY(58%);
}

/* Optional reveal states for the integration script. Content stays visible
   unless the document explicitly opts in with the fm-motion class. */

.fm-motion .fm-section [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 760ms cubic-bezier(0.2, 0.7, 0.2, 1),
    translate 760ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fm-motion .fm-section [data-reveal-delay="80"] { transition-delay: 80ms; }
.fm-motion .fm-section [data-reveal-delay="100"] { transition-delay: 100ms; }
.fm-motion .fm-section [data-reveal-delay="160"] { transition-delay: 160ms; }
.fm-motion .fm-section [data-reveal-delay="200"] { transition-delay: 200ms; }
.fm-motion .fm-section [data-reveal-delay="240"] { transition-delay: 240ms; }
.fm-motion .fm-section [data-reveal-delay="280"] { transition-delay: 280ms; }
.fm-motion .fm-section [data-reveal-delay="320"] { transition-delay: 320ms; }

.fm-motion .fm-section [data-reveal].is-visible,
.fm-motion .fm-section [data-reveal].is-revealed,
.fm-motion .fm-section [data-reveal][data-reveal-state="visible"] {
  opacity: 1;
  translate: 0 0;
}

/* Tablet / narrow desktop: preserve content order and let the sections grow. */

@media (max-width: 1099px) {
  .fm-career .fm-section__inner,
  .fm-staff .fm-section__inner {
    width: min(calc(100% - 48px), 920px);
    height: auto;
  }

  .fm-career,
  .fm-staff {
    height: auto;
    min-height: 0;
    padding-block: 80px;
  }

  .fm-career .fm-section-heading,
  .fm-staff .fm-section-heading,
  .fm-career__heading,
  .fm-staff__heading {
    width: min(100%, 760px);
  }

  .fm-career .fm-section-heading h2,
  .fm-staff .fm-section-heading h2 {
    font-size: clamp(43px, 6vw, 56px);
  }

  .fm-career__heading {
    width: 100%;
  }

  .fm-career-stage__body {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .fm-career-stage--step2 .fm-career-stage__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-career-stage--step2 .fm-career-stage__visual img {
    width: 170px;
  }

  .fm-career-routes {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 32px;
  }

  .fm-career-goal {
    padding-inline: 30px;
  }

  .fm-career-goal__options {
    gap: 18px;
  }

  .fm-career-option {
    padding-inline: 18px;
  }

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

  .fm-staff__profiles {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .fm-staff-card,
  .fm-staff-card--support {
    margin-top: 0;
  }

  .fm-staff-card article,
  .fm-staff-card--support article,
  .fm-staff-card--instructor article {
    min-height: 550px;
  }

  .fm-staff-card--instructor {
    grid-column: 1 / 2;
  }

  .fm-staff__team {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 auto 110px;
  }

  .fm-staff__link {
    margin: 72px auto 0;
  }

  .fm-section-connector--career-staff,
  .fm-section-connector--staff-next {
    width: 92vw;
    opacity: 0.2;
  }
}

@media (max-width: 899px) {
  .fm-career-routes {
    grid-template-columns: minmax(0, 1fr);
    gap: 72px;
    margin-top: 78px;
  }

  .fm-career-routes::before,
  .fm-career-routes::after {
    display: none;
  }

  .fm-career-route::before {
    top: -42px;
    height: 30px;
  }

  .fm-career-route--b::before {
    background: repeating-linear-gradient(180deg, var(--fm-route-color) 0 7px, transparent 7px 12px);
  }

  .fm-career-stage--step2 .fm-career-stage__body {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .fm-career-goal__options {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-career-option {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 24px;
    text-align: left;
  }

  .fm-career-option figure {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
  }

  .fm-career-option__label,
  .fm-career-option h4,
  .fm-career-option > p:last-child {
    grid-column: 2;
  }

  .fm-career-option h4 br {
    display: none;
  }
}

/* Smartphone: 60px section padding with genuine one-column reflow. */

@media (max-width: 767px) {
  .fm-career .fm-section__inner,
  .fm-staff .fm-section__inner {
    width: min(calc(100% - 40px), 560px);
  }

  .fm-career,
  .fm-staff {
    padding-block: 60px;
  }

  .fm-staff__decor--top-right {
    top: 36px;
    right: -110px;
    width: 270px;
    opacity: 0.14;
  }

  .fm-staff__decor--bottom-right {
    right: -120px;
    bottom: -100px;
    width: 300px;
    opacity: 0.1;
  }

  .fm-career .fm-section-heading__eyebrow,
  .fm-staff .fm-section-heading__eyebrow {
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .fm-career .fm-section-heading__eyebrow::before,
  .fm-staff .fm-section-heading__eyebrow::before {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .fm-career .fm-section-heading h2,
  .fm-staff .fm-section-heading h2,
  .fm-staff__heading h2 {
    margin-top: 18px;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.3;
  }

  .fm-career .fm-section-heading__lead,
  .fm-staff .fm-section-heading__lead,
  .fm-staff__heading .fm-section-heading__lead {
    margin-top: 17px !important;
    font-size: 15px;
    line-height: 1.85;
  }

  .fm-career .fm-section-heading h2 {
    font-size: clamp(32px, 8.8vw, 40px);
  }

  .fm-career-map {
    margin-top: 42px;
  }

  .fm-career-route-legend {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-bottom: 38px;
    padding: 16px 18px;
  }

  .fm-career-stage {
    border-radius: 24px;
  }

  .fm-career-stage__label,
  .fm-career-goal__label {
    top: -15px;
    left: 18px;
    min-height: 34px;
    padding: 7px 14px;
    font-size: 12px;
  }

  .fm-career-stage__body,
  .fm-career-stage--step2 .fm-career-stage__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 42px 20px 26px;
  }

  .fm-career-stage__meta {
    font-size: 12px;
  }

  .fm-career-stage__copy h3,
  .fm-career-stage--step2 .fm-career-stage__copy h3 {
    font-size: 22px;
    line-height: 1.5;
  }

  .fm-career-stage__description {
    font-size: 14px;
    line-height: 1.85;
  }

  .fm-career-tags {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-career-tags li {
    font-size: 12px;
  }

  .fm-career-stage__visual img,
  .fm-career-stage--step2 .fm-career-stage__visual img {
    width: min(62vw, 210px);
  }

  .fm-career-routes {
    gap: 68px;
    margin-top: 70px;
  }

  .fm-career-route__header {
    margin-bottom: 24px;
  }

  .fm-career-route__header h3 {
    font-size: 16px;
  }

  .fm-career-direct {
    min-height: 0;
    padding: 30px 20px;
    border-radius: 24px;
  }

  .fm-career-direct__visual {
    width: min(62vw, 210px);
  }

  .fm-career-merge {
    margin-top: 48px !important;
  }

  .fm-career-goal {
    padding: 49px 18px 24px;
    border-radius: 26px;
  }

  .fm-career-goal > h3 {
    font-size: 24px;
  }

  .fm-career-goal__options {
    gap: 20px;
    margin-top: 24px;
  }

  .fm-career-option {
    display: flex;
    padding: 24px 18px 28px;
    text-align: center;
  }

  .fm-career-option figure {
    width: 112px;
    height: 102px;
  }

  .fm-career-option h4 {
    font-size: 20px;
  }

  .fm-career-option h4 br {
    display: initial;
  }

  .fm-career-option > p:last-child {
    font-size: 13px;
  }

  .fm-career-assurances {
    padding: 20px 17px !important;
  }

  .fm-career-assurances li {
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 5px;
    font-size: 13px;
    line-height: 1.7;
  }

  .fm-career__cta {
    gap: 16px;
    margin-top: 30px;
    font-size: 15px;
  }

  .fm-staff__heading {
    padding-bottom: 18px;
  }

  .fm-staff__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .fm-staff__profiles {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .fm-staff-card--instructor {
    grid-column: auto;
  }

  .fm-staff-card article,
  .fm-staff-card--support article,
  .fm-staff-card--instructor article {
    height: auto;
    min-height: 535px;
  }

  .fm-staff-card__portrait {
    height: clamp(215px, 63vw, 290px);
  }

  .fm-staff-card__body {
    padding: 14px 25px 34px;
  }

  .fm-staff-card__role {
    font-size: 15px;
  }

  .fm-staff-card__role img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .fm-staff-card h3 {
    font-size: 25px;
  }

  .fm-staff-card__bio {
    font-size: 15px;
  }

  .fm-staff-card__bio br {
    display: none;
  }

  .fm-staff__team {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    width: 220px;
    margin: 36px auto 0;
  }

  .fm-staff__link {
    min-width: 0;
    margin-top: 38px;
    font-size: 18px;
  }

  .fm-section-connector--career-staff,
  .fm-section-connector--staff-next {
    right: auto;
    left: 50%;
    width: 150vw;
    opacity: 0.18;
    transform: translate(-50%, 55%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-staff__team img {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

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

  .fm-motion .fm-section [data-reveal] {
    opacity: 1;
    translate: none;
  }
}
