@font-face{font-family:InterIntro;src:url("fonts/Inter-Founder-Medium.woff2") format("woff2");font-style:normal;font-weight:500;font-display:swap}

/* Related projects follow the homepage portfolio's editorial cards. */
.service-cases {
  padding: 106px clamp(48px, 5.8vw, 116px) 160px;
  background: #fff;
  color: #111;
  font-family: InterLocal, Arial, sans-serif;
  font-weight: 600;
}

.cases-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 82px;
}

.cases-head h2 {
  margin: 0;
  font-size: clamp(52px, 4.1vw, 84px);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-wrap: initial;
}

.cases-all {
  color: inherit;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.cases-all:hover { color: var(--wine, #680210); }
.cases-all-icon > span { display: none; }
.cases-all-icon svg { display: block; width: 64px; height: 16px; }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-case a { display: block; text-decoration: none; }
.service-cases a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.service-case-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 901px) {
  .cases-grid { container-type: inline-size; }

  /* Use the height of a 4:5 cover in the homepage's three-column grid. */
  .service-case-cover { height: calc((100cqw - 2 * 24px) / 3 * 5 / 4); }
}

.service-case-cover--placeholder { background: linear-gradient(160deg, #808080, #3d3d3d); }

.service-case h3 {
  margin: 22px 0 8px;
  font-size: clamp(17px, calc(1.45vw - 2px), 25px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: initial;
}

.service-case p {
  margin: 0;
  font: 500 clamp(13px, calc(1.15vw - 2px), 19px)/1.05 InterIntro, InterLocal, Arial, sans-serif;
  letter-spacing: -.035em;
}

@media (max-width: 900px) {
  .service-cases {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 60px 20px 72px;
  }

  .cases-head { display: contents; }
  .cases-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 64px; }
  .service-case h3 { margin: 14px 0 6px; font-size: 19px; }
  .service-case p { font-size: 12px; }

  .cases-all {
    order: 1;
    min-height: 72px;
    margin-top: 64px;
    padding: 0 24px;
    background: #101010;
    color: #fff;
    font-size: 14px;
    letter-spacing: -.02em;
  }

  .cases-all:hover { background: var(--wine, #680210); color: #fff; }
  .cases-all-icon > span { display: block; margin-left: 24px; font-size: 24px; }
  .cases-all-icon svg { display: none; }
}
