/* Homepage-only refinement: original copy, photographs, hero and destinations. */
body.home {
  --home-blue: #20264f;
  --home-accent: #667ca3;
  --home-cream: #f6f8fc;
  --home-muted: #555d6d;
}
.home-story,
.home-estimate,
.home-reviews,
.home-portfolio {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  margin: 80px auto;
  width: 100%;
  color: var(--home-blue, #20264f);
}
.home-story *,
.home-estimate *,
.home-reviews *,
.home-portfolio * {
  box-sizing: border-box;
}
.home-story h2,
.home-estimate h2,
.home-reviews h2,
.home-portfolio h2 {
  font:
    400 clamp(30px, 3vw, 42px)/1.17 Georgia,
    serif !important;
  letter-spacing: -0.7px !important;
  color: #20264f !important;
  margin: 0 0 24px !important;
  text-align: left !important;
}
.home-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.home-story__copy {
  padding: 20px 0;
  min-width: 0;
}
.home-story__copy:before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: #667ca3;
  margin-bottom: 25px;
}
.home-story__copy > p {
  font:
    400 15px/1.9 Arial,
    sans-serif;
  color: #555d6d;
  margin: 0 0 26px !important;
  text-align: left !important;
}
.home-story__photo {
  min-width: 0;
  position: relative;
}
.home-story__photo img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  border-radius: 8px !important;
  margin: 0 !important;
  box-shadow: 0 16px 35px #20264f0d;
}
.home-story--reverse .home-story__photo {
  grid-column: 1;
  grid-row: 1;
}
.home-story--reverse .home-story__copy {
  grid-column: 2;
  grid-row: 1;
}
.home-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.home-actions .mesa-cta {
  margin: 0 !important;
}
.home-estimate {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
  padding: 36px 48px;
  background: #f6f8fc;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  margin-top: 48px;
  margin-bottom: 64px;
}
.home-estimate h2 {
  max-width: 16ch;
  margin-bottom: 22px !important;
}
.home-estimate > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  max-height: 390px;
  object-fit: contain;
}
.home-industry-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font:
    600 13px/1.5 Arial,
    sans-serif;
  color: #667ca3;
}
.home-industry-links a {
  color: #20264f;
  text-decoration: none;
  border-bottom: 1px solid #c1cee1;
  padding: 4px 0;
}
.home-industry-links a:hover {
  border-color: #20264f;
}
.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.home-section-heading h2 {
  margin-bottom: 0 !important;
}
.home-section-heading .home-industry-links {
  margin-top: 14px;
}
.home-reviews {
  padding: 44px 38px;
  background: #f6f8fc;
  border-radius: 8px;
  border: 1px solid #e0e6ef;
}
.home-reviews__card {
  padding: 24px 20px;
  background: white;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  min-height: 300px;
}
.home-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-portfolio__grid > a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1;
  text-decoration: none;
  background: #edf1f7;
  isolation: isolate;
}
.home-portfolio__grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.home-portfolio__grid span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 18px 17px;
  background: linear-gradient(transparent, #101630bd);
  color: #fff;
  font:
    500 12px/1.5 Arial,
    sans-serif;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.home-portfolio__grid a:hover img,
.home-portfolio__grid a:focus-visible img {
  transform: scale(1.035);
}
.home-portfolio__grid a:hover span,
.home-portfolio__grid a:focus-visible span {
  transform: translateY(0);
}
.home-portfolio a:focus-visible,
.home-industry-links a:focus-visible {
  outline: 2px solid #667ca3;
  outline-offset: 5px;
}
body.home #services-row {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
  background: #20264f !important;
}
body.home #services-row > .upb_row_bg {
  background: #20264f !important;
}
body.home #services-row h2 {
  font:
    400 40px/1.2 Georgia,
    serif !important;
  margin-bottom: 30px !important;
}
body.home #services-row .item-bg-container {
  border-radius: 7px !important;
}
body.home #services-row .post-grid {
  gap: 20px !important;
}
body.home .mesa-inquiry--home {
  margin: 80px 0;
  background: #f6f8fc;
}
body.home .mesa-inquiry--home .inquiry-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.home .mesa-inquiry--home .inquiry-story h2 {
  font-size: 44px;
  line-height: 1.15;
  max-width: 9ch;
}
body.home .home-inquiry-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
body.home .home-inquiry-links .mesa-cta {
  padding: 10px 16px !important;
  min-height: 43px;
}
body.home .mesa-inquiry--home .inquiry-card {
  background: #f6f8fc;
}
@media (max-width: 900px) {
  .home-story {
    gap: 30px;
  }
  .home-story__copy > p {
    font-size: 14px;
  }
  .home-estimate {
    padding: 30px;
    gap: 30px;
    grid-template-columns: 1fr 220px;
  }
  .home-story,
  .home-reviews,
  .home-portfolio {
    margin: 60px auto;
  }
  .home-reviews {
    padding: 32px 25px;
  }
}
@media (max-width: 650px) {
  .home-story,
  .home-estimate,
  .home-reviews,
  .home-portfolio {
    margin: 42px auto;
  }
  .home-story {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-story__copy {
    padding: 0;
  }
  .home-story--reverse .home-story__copy,
  .home-story--reverse .home-story__photo {
    grid-column: auto;
    grid-row: auto;
  }
  .home-story__photo {
    order: -1;
  }
  .home-story__copy > p {
    font-size: 14px;
    line-height: 1.85;
  }
  .home-story h2,
  .home-estimate h2,
  .home-reviews h2,
  .home-portfolio h2 {
    font-size: 31px !important;
    margin-bottom: 20px !important;
  }
  .home-story__copy:before {
    margin-bottom: 20px;
  }
  .home-actions {
    gap: 10px;
    margin-top: 22px;
  }
  .home-actions .mesa-cta {
    flex: 1 1 130px;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .home-estimate {
    grid-template-columns: 1fr;
    padding: 27px;
    gap: 27px;
  }
  .home-estimate h2 {
    max-width: 17ch;
  }
  .home-estimate > img {
    width: min(100%, 230px);
    justify-self: center;
    max-height: none;
  }
  .home-reviews {
    padding: 27px 18px;
  }
  .home-section-heading {
    gap: 14px;
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .home-section-heading .mesa-cta {
    padding: 11px 17px !important;
    min-height: 44px;
  }
  .home-section-heading h2 {
    margin-bottom: 0 !important;
  }
  .home-reviews__card {
    padding: 18px 9px;
  }
  .home-portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-portfolio__grid span {
    transform: none;
    padding: 26px 10px 10px;
    font-size: 10px;
  }
  body.home #services-row {
    padding-top: 45px !important;
    padding-bottom: 45px !important;
  }
  body.home #services-row h2 {
    font-size: 32px !important;
  }
  body.home .mesa-inquiry--home {
    margin: 45px 0;
  }
  body.home .mesa-inquiry--home .inquiry-story h2 {
    font-size: 37px;
    max-width: none;
  }
  .home-industry-links {
    font-size: 12px;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-portfolio__grid img,
  .home-portfolio__grid span {
    transition: none;
  }
  .home-portfolio__grid a:hover img,
  .home-portfolio__grid a:focus-visible img {
    transform: none;
  }
}
