.service-page,
.content-archive,
.single-content,
.legal-page {
  padding-top: var(--header-height);
}
.service-page-content > *:not(.service-hero-block):not(.service-brand-strip):not(.testimonials-section) {
  width: min(100% - (2 * var(--page-gutter)), var(--container-wide));
  margin-inline: auto;
}

.service-hero-block {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 38rem;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) max(var(--page-gutter), calc((100vw - var(--container-wide)) / 2 + var(--page-gutter)));
  background: #000 var(--service-hero-image) 68% center / cover no-repeat;
  color: #fff;
}

.service-hero-block::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 92%) 0%, rgb(0 0 0 / 68%) 52%, rgb(0 0 0 / 30%) 100%);
  content: "";
}

.service-hero-block .heading-1 {
  max-width: 54rem;
}

.service-hero-lead {
  max-width: 46rem;
  margin-top: 1.75rem;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.service-hero-block .wp-block-buttons,
.service-cta-block .wp-block-buttons,
.service-final-cta .wp-block-buttons {
  margin-top: 2rem;
}

.wp-block-button.is-style-ppd-primary .wp-block-button__link {
  display: inline-flex;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--shadow-button);
  transition: transform 180ms ease, background-color 180ms ease;
}

.wp-block-button.is-style-ppd-primary .wp-block-button__link:hover {
  transform: translateY(-0.125rem);
  background: #fff;
}

.service-brand-strip {
  padding: 2.25rem 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.service-brand-strip > p {
  margin-bottom: 1.5rem;
  color: rgb(255 255 255 / 65%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.service-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-brand-item {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.service-brand-item img {
  max-width: 8.5rem;
  max-height: 2.4rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.service-brand-item span {
  font-size: 0.8rem;
  font-weight: 700;
}

.service-section {
  padding-block: var(--section-space);
}

.service-section > h2,
.service-cta-block > h2,
.service-cta-content > h2,
.service-final-cta > h2 {
  max-width: 58rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.service-section > p,
.service-cta-block > p,
.service-cta-content > p,
.service-final-cta > p {
  max-width: 52rem;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.8;
}

.capabilities-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.capabilities-grid > .capability-card,
.value-rhythm > .value-block,
.methodology-list > .methodology-item {
  margin-block-start: 0;
}

.service-capabilities--home-style {
  position: relative;
  z-index: 0;
  color: #fff;
}

.service-capabilities--home-style::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--ink);
  content: "";
}

.service-capabilities--home-style > h2,
.service-capabilities--home-style > .section-intro {
  margin-inline: auto;
  text-align: center;
}

.service-capabilities--home-style > .section-intro {
  color: rgb(255 255 255 / 65%);
}

.capability-card {
  position: relative;
  min-height: 23rem;
  padding: 2rem;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 rgb(0 0 0 / 0%);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.capability-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.25rem;
  background: var(--brand);
  content: "";
}

.capability-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-service);
}

.capability-card h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.capability-card ul {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.capability-card li {
  position: relative;
  min-height: 1.5rem;
  padding: 0 0 1rem 1.75rem;
  border-bottom: 1px solid #e5e5e5;
  color: #404040;
  font-size: 0.875rem;
  font-weight: 600;
}

.capability-card li::before {
  position: absolute;
  top: 0.1rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  background: var(--brand);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m20 6-11 11-5-5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m20 6-11 11-5-5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-value:not(.service-value--visual) {
  color: #fff;
}

.service-value:not(.service-value--visual)::before {
  position: absolute;
  z-index: -1;
  right: 50%;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: var(--ink);
  content: "";
}

.service-value:not(.service-value--visual),
.service-value--visual {
  position: relative;
  z-index: 0;
}

.service-value:not(.service-value--visual) > p {
  color: rgb(255 255 255 / 65%);
}

.service-value--visual {
  padding-top: calc(var(--section-space) + 1.5rem);
}

.service-value--visual::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--surface-muted);
  content: "";
}

.service-value--visual > h2,
.service-value--visual > .section-intro {
  margin-inline: auto;
  text-align: center;
}

.value-rhythm {
  display: grid;
  gap: clamp(4.5rem, 9vw, 8rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}

.value-block {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.value-block__copy {
  max-width: 38rem;
}

.value-block h3,
.methodology-item h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}

.value-block p,
.methodology-item p {
  margin-top: 1rem;
  line-height: 1.8;
}

.value-block p {
  color: var(--muted-foreground);
}

.value-block .wp-block-buttons {
  margin-top: 1.75rem;
}

.value-block__media {
  min-height: clamp(20rem, 58vw, 32rem);
  margin: 0;
  overflow: hidden;
  border: 0.75rem solid #fff;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.value-block__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.value-block__media--one img {
  object-position: 16% center;
}

.value-block__media--two img {
  object-position: 35% center;
}

.value-block__media--three img {
  object-position: 52% center;
}

.value-block__media--four img {
  object-position: 71% center;
}

.value-block__media--five img {
  object-position: 88% center;
}

.service-testimonials {
  margin-block: 0;
  padding-top: calc(var(--section-space) + 1rem);
  border-top: 1px solid var(--border);
}

.service-cta-block,
.service-final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem);
  border: 1px solid rgb(13 13 13 / 8%);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, #fffaf0 0%, #f4e7bb 100%);
  box-shadow: 0 24px 65px rgb(13 13 13 / 10%);
}

.service-cta-block > p,
.service-cta-content > p,
.service-final-cta > p {
  color: rgb(13 13 13 / 70%);
}

.service-cta-block .wp-block-button.is-style-ppd-primary .wp-block-button__link,
.service-final-cta .wp-block-button__link {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.service-cta-block .wp-block-button.is-style-ppd-primary .wp-block-button__link:hover,
.service-final-cta .wp-block-button__link:hover {
  background: #fff;
  color: var(--ink);
}

.service-cta-block--split {
  display: grid;
  min-height: 31rem;
  grid-template-columns: 1fr;
  padding: 0;
  background: #f4e2a8;
}

.service-cta-media {
  min-height: 20rem;
  margin: 0;
  overflow: hidden;
}

.service-cta-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 50% 38%;
}

.service-cta-content {
  align-self: center;
  padding: clamp(2.5rem, 7vw, 5.5rem);
}

.service-cta-content > h2 {
  max-width: 46rem;
}

.service-cta-block--soft::after {
  position: absolute;
  z-index: -1;
  right: clamp(-7rem, -5vw, -3rem);
  bottom: clamp(-8rem, -6vw, -4rem);
  width: clamp(14rem, 28vw, 24rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 212 0 / 58%);
  content: "";
}

.service-methodology {
  max-width: var(--container-wide) !important;
}

.service-methodology > h2 {
  margin-inline: auto;
  text-align: center;
}

.methodology-list {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 4rem);
  margin-top: 3rem;
}

.methodology-item {
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}

.methodology-item p {
  color: var(--muted-foreground);
}

.service-faq {
  max-width: var(--container-wide) !important;
  padding-block: calc(var(--section-space) + 1rem);
  border-top: 1px solid var(--border);
}

.service-faq > h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
}

.service-faq .wp-block-details {
  margin: 0;
  border-bottom: 1px solid #d4d4d4;
}

.service-faq .wp-block-details:first-of-type {
  border-top: 1px solid #d4d4d4;
}

.service-faq summary {
  position: relative;
  padding: 1.375rem 3rem 1.375rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
}

.service-faq summary::-webkit-details-marker {
  display: none;
}

.service-faq summary::after {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  transform: translateY(-68%) rotate(45deg);
  border-right: 2px solid #9b8100;
  border-bottom: 2px solid #9b8100;
  content: "";
  transition: transform 180ms ease;
}

.service-faq details[open] > summary::after {
  transform: translateY(-28%) rotate(225deg);
}

.service-faq details > p {
  padding: 0 3rem 1.5rem 0;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.35vw, 1.05rem);
  line-height: 1.6;
}

.service-final-cta {
  margin-bottom: var(--section-space);
  border-color: rgb(255 255 255 / 10%);
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.service-final-cta::before {
  position: absolute;
  z-index: -1;
  top: -55%;
  left: -5%;
  width: 30rem;
  max-width: 70vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 212 0 / 16%);
  content: "";
  filter: blur(0.25rem);
}

.service-final-cta > h2,
.service-final-cta .wp-block-buttons {
  margin-inline: auto;
  justify-content: center;
}

.service-final-cta .wp-block-button__link {
  background: var(--brand);
  color: var(--ink);
}

.archive-hero {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--surface-muted);
}

.archive-hero--dark {
  background: var(--ink);
  color: #fff;
}

.archive-hero p {
  max-width: 48rem;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.archive-hero--dark p {
  color: rgb(255 255 255 / 65%);
}

.archive-body {
  padding-block: var(--section-space);
}

.content-card-grid {
  display: grid;
  gap: 1.5rem;
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.content-card-media {
  display: grid;
  min-height: 15rem;
  place-items: center;
  overflow: hidden;
  background: var(--surface-muted);
}

.content-card-media img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
}

.content-card-placeholder {
  width: 4rem;
  height: 0.35rem;
  background: var(--brand);
}

.content-card-copy {
  padding: 1.75rem;
}

.content-card-copy h2 {
  font-size: 1.4rem;
  line-height: 1.25;
}

.content-card-copy p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 800;
}

.archive-empty {
  padding: clamp(3rem, 8vw, 6rem);
  background: var(--surface-muted);
  text-align: center;
}

.archive-empty h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.archive-empty p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.single-content,
.legal-page-inner {
  padding-block: var(--section-space);
}

.content-eyebrow {
  margin-bottom: 1rem;
  color: #a88d00;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.single-intro,
.entry-content {
  margin-top: 2rem;
}

.single-intro {
  color: var(--muted-foreground);
  font-size: 1.2rem;
  line-height: 1.75;
}

.single-featured {
  margin-top: 3rem;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.85;
}

.entry-content > * + * {
  margin-top: 1.5rem;
}

.legal-content {
  min-height: 15rem;
}

@media (min-width: 40rem) {
  .service-brand-grid,
  .capabilities-grid,
  .content-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .methodology-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .service-brand-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .capabilities-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .value-block {
    min-height: min(44rem, calc(100svh - var(--header-height)));
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .value-block:nth-child(even) {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .value-block:nth-child(even) .value-block__copy {
    order: 2;
  }

  .value-block:nth-child(even) .value-block__media {
    order: 1;
  }

  .value-block__media {
    min-height: clamp(28rem, 38vw, 35rem);
  }

  .service-cta-block--split {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  }

  .service-cta-media {
    z-index: 1;
    width: calc(100% + 3rem);
    min-height: 31rem;
    border-radius: 0 46% 46% 0 / 0 100% 100% 0;
  }

  .service-cta-content {
    padding-left: clamp(5rem, 8vw, 8rem);
  }

  .methodology-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-faq {
    display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    column-gap: clamp(3rem, 7vw, 7rem);
  }

  .service-faq > h2 {
    grid-row: 1 / span 13;
    grid-column: 1;
  }

  .service-faq > .wp-block-details {
    grid-column: 2;
  }

  .content-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 30rem) {
  .service-hero-block .heading-1 {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-button__link {
    transition-duration: 0.01ms !important;
  }
}
