.services-page {
  --services-bg: #141414;
  --services-surface: #1c1c1c;
  --services-ink: #f4f1ea;
  --services-muted: #b4b0a9;
  --services-accent: #f9c586;
  --services-line: rgba(244, 241, 234, 0.16);
  background: var(--services-bg);
}

.services-page .site-header {
  background: var(--services-bg);
}

.services-page.menu-open .site-header {
  background: transparent;
}

.services-shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 150px 40px 96px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

.services-intro {
  margin-bottom: 72px;
}

.services-eyebrow {
  margin: 0 0 16px;
  color: var(--services-accent);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
}

.services-intro h1 {
  max-width: 26ch;
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}

.services-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 48px 56px;
  align-items: start;
  padding-block: 58px;
  border-top: 1px solid var(--services-line);
  scroll-margin-top: 100px;
}

.services-entry__heading {
  min-width: 0;
}

.services-entry h2 {
  min-width: 0;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.services-entry__body p {
  max-width: 52ch;
  margin: 0;
  color: var(--services-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.services-entry__body .services-entry__tag {
  margin-top: 18px;
  color: var(--services-accent);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
}

.services-preview {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--services-line);
  background: var(--services-surface);
}

.services-preview__mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.18;
}

.services-preview figcaption {
  position: absolute;
  inset: auto 24px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  color: var(--services-muted);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.services-preview__status {
  color: var(--services-accent);
}

.services-preview > video,
.services-preview > img:not(.services-preview__mark) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  .services-preview {
    aspect-ratio: 1280 / 2276;
    max-width: calc((100svh - 112px) * 1280 / 2276);
    justify-self: center;
  }
}

.services-contact {
  margin-top: 64px;
  padding-top: 72px;
  border-top: 1px solid var(--services-line);
  text-align: center;
}

.services-contact h2 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-contact p {
  max-width: 42ch;
  margin: 0 auto 32px;
  color: var(--services-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.services-contact__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 32px;
  border-radius: 2px;
  background: var(--services-accent);
  color: var(--services-bg);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.services-contact__link:hover {
  background: var(--services-ink);
}

.services-contact__link:focus-visible {
  outline: 2px solid var(--services-accent);
  outline-offset: 5px;
}

.services-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  border-top: 1px solid var(--services-line);
}

.services-footer img {
  object-fit: contain;
  opacity: 0.6;
}

.services-footer p {
  margin: 0;
  color: var(--services-muted);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .services-shell {
    padding: 128px 26px 72px;
  }

  .services-entry {
    column-gap: 32px;
  }
}

@media (max-width: 780px) {
  .services-intro {
    margin-bottom: 48px;
  }

  .services-intro h1 {
    font-size: 1.75rem;
  }

  .services-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 36px;
  }

  .services-preview {
    margin-top: 12px;
  }

  .services-contact {
    margin-top: 36px;
    padding-top: 48px;
  }

  .services-contact h2 {
    font-size: 1.375rem;
  }

  .services-footer {
    padding: 32px 26px;
  }
}

@media (max-width: 560px) {
  .services-shell {
    padding: 112px 20px 64px;
  }

  .services-preview__mark {
    width: 40px;
    height: 40px;
  }

  .services-preview figcaption {
    inset: auto 12px 12px;
    font-size: 0.75rem;
  }

  .services-footer {
    padding: 28px 20px;
  }
}
