/* ============================================
   Services page — its own layout, not a wedge.
   ============================================ */

/* --- Hero --- */
.svc-hero {
  padding: 9.5rem 0 4.9rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.svc-hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 38% at 14% 22%, rgba(var(--accent-rgb), 0.10) 0%, transparent 66%),
    radial-gradient(ellipse 42% 48% at 88% 14%, rgba(216, 185, 138, 0.08) 0%, transparent 62%),
    radial-gradient(ellipse 58% 32% at 50% 92%, rgba(var(--accent-rgb), 0.06) 0%, transparent 58%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.svc-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.svc-eyebrow,
.svc-fit-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* Override the global `p { max-width }` since the eyebrow is a <p>. */
.svc-fit-eyebrow {
  max-width: none;
}

/* ROI section eyebrow, right-aligned. */
.svc-roi-eyebrow {
  text-align: right;
  margin-bottom: 2rem;
}

.svc-title {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 880px;
  margin-bottom: 1.75rem;
}

.svc-subtitle {
  font-size: 1.375rem;
  color: var(--warm-gray-600);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

/* --- Context: sticky photo + pressure list --- */
.svc-pressures {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: var(--off-white);
  position: relative;
}

/* Subtle hairline divider above the Context section, fading at the edges. */
.svc-pressures::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(11, 11, 10, 0.08);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  pointer-events: none;
}

.svc-split {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

.svc-photo,
.svc-fit-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
}

/* Context section: stick on scroll while the pressure list scrolls past. */
.svc-photo {
  position: sticky;
  top: 6rem;
}

.svc-photo img,
.svc-fit-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: var(--photo-grade);
}

.svc-photo::after,
.svc-fit-photo::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 38%;
  height: 22%;
  border-right: 1px solid rgba(11, 11, 10, 0.16);
  border-bottom: 1px solid rgba(11, 11, 10, 0.16);
  pointer-events: none;
}

/* Wraps the heading + list inside the sticky-photo grid. */
.svc-pressure-stack {
  display: flex;
  flex-direction: column;
}

/* Matches the wedge pages' .moments-header-inline h2. */
.svc-context-heading {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin: 0 0 clamp(2rem, 4vw, 3.75rem);
  max-width: none;
}

.svc-pressure-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-pressure {
  padding: 3rem 0;
  border-top: 1px solid rgba(11, 11, 10, 0.08);
}

.svc-pressure:last-child {
  border-bottom: 1px solid rgba(11, 11, 10, 0.08);
}

.svc-pressure-body h2,
.svc-pressure-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: none;
}

/* Override the global `p { max-width }`. */
.svc-pressure-body p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--warm-gray-600);
  max-width: none;
}

/* --- Commercial controls trio overrides (on top of styles.css .moments-trio) --- */
.svc-controls-trio .moments-trio-head {
  height: auto;
  min-height: 3.75em;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
}

.svc-controls-trio .moments-trio-block {
  min-height: auto;
  justify-content: flex-start;
  gap: 2rem;
}

.svc-controls-trio .moments-trio-block > div {
  min-height: 0;
}

/* --- Dark section heading wrapper (services-old uses this above ROI) --- */
.svc-fit-inner {
  max-width: 820px;
  margin-bottom: 5rem;
}

.svc-fit-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
}

/* --- Operating-model-fit layout: photo + prose --- */
.svc-block {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: var(--off-white);
}

.svc-fit-layout {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

.svc-fit-layout .svc-prose {
  max-width: none;
  margin: 0;
}

/* --- Prose blocks --- */
.svc-prose {
  max-width: 820px;
  margin: 0 auto;
}

.svc-prose h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  max-width: none;
}

.svc-prose p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--warm-gray-600);
  max-width: none;
  margin-bottom: 1.25rem;
}

.svc-prose p:last-child {
  margin-bottom: 0;
}

/* --- Dark section divider (used on services-old) --- */
.svc-dark-divider {
  background: var(--soft-black);
}

.svc-dark-divider::after {
  content: '';
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .svc-hero {
    padding: 11.2rem 0 6.3rem;
  }

  .svc-split {
    gap: 2.5rem;
  }

  .svc-pressures {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .svc-pressure {
    padding: 2.5rem 0;
  }

  .svc-fit-inner {
    margin-bottom: 3.5rem;
  }

  .svc-block {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .svc-context-heading,
  .svc-prose h2 {
    font-size: clamp(1.625rem, 4.2vw, 2.125rem);
  }
}

@media (max-width: 720px) {
  .svc-hero {
    padding: 8.4rem 0 1.5rem;
  }

  .svc-subtitle {
    font-size: 1.1875rem;
  }

  .svc-split {
    grid-template-columns: 1fr;
  }

  .svc-photo {
    position: static;
    max-width: 360px;
    margin: 0 auto;
  }

  .svc-pressure {
    padding: 2rem 0;
  }

  .svc-fit-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .svc-fit-photo {
    max-width: 360px;
    margin: 0 auto;
  }
}
