/* Services: every service by stage, each stage with a row of real client work. */
.services-section {
  background: var(--scene);
  color: white;
  border-top: 1px solid #ffffff14;
}
.services-section .eyebrow { color: #98afc2; }
.services-section .utility { color: #71889a; }
.services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  gap: 40px;
}
.services-intro .display span { color: #5d7488; }
.services-intro p {
  font-size: 13px;
  line-height: 1.9;
  color: #a9b8c4;
}

.ref-rows { margin: 72px 0 80px; }
.ref-row {
  display: grid;
  grid-template-columns: minmax(220px, 22%) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: 26px 0 30px;
  border-top: 1px solid #ffffff1f;
}
.ref-head { display: flex; flex-direction: column; align-items: flex-start; }
.ref-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -.01em;
}
.ref-head h3 span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--blue-light);
}
.ref-services {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.ref-services li {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #a9b8c4;
}
.ref-services li + li { border-top: 1px solid #ffffff0f; }
.ref-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; }
.ref-nav[hidden] { display: none; }
.ref-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff2e;
  border-radius: 50%;
  background: none;
  color: white;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease);
}
.ref-arrow .icon { width: 16px; height: 16px; }
.ref-arrow[data-dir="-1"] .icon { transform: scaleX(-1); }
.ref-arrow:disabled { opacity: .3; cursor: default; }
.ref-arrow:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .ref-arrow:not(:disabled):hover { border-color: var(--blue-light); background: #1f6bb826; }
}

/* The work runs to the edge of the screen and scrolls sideways. */
.ref-strip {
  --tile-h: 264px;
  display: flex;
  gap: 16px;
  min-width: 0;
  margin-right: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 6px 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0 var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.ref-strip::-webkit-scrollbar { display: none; }
.ref-strip:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; }
.ref-tile {
  flex: none;
  margin: 0;
  scroll-snap-align: start;
}
.ref-media {
  position: relative;
  height: var(--tile-h);
  overflow: hidden;
  border-radius: 12px;
  background: #0d151b;
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.ref-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.ref-media.is-contain { background: var(--bg); }
.ref-media.is-contain img { object-fit: contain; object-position: center; padding: 6%; }
.ref-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 20px -6px #1f6bb8aa;
}
.ref-tile figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 100%;
  padding-top: 12px;
}
.ref-tile.is-tall figcaption { width: calc(var(--tile-h) * 9 / 16); }
.ref-tile.is-wide figcaption { max-width: 420px; }
.ref-tile figcaption b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.ref-tile figcaption span { font-size: 11px; color: #8195a6; }
@media (hover: hover) and (pointer: fine) {
  .ref-tile:hover .ref-media img { transform: scale(1.04); }
}
/* Services we have no client capture for yet are set in type, never in stand-in imagery. */
.ref-tile.is-text .ref-media {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: calc(var(--tile-h) * 1.05);
  padding: 26px;
  background: radial-gradient(100% 90% at 100% 0%, #1f6bb84d, transparent 65%), #0c151c;
}
.ref-tile.is-text b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: .98;
  letter-spacing: -.01em;
}
.ref-tile.is-text p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #a9b8c4;
}

.services-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-top: 34px;
  border-top: 1px solid #ffffff1f;
}
.services-footer > p:first-child {
  font-size: 13px;
  line-height: 1.8;
  color: #c4cfd8;
}
.services-footer b { color: white; font-weight: 600; }
.services-footer .fine-print { margin-top: 0; color: #71889a; }
.services-footer .text-link { margin-top: 0; color: white; white-space: nowrap; }

@media (max-width: 1100px) {
  .ref-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ref-head { flex-direction: row; flex-wrap: wrap; align-items: flex-end; column-gap: 28px; }
  .ref-services { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; flex: 1 1 320px; }
  .ref-services li, .ref-services li + li { padding: 5px 10px; border: 1px solid #ffffff1f; border-radius: 999px; font-size: 11px; }
  .ref-nav { margin: 0 0 0 auto; padding: 0; }
  .ref-strip { margin-left: calc(var(--gutter) * -1); padding-left: var(--gutter); scroll-padding-inline: var(--gutter); }
  .services-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .services-footer .text-link { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 767px) {
  .services-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .services-intro p { font-size: 12px; }
  .ref-rows { margin: 40px 0 56px; }
  .ref-row { padding: 24px 0 28px; gap: 18px; }
  .ref-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ref-services { flex: none; }
  .ref-nav { display: none; }
  .ref-strip { --tile-h: 220px; gap: 12px; }
  .ref-tile.is-wide .ref-media { max-width: calc(100vw - var(--gutter) * 2 - 24px); }
  .ref-tile.is-wide .ref-media img { object-fit: cover; }
  .ref-tile.is-text .ref-media { width: 240px; padding: 20px; }
  .ref-tile.is-text b { font-size: 24px; }
  .services-footer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .services-footer .text-link { white-space: normal; }
}
