/* Cross-service refinement — 2026-07-23
   Brings Tools and System pages up to the reviewed Web page standard. */

.service--tools .service-story h2 em,
.service--system .service-story h2 em,
.service--tools .section h2 em,
.service--system .section h2 em {
  display: inline-block;
}

.service--tools .service-story__figure,
.service--system .service-story__figure {
  background: #f4f6f7;
}

.service--tools .contact-row,
.service--system .contact-row {
  width: 100%;
}

.service--tools .contact-row > p,
.service--system .contact-row > p {
  max-width: 32em;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.8;
}

.service--tools .contact-actions,
.service--system .contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 10px;
  width: min(620px, 56vw);
}

.service--tools .contact-actions .contact-link,
.service--system .contact-actions .contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.service--tools .contact-actions .contact-link:hover,
.service--system .contact-actions .contact-link:hover {
  transform: translateY(-3px);
}

.service--tools .contact-actions .contact-link--estimate,
.service--system .contact-actions .contact-link--estimate {
  border-color: #fff;
  background: #fff;
  color: var(--accent);
}

.service--tools .contact-actions .contact-link--consult,
.service--system .contact-actions .contact-link--consult {
  border-color: #16213a;
  background: #16213a;
}

.service--tools .contact-actions .contact-link b,
.service--system .contact-actions .contact-link b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid currentColor;
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 800px) {
  .service--tools .service-story__figure,
  .service--system .service-story__figure {
    min-height: 0;
    aspect-ratio: 3 / 2;
    overflow: visible;
  }

  .service--tools .service-story__figure > img,
  .service--system .service-story__figure > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
  }

  .service--tools .service-process-numbers,
  .service--system .service-process-numbers {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin-top: 34px;
    padding: 2px;
    overflow: visible;
    scroll-snap-type: none;
    background: rgba(22,33,58,.14);
  }

  .service--tools .service-process-numbers li,
  .service--system .service-process-numbers li {
    min-height: 208px;
    padding: 15px 13px 17px;
    scroll-snap-align: none;
  }

  .service--tools .service-process-numbers > li > span,
  .service--system .service-process-numbers > li > span {
    font-size: clamp(45px, 14vw, 60px);
    line-height: .82;
  }

  .service--tools .service-process-numbers li > div,
  .service--system .service-process-numbers li > div {
    margin-top: 24px;
  }

  .service--tools .service-process-numbers b,
  .service--system .service-process-numbers b {
    margin-bottom: 7px;
    font-size: 7px;
  }

  .service--tools .service-process-numbers h3,
  .service--system .service-process-numbers h3 {
    margin-bottom: 8px;
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.25;
  }

  .service--tools .service-process-numbers p,
  .service--system .service-process-numbers p {
    font-size: 10px;
    line-height: 1.6;
  }

  .service--tools .contact,
  .service--system .contact {
    min-height: 720px;
  }

  .service--tools .contact h2,
  .service--system .contact h2 {
    max-width: none;
    font-size: clamp(43px, 12.2vw, 56px);
    line-height: .96;
  }

  .service--tools .contact h2 em,
  .service--system .contact h2 em {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: .12em;
    white-space: nowrap;
    font-size: .78em;
  }

  .service--tools .contact-row,
  .service--system .contact-row {
    align-items: stretch;
  }

  .service--tools .contact-actions,
  .service--system .contact-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .service--tools .contact-actions .contact-link,
  .service--system .contact-actions .contact-link {
    min-height: 58px;
    padding: 15px 17px;
    font-size: 14px;
  }

  .service--system .scope-ladder article {
    padding: 30px 0;
  }

  .service--system .scope-ladder article > strong {
    font-size: clamp(48px, 17vw, 70px);
    line-height: .85;
  }
}

@media (max-width: 360px) {
  .service--tools .service-process-numbers li,
  .service--system .service-process-numbers li {
    min-height: 202px;
    padding-inline: 11px;
  }

  .service--tools .service-process-numbers h3,
  .service--system .service-process-numbers h3 { font-size: 15px; }

  .service--tools .service-process-numbers p,
  .service--system .service-process-numbers p { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .service--tools .contact-actions .contact-link,
  .service--system .contact-actions .contact-link { transition: none; }
}
