.services-main {
  overflow: clip;
  background: var(--white);
}

.services-overview {
  background: var(--white);
}

.services-overview__shell {
  width: min(calc(100% - 2 * var(--edge)), var(--shell-wide));
}

.services-overview__header {
  margin-bottom: var(--section-label-gap);
  text-align: center;
}

.services-overview__eyebrow {
  margin-bottom: var(--section-label-gap);
}

.services-overview__header h1 {
  max-width: 1180px;
  margin-inline: auto;
}

.services-overview__stage {
  position: relative;
}

.services-overview__track {
  display: flex;
  align-items: stretch;
  gap: var(--section-label-gap);
}

.services-overview__card {
  min-width: 0;
  flex: 1 1 0;
  transition: flex-grow var(--ease);
}

.services-overview__card.is-active {
  flex-grow: 3.7;
}

.services-overview__media {
  position: relative;
  height: clamp(350px, 27.5vw, 528px);
  overflow: hidden;
  background: var(--green);
}

.services-overview__media video,
.service-chapter__banner video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

video.is-playing + .services-video-poster { visibility: hidden; }

.services-overview__scrim,
.service-chapter__banner > span {
  position: absolute;
  inset: 0;
  background: rgb(var(--black-rgb) / 0.2);
  pointer-events: none;
}

.services-overview__activate {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.services-overview__activate:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -4px;
}

.services-overview__progress {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: none;
}

.services-overview__card.is-active .services-overview__progress {
  display: flex;
}


.services-overview__pause {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 14px;
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: rgb(var(--black-rgb) / 0.2);
  color: var(--white);
  cursor: pointer;
}

.services-overview__card.is-active .services-overview__pause {
  display: grid;
}

.services-overview__pause span,
.services-overview__pause span::after {
  display: block;
  width: 2px;
  height: 10px;
  background: currentcolor;
  content: "";
}

.services-overview__pause span {
  position: relative;
  margin-left: -5px;
}

.services-overview__pause span::after {
  position: absolute;
  left: 5px;
}

.services-overview__pause.is-paused span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentcolor;
  background: transparent;
}

.services-overview__pause.is-paused span::after {
  content: none;
}

.services-overview__label {
  display: grid;
  min-height: 68px;
  padding-top: var(--section-label-gap);
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 4px var(--section-label-gap);
  color: var(--black);
  text-decoration: none;
}

.services-overview__label span {
  grid-column: 1 / -1;
  color: var(--mid-green);
  font-size: 13px;
}

.services-overview__label strong {
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.services-overview__label svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}

.services-overview__mobile-controls {
  display: none;
}

.services-ticker {
  overflow: hidden;
  background: var(--off-white);
}

.services-ticker__track,
.services-ticker__group {
  display: flex;
  width: max-content;
  align-items: center;
}

.services-ticker__track {
  animation: services-marquee 36s linear infinite;
}

.services-ticker__group {
  min-width: max-content;
}

.services-ticker__group span {
  display: flex;
  min-height: calc(2 * var(--section-pad-bottom) + var(--section-label-gap));
  align-items: center;
  color: var(--muted);
  font-size: 28px;
  white-space: nowrap;
}

.services-ticker__group span::after {
  width: 5px;
  height: 5px;
  margin-inline: 42px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  content: "";
}

@keyframes services-marquee {
  to {
    transform: translateX(-50%);
  }
}

.service-chapter {
  background: var(--white);
  scroll-margin-top: var(--header-collapsed-height, 100px);
}

.service-chapter__banner {
  position: relative;
  min-height: 430px;
  aspect-ratio: 1.83 / 1;
  overflow: hidden;
  background: var(--green);
}

.service-chapter__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2 * var(--edge)), var(--shell-wide));
  margin: calc(-2 * var(--section-pad-bottom) - var(--section-pad-top)) auto 0;
  background: var(--white);
}

.service-chapter__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.65fr);
  align-items: start;
  gap: var(--section-label-gap) var(--section-pad-bottom);
}

.service-chapter__content > .shell {
  width: min(calc(100% - 2 * var(--edge)), var(--shell));
}

.service-chapter__heading,
.service-chapter__intro-copy { grid-column: 1; }

.service-chapter__heading .eyebrow {
  margin-bottom: var(--section-label-gap);
}

.service-chapter__intro-copy p + p,
.service-story__copy p + p {
  margin-top: var(--section-label-gap);
}

.service-chapter__facts {
  display: grid;
  margin: 0;
  padding: 0;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--service-fact-rows, 3), auto);
  grid-auto-flow: column;
  gap: calc(var(--section-label-gap) / 2) var(--section-label-gap);
  list-style: none;
}

.service-chapter__editorial {
  display: grid;
  margin-top: var(--section-cta-gap);
  gap: var(--section-pad-top);
}

.service-story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: var(--section-label-gap);
}

.service-story--image_left .service-story__media { grid-column: 1 / 7; }
.service-story--image_left .service-story__copy { grid-column: 8 / 12; }

.service-story--image_right .service-story__copy {
  grid-column: 2 / 6;
  grid-row: 1;
}

.service-story--image_right .service-story__media {
  grid-column: 9 / 13;
  grid-row: 1;
}

.service-story--supporting { align-items: start; }
.service-story--supporting .service-story__media { grid-row: 1 / 3; }
.service-story--supporting .service-story__copy { padding-top: var(--section-pad-top); }
.service-story__supporting { grid-column: 4 / 9; grid-row: 2; aspect-ratio: 1.54; }
.service-story--text_only .service-story__copy { grid-column: 1 / 5; }
.service-story--text_only { align-items: start; }
.service-story--text_only .service-story__copy--second { grid-column: 7 / 11; }

.service-story figure {
  position: relative;
  overflow: visible;
  margin: 0;
}

.service-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-story .future-media-link,
.service-story .future-media-link picture {
  display: block;
  width: 100%;
  height: 100%;
}

.service-story__media {
  min-width: 0;
}

.service-story__media img {
  aspect-ratio: 1.03;
}

.service-story--image_right .service-story__media img { aspect-ratio: 0.67; }

.service-story__media figcaption {
  position: absolute;
  z-index: 1;
  top: 12%;
  right: -54px;
  max-width: 190px;
  color: var(--blue-ink);
  font-family: "BiroScript", cursive;
  font-size: 30px;
  line-height: 1.1;
  transform: rotate(-7deg);
}

.service-story__copy h3 {
  color: var(--muted);
  margin-bottom: calc(var(--section-label-gap) / 2);
}

.service-story--media_row {
  display: block;
}

.service-story__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--section-label-gap);
}

.service-story__gallery figure {
  aspect-ratio: 0.72;
  overflow: hidden;
}

.service-story--media_row .service-story__copy {
  max-width: 580px;
  margin-top: 42px;
}

@media (hover: hover) and (pointer: fine) {
  .services-overview__card:not(.is-active):hover {
    flex-grow: 1.15;
  }

  .services-overview__pause:hover,
  .services-overview__pause:focus-visible {
    background: var(--black);
    outline: 0;
  }
}

@media (max-width: 1023px) {
  .services-overview__media {
    height: 350px;
  }

  .services-overview__card.is-active {
    flex-grow: 2.4;
  }

  .service-chapter__intro {
    gap: var(--section-label-gap) var(--section-cta-gap);
  }

  .service-chapter__facts {
    grid-column: 2;
  }

  .service-story {
    gap: var(--section-label-gap);
  }
}

@media (max-width: 767px) {
  .services-overview__header {
    margin-bottom: var(--section-cta-gap);
  }

  .services-overview__shell {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .services-overview__header {
    padding-inline: var(--edge);
  }

  .services-overview__eyebrow {
    order: -1;
    justify-content: center;
  }

  .services-overview__stage {
    width: 100%;
  }

  .services-overview__track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .services-overview__card {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 600ms ease, transform 600ms ease, visibility 0s 600ms;
  }

  .services-overview__card.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .services-overview__media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .services-overview__label {
    min-height: 76px;
    padding: var(--section-label-gap) var(--edge) 0;
  }

  .services-overview__label strong {
    font-size: 20px;
    line-height: 1.4;
  }

  .services-overview__card.is-active .services-overview__label strong {
    font-size: 20px;
  }

  .services-overview__mobile-controls {
    position: absolute;
    z-index: 3;
    top: calc((100% - 76px) / 2);
    right: 12px;
    left: 12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .services-overview__mobile-controls button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--white);
    border-radius: 50%;
    background: rgb(var(--black-rgb) / 0.2);
    color: var(--white);
    pointer-events: auto;
  }

  .services-overview__mobile-controls button:first-child svg {
    transform: rotate(180deg);
  }

  .services-overview__mobile-controls svg {
    width: 17px;
    height: 17px;
  }

  .services-overview__progress {
    right: 14px;
    bottom: 14px;
  }

  .services-overview__pause {
    bottom: 10px;
    left: 10px;
  }

  .services-ticker__group span {
    min-height: calc(var(--section-pad-top) + var(--section-pad-bottom));
    font-size: 20px;
  }

  .services-ticker__group span::after {
    margin-inline: 24px;
  }

  .service-chapter__banner {
    min-height: 0;
    height: 220px;
    aspect-ratio: auto;
  }

  .service-chapter__content {
    width: calc(100% - 2 * var(--edge));
    margin-top: calc(-1 * var(--section-pad-bottom));
  }

  .service-chapter__content > .shell {
    width: 100%;
  }

  .service-chapter__intro {
    padding-inline: var(--section-cta-gap);
    grid-template-columns: 1fr;
    gap: var(--section-label-gap);
  }

  .service-chapter__facts {
    grid-column: auto;
    grid-row: auto;
  }

  .service-chapter__editorial {
    gap: var(--section-pad-bottom);
  }

  .service-story,
  .service-story--image_right {
    grid-template-columns: 1fr;
    gap: var(--section-cta-gap);
  }

  .service-story--image_right .service-story__media {
    order: 0;
  }

  .service-story .service-story__media,
  .service-story .service-story__copy,
  .service-story .service-story__supporting {
    grid-column: auto;
    grid-row: auto;
  }

  .service-story--supporting .service-story__copy { padding-top: 0; }

  .service-story__media {
    min-height: 0;
  }

  .service-story__media img,
  .service-story--image_right .service-story__media img {
    aspect-ratio: 0.92;
  }

  .service-story__media figcaption {
    right: 12px;
    font-size: 25px;
  }

  .service-story__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .service-story__gallery figure:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1.25;
  }
}

@media (max-width: 480px) {
  .service-chapter__facts {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-ticker__track {
    animation: none;
  }

  .services-overview__card {
    transition: none;
  }
}
