/* Gallery controls keep the same reading edge as the section heading. */
#service .ml-svc-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 1920px;
  margin: 25px auto 0;
  padding-inline: clamp(1.25rem, 4.2vw, 8.5rem);
  color: #293040;
}
#service .ml-svc-controls[hidden],
#service .ml-svc-controls button[hidden] { display: none; }
#service .ml-svc-page {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #666b79;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
#service .ml-svc-page strong { font-weight: 700; color: #292d40; }
#service .ml-svc-rule { height: 1px; flex: 1; background: #dcdde4; margin-inline: 8px; }
#service .ml-svc-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c9cbd6;
  border-radius: 50%;
  background: transparent;
  color: #333746;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
#service .ml-svc-controls button:focus-visible {
  outline: 2px solid #5e578a;
  outline-offset: 3px;
}
@media (hover: hover) {
  #service .ml-svc-controls button:hover {
    background: #302f43;
    color: white;
    border-color: #302f43;
  }
}
#service .ml-svc-play span { width: 8px; height: 11px; border-inline: 2px solid currentColor; }
#service .ml-svc-play.is-paused span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-inline: 0;
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}
#service .ml-svc-status {
  position: absolute;
  height: 1px;
  width: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  #service.ml-service-section .ml-svc-track {
    transform: translate3d(var(--ml-track-x, 0px), 0, 0) !important;
  }
}

/* Static specialist profiles, with each photograph preceding its caption. */
#people .ml-team-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(22px, 2.7vw, 52px);
  row-gap: clamp(36px, 4.5vw, 78px);
  list-style: none;
  margin: clamp(40px, 5.5vw, 82px) 0 0;
  padding: 0;
}
#people .ml-team-feature { min-width: 0; }
#people .ml-team-photo {
  aspect-ratio: 1.76;
  overflow: hidden;
  border-radius: 8px;
  background: #eeedf0;
}
#people .ml-team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}
#people .ml-team-caption { padding-top: clamp(16px, 1.4vw, 24px); }
#people .ml-team-en {
  margin: 0 0 6px;
  color: #625c78;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.4;
}
#people .ml-team-role {
  margin: 0;
  color: #232533;
  font-size: clamp(21px, 1.55vw, 27px);
  letter-spacing: -.045em;
  line-height: 1.35;
}
#people .ml-team-desc {
  max-width: 37em;
  margin: 8px 0 0;
  color: #525665;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.7;
  word-break: keep-all;
}
@media (max-width: 900px) {
  #people .ml-team-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  #people .ml-team-gallery { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #people .ml-team-feature {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-block: 20px;
    border-top: 1px solid #e0dfe6;
  }
  #people .ml-team-feature:last-child { border-bottom: 1px solid #e0dfe6; }
  #people .ml-team-photo { aspect-ratio: 1 / 1.09; border-radius: 5px; }
  #people .ml-team-caption { padding-top: 0; }
  #people .ml-team-en { font-size: 9px; margin-bottom: 5px; letter-spacing: .08em; }
  #people .ml-team-role { font-size: 19px; }
  #people .ml-team-desc { font-size: 14px; line-height: 1.55; margin-top: 5px; }
}
/* Independent edge controls stay in view alongside the cards. */
#service .ml-svc-slider { position: relative; }
#service .ml-svc-controls .ml-svc-arrow {
  position: absolute;
  z-index: 3;
  top: calc(50% - 35px);
  transform: translateY(-50%);
  background: rgb(255 255 255 / 95%);
  border-color: rgb(66 60 78 / 24%);
  box-shadow: 0 3px 12px rgb(28 24 39 / 10%);
}
#service .ml-svc-arrow[data-direction="-1"] { left: clamp(6px, 1.4vw, 28px); }
#service .ml-svc-arrow[data-direction="1"] { right: clamp(6px, 1.4vw, 28px); }
@media (hover: hover) {
  #service .ml-svc-controls .ml-svc-arrow:hover { color: white; background: #302f43; }
}
@media (max-width: 680px) {
  #service .ml-svc-controls { padding-right: 76px; }
}
