/* Home — Services band directly under About.
   Same 12-column grid as the footer: columns 1 and 12 are the side margins.
   Type sizes stay fixed. */

.home-services {
  --services-ink: rgba(0, 0, 0, 0.7);
  --services-stat: #173b30;

  background: var(--color-oat);
  color: #000;
  overflow: hidden;
}

.home-services__frame {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
}

.home-services__mark {
  position: absolute;
  z-index: 0;
  left: 501.5px;
  top: -393.29px;
  width: 1144px;
  height: 1144px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.home-services__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 167px 0;
}

/* Columns 2–11. Column 1 and 12 stay the side margins.
   6px pulls the block onto the Figma inset (135px on a 1550 frame). */
.home-services__content {
  grid-column: 2 / 12;
  display: flex;
  flex-direction: column;
  gap: 55px;
  width: 1281px;
  max-width: calc(100% - 6px);
  margin-left: 6px;
}

.home-services__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 70px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -4.2px;
  color: var(--services-ink);
  white-space: nowrap;
}

.home-services__cards {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-services__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width: 415px;
  max-width: 415px;
  height: 611px;
  border-radius: 10px;
  background: var(--color-yellow);
  overflow: hidden;
}

.home-services__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 328px;
  overflow: hidden;
}

.home-services__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.home-services__photo--top img {
  height: 158.16%;
  object-fit: fill;
  object-position: top center;
}

.home-services__pill {
  position: absolute;
  z-index: 1;
  top: 19px;
  left: 19px;
  margin: 0;
  padding: 3.54px 18.5px;
  border-radius: 30.211px;
  background: var(--color-orange);
  color: var(--services-stat);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.home-services__card-title {
  position: absolute;
  top: 341px;
  left: 31.31px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: var(--font-weight-semibold);
  line-height: 60px;
  letter-spacing: -2.4px;
  color: var(--services-ink);
}

.home-services__card-body {
  position: absolute;
  bottom: 37.05px;
  left: 31.31px;
  width: min(262.358px, calc(100% - 5.5rem));
  margin: 0;
  color: var(--services-ink);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  line-height: 24px;
  letter-spacing: -0.6px;
}

.home-services__card-body p {
  margin: 0;
}

.home-services__asterisk {
  position: absolute;
  z-index: 0;
  right: -18%;
  bottom: -20%;
  width: 68%;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.home-services__pill,
.home-services__card-title,
.home-services__card-body,
.home-services__photo {
  z-index: 1;
}

/* Stack the cards. Heading and card titles stay at their fixed sizes. */
@media (max-width: 960px) {
  .home-services__grid {
    display: block;
    padding: 4.5rem var(--pad-x) 3.5rem;
  }

  .home-services__content {
    width: auto;
    max-width: 36rem;
    margin-left: 0;
  }

  .home-services__title {
    white-space: normal;
  }

  .home-services__cards {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-services__card {
    flex: none;
    width: 100%;
    max-width: 415px;
  }
}
