/* Quiet separation between the page introduction and its content. */
body :is(.home-hero, .page-hero, .contact-hero, .case-hero, .blog-hero, .legal-hero, .dictionary-hero, .chatbot-hero, .courses-hero, .error-hero) {
  background: #edf0ec;
  border-bottom: 1px solid #d7ded6;
}

/* Homepage web services: copy and both destinations share one desktop row. */
@media (min-width: 1024px) {
  body .service-guide[aria-labelledby="web-services-title"] > .container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px);
    row-gap: 20px;
    align-items: start;
  }
  body .service-guide[aria-labelledby="web-services-title"] #web-services-title {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin: 0;
  }
  body .service-guide[aria-labelledby="web-services-title"] > .container > p {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
  }
  body .service-guide[aria-labelledby="web-services-title"] .blog-related__links {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-self: center;
    margin: 0;
  }
  body .service-guide[aria-labelledby="web-services-title"] .blog-related__links a {
    display: block;
    min-width: 0;
    padding: clamp(20px, 2vw, 28px);
    font-size: clamp(23px, 2vw, 28px);
    line-height: 1.3;
  }
}

/* Contact only: compact spacing and natural-height layouts; all content stays visible. */
body .contact-hero {
  padding-top: 124px;
  padding-bottom: 32px;
}
body .contact-hero h1.display {
  max-width: 23ch;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.1;
}
body .contact-hero .eyebrow { margin-bottom: 12px; }
body .contact-hero__grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 36px;
  align-items: center;
}
body .contact-hero__aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 22px;
  align-items: center;
}
body .contact-hero__aside > p {
  margin: 0;
  max-width: none;
  font-size: 18px;
  line-height: 1.55;
}
body .contact-hero .contact-thumb {
  width: 160px;
  max-width: 160px;
  height: 160px;
  margin: 0;
  object-fit: cover;
  object-position: center;
}
body .contact-hero ~ .signal-marquee .signal-marquee__group {
  padding-block: 9px;
  gap: 6px 22px;
}
body .contact-hero ~ .contact-options { padding: 24px 0 32px; }
body .contact-options .contact-grid { gap: 18px; }
body .contact-options .contact-card {
  min-height: 138px;
  padding: 20px 22px;
  gap: 14px;
}
body .contact-options .contact-card__label { padding-right: 30px; }
body .contact-options .contact-card strong {
  max-width: 100%;
  margin-top: 0;
  font-size: clamp(24px, 2.1vw, 28px);
  line-height: 1.15;
}
body .contact-options .contact-card__arrow { top: 18px; right: 18px; }
body .contact-hero ~ .contact-brief {
  padding: 36px 0;
  background: var(--paper);
}
body .contact-brief .project-form__head {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}
body .contact-brief .section-title,
body .contact-hero ~ .fit-section .section-title {
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.15;
}
body .contact-brief .eyebrow,
body .contact-hero ~ .fit-section .eyebrow { margin-bottom: 12px; }
body .contact-brief__copy { gap: 18px; }
body .contact-brief__copy .lead { font-size: 18px; line-height: 1.55; }
body .contact-hero ~ .fit-section { padding: 32px 0 40px; }
body .contact-hero ~ .fit-section .fit-grid {
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: 36px;
}
body .contact-hero ~ .fit-section .fit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
body .contact-hero ~ .fit-section .fit-list > div {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  align-content: start;
}
body .contact-hero ~ .fit-section .fit-list p { font-size: 18px; line-height: 1.55; }
body .contact-hero ~ .cta-band { padding-block: 30px; }
body .contact-hero ~ .cta-band .cta-band__grid { gap: 24px; }
body .contact-hero ~ .cta-band h2 {
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.15;
}
body:has(.contact-hero) .site-footer { padding-top: 48px; }
body:has(.contact-hero) .footer-grid { padding-block: 36px; }
@media (max-width: 1000px) {
  body .contact-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body .contact-hero h1.display { max-width: 25ch; }
  body .contact-hero__aside { grid-template-columns: minmax(0, 1fr) 160px; }
  body .contact-hero__aside > p { max-width: 52ch; }
  body .contact-hero ~ .fit-section .fit-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 820px) {
  body .contact-brief .project-form__head { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  body .contact-options .contact-card { min-height: 116px; }
}
@media (max-width: 640px) {
  body:has(.contact-hero) .site-footer { padding-top: 36px; }
  body:has(.contact-hero) .footer-grid { padding-block: 28px; }
  body .contact-hero { padding-top: 116px; padding-bottom: 26px; }
  body .contact-hero h1.display { font-size: clamp(34px, 9.2vw, 40px); line-height: 1.12; }
  body .contact-hero__aside { grid-template-columns: minmax(0, 1fr) 112px; gap: 18px; }
  body .contact-hero .contact-thumb { width: 112px; max-width: 112px; height: 136px; }
  body .contact-hero ~ .contact-options { padding: 22px 0 26px; }
  body .contact-options .contact-grid { gap: 12px; }
  body .contact-options .contact-card { min-height: 112px; padding: 18px; gap: 10px; }
  body .contact-options .contact-card strong { font-size: 24px; }
  body .contact-hero ~ .contact-brief,
  body .contact-hero ~ .fit-section { padding-block: 28px; }
  body .contact-hero ~ .fit-section .fit-list { grid-template-columns: minmax(0, 1fr); }
  body .contact-hero ~ .fit-section .fit-list > div { padding-block: 12px; }
  body .contact-hero ~ .cta-band { padding-block: 28px; }
  body .contact-hero ~ .cta-band .cta-band__grid { gap: 20px; }
}
