/* Two independent WCAG-style mobile sequences. Desktop markup is restored by JS. */
@media screen and (max-width: 767px) {
  html body.service-scope-page .tdl-scope-mobile-sequence {
    overflow: visible !important;
  }

  html body.service-scope-page .tdl-scope-mobile-sequence > .container {
    overflow: visible !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .tdl-scope-mobile-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: var(--tdl-scope-mobile-duration) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .tdl-scope-mobile-stage {
    position: sticky !important;
    top: 4.5rem !important;
    display: flex !important;
    align-items: center;
    width: 100%;
    height: calc(100svh - 4.5rem);
    box-sizing: border-box;
    padding-bottom: 1.5rem;
    overflow: hidden;
    background: transparent;
  }

  html body.service-scope-page .tdl-scope-mobile-stage::before,
  html body.service-scope-page .tdl-scope-mobile-stage::after {
    content: none !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .tdl-scope-mobile-track {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    width: max-content;
    padding-inline: var(--tdl-scope-mobile-edge-space, 0.5rem);
    transform: translate3d(var(--tdl-scope-mobile-x, 0px), 0, 0) !important;
    will-change: transform;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .tdl-scope-mobile-track > :is(.v1-service-card, .v1-process-grid) {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: clamp(6rem, 18svh, 10rem) minmax(0, 1fr) !important;
    flex: 0 0 auto;
    gap: 0 !important;
    width: min(86vw, 22rem) !important;
    height: min(calc(100svh - 8.5rem), 36rem) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(5, 37, 29, 0.1);
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    background: #fff !important;
    opacity: 0.42 !important;
    filter: saturate(0.82);
    transform: scale(0.94) !important;
    transition: opacity 450ms ease, transform 450ms cubic-bezier(.22, 1, .36, 1), filter 450ms ease !important;
    transition-delay: 0ms !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .tdl-scope-mobile-track > :is(.v1-service-card, .v1-process-grid).is-scope-mobile-active {
    opacity: 1 !important;
    filter: none;
    transform: scale(1) !important;
    box-shadow: 0 28px 64px -28px rgba(0, 96, 57, 0.3) !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-service-image-div,
  html body.service-scope-page .is-mobile-scroll-lock-active .v1-process-grid > .v1-process-div:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-process-grid > .v1-process-div:nth-child(2) {
    display: none !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-service-detail-wrapper,
  html body.service-scope-page .is-mobile-scroll-lock-active .v1-process-grid > .v1-process-div:last-child {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 0;
    height: 100%;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-process-grid .v1-process-image-div,
  html body.service-scope-page .is-mobile-scroll-lock-active :is(.v1-process-image, .v1-service-image) {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active :is(.v1-service-detail-wrapper, .v1-process-detail-wrapper) {
    box-sizing: border-box;
    display: grid !important;
    align-content: center;
    gap: 0.7rem !important;
    height: 100% !important;
    padding: 0.9rem !important;
    min-width: 0;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active :is(.v1-service-detail-div, .v1-process-detail-div) {
    gap: 0.45rem !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active :is(.h4-heading, .h6-heading) {
    font-size: 1.12rem !important;
    line-height: 1.18 !important;
    margin: 0 !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active :is(.v1-service-text, .v1-process-text) {
    font-size: 0.8rem !important;
    line-height: 1.48 !important;
    margin: 0 !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .tdl-scope-card-kicker {
    font-size: 0.65rem;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-service-label-text {
    font-size: 0.65rem !important;
    padding: 0.35rem 0.45rem !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-process-detail-div > .paragraph:first-child {
    font-size: 0.68rem !important;
    min-height: 0 !important;
    padding: 0.4rem 0.6rem;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-process-list-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-process-list-div .paragraph {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .v1-process-list-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  html body.service-scope-page .tdl-scope-mobile-progress {
    display: none;
  }

  html body.service-scope-page .is-mobile-scroll-lock-active .tdl-scope-mobile-progress {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(5, 37, 29, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
  }

  html body.service-scope-page .tdl-scope-mobile-progress span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d1d6d3;
    transition: width 400ms ease, background 400ms ease;
  }

  html body.service-scope-page .tdl-scope-mobile-progress span.is-scope-mobile-active {
    width: 24px;
    background: #006039;
  }

  /* Preserve the full-height static cards when motion is paused/reduced,
     text is enlarged, or a landscape viewport is too short for a sequence. */
  html body.service-scope-page .is-mobile-process-expanded .tdl-scope-mobile-wrapper,
  html body.service-scope-page .is-mobile-process-expanded .tdl-scope-mobile-stage {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  html body.service-scope-page .is-mobile-process-expanded .tdl-scope-mobile-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    transform: none !important;
  }
}

/* Engagement scope uses a dark editorial card; the delivery timeline stays light. */
@media screen and (max-width: 767px) {
  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .v1-service-card {
    background: #082c23 !important;
    border-color: rgba(8, 44, 35, 0.18) !important;
    border-radius: 1rem !important;
  }

  html body.service-scope-page .tdl-scope-cards-pin.is-mobile-scroll-lock-active .tdl-scope-mobile-track > .v1-service-card {
    grid-template-rows: 34% minmax(0, 1fr) !important;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .v1-service-image-div::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3.5rem;
    background: linear-gradient(180deg, transparent, #082c23) !important;
    pointer-events: none;
    opacity: 1 !important;
    mix-blend-mode: normal;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .v1-service-detail-wrapper {
    position: relative;
    align-content: start;
    padding: 1.1rem !important;
    gap: 0.85rem !important;
    background: #082c23 !important;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .tdl-scope-card-kicker {
    gap: 0.6rem;
    font-size: 0.65rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
    color: #a4ddbe !important;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .tdl-scope-card-step {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 5px;
    border: 1px solid rgba(164, 221, 190, 0.4);
    background: transparent;
    color: #c1f1d5;
    font-size: 0.75rem;
    letter-spacing: 0;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .h4-heading {
    color: #fff !important;
    font-size: 1.38rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .v1-service-text {
    color: #d0dfd7 !important;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .v1-service-info-wrapper {
    border-top: 1px solid rgba(164, 221, 190, 0.2);
    padding-top: 0.75rem;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .v1-service-info-div {
    gap: 0.4rem;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-cards-track .v1-service-label-text {
    border: 1px solid rgba(164, 221, 190, 0.18);
    border-radius: 4px;
    background: rgba(164, 221, 190, 0.08) !important;
    color: #c1f1d5 !important;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-mobile-progress {
    gap: 0.35rem;
    padding: 0.65rem 0.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-mobile-progress span {
    width: 1.5rem;
    height: 3px;
    border-radius: 2px;
    background: #cbd9d1;
  }

  html body.service-scope-page .tdl-scope-cards-pin .tdl-scope-mobile-progress span.is-scope-mobile-active {
    width: 2.5rem;
    background: #006039;
  }
}

@media screen and (max-width: 359px) {
  html body.service-scope-page .tdl-scope-cards-pin.is-mobile-scroll-lock-active .tdl-scope-mobile-track > .v1-service-card {
    grid-template-rows: 28% minmax(0, 1fr) !important;
  }

  html body.service-scope-page .tdl-scope-cards-pin.is-mobile-scroll-lock-active .v1-service-detail-wrapper {
    padding: 0.85rem !important;
    gap: 0.65rem !important;
  }

  html body.service-scope-page .tdl-scope-cards-pin.is-mobile-scroll-lock-active .h4-heading {
    font-size: 1.18rem !important;
  }
}

@media screen and (max-width: 767px) and (max-height: 650px) {
  html body.service-scope-page .tdl-scope-cards-pin.is-mobile-scroll-lock-active .tdl-scope-mobile-track > .v1-service-card {
    grid-template-rows: 22% minmax(0, 1fr) !important;
  }
}
