/* Homepage studio introduction and service directory */
.agency-intro {
  padding-block: clamp(40px, 6.25vw, 90px) clamp(36px, 4vw, 58px);
}
.agency-intro .agency-wave { margin-bottom: clamp(52px, 5.6vw, 80px); }
.agency-intro .wrap { width: min(90%, 1170px); }
.agency-intro .orbit-contact {
  width: 172px;
  height: 172px;
  margin: 0 auto clamp(40px, 6.8vw, 98px);
}
.agency-intro .orbit-contact > svg { width: 100%; height: 100%; }
.agency-intro .scroll-words {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  font-size: clamp(30px, 3.55vw, 47px);
  line-height: 1.235;
  text-wrap: balance;
}
#services { padding-block: clamp(60px, 7vw, 100px) clamp(40px, 5vw, 72px); }
#services > .wrap { width: min(89%, 1166px); margin-inline: auto; }
#services .section-intro { display: block; margin: 0; }
#services .section-intro h2 {
  width: auto;
  margin: 0;
  font-size: clamp(30px, 3.55vw, 47px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
#services .section-intro p { max-width: 43ch; margin: 20px 0 0; font-size: 16px; line-height: 1.5; }
#services .capabilities-enquiry {
  width: clamp(158px, 16vw, 212px);
  aspect-ratio: 1;
  margin-top: 38px;
  padding: 26px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #153d75;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  transition: color .45s ease, background-color .45s ease;
}
#services .capabilities-enquiry span { font-size: 1.5rem; }
#services .capabilities-enquiry:is(:hover, :focus-visible) { color: white; background-color: #153d75; }
#services .service-grid { min-width: 0; }
#services .service-card {
  display: grid;
  align-content: center;
  align-items: center;
  min-height: 148px;
  grid-template-columns: 60px minmax(0, 1fr) 32px;
  grid-template-rows: auto auto;
  gap: 5px clamp(14px, 1.7vw, 25px);
  padding: 20px clamp(12px, 2.4vw, 35px);
  border-bottom: 1px solid #b5c1cd;
  transition: background-color .45s ease;
}
#services .service-card .service-icon { position: static; grid-area: 1 / 1 / 3 / 2; height: 60px; width: 60px; }
#services .service-icon svg { width: 32px; height: 32px; }
#services .service-card h3 {
  grid-area: 1 / 2;
  align-self: end;
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -.025em;
}
#services .service-card p { grid-area: 2 / 2; align-self: start; margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.45; }
#services .service-card .service-preview { display: none; }
#services .service-arrow {
  grid-area: 1 / -2 / 3 / -1;
  justify-self: end;
  align-self: center;
  font-size: 24px;
  line-height: 1;
  color: #194b93;
  transition: transform .45s ease;
}
#services :is(.service-card, .capabilities-enquiry):focus-visible { outline: 3px solid #23559d; outline-offset: 3px; z-index: 1; }
#services .service-card:focus-visible { background-color: #edf3fa; }
@media (min-width: 768px) {
  #services > .wrap {
    display: grid;
    grid-template-columns: minmax(0, .79fr) minmax(0, 1fr);
    column-gap: clamp(35px, 8.3vw, 120px);
    align-items: start;
  }
  #services .capabilities-copy { position: sticky; top: 130px; padding-top: 30px; }
}
@media (min-width: 768px) and (max-height: 570px) {
  #services .capabilities-copy { position: static; }
}
@media (min-width: 1150px) and (hover: hover) and (pointer: fine) {
  #services .service-card { grid-template-columns: 60px minmax(0, 1fr) 64px 19px; }
  #services .service-card .service-preview {
    display: block;
    grid-area: 1 / 3 / 3 / 4;
    width: 64px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(6px) rotate(-4deg) scale(.94);
    transition: opacity .35s ease, transform .48s cubic-bezier(.2,.75,.2,1);
  }
  #services .service-card:is(:hover, :focus-visible) .service-preview { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  #services .service-card:hover { background-color: #edf3fa; }
  #services .service-card:hover .service-arrow { transform: translate(3px,-3px); }
}
@media (max-width: 767px) {
  .agency-intro .scroll-words, #services .section-intro h2 { font-size: 30px; line-height: 40px; }
  .agency-intro .orbit-contact { margin-bottom: 40px; }
  .agency-intro .agency-wave { margin-bottom: 55px; }
  #services .capabilities-copy { margin-bottom: 54px; }
  #services .capabilities-enquiry { display: none; }
  #services .service-card {
    grid-template-columns: minmax(0, 1fr) 36px;
    grid-template-rows: auto auto auto;
    gap: 8px 14px;
    min-height: 196px;
    padding: 26px 0;
  }
  #services .service-card .service-icon { grid-area: 1 / 1; }
  #services .service-card h3 { grid-area: 2 / 1 / 3 / -1; }
  #services .service-card p { grid-area: 3 / 1 / 4 / -1; }
  #services .service-arrow { grid-area: 1 / 2; }
}
@media (prefers-reduced-motion: reduce) {
  #services .capabilities-enquiry, #services .service-card, #services .service-card *, .agency-intro .orbit-contact svg {
    animation: none !important;
    transition: none !important;
  }
}
