/* /services/ editorial layout.

   Three parts per <section>:
     1. .service-section__media   — full-bleed photo of a tagged production
     2. .service-section__copy    — index + heading + Page.body content
     3. .service-section__rail    — 3-card "Recently delivered" strip

   The page uses existing brand tokens from site.css (--bg-primary,
   --text-primary, --accent, font-heading, font-body). No new tokens. */

.services-page {
  margin: 0;
  padding: 0;
}

/* --- Hero -------------------------------------------------------------- */

.services-page__hero {
  padding: 120px 0 90px;
  background:
    radial-gradient(ellipse at top right, rgba(124, 58, 237, 0.18), transparent 60%),
    var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.services-page__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-light, var(--accent));
  margin: 0 0 14px;
}

.services-page__hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 24px;
  max-width: 14ch;
}

.services-page__lede {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 56ch;
  margin: 0 0 36px;
}

.services-page__lede p { margin: 0 0 12px; }

.services-page__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.services-page__jump a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.services-page__jump a:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* --- Section --------------------------------------------------------- */

.service-section {
  position: relative;
  padding: 0 0 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-section:last-of-type {
  border-bottom: 0;
}

/* --- Section media (full-bleed photo) --------------------------------- */

.service-section__media {
  position: relative;
  width: 100%;
  height: clamp(360px, 56vh, 620px);
  overflow: hidden;
}

.service-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Subtle parallax-ish lift on the image without actual parallax JS —
     transform is cheap, the visual depth makes scrolling more cinematic. */
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.service-section:hover .service-section__media img {
  transform: scale(1.0);
}

.service-section__media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.35) 0%,
    rgba(20, 20, 20, 0.15) 40%,
    rgba(20, 20, 20, 0.85) 100%
  );
  pointer-events: none;
}

.service-section__media-credit {
  position: absolute;
  left: 32px;
  bottom: 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-family: var(--font-body);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  transition: background 0.15s;
}

.service-section__media-credit:hover {
  background: rgba(0, 0, 0, 0.7);
}

.service-section__media-credit-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.service-section__media-credit-title {
  font-size: 13px;
  font-weight: 500;
}

/* --- Section copy ----------------------------------------------------- */

.service-section__copy {
  margin: -60px 0 0;
  position: relative;
  z-index: 1;
}

.service-section__index {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: inline-block;
  margin: 0 0 12px;
  /* Bring the index out from behind the photo for the first section
     where the media starts at the very top of the page. */
  background: var(--bg-primary);
  padding: 8px 18px 12px 0;
  border-radius: 0 8px 0 0;
}

.service-section__copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 28px;
}

.service-section__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
}

.service-section__body p {
  margin: 0 0 18px;
}

.service-section__body p:last-child {
  margin-bottom: 0;
}

/* Lists rendered as a clean two-column capability grid on desktop. */
.service-section__body ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

.service-section__body li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.45;
}

.service-section__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.service-section__body li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Recently delivered rail ----------------------------------------- */

.service-section__rail {
  margin-top: 60px;
}

.service-section__rail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  margin: 0 0 18px;
}

.service-section__rail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 0 0 24px;
}

.service-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  text-decoration: none;
  background: var(--bg-secondary);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  color: #fff;
}

.service-card__year {
  font-size: 11px;
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 4px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.service-section__rail-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s;
}

.service-section__rail-cta:hover {
  color: var(--text-primary);
}

/* --- Closing CTA ----------------------------------------------------- */

.services-page__cta {
  padding: 100px 0 120px;
  text-align: center;
  background:
    radial-gradient(ellipse at bottom, rgba(124, 58, 237, 0.16), transparent 65%),
    var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-page__cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.services-page__cta p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-body);
  max-width: 50ch;
  margin: 0 auto 32px;
}

/* --- Mobile ---------------------------------------------------------- */

@media (max-width: 720px) {
  .services-page__hero {
    padding: 70px 0 50px;
  }

  .service-section {
    padding: 0 0 50px;
  }

  .service-section__media {
    height: clamp(260px, 50vh, 380px);
  }

  .service-section__media-credit {
    left: 16px;
    bottom: 16px;
  }

  .service-section__copy {
    margin-top: -30px;
  }

  .service-section__body ul {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
