.core-services {
  padding-block: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.core-services-intro {
  display: grid;
  gap: 16px 40px;
  align-items: end;
  margin-block-end: 28px;
}

.core-services h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 520;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.core-services p {
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

.core-services-intro p { max-width: 38ch; }

.core-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block-start: 1px solid var(--line);
}

.core-services-list li { border-block-end: 1px solid var(--line); }

.core-services .core-service-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  min-height: 76px;
  padding: 16px 4px;
  color: var(--text);
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 180ms ease;
}

.core-services .core-service-link:is(:hover, :focus-visible) { background: var(--surface-alt); }
.core-services .core-service-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }

.core-service-mark {
  grid-row: 1;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.core-service-mark[src$="well-platform-mark.svg"] { background: #111211; }

.core-services h3 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 580;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.core-service-link p {
  grid-column: 2 / -1;
  grid-row: 2;
  font-size: 15px;
  line-height: 1.5;
}

.core-service-arrow {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background-color 180ms ease, color 180ms ease;
}

.core-services .core-service-arrow svg { transition: transform 180ms cubic-bezier(.16,1,.3,1); }
.core-service-link:is(:hover, :focus-visible) .core-service-arrow { background: var(--orange); color: #111; }
.core-service-link:is(:hover, :focus-visible) .core-service-arrow svg { transform: translateX(3px); }

@media (min-width: 760px) {
  .core-services-intro { grid-template-columns: 1fr auto; margin-block-end: 36px; }
  .core-services .core-service-link {
    grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr) 44px;
    gap: 24px;
    padding: 20px 12px;
  }
  .core-service-mark, .core-service-arrow { width: 44px; height: 44px; }
  .core-service-link p { grid-column: 3; grid-row: 1; }
  .core-service-arrow { grid-column: 4; }
}

@media (prefers-reduced-motion: reduce) {
  .core-services .core-service-link, .core-service-arrow, .core-services .core-service-arrow svg { transition: none; }
  .core-service-link:is(:hover, :focus-visible) .core-service-arrow svg { transform: none; }
}
