/* ===========================================================
   Services (home) — "Fields I've worked in"
   Light grey block: the title on the left content edge, the fields in two
   columns on the right, two quiet text links under them. Same edges and
   max width as every other block; at least 700px tall with the content
   centred (shared.css). services-block.js fills it from Sanity and animates
   it in.
   =========================================================== */
.eod-services {
  background: #f5f5f5;
  color: var(--eod-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7.5em;
  padding-bottom: 7.5em;
}
.eod-services__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3em;
  width: 100%;
  max-width: var(--eod-content-max);
  margin: 0 auto;
}
.eod-services__title {
  flex: 1 1 0;
  max-width: 10em;
  margin: 0;
  font-weight: 400;
  /* Header 1 */
  font-size: var(--eod-fs-h1);
  line-height: var(--eod-lh-h1);
  letter-spacing: var(--eod-ls-h1);
}
.eod-services__body {
  flex: 1 1 0;
  max-width: 39.5em; /* 633px */
  display: flex;
  flex-direction: column;
}
.eod-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 2.5em;
}
.eod-services__group {
  max-width: 18.75em; /* 300px */
  padding-right: 1.25em;
}
.eod-services__label {
  margin: 0 0 1.25em;
  font-weight: 400;
  /* Paragraph 2, secondary */
  font-size: var(--eod-fs-p2);
  line-height: var(--eod-lh-p2);
  letter-spacing: var(--eod-ls-p2);
  color: var(--eod-text-secondary);
  text-transform: uppercase;
}
.eod-services__items {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Paragraph 1 */
  font-size: var(--eod-fs-p1);
  line-height: var(--eod-lh-p1);
  letter-spacing: var(--eod-ls-p1);
  color: var(--eod-ink);
}
.eod-services__items li + li {
  margin-top: 0.2em;
}
/* masks for the rise-in (services-block.js) */
.eod-services__mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.eod-services__mask > span {
  display: block;
}
.eod-services__title .eod-services__mask {
  display: inline-block;
  vertical-align: top;
  /* the tight Header 1 letter-spacing makes the box narrower than the
     last letter: room on the right so the mask doesn't cut it off */
  padding-right: 0.12em;
  margin-right: -0.12em;
}

.eod-services__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625em;
  margin-top: 2.5em;
}
.eod-services__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  /* Paragraph 2, secondary */
  font-size: var(--eod-fs-p2);
  line-height: var(--eod-lh-p2);
  letter-spacing: var(--eod-ls-p2);
  color: var(--eod-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
.eod-services__arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.eod-services__link:hover,
.eod-services__link:focus-visible {
  color: var(--eod-ink);
}
.eod-services__link:hover .eod-services__arrow,
.eod-services__link:focus-visible .eod-services__arrow {
  transform: translateX(0.3em);
}

@media (max-width: 1023px) {
  .eod-services__row {
    flex-direction: column;
    gap: 2.5em;
  }
  .eod-services__title,
  .eod-services__body {
    flex: none;
    width: 100%;
  }
}
@media (max-width: 767px) {
  .eod-services {
    padding-top: 5em;
    padding-bottom: 5em;
  }
  .eod-services__group {
    max-width: none;
  }
}
@media (max-width: 479px) {
  .eod-services__grid {
    row-gap: 2em;
  }
  .eod-services__group {
    padding-right: 1em;
  }
  .eod-services__label {
    margin-bottom: 1em;
  }
}
