/* TMPI animated components (brand-book skill set), styled on the site's own
   tokens. Behaviour lives in js/components.js. Each block is marked
   data-bbc="<name>"; every animation stops for prefers-reduced-motion. */

:root {
  --bb-primary: var(--navy);
  --bb-primary-hover: var(--navy-dark);
  --bb-secondary: var(--sky);
  --bb-accent-on-dark: #38b6e8;
  --bb-ink: var(--ink);
  --bb-muted: rgba(11, 37, 64, 0.65);
  --bb-line: rgba(11, 37, 64, 0.12);
  --bb-surface: var(--offwhite);
  --bb-tint: var(--navy-tint);
}

/* ---------- Count-up numbers ---------- */
.is-counting { font-variant-numeric: tabular-nums; }

/* ---------- Two-paths switch (homepage) ---------- */
.paths-switch { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bbc-sw__tabs {
  position: relative; display: inline-flex; padding: 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--bb-line);
  box-shadow: 0 14px 30px -22px rgba(11, 37, 64, 0.5);
}
.bbc-sw__thumb {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px;
  background: var(--navy); box-shadow: 0 10px 22px -12px rgba(1, 101, 167, 0.9);
}
.bbc-sw__thumb.is-ready { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.bbc-sw__tabs button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; font: 600 14px/1 Inter, ui-sans-serif, sans-serif;
  color: var(--bb-muted); transition: color 0.3s;
}
.bbc-sw__tabs button[aria-selected="true"] { color: #fff; }
.bbc-sw__tabs button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.bbc-sw__panels { display: grid; width: 100%; }
.bbc-sw__panel {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.5s;
}
.bbc-sw__panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bbc-sw__panel.is-active .solution-card__list-item { animation: bbc-sw-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bbc-sw__panel.is-active .solution-card__list-item:nth-child(2) { animation-delay: 0.08s; }
.bbc-sw__panel.is-active .solution-card__list-item:nth-child(3) { animation-delay: 0.16s; }
@keyframes bbc-sw-in { from { opacity: 0; transform: translateX(-8px); } }
@media (min-width: 860px) {
  .paths-switch .solution-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
  .paths-switch .solution-card__media { aspect-ratio: auto; min-height: 340px; }
  .paths-switch .solution-card__body { justify-content: center; padding: 34px 38px; }
}

/* ---------- Industries band: accent rotator + marquee (homepage) ---------- */
.industries-band__card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  padding: clamp(32px, 5vw, 64px) 0 clamp(26px, 4vw, 40px); color: #fff;
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(1, 101, 167, 0.35) 0%, rgba(1, 101, 167, 0) 70%),
    linear-gradient(140deg, #0b2540 0%, #0b2a49 52%, #0d3357 100%);
}
.industries-band__card > .hero-card__constellation { z-index: -1; }
/* The site's white text halo is for light panels; off on this dark card. */
.industries-band__card { --text-halo: none; --text-halo-glow: none; }
.industries-band__head { padding: 0 clamp(24px, 5vw, 64px); margin-bottom: clamp(28px, 4vw, 44px); }
.industries-band__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font: 600 11px/1 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bb-accent-on-dark);
}
.industries-band__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.industries-band__title { margin: 0; color: #fff; }
.industries-band__sub { margin: 14px 0 0; max-width: 560px; color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.6; }
.bbc-rot__slot {
  position: relative; display: inline-block; height: 1.3em; vertical-align: -0.3em; overflow: hidden;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bbc-rot__word {
  position: absolute; left: 0; bottom: 0.08em; white-space: nowrap; padding-right: 0.12em;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.12em; line-height: 1.1;
  color: var(--bb-accent-on-dark); opacity: 0; filter: blur(6px); transform: translateY(105%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, filter 0.5s ease;
}
.bbc-rot__word.is-in { opacity: 1; filter: none; transform: none; }
.bbc-rot__word.is-out { opacity: 0; filter: blur(6px); transform: translateY(-105%); }

.bbc-mq {
  display: grid; gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bbc-mq__row { overflow: hidden; }
.bbc-mq__track { display: flex; gap: 12px; width: max-content; padding: 2px 0; }
.bbc-mq.is-running .bbc-mq__track { animation: bbc-mq-scroll var(--bbc-mq-speed, 40s) linear infinite; }
.bbc-mq.is-running .bbc-mq__row--rev .bbc-mq__track { animation-direction: reverse; animation-duration: calc(var(--bbc-mq-speed, 40s) * 1.15); }
.bbc-mq:hover .bbc-mq__track { animation-play-state: paused; }
.bbc-mq__chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; white-space: nowrap;
  font: 700 15px/1 Manrope, sans-serif; letter-spacing: -0.01em; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
a.bbc-mq__chip:hover { border-color: var(--sky); background: rgba(28, 163, 215, 0.14); transform: translateY(-2px); }
.bbc-mq__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(28, 163, 215, 0.18); color: var(--bb-accent-on-dark); }
.bbc-mq__row--rev .bbc-mq__ico { background: var(--sky); color: #fff; }
.bbc-mq__ico svg { width: 18px; height: 18px; }
@keyframes bbc-mq-scroll { to { transform: translateX(-50%); } }

/* ---------- Now-hiring ticker in the closing CTA (homepage) ---------- */
@media (min-width: 960px) {
  .cta-row--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; column-gap: 40px; }
  .cta-row--split > :not(.bbc-jobs) { grid-column: 1; }
  .cta-row--split > .bbc-jobs { grid-column: 2; grid-row: 1 / span 3; }
}
.bbc-jobs { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid rgba(1, 101, 167, 0.12); min-width: 0; }
.bbc-jobs__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bbc-jobs__live {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 11px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(28, 163, 215, 0.32); font: 600 13px/1 Inter, sans-serif; color: var(--ink);
}
.bbc-jobs__live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22a06b; }
.bbc-jobs__live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22a06b; animation: bbc-jobs-ping 1.8s ease-out infinite; }
.bbc-jobs__count { font: 800 13px/1 Manrope, sans-serif; color: var(--navy); }
.bbc-jobs__window {
  --row: 68px; position: relative; height: calc(var(--row) * 3 + 16px); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 82%, transparent);
}
.bbc-jobs__list { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.bbc-jobs__list.is-moving { transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1); }
.bbc-job a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; height: calc(var(--row) - 8px);
  padding: 0 14px; border-radius: 16px; background: var(--offwhite); color: var(--ink); text-decoration: none;
  border: 1px solid transparent; transition: border-color 0.2s, background 0.2s;
}
.bbc-job a:hover { border-color: rgba(1, 101, 167, 0.3); background: #fff; }
.bbc-job__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-tint); color: var(--navy); }
.bbc-job__ico svg { width: 20px; height: 20px; }
.bbc-job__text { min-width: 0; }
.bbc-job b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 14.5px/1.25 Manrope, sans-serif; letter-spacing: -0.01em; }
.bbc-job small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--bb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbc-job small [data-icon] { display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.bbc-job small svg { width: 13px; height: 13px; }
@keyframes bbc-jobs-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- Process stepper (What We Offer) ---------- */
.bbc-steps { --p: 0; color: var(--ink); }
.bbc-steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.bbc-steps__track { position: absolute; border-radius: 2px; background: var(--bb-line); pointer-events: none; }
.bbc-steps__fill {
  position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--sky));
  transform: scaleX(var(--p)); transform-origin: left; transition: transform 0.7s cubic-bezier(0.45, 0, 0.25, 1);
}
.bbc-steps.is-vertical .bbc-steps__fill { background: linear-gradient(180deg, var(--navy), var(--sky)); transform: scaleY(var(--p)); transform-origin: top; }
.bbc-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.bbc-step__node {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #fff; border: 2px solid var(--bb-line); color: rgba(11, 37, 64, 0.4);
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.bbc-step__node svg { width: 26px; height: 26px; }
.bbc-step__node::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--sky); opacity: 0; }
.bbc-step__num { margin-top: 6px; font: 600 11px/1 Inter, sans-serif; letter-spacing: 0.14em; color: var(--bb-muted); }
.bbc-step .engage__title { margin: 0; }
.bbc-step .engage__text { margin: 0; max-width: 24ch; opacity: 0.5; transition: opacity 0.4s; }
.bbc-step.is-on .bbc-step__node { background: var(--navy); border-color: var(--navy); color: #fff; animation: bbc-step-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bbc-step.is-on .bbc-step__node::after { animation: bbc-step-ring 1s ease-out; }
.bbc-step.is-on .bbc-step__num { color: var(--sky); }
.bbc-step.is-on .engage__text { opacity: 1; }
.bbc-steps.is-reset * { transition: none !important; animation: none !important; }
@keyframes bbc-step-pop { 40% { transform: scale(1.14); } }
@keyframes bbc-step-ring { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@media (max-width: 767px) {
  .bbc-steps__list { grid-template-columns: 1fr; gap: 24px; }
  .bbc-step { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; text-align: left; align-items: start; }
  .bbc-step__node { grid-row: 1 / 4; }
  .bbc-step__num { margin-top: 4px; }
  .bbc-step .engage__text { max-width: none; }
}

/* ---------- Accreditation seal (What We Offer, PRC block) ---------- */
.bbc-seal { margin: 0; }
.bbc-seal__svg { display: block; width: 100%; height: auto; overflow: visible; }
.bbc-seal__ring { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 578; stroke-dashoffset: 578; transform: rotate(-90deg); transform-origin: 100px 100px; }
.bbc-seal__spin { opacity: 0; transform-origin: 100px 100px; }
.bbc-seal__text { font: 700 11.5px Manrope, sans-serif; letter-spacing: 0.06em; fill: var(--ink); }
.bbc-seal__disc { fill: var(--navy); transform: scale(0.4); transform-origin: 100px 100px; opacity: 0; }
.bbc-seal__pulse { fill: none; stroke: var(--sky); stroke-width: 2; opacity: 0; transform-origin: 100px 100px; }
.bbc-seal__check { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.bbc-seal.is-in .bbc-seal__ring { transition: stroke-dashoffset 1.3s cubic-bezier(0.65, 0, 0.35, 1); stroke-dashoffset: 0; }
.bbc-seal.is-in .bbc-seal__spin { opacity: 1; transition: opacity 0.8s ease 0.5s; animation: bbc-seal-spin 28s linear infinite; }
.bbc-seal.is-in .bbc-seal__disc { opacity: 1; transform: none; transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s, opacity 0.3s 0.45s; }
.bbc-seal.is-in .bbc-seal__check { stroke-dashoffset: 0; transition: stroke-dashoffset 0.55s cubic-bezier(0.65, 0, 0.35, 1) 1s; }
.bbc-seal.is-in .bbc-seal__pulse { animation: bbc-seal-pulse 3s ease-out 1.6s infinite; }
@keyframes bbc-seal-spin { to { transform: rotate(360deg); } }
@keyframes bbc-seal-pulse { 0% { opacity: 0.7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.32); } }
.offer-feature__seal { display: none; }
@media (min-width: 900px) {
  .offer-feature--seal { padding-right: 250px; }
  .offer-feature__seal { display: block; position: absolute; top: 50%; right: 40px; width: 180px; transform: translateY(-50%); }
}

/* ---------- Upcoming training dates (What We Offer, PRC block) ---------- */
.training-dates { margin: 18px 0 20px; }
.training-dates__label { margin: 0 0 10px; font: 600 11px/1 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.training-dates__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.training-dates__item {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 16px;
  background: #fff; border: 1px solid rgba(1, 101, 167, 0.14);
}
.training-dates__item[hidden] { display: none; }
.training-dates__cal {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; overflow: hidden;
  background: var(--navy); color: #fff; text-align: center; line-height: 1;
}
.training-dates__cal b { display: block; width: 100%; padding: 4px 0 3px; background: var(--sky); font: 700 10px/1 Inter, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.training-dates__cal span { font: 800 15px/1 Manrope, sans-serif; letter-spacing: -0.02em; padding-bottom: 4px; }
.training-dates__text strong { display: block; font: 700 15px/1.25 Manrope, sans-serif; color: var(--ink); }
.training-dates__text small { display: block; margin-top: 3px; font-size: 13px; color: var(--bb-muted); }

/* ---------- IPPS countdown (What We Offer; hidden until a deadline is set) ---------- */
.bbc-count {
  position: relative; overflow: hidden; margin-top: 16px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--sky)); container-type: inline-size;
}
.bbc-count::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), transparent 45%); pointer-events: none; }
/* Certificate background (TMPI's PRC Certificate of Accreditation): blurred,
   toned into the blue and faded in from the left so it sits behind the clock
   and never under the copy. */
.bbc-count__bg {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%; pointer-events: none;
  background: url("../assets/images/prc-accreditation-certificate.jpg") center / cover no-repeat;
  filter: grayscale(1) blur(1.5px) contrast(1.15);
  mix-blend-mode: luminosity; opacity: 0.28;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
@container (max-width: 620px) { .bbc-count__bg { width: 100%; opacity: 0.16; -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 70%); mask-image: linear-gradient(180deg, transparent 10%, #000 70%); } }
/* Full row inside the What We Offer services grid, like the PRC block. */
.offer-svcs > .bbc-count { grid-column: 1 / -1; margin-top: 0; }
.bbc-count { --text-halo: none; --text-halo-glow: none; }
.bbc-count__inner { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 32px; padding: clamp(24px, 3vw, 34px); }
.bbc-count__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 11px/1 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.bbc-count__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.bbc-count h3 { margin: 0; font: 800 clamp(22px, 2.6vw, 30px)/1.12 Manrope, sans-serif; letter-spacing: -0.02em; }
.bbc-count h3 em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.12em; }
.bbc-count__sub { margin: 10px 0 0; max-width: 42ch; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.bbc-count__right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.bbc-count__clock { display: flex; gap: 8px; }
.bbc-count__unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bbc-count__num { display: flex; gap: 2px; padding: 10px; border-radius: 14px; background: rgba(11, 37, 64, 0.28); border: 1px solid rgba(255, 255, 255, 0.22); }
.bbc-count__d { position: relative; display: block; width: 0.62em; height: 1.1em; overflow: hidden; font: 800 clamp(26px, 3vw, 36px)/1.1 Manrope, sans-serif; font-variant-numeric: tabular-nums; text-align: center; }
.bbc-count__d span { position: absolute; inset: 0; }
.bbc-count__d span.is-new { animation: bbc-count-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.bbc-count__d span.is-old { animation: bbc-count-out 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.bbc-count__unit small { font: 600 10px/1 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.bbc-count__closed { margin: 0; font: 700 16px/1.4 Manrope, sans-serif; }
@keyframes bbc-count-in { from { transform: translateY(100%); } }
@keyframes bbc-count-out { to { transform: translateY(-100%); } }
@container (max-width: 620px) { .bbc-count__inner { grid-template-columns: 1fr; } .bbc-count__right { align-items: flex-start; } }
@container (max-width: 380px) { .bbc-count__inner { padding: 22px; } .bbc-count__num { padding: 8px 6px; } .bbc-count__d { font-size: 24px; } }

/* ---------- Nationwide reach map (Who We Are, Growth chapter) ---------- */
.reach-card {
  display: grid; gap: 22px; align-items: center; margin: 26px 0 28px; padding: 26px;
  border-radius: 24px; background: var(--offwhite); border: 1px solid rgba(1, 101, 167, 0.1);
}
@media (min-width: 720px) { .reach-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 30px 34px; } }
.reach-card__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 11px/1 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.reach-card__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.reach-card h3 { margin: 0; font: 800 clamp(22px, 2.4vw, 28px)/1.15 Manrope, sans-serif; letter-spacing: -0.02em; color: var(--ink); }
.reach-card h3 em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.12em; color: var(--sky); }
.reach-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--bb-muted); }
.reach-card__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--bb-muted); }
.reach-card__legend span { display: inline-flex; align-items: center; gap: 7px; }
.reach-card__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.reach-card__legend span:first-child i { background: var(--navy); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--navy); }
.bbc-map__svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; overflow: visible; }
.bbc-map__land { fill: #dcebf6; stroke: rgba(1, 101, 167, 0.22); stroke-width: 0.6; stroke-linejoin: round; }
.bbc-map__route { fill: none; stroke: var(--sky); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.85; }
.bbc-map.is-in .bbc-map__route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s); }
.bbc-map__pulse { fill: #fff; stroke: var(--sky); stroke-width: 1.4; opacity: 0; }
.bbc-map__hub { fill: var(--sky); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.bbc-map.is-in .bbc-map__hub { transform: none; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--d, 0s) + 0.9s); }
.bbc-map__ripple { fill: none; stroke: var(--sky); stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: 0; }
.bbc-map.is-in .bbc-map__ripple { animation: bbc-map-ripple 2.6s ease-out calc(var(--d, 0s) + 1.2s) infinite; }
.bbc-map__hq { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.bbc-map__hq-ring { fill: none; stroke: var(--navy); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.bbc-map.is-in .bbc-map__hq-ring { animation: bbc-map-ripple 2s ease-out infinite; }
.bbc-map__label { font: 700 9px Manrope, sans-serif; fill: var(--ink); }
@keyframes bbc-map-ripple { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

/* ---------- Reduced motion: final states, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .bbc-sw__thumb.is-ready, .bbc-sw__panel, .bbc-rot__word, .bbc-rot__slot { transition: none; }
  .bbc-sw__panel.is-active .solution-card__list-item, .bbc-jobs__live i::after { animation: none; }
  .bbc-mq { -webkit-mask-image: none; mask-image: none; }
  .bbc-mq__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .bbc-jobs__window { overflow: auto; -webkit-mask-image: none; mask-image: none; }
  .bbc-steps *, .bbc-seal *, .bbc-map *, .bbc-count * { transition: none !important; animation: none !important; }
  .bbc-map__pulse { display: none; }
}

/* ---------- Homepage tree: room for the roots under the closing CTA ---------- */
.home-roots { padding-bottom: 96px; }
@media (min-width: 1024px) {
  .home-roots { padding-bottom: 150px; }
}

/* ---------- Homepage IPPS countdown strip ---------- */
.ipps-strip { padding-top: clamp(16px, 2vw, 24px); padding-bottom: 0; }
.bbc-count--strip { margin-top: 0; border-radius: 22px; }
.bbc-count--strip .bbc-count__inner { padding: 20px clamp(20px, 3vw, 32px); gap: 16px 28px; }
.bbc-count--strip .bbc-count__eyebrow { margin-bottom: 8px; }
.bbc-count__title { margin: 0; font: 800 clamp(20px, 2.1vw, 26px)/1.15 Manrope, sans-serif; letter-spacing: -0.02em; color: #fff; }
.bbc-count__title em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.12em; }
.bbc-count--strip .bbc-count__sub { margin-top: 6px; }
.bbc-count__sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bbc-count--strip .bbc-count__right { flex-direction: row; align-items: center; gap: 20px; }
.bbc-count--strip .bbc-count__num { padding: 8px; border-radius: 12px; }
.bbc-count--strip .bbc-count__d { font-size: clamp(22px, 2.2vw, 28px); }
.bbc-count--strip .bbc-count__bg { width: 55%; opacity: 0.22; }
@container (max-width: 860px) {
  .bbc-count--strip .bbc-count__inner { grid-template-columns: 1fr; }
  .bbc-count--strip .bbc-count__right { flex-wrap: wrap; gap: 14px 18px; }
}
@container (max-width: 420px) {
  .bbc-count--strip .bbc-count__right { flex-direction: column; align-items: stretch; }
  .bbc-count--strip .bbc-count__right .pill-btn { justify-content: center; }
}

/* ---------- People in Motion steps (homepage + What We Offer) ---------- */
/* The hero's People in Motion card, scaled up, over the engagement stepper. */
.motion-section { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(8px, 1.5vw, 16px); }
.motion-head { margin-bottom: clamp(18px, 2.4vw, 26px); }
.motion-head .offer-group__intro { margin-top: 10px; }
.motion {
  --p: 0; position: relative; container-type: inline-size;
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 3vw, 34px) clamp(24px, 3vw, 34px);
  border-radius: 28px; background: #fff; border: 1px solid rgba(1, 101, 167, 0.12);
  box-shadow: 0 30px 60px -46px rgba(11, 37, 64, 0.55);
}
.motion__head { display: flex; align-items: center; gap: 12px; }
.motion__badge {
  display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff;
}
.motion__badge svg { width: 18px; height: 18px; }
.motion__title { font: 700 16px/1.2 Manrope, ui-sans-serif, sans-serif; letter-spacing: -0.01em; color: var(--ink); }
.motion__count { margin-left: auto; font-size: 13px; font-weight: 600; color: rgba(11, 37, 64, 0.45); font-variant-numeric: tabular-nums; }
.motion__progress { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; margin: 16px 0 clamp(26px, 3vw, 36px); }
.motion__seg { display: flex; align-items: center; gap: 5px; }
.motion__bar { position: relative; flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: #e6edf4; }
.motion__bar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--sky)); transform: scaleX(0); transform-origin: left;
}
.motion__seg.is-done .motion__bar::before { transform: scaleX(1); transition: transform 0.3s ease; }
.motion__seg.is-active .motion__bar::before { animation: motion-fill var(--motion-ms, 3200ms) linear forwards; }
.motion__tick {
  display: grid; place-items: center; flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%;
  background: #e6edf4; color: transparent; transition: background-color 0.3s ease, color 0.3s ease;
}
.motion__tick svg { width: 10px; height: 10px; }
.motion__seg.is-done .motion__tick { background: var(--navy); color: #fff; }
@keyframes motion-fill { to { transform: scaleX(1); } }

.motion__steps { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.motion__track { position: absolute; border-radius: 2px; background: var(--bb-line); pointer-events: none; }
.motion__fill {
  position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--sky));
  transform: scaleX(var(--p)); transform-origin: left; transition: transform 0.7s cubic-bezier(0.45, 0, 0.25, 1);
}
.motion.is-vertical .motion__fill { background: linear-gradient(180deg, var(--navy), var(--sky)); transform: scaleY(var(--p)); transform-origin: top; }
.motion-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.motion-step__node {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #fff; border: 2px solid var(--bb-line); color: rgba(11, 37, 64, 0.4);
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s;
}
.motion-step__node svg { width: 24px; height: 24px; }
.motion-step__node::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--sky); opacity: 0; }
.motion-step__check {
  position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky); color: #fff; border: 2px solid #fff; transform: scale(0); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.motion-step__check svg { width: 11px; height: 11px; }
.motion-step__num { margin-top: 6px; font: 600 11px/1 Inter, sans-serif; letter-spacing: 0.14em; color: var(--bb-muted); }
.motion-step__title { margin: 0; font: 700 15.5px/1.25 Manrope, sans-serif; letter-spacing: -0.01em; color: var(--ink); }
.motion-step__text { margin: 0; max-width: 22ch; font-size: 13px; line-height: 1.5; color: var(--bb-muted); opacity: 0.45; transition: opacity 0.4s; }
.motion-step.is-done .motion-step__node { background: var(--navy-tint); border-color: rgba(1, 101, 167, 0.25); color: var(--navy); }
.motion-step.is-done .motion-step__check { transform: scale(1); }
.motion-step.is-done .motion-step__text { opacity: 0.75; }
.motion-step.is-active .motion-step__node { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.08); }
.motion-step.is-active .motion-step__node::after { animation: bbc-step-ring 1.6s ease-out infinite; }
.motion-step.is-active .motion-step__num { color: var(--sky); }
.motion-step.is-active .motion-step__text { opacity: 1; }
@container (max-width: 860px) {
  .motion__steps { grid-template-columns: 1fr; gap: 20px; }
  .motion-step { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; text-align: left; align-items: start; }
  .motion-step__node { grid-row: 1 / 4; }
  .motion-step__num { margin-top: 4px; }
  .motion-step__text { max-width: none; }
  .motion__progress { gap: 5px; }
  .motion__tick { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .motion *, .motion *::before, .motion *::after { transition: none !important; animation: none !important; }
}

/* ---------- People in Motion inside the hero card (24 Oct 2026) ---------- */
/* Replaces the small card that floated on the map: on phones it closes the
   stacked card (where that card sat); on desktop it runs the full width of
   the card under the text and the map. */
.hero-card { grid-template-areas: "head" "blurb" "cta" "visual" "motion"; }
@media (min-width: 1024px) {
  .hero-card {
    grid-template-rows: 1fr auto auto auto 1fr auto;
    grid-template-areas:
      ".      visual"
      "head   visual"
      "blurb  visual"
      "cta    visual"
      ".      visual"
      "motion motion";
  }
  /* The map keeps its full square; the card grows to hold it plus the band. */
  .hero-card > .hero-orbit { aspect-ratio: 1; }
}
.motion--hero {
  grid-area: motion; z-index: 1;
  background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  --text-halo: none; --text-halo-glow: none;
  padding: 18px clamp(16px, 2.4vw, 28px) 22px;
}
.motion--hero .motion__title { color: #fff; }
.motion--hero .motion__count { color: rgba(255, 255, 255, 0.55); }
.motion--hero .motion__progress { margin: 14px 0 22px; }
.motion--hero .motion__bar, .motion--hero .motion__tick { background: rgba(255, 255, 255, 0.12); }
.motion--hero .motion__bar::before { background: linear-gradient(90deg, var(--sky), #7fd3f2); }
.motion--hero .motion__seg.is-done .motion__tick { background: var(--sky); }
.motion--hero .motion__track { background: rgba(255, 255, 255, 0.14); }
.motion--hero .motion__fill { background: linear-gradient(90deg, var(--sky), #7fd3f2); }
.motion--hero.is-vertical .motion__fill { background: linear-gradient(180deg, var(--sky), #7fd3f2); }
.motion--hero .motion-step__node {
  width: 50px; height: 50px; background: #0d2c4c; border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.5);
}
.motion--hero .motion-step__node svg { width: 22px; height: 22px; }
.motion--hero .motion-step__check { border-color: #0b2540; }
.motion--hero .motion-step__num { color: rgba(255, 255, 255, 0.5); }
.motion--hero .motion-step__title { color: #fff; font-size: 14.5px; }
.motion--hero .motion-step__text { color: rgba(255, 255, 255, 0.72); font-size: 12.5px; }
.motion--hero .motion-step.is-done .motion-step__node { background: rgba(28, 163, 215, 0.16); border-color: rgba(28, 163, 215, 0.55); color: #fff; }
.motion--hero .motion-step.is-active .motion-step__node {
  background: linear-gradient(135deg, var(--navy), var(--sky)); border-color: var(--sky); color: #fff;
}
.motion--hero .motion-step.is-active .motion-step__num { color: #38b6e8; }
@container (max-width: 860px) {
  .motion--hero .motion__steps { gap: 14px; }
  .motion--hero .motion-step { grid-template-columns: 50px 1fr; column-gap: 14px; }
  /* Compact on phones: only the active step shows its line of copy. */
  .motion--hero .motion-step__text { display: none; }
  .motion--hero .motion-step.is-active .motion-step__text { display: block; }
}
