/*----------------------------------------------
Home page. Loaded after about-page.css and reuses its banner,
wrap, titles, cards, buttons and service grid; only the
home-specific blocks live here.
----------------------------------------------*/

/* style.css gives every button a 12px top margin, which pushes the
   tabs and arrows on this page off their alignment */
.hm-page button {
  margin: 0;
}

/* Hero slider: every banner is a full-width photo under a navy overlay.
   All slides share one grid cell, so the hero is as tall as the tallest slide
   and nothing jumps when they change. */
.abt-hero.hm-slider {
  background: #09377a;
  --hm-interval: 6.5s;
}

/* The wave from about-page.css stays on top of the photos */
.hm-slider::after {
  z-index: 3;
}

.hm-slides {
  display: grid;
}

.hm-slide {
  grid-area: 1 / 1;
  opacity: 0;
  overflow: hidden;
  position: relative;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
  visibility: hidden;
}

.hm-slide.is-active {
  opacity: 1;
  transition: opacity 0.9s ease, visibility 0s;
  visibility: visible;
  z-index: 1;
}

.hm-slide-bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.02);
  transition: transform 8s ease-out;
  width: 100%;
}

.hm-slide.is-active .hm-slide-bg {
  transform: scale(1.12);
}

.hm-slide::before {
  background:
    linear-gradient(90deg, rgba(7, 40, 92, 0.96) 0%, rgba(9, 55, 122, 0.88) 38%, rgba(18, 81, 160, 0.45) 68%, rgba(18, 81, 160, 0.15) 100%),
    linear-gradient(0deg, rgba(7, 40, 92, 0.55) 0%, rgba(7, 40, 92, 0) 40%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hm-slide-inner {
  align-items: center;
  display: flex;
  min-height: 580px;
  padding-bottom: 210px;
  padding-top: 60px;
  position: relative;
  z-index: 2;
}

.hm-slide-text {
  max-width: 640px;
}

/* Text rises in, one line after another, when its slide becomes active */
.hm-slide-text > * {
  opacity: 0;
  transform: translateY(24px);
}

.hm-slide.is-active .hm-slide-text > * {
  animation: hmRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hm-slide.is-active .hm-slide-text > :nth-child(2) { animation-delay: 0.12s; }
.hm-slide.is-active .hm-slide-text > :nth-child(3) { animation-delay: 0.24s; }
.hm-slide.is-active .hm-slide-text > :nth-child(4) { animation-delay: 0.36s; }

@keyframes hmRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hm-pill {
  align-items: center;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 14px;
}

.hm-pill i {
  color: #7cc9ff;
}

.hm-slider .hm-slide-title {
  color: #ffffff;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 18px;
}

.hm-slider .hm-slide-title span {
  color: #7cc9ff;
  display: block;
}

.hm-hero-lead,
.hm-hero-lead p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.hm-hero-actions {
  margin-top: 30px;
}

.hm-btn-ghost {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.hm-btn-ghost:hover {
  background: #ffffff;
  color: #0d3a8c;
}

/* Slide tabs and arrows, sitting just above the wave */
.hm-slider-nav {
  align-items: flex-end;
  bottom: 112px;
  display: flex;
  gap: 32px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 4;
}

.hm-tabs {
  display: grid;
  flex: 1 1 auto;
  gap: 18px;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
}

.hm-tab {
  align-items: baseline;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: grid;
  gap: 0 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0 0 4px;
  text-align: left;
  transition: color 0.2s ease;
}

.hm-tab:hover,
.hm-tab.is-active {
  color: #ffffff;
}

.hm-tab:focus-visible,
.hm-arrow:focus-visible {
  outline: 2px solid #7cc9ff;
  outline-offset: 4px;
}

.hm-tab-bar {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  display: block;
  grid-column: 1 / -1;
  height: 3px;
  margin-bottom: 10px;
  overflow: hidden;
}

.hm-tab-bar span {
  background: linear-gradient(90deg, #35b0f6, #7cc9ff);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
}

/* The fill doubles as the autoplay timer: home-slider.js moves on when it ends */
.hm-tab.is-active .hm-tab-bar span {
  animation: hmProgress var(--hm-interval) linear forwards;
}

.hm-slider.is-paused .hm-tab.is-active .hm-tab-bar span {
  animation-play-state: paused;
}

@keyframes hmProgress {
  to {
    transform: scaleX(1);
  }
}

.hm-tab-no {
  font-size: 13px;
  font-weight: 700;
}

.hm-tab-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-arrows {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.hm-arrow {
  align-items: center;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  height: 46px;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 46px;
}

.hm-arrow:hover {
  background: #ffffff;
  color: #0d3a8c;
}

@media (prefers-reduced-motion: reduce) {
  .hm-slide,
  .hm-slide.is-active,
  .hm-slide-bg {
    transition: none;
  }

  .hm-slide.is-active .hm-slide-bg {
    transform: scale(1.02);
  }

  /* No autoplay: without the timer animation the slides only change on request */
  .hm-tab.is-active .hm-tab-bar span {
    animation: none;
    transform: scaleX(1);
  }

  .hm-slide-text > *,
  .hm-slide.is-active .hm-slide-text > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Account menu beside the banner for logged-in labs. It stays put while the
   slides change; the slide text and tabs move right to make room for it. */
/* Centred top to bottom in the banner, leaving out the 90px wave at its foot */
.hm-lab-menu-wrap {
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(50% - 45px);
  transform: translateY(-50%);
  z-index: 5;
}

/* Pinned to the left edge of the screen: flat on that side, rounded on the other */
.hm-lab-menu {
  backdrop-filter: blur(12px);
  background: rgba(6, 30, 72, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 0;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 24px 50px rgba(2, 16, 46, 0.35);
  padding: 12px 12px 12px 16px;
  pointer-events: auto;
  width: 250px;
}

.hm-lab-menu-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  padding: 4px 6px 12px;
}

.hm-lab-avatar {
  align-items: center;
  background: linear-gradient(90deg, #1d5fd6, #35b0f6);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex: 0 0 38px;
  font-size: 16px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
}

.hm-lab-menu-head strong {
  color: #ffffff;
  display: block;
  font-size: 14.5px;
  line-height: 1.3;
}

.hm-lab-menu-head span:not(.hm-lab-avatar) {
  color: #7cc9ff;
  display: block;
  font-size: 12px;
}

.hm-lab-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-lab-menu a {
  align-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  padding: 8px 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hm-lab-menu a i {
  color: #7cc9ff;
  font-size: 14px;
  text-align: center;
  width: 18px;
}

.hm-lab-menu a:hover,
.hm-lab-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hm-lab-menu-logout {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 6px;
  padding-top: 6px;
}

.hm-lab-menu-logout a i {
  color: #ff9b94;
}

/* Room for the menu. The menu ends 250px from the screen edge and the text
   should start at least 282px in. The page content already starts at
   (screen width - 1240px) / 2 + 24px, so only the shortfall is added; on wide
   screens the text stays where it normally is. */
.has-lab-menu {
  --hm-menu-room: max(0px, calc(258px - max(0px, (100vw - 1240px) / 2)));
}

.has-lab-menu .hm-slide-text {
  margin-left: var(--hm-menu-room);
}

.has-lab-menu .hm-slider-nav {
  padding-left: calc(24px + var(--hm-menu-room));
}

.has-lab-menu .hm-slide-inner {
  min-height: 640px;
}

/* Feature strip, overlapping the hero wave */
.hm-features {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(16, 58, 140, 0.12);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  margin: -70px 0 0;
  padding: 10px;
  position: relative;
  z-index: 5;
}

.hm-features li {
  align-items: center;
  border-radius: 14px;
  color: #10244d;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  line-height: 1.35;
  padding: 20px 12px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.hm-features li + li {
  border-left: 1px solid #e6eef9;
}

.hm-features li:hover {
  background: #f3f8ff;
}

.hm-features img {
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.hm-center {
  text-align: center;
}

.hm-link {
  align-items: center;
  color: #1d5fd6;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  margin-bottom: 22px;
}

.hm-link:hover {
  color: #0d3a8c;
}

/* Services start closer to the Why GPTC box above */
.hm-page .abt-services-inner {
  padding-top: 48px;
}

/* Services: three across so the nine fields fill complete rows */
.hm-page .abt-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-page .abt-service img {
  height: 190px;
}

/* Why GPTC: three tabs over one white card */
.abt-page .hm-why {
  background: #ffffff;
  padding: 72px 0 48px;
}

.hm-why-tabs {
  background: #eef4fc;
  border: 1px solid #dbe6f5;
  border-radius: 20px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 28px;
  max-width: 980px;
  padding: 6px;
}

.hm-why-tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 15px;
  color: #0d2a63;
  cursor: pointer;
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  position: relative;
  text-align: left;
  /* The theme capitalises every button label */
  text-transform: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.hm-why-tab i {
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(16, 58, 140, 0.1);
  color: #1d5fd6;
  display: flex;
  flex: 0 0 44px;
  font-size: 18px;
  height: 44px;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hm-why-tab b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}

.hm-why-tab small {
  color: #5a6b8c;
  display: block;
  font-size: 12.5px;
  margin-top: 2px;
  transition: color 0.25s ease;
}

.hm-why-tab:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hm-why-tab:hover i {
  transform: translateY(-2px);
}

.hm-why-tab.is-active {
  background: linear-gradient(90deg, #1d5fd6 0%, #2e8ff0 60%, #35b0f6 100%);
  box-shadow: 0 12px 26px rgba(29, 95, 214, 0.3);
  color: #ffffff;
}

.hm-why-tab.is-active i {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #ffffff;
}

.hm-why-tab.is-active small {
  color: rgba(255, 255, 255, 0.85);
}

/* Small pointer under the active tab, towards the card */
.hm-why-tab.is-active::after {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #2e8ff0;
  bottom: -9px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.hm-why-tab:focus-visible {
  outline: 2px solid #1d5fd6;
  outline-offset: 3px;
}

.hm-why-panel {
  align-items: center;
  animation: hmPanelIn 0.45s ease;
  background: #f6f9fe;
  border: 1px solid #e1eaf7;
  border-radius: 24px;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  padding: 44px;
}

.hm-why-panel[hidden] {
  display: none;
}

@keyframes hmPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.hm-why-text h3 {
  color: #0d2a63;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
}

.hm-why-text p {
  color: #3f4f70;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.hm-why-media img {
  border-radius: 18px;
  display: block;
  margin: 0 auto;
  max-height: 460px;
  max-width: 100%;
  object-fit: contain;
}

/* Benefits: intro and photo on top, then the seven benefits as
   equal-height cards across the full width of the panel */
.hm-why-panel.hm-why-panel-wide:not([hidden]) {
  display: block;
}

.hm-why-intro {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  margin-bottom: 32px;
}

.hm-why-intro .hm-why-text p {
  margin-bottom: 0;
}

.hm-why-panel-wide .hm-why-media img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.hm-why-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-why-list li {
  background: #ffffff;
  border: 1px solid #e1eaf7;
  border-radius: 16px;
  color: #4a5b7d;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hm-why-list li:hover {
  border-color: #b9d0f3;
  box-shadow: 0 16px 34px rgba(16, 58, 140, 0.12);
  transform: translateY(-3px);
}

/* Seven cards in rows of four: the last one spans the leftover space */
.hm-why-list li:last-child:nth-child(4n + 3) {
  grid-column: span 2;
}

.hm-why-list li > i {
  align-items: center;
  background: linear-gradient(90deg, #1d5fd6, #35b0f6);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(29, 95, 214, 0.22);
  color: #ffffff;
  display: flex;
  font-size: 17px;
  height: 44px;
  justify-content: center;
  margin-bottom: 16px;
  width: 44px;
}

.hm-why-list li b {
  margin-bottom: 6px;
}

.hm-why-list b,
.hm-why-steps b {
  color: #0d2a63;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

/* How to participate: six numbered step cards, three per row,
   with an arrow leading from each card to the next in its row */
.hm-why-steps {
  counter-reset: step;
  display: grid;
  gap: 18px 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-why-steps li {
  background: #ffffff;
  border: 1px solid #e1eaf7;
  border-radius: 16px;
  color: #4a5b7d;
  counter-increment: step;
  font-size: 13.5px;
  line-height: 1.6;
  overflow: visible;
  padding: 22px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hm-why-steps li:hover {
  border-color: #b9d0f3;
  box-shadow: 0 16px 34px rgba(16, 58, 140, 0.12);
  transform: translateY(-3px);
}

/* Large faded step number in the corner */
.hm-why-steps li::before {
  color: #e4effd;
  content: counter(step, decimal-leading-zero);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 16px;
}

/* Arrow to the next step, except after the last card of each row */
.hm-why-steps li:not(:nth-child(3n)):not(:last-child)::after {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d3e1f4;
  border-radius: 50%;
  color: #1d5fd6;
  content: "\2192";
  display: flex;
  font-size: 13px;
  height: 26px;
  justify-content: center;
  position: absolute;
  right: -31px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  z-index: 1;
}

.hm-why-steps li > i {
  align-items: center;
  background: linear-gradient(90deg, #1d5fd6, #35b0f6);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(29, 95, 214, 0.22);
  color: #ffffff;
  display: flex;
  font-size: 17px;
  height: 44px;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  width: 44px;
}

.hm-step-kicker {
  color: #1d5fd6;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.hm-why-steps li b {
  margin-bottom: 6px;
}

.hm-why-steps a {
  color: #1d5fd6;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hm-why-panel {
    animation: none;
  }
}

/* Who we are: a three-topic slider sitting on the page background.
   Slides share one grid cell, so the slider keeps the height of the
   longest topic and the page below never jumps. */
.abt-page .hm-who {
  padding: 72px 0;
}

.hm-who-card {
  --hm-interval: 9s;
}

.hm-who-head {
  align-items: center;
  border-bottom: 1px solid #d3e1f4;
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 24px;
}

.hm-who-head .abt-eyebrow {
  margin: 0;
  white-space: nowrap;
}

.hm-who-tabs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hm-who-tab {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  color: #0d2a63;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  overflow: hidden;
  padding: 7px 18px 7px 7px;
  position: relative;
  text-transform: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  /* style.css makes every button full width */
  width: auto;
}

.hm-who-tab:hover {
  background: #e4effd;
  border-color: #b9d0f3;
}

.hm-who-tab-no {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(16, 58, 140, 0.1);
  color: #1d5fd6;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease;
  width: 30px;
}

.hm-who-tab.is-active {
  background: linear-gradient(90deg, #1d5fd6 0%, #2e8ff0 60%, #35b0f6 100%);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(29, 95, 214, 0.28);
  color: #ffffff;
}

.hm-who-tab.is-active .hm-who-tab-no {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  color: #ffffff;
}

.hm-who-tab:focus-visible,
.hm-who-arrow:focus-visible {
  outline: 2px solid #1d5fd6;
  outline-offset: 3px;
}

/* Countdown line along the bottom of the active pill (also the autoplay timer) */
.hm-who-tab-bar {
  bottom: 0;
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.hm-who-tab-bar span {
  background: rgba(255, 255, 255, 0.85);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
}

.hm-who-tab.is-active .hm-who-tab-bar span {
  animation: hmProgress var(--hm-interval) linear forwards;
}

.hm-who-card.is-paused .hm-who-tab.is-active .hm-who-tab-bar span {
  animation-play-state: paused;
}

.hm-who-arrows {
  display: flex;
  gap: 8px;
}

.hm-who-arrow {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #dbe6f5;
  border-radius: 50%;
  color: #1d5fd6;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  height: 42px;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  width: 42px;
}

.hm-who-arrow:hover {
  background: #1d5fd6;
  border-color: #1d5fd6;
  color: #ffffff;
}

.hm-who-slides {
  display: grid;
}

/* The photo column stretches to the height of the longest topic,
   so shorter topics sit centred beside a full-height photo instead of a gap */
.hm-who-slide {
  align-items: stretch;
  display: grid;
  gap: 56px;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
  visibility: hidden;
}

.hm-who-slide.is-active {
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0s;
  visibility: visible;
}

/* Photo pair */
.hm-who-media {
  padding: 0 40px 40px 0;
  position: relative;
}

/* Dot grid peeking out behind the main photo */
.hm-who-media::before {
  background-image: radial-gradient(#b9d0f3 2px, transparent 2px);
  background-size: 16px 16px;
  content: "";
  height: 140px;
  left: -22px;
  position: absolute;
  top: -22px;
  width: 140px;
}

.hm-who-main {
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(16, 58, 140, 0.18);
  display: block;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.hm-who-inset {
  border: 6px solid #ffffff;
  border-radius: 18px;
  bottom: 0;
  box-shadow: 0 16px 40px rgba(16, 58, 140, 0.22);
  height: 190px;
  object-fit: cover;
  position: absolute;
  right: 0;
  width: 48%;
}

.hm-who-badge {
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16, 58, 140, 0.18);
  display: flex;
  gap: 12px;
  left: -16px;
  max-width: 250px;
  padding: 12px 16px;
  position: absolute;
  top: 28px;
}

.hm-who-badge i {
  align-items: center;
  background: linear-gradient(90deg, #1d5fd6, #35b0f6);
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  flex: 0 0 40px;
  font-size: 16px;
  height: 40px;
  justify-content: center;
}

.hm-who-badge strong {
  color: #0d2a63;
  display: block;
  font-size: 15px;
}

.hm-who-badge span {
  color: #4a5b7d;
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
}

/* Entrance: photo settles, inset slides in, badge drops, text rises line by line */
.hm-who-slide.is-active .hm-who-main {
  animation: hmWhoPhoto 0.9s ease both;
}

.hm-who-slide.is-active .hm-who-inset {
  animation: hmWhoInset 0.8s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hm-who-slide.is-active .hm-who-badge {
  animation: hmWhoBadge 0.6s 0.35s ease both;
}

.hm-who-slide.is-active .hm-who-text > * {
  animation: hmWhoText 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hm-who-slide.is-active .hm-who-text > :nth-child(2) { animation-delay: 0.06s; }
.hm-who-slide.is-active .hm-who-text > :nth-child(3) { animation-delay: 0.12s; }
.hm-who-slide.is-active .hm-who-text > :nth-child(4) { animation-delay: 0.18s; }
.hm-who-slide.is-active .hm-who-text > :nth-child(5) { animation-delay: 0.24s; }
.hm-who-slide.is-active .hm-who-text > :nth-child(n + 6) { animation-delay: 0.3s; }

@keyframes hmWhoPhoto {
  from {
    opacity: 0.3;
    transform: scale(1.05);
  }
}

@keyframes hmWhoInset {
  from {
    opacity: 0;
    transform: translate(28px, 28px);
  }
}

@keyframes hmWhoBadge {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes hmWhoText {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Text column */
.hm-who-text {
  align-self: center;
}

.hm-who-text .abt-title {
  font-size: 30px;
}

.hm-who-text p {
  color: #3f4f70;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 10px;
}

.hm-who-text .abt-actions {
  margin-top: 24px;
}

.hm-who-text .hm-who-sub {
  color: #1d5fd6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 14px 0 6px;
  text-transform: uppercase;
}

.hm-who-text .abt-title + .hm-who-sub {
  margin-top: 0;
}

.hm-who-checks {
  display: grid;
  gap: 10px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.hm-who-checks li {
  align-items: flex-start;
  color: #10244d;
  display: flex;
  font-size: 14.5px;
  font-weight: 500;
  gap: 10px;
  line-height: 1.45;
}

.hm-who-checks i {
  align-items: center;
  background: #e0f6ec;
  border-radius: 50%;
  color: #12804f;
  display: flex;
  flex: 0 0 22px;
  font-size: 10px;
  height: 22px;
  justify-content: center;
  margin-top: 1px;
}

.hm-who-check-wide {
  grid-column: 1 / -1;
}

.hm-zlegend.hm-who-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.hm-zlegend.hm-who-legend li {
  background: none;
  font-size: 13.5px;
  gap: 8px;
  padding: 0;
}

.hm-zlegend.hm-who-legend b {
  min-width: 0;
}

.hm-who-text .hm-zticks {
  margin-bottom: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .hm-who-slide {
    transition: none;
  }

  .hm-who-slide.is-active .hm-who-main,
  .hm-who-slide.is-active .hm-who-inset,
  .hm-who-slide.is-active .hm-who-badge,
  .hm-who-slide.is-active .hm-who-text > * {
    animation: none;
  }

  /* No autoplay: without the timer animation the topics only change on request */
  .hm-who-tab.is-active .hm-who-tab-bar span {
    animation: none;
  }
}

/* Z-score formula and scale (slide 3 of "Who we are") */
.hm-formula {
  background: #0d2a63;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 18px;
  padding: 16px 20px;
}

.hm-zbar {
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr 4fr 1fr 1fr;
  height: 16px;
  overflow: hidden;
}

.hm-z-ok {
  background: #18a765;
}

.hm-z-warn {
  background: #f2b33d;
}

.hm-z-bad {
  background: #e0524a;
}

/* Tick positions line up with the bar segment boundaries (1/8, 2/8, 4/8, 6/8, 7/8) */
.hm-zticks {
  color: #4a5b7d;
  font-size: 12.5px;
  font-weight: 600;
  height: 18px;
  margin: 8px 0 24px;
  position: relative;
}

.hm-zticks span {
  position: absolute;
  transform: translateX(-50%);
}

.hm-zticks span:nth-child(1) { left: 12.5%; }
.hm-zticks span:nth-child(2) { left: 25%; }
.hm-zticks span:nth-child(3) { left: 50%; }
.hm-zticks span:nth-child(4) { left: 75%; }
.hm-zticks span:nth-child(5) { left: 87.5%; }

.hm-zlegend {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-zlegend li {
  align-items: center;
  background: #f6f9fe;
  border-radius: 10px;
  color: #4a5b7d;
  display: flex;
  font-size: 14.5px;
  gap: 12px;
  padding: 10px 14px;
}

.hm-zlegend b {
  color: #0d2a63;
  min-width: 96px;
}

.hm-dot {
  border-radius: 50%;
  flex: 0 0 12px;
  height: 12px;
}

.hm-dot-ok { background: #18a765; }
.hm-dot-warn { background: #f2b33d; }
.hm-dot-bad { background: #e0524a; }

/* Accreditations */
.abt-page .hm-accred {
  overflow: hidden;
  padding: 72px 0;
}

.hm-accred .abt-title {
  margin-bottom: 36px;
}

/* Full-width strip that scrolls forever; the edges fade into the page */
.hm-marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  overflow: hidden;
  padding: 14px 0 30px;
}

.hm-marquee-track {
  animation: hmMarquee 45s linear infinite;
  display: flex;
  width: max-content;
}

.hm-marquee:hover .hm-marquee-track,
.hm-marquee:focus-within .hm-marquee-track {
  animation-play-state: paused;
}

/* Two identical halves: moving by one half lands exactly where it started */
@keyframes hmMarquee {
  to {
    transform: translateX(-50%);
  }
}

.hm-marquee-set {
  display: flex;
  flex: 0 0 auto;
}

.hm-marquee-logo {
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 58, 140, 0.08);
  display: flex;
  height: 100px;
  justify-content: center;
  margin-right: 20px;
  padding: 14px 20px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  width: 180px;
}

.hm-marquee-logo:hover {
  box-shadow: 0 20px 44px rgba(16, 58, 140, 0.16);
  transform: translateY(-4px);
}

.hm-marquee-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.hm-accred-more .hm-link {
  margin: 6px 0 0;
}

/* Without motion the strip stands still and can be scrolled by hand */
@media (prefers-reduced-motion: reduce) {
  .hm-marquee {
    overflow-x: auto;
  }

  .hm-marquee-track {
    animation: none;
  }
}

/* Call to action: a full-width band that runs straight into the footer */
.hm-cta-band {
  background: linear-gradient(90deg, #09377a 0%, #1251a0 60%, #1a5cab 100%);
  overflow: hidden;
  position: relative;
}

.hm-cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  padding-bottom: 48px;
  padding-top: 48px;
  position: relative;
}

.hm-cta-band::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 240'%3E%3Cg fill='%23ffffff' opacity='.07'%3E%3Cpath d='M82 6l32 18v37L82 79 50 61V24z'/%3E%3Cpath d='M44 72l32 18v37l-32 18-32-18V90z'/%3E%3Cpath d='M82 138l32 18v37l-32 18-32-18v-37z'/%3E%3C/g%3E%3C/svg%3E") right 30% center / 110px auto no-repeat;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hm-cta > div {
  position: relative;
}

.hm-cta h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hm-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
  margin: 0;
  max-width: 520px;
}

.hm-cta-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.hm-cta-phone {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  gap: 12px;
}

.hm-cta-phone i {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  font-size: 16px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.hm-cta-phone:hover {
  color: #bfe3ff;
}

.hm-btn-light {
  background: #ffffff;
  color: #0d3a8c;
}

.hm-btn-light:hover {
  background: #e4effd;
  color: #0d3a8c;
  transform: translateY(-1px);
}

@media (max-width: 1199px) {
  .hm-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-features li:nth-child(4) {
    border-left: 0;
  }

  .hm-features li:nth-child(n + 4) {
    border-top: 1px solid #e6eef9;
  }
}

@media (max-width: 991px) {
  /* The account menu becomes a row of pills above the banner text */
  /* A full-width strip from the left edge; it scrolls sideways, and the
     right edge fades to show there is more */
  .hm-lab-menu-wrap {
    padding: 0;
    position: relative;
    top: 0;
    transform: none;
  }

  .hm-lab-menu {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    box-shadow: none;
    mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
    overflow-x: auto;
    padding: 8px 40px 8px 12px;
    scrollbar-width: none;
    width: auto;
  }

  .hm-lab-menu::-webkit-scrollbar {
    display: none;
  }

  .hm-lab-menu-head {
    display: none;
  }

  .hm-lab-menu ul {
    display: flex;
    gap: 4px;
  }

  .hm-lab-menu a {
    white-space: nowrap;
  }

  .hm-lab-menu-logout {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .has-lab-menu .hm-slide-text {
    margin-left: 0;
  }

  .has-lab-menu .hm-slider-nav {
    padding-left: 24px;
  }

  .has-lab-menu .hm-slide-inner {
    min-height: 580px;
  }

  .hm-why-intro {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }

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

  /* Two steps per row; the arrows no longer line up with the order, so they go */
  .hm-why-steps {
    column-gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-why-steps li:not(:nth-child(3n)):not(:last-child)::after {
    display: none;
  }

  /* Two per row: an odd last card takes the whole row */
  .hm-why-list li:last-child:nth-child(4n + 3) {
    grid-column: 1 / -1;
  }

  .hm-slide-inner {
    min-height: 580px;
  }

  .hm-who-head {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hm-who-tabs {
    flex-basis: 100%;
    justify-content: flex-start;
    order: 3;
  }

  /* Stacked, the topics differ too much in height to share one; each takes
     its own height, and autoplay is off so the page below never jumps */
  .hm-who-slides {
    display: block;
    position: relative;
  }

  .hm-who-slide {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
  }

  .hm-who-slide.is-active {
    position: relative;
  }

  .hm-who-tab.is-active .hm-who-tab-bar span {
    animation: none;
  }

  .hm-who-media {
    margin: 0 auto;
    max-width: 560px;
    width: 100%;
  }

  .hm-who-main {
    height: 340px;
    min-height: 0;
  }

  .hm-slider .hm-slide-title {
    font-size: 42px;
  }

  .hm-slide::before {
    background: linear-gradient(90deg, rgba(7, 40, 92, 0.94) 0%, rgba(9, 55, 122, 0.82) 60%, rgba(18, 81, 160, 0.55) 100%);
  }

  /* Numbers only; the titles do not fit five across */
  .hm-tab-label {
    display: none;
  }

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

  .hm-cta {
    padding-bottom: 40px;
    padding-top: 40px;
  }

  .hm-why-tab small {
    display: none;
  }

  .hm-why-panel {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
    padding: 32px;
  }

  .hm-why-media {
    order: -1;
  }

  .hm-why-media img {
    max-height: 300px;
  }
}

@media (max-width: 575px) {
  .has-lab-menu .hm-slider-nav {
    padding-left: 16px;
  }

  .has-lab-menu .hm-slide-inner {
    min-height: 560px;
  }

  .hm-why-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-marquee-logo {
    border-radius: 12px;
    height: 80px;
    margin-right: 14px;
    padding: 10px 14px;
    width: 140px;
  }

  .abt-page .hm-who {
    padding: 48px 0;
  }

  .hm-who-head {
    margin-bottom: 28px;
    padding-bottom: 18px;
  }

  /* Swipe or tap the pills; the arrows would crowd the header */
  .hm-who-arrows {
    display: none;
  }

  .hm-who-tabs {
    flex-wrap: nowrap;
    gap: 6px;
  }

  /* Only the active pill keeps its title, so all three fit on one line */
  .hm-who-tab {
    padding: 6px;
  }

  .hm-who-tab-label {
    display: none;
  }

  .hm-who-tab.is-active {
    padding-right: 14px;
  }

  .hm-who-tab.is-active .hm-who-tab-label {
    display: inline;
    white-space: nowrap;
  }

  .hm-who-media {
    padding: 0 20px 24px 0;
  }

  .hm-who-media::before {
    left: -10px;
    top: -10px;
  }

  .hm-who-main {
    height: 230px;
  }

  .hm-who-inset {
    border-width: 4px;
    height: 110px;
  }

  .hm-who-badge {
    left: 10px;
    max-width: 210px;
    padding: 8px 12px;
    top: 12px;
  }

  .hm-who-text .abt-title {
    font-size: 24px;
  }

  .hm-who-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-slide-inner {
    align-items: flex-start;
    min-height: 560px;
    padding-bottom: 190px;
    padding-top: 40px;
  }

  .hm-slider .hm-slide-title {
    font-size: 32px;
  }

  .hm-hero-lead,
  .hm-hero-lead p {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    display: -webkit-box;
    font-size: 15.5px;
    overflow: hidden;
  }

  .hm-slider-nav {
    bottom: 104px;
    gap: 16px;
  }

  .hm-tabs {
    gap: 8px;
  }

  .hm-tab {
    padding: 8px 0;
  }

  .hm-tab-no {
    display: none;
  }

  .hm-tab-bar {
    margin-bottom: 0;
  }

  .hm-arrow {
    height: 40px;
    width: 40px;
  }

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

  .hm-features li:nth-child(n) {
    border-left: 0;
    border-top: 0;
  }

  .hm-features li:nth-child(even) {
    border-left: 1px solid #e6eef9;
  }

  .hm-features li:nth-child(n + 3) {
    border-top: 1px solid #e6eef9;
  }

  .hm-page .abt-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-cta {
    padding-bottom: 32px;
    padding-top: 32px;
  }

  .hm-cta h2 {
    font-size: 22px;
  }

  /* Tabs stack so each title stays readable */
  .hm-why-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-why-tab {
    padding: 10px 14px;
  }

  .hm-why-tab i {
    flex-basis: 38px;
    font-size: 16px;
    height: 38px;
  }

  .hm-why-tab.is-active::after {
    display: none;
  }

  .hm-why-panel {
    border-radius: 18px;
    padding: 22px 18px;
  }

  .hm-why-text h3 {
    font-size: 20px;
  }

  .hm-why-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
