/* =================================================================
   Enterprise Carbon — hub page layouts (about, portfolio, services, blog)
   ================================================================= */

.ep-split {
  background: var(--hero-bg);
  overflow: hidden;
}

.ep-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(440px, 58vh, 580px);
}

.ep-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 9vw, 96px) clamp(20px, 4vw, 32px);
  max-width: calc(656px + clamp(20px, 4vw, 32px));
  margin-left: max(0px, calc((100vw - min(1312px, 100vw)) / 2));
}

.ep-split__content--center {
  margin-left: 0;
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

.ep-split__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-bottom: 16px;
}

.ep-split h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--blue-60);
  max-width: 16ch;
  margin-bottom: 24px;
}

.ep-split__content--center h1 {
  max-width: 20ch;
}

.ep-split__lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-on-light);
  max-width: 42ch;
  margin-bottom: 32px;
}

.ep-split__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.ep-split__content--center .ep-split__actions {
  align-items: center;
}

.ep-split__actions .btn {
  min-width: min(100%, 360px);
  justify-content: space-between;
  min-height: 48px;
  border-radius: 0;
}

.ep-split__media {
  position: relative;
  min-height: 280px;
  background: #dde1e6;
}

.ep-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ep-split__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--hero-bg) 0%, rgba(242, 244, 248, 0.5) 14%, transparent 30%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .ep-split__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ep-split__content {
    margin-left: 0;
    max-width: none;
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .ep-split__media {
    order: -1;
    min-height: 260px;
    max-height: 340px;
  }

  .ep-split__media::before {
    background: linear-gradient(180deg, transparent 50%, var(--hero-bg) 100%);
  }
}

@media (max-width: 1024px) {
  .ep-split__content {
    margin-left: 0;
    max-width: none;
  }

  .ep-split__grid {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .ep-split h1 {
    max-width: none;
  }

  .ep-split__media {
    min-height: 200px;
    max-height: 260px;
  }

  .ep-split__actions .btn {
    min-width: 100%;
    width: 100%;
  }
}

/* Section shell */
.ep-section {
  padding: var(--section) 0;
}

.ep-section--alt {
  background: var(--carbon-10);
}

.ep-section__head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.ep-section__head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ep-section__head p {
  font-size: 1rem;
  color: var(--text-muted-light);
  max-width: 62ch;
  line-height: 1.6;
}

/* 3-up cards */
.ep-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .ep-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ep-cards {
    grid-template-columns: 1fr;
  }
}

.ep-card {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3vw, 32px);
  min-height: 200px;
}

.ep-section--alt .ep-card {
  background: #fff;
}

.ep-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ep-card p {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  line-height: 1.55;
}

.ep-card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-60);
  margin-bottom: 12px;
}

/* Story two-column */
.ep-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) {
  .ep-story {
    grid-template-columns: 1fr;
  }
}

.ep-story__quote {
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3vw, 32px);
}

.ep-story__quote p {
  font-size: 1.0625rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.ep-story__quote footer {
  font-size: 0.875rem;
  color: var(--text-muted-light);
}

.ep-story__body p {
  margin-bottom: 16px;
  color: var(--text-muted-light);
  line-height: 1.65;
}

.ep-story__body strong {
  color: var(--text-on-light);
}

/* Timeline */
.ep-timeline {
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.ep-timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(16px, 3vw, 32px);
  background: #fff;
  padding: clamp(20px, 3vw, 28px);
  align-items: start;
}

@media (max-width: 600px) {
  .ep-timeline__item {
    grid-template-columns: 1fr;
  }
}

.ep-timeline__year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-60);
}

.ep-timeline__item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ep-timeline__item p {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  line-height: 1.55;
  margin-bottom: 8px;
}

.ep-timeline__tag {
  font-size: 0.75rem;
  color: var(--blue-60);
}

/* Team grid */
.ep-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .ep-team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ep-team {
    grid-template-columns: 1fr;
  }
}

.ep-team__card {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.ep-team__initials {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-60);
  margin-bottom: 16px;
}

.ep-team__card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.ep-team__role {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  margin-bottom: 12px;
  flex-grow: 1;
}

.ep-team__card a {
  font-size: 0.875rem;
  color: var(--blue-60);
  text-decoration: none;
}

.ep-team__card a:hover {
  text-decoration: underline;
}

/* Studios grid (dark band) */
.ep-studios {
  padding: var(--section) 0;
  background: var(--carbon-100);
  color: var(--text-on-dark);
}

.ep-studios h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: clamp(32px, 4vw, 48px);
  color: var(--text-on-dark);
}

.ep-studios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--carbon-80);
}

@media (max-width: 900px) {
  .ep-studios__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ep-studios__grid {
    grid-template-columns: 1fr;
  }
}

.ep-studios__tile {
  background: var(--carbon-100);
  padding: 28px;
  min-height: 160px;
}

.ep-studios__tile h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-on-dark);
}

.ep-studios__tz {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  margin-bottom: 12px;
}

.ep-studios__tile p {
  font-size: 0.875rem;
  color: var(--text-muted-dark);
  line-height: 1.5;
}

/* Filters */
.ep-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: clamp(24px, 3vw, 32px);
}

@media (max-width: 640px) {
  .ep-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ep-filters {
    width: 100%;
  }
}

.ep-toolbar__count {
  font-size: 0.875rem;
  color: var(--text-muted-light);
}

.ep-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ep-filter,
.blog-filter {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--text-muted-light);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.ep-filter:hover,
.blog-filter:hover {
  border-color: var(--blue-60);
  color: var(--blue-60);
}

.ep-filter.is-active,
.blog-filter.is-active {
  background: rgba(15, 98, 254, 0.08);
  border-color: var(--blue-60);
  color: var(--blue-60);
}

/* Portfolio grid */
.ep-portfolio {
  padding: var(--section) 0;
  background: var(--bg);
}

.portfolio-page .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .portfolio-page .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portfolio-page .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-page .portfolio-card {
  grid-column: auto !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line-light);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(22, 22, 22, 0.06);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.portfolio-page .portfolio-card:hover {
  background: #fff;
  border-color: var(--blue-60);
  box-shadow: 0 18px 42px rgba(22, 22, 22, 0.1), 0 0 0 1px rgba(15, 98, 254, 0.08);
  transform: none;
}

.portfolio-page .portfolio-card:focus-visible {
  outline: 2px solid var(--blue-60);
  outline-offset: 2px;
}

.portfolio-page .portfolio-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: #161616;
  border-bottom: 1px solid var(--line-light);
}

.portfolio-page .portfolio-card__media::before,
.portfolio-page .portfolio-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.portfolio-page .portfolio-card__media::before {
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0) 42%, rgba(22, 22, 22, 0.68) 100%),
    linear-gradient(90deg, rgba(22, 22, 22, 0.1), rgba(22, 22, 22, 0));
}

.portfolio-page .portfolio-card__media::after {
  border: 1px solid rgba(255, 255, 255, 0.18);
  inset: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

.portfolio-page .portfolio-card:hover .portfolio-card__media::after {
  opacity: 1;
}

.portfolio-page .portfolio-card__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-page .portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04) brightness(0.94);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-page .portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.06) brightness(0.98);
}

.portfolio-page .portfolio-card[data-project="hero-motocorp"] .portfolio-card__media img,
.portfolio-page .portfolio-card[data-project="pulse-fitness"] .portfolio-card__media img {
  object-position: center 62%;
}

.portfolio-page .portfolio-card[data-project="hyundai-motors"] .portfolio-card__media img,
.portfolio-page .portfolio-card[data-project="reliance-jio"] .portfolio-card__media img {
  object-position: center;
}

.portfolio-page .portfolio-card[data-project="bcpl"] .portfolio-card__media img,
.portfolio-page .portfolio-card[data-project="swagat-restaurant"] .portfolio-card__media img {
  object-position: center 42%;
}

.portfolio-page .portfolio-card[data-project="wild-nectar"] .portfolio-card__media img {
  object-position: center 58%;
}

.portfolio-page .portfolio-card[data-project="rangi-bawri"] .portfolio-card__media img,
.portfolio-page .portfolio-card[data-project="ihelp-support"] .portfolio-card__media img,
.portfolio-page .portfolio-card[data-project="vida-ev"] .portfolio-card__media img,
.portfolio-page .portfolio-card[data-project="northwind-supply"] .portfolio-card__media img {
  object-position: center 38%;
}

.portfolio-page .portfolio-card__media-bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
}

.portfolio-page .portfolio-card__practice {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.portfolio-page .portfolio-card__badge {
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-on-light);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.portfolio-page .portfolio-card__badge--status {
  color: var(--blue-60);
  background: #fff;
}

.portfolio-page .portfolio-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  padding: 18px 20px 16px;
}

.portfolio-page .portfolio-card__eyebrow {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-60);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-page .portfolio-card__name {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
  transition: color 0.15s;
}

.portfolio-page .portfolio-card:hover .portfolio-card__name {
  color: var(--blue-60);
}

.portfolio-page .portfolio-card__headline {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-on-light);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-page .portfolio-card__outcome {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted-light);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-page .portfolio-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.portfolio-page .portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.portfolio-page .portfolio-card__tags li {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--line-light);
  color: var(--text-muted-light);
  white-space: nowrap;
}

.portfolio-page .portfolio-card:hover .portfolio-card__tags li {
  background: var(--carbon-10);
}

.portfolio-page .portfolio-card__tags-more {
  color: var(--blue-60) !important;
  border-color: transparent !important;
  background: transparent !important;
  padding-left: 0 !important;
}

.portfolio-page .portfolio-card__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-60);
  white-space: nowrap;
  transition: gap 0.15s;
}

.portfolio-page .portfolio-card:hover .portfolio-card__cta {
  gap: 8px;
}

@media (max-width: 900px) {
  .portfolio-page .portfolio-card__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-page .portfolio-card__tags li {
    white-space: normal;
  }

  .portfolio-page .portfolio-card__cta {
    align-self: flex-end;
  }
}

.portfolio-page .portfolio-card.is-hidden {
  display: none;
}

/* Blog listing */
.ep-blog {
  padding: var(--section) 0;
  background: #fff;
}

.blog-page .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .blog-page .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-page .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-page .blog-card {
  background: var(--carbon-10);
  border: 1px solid transparent;
  border-radius: 0;
  min-height: 200px;
  transition: border-color 0.15s;
  box-shadow: none;
}

.blog-page .blog-card::before {
  display: none;
}

.blog-page .blog-card:hover {
  border-color: var(--blue-60);
  background: #fff;
  transform: none;
}

.blog-page .blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-page .blog-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-60);
  margin-bottom: 12px;
}

.blog-page .blog-card__tag::before {
  display: none;
}

.blog-page .blog-card h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-page .blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-page .blog-card h2 a:hover {
  color: var(--blue-60);
}

.blog-page .blog-card p {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  line-height: 1.55;
  flex-grow: 1;
}

.blog-page .blog-card__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-page .blog-card__region {
  font-size: 0.75rem;
  color: var(--text-muted-light);
}

.blog-page .blog-card__read {
  font-size: 0.875rem;
  color: var(--blue-60);
  font-weight: 400;
}

.blog-page .blog-card.is-hidden {
  display: none;
}

/* Services hub — reuse enterprise grid, add hub intro */
.ep-services-intro {
  padding: var(--section) 0;
  background: #fff;
  border-bottom: 1px solid var(--line-light);
}

.ep-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
}

@media (max-width: 900px) {
  .ep-process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ep-process {
    grid-template-columns: 1fr;
  }
}

.ep-process__step {
  background: #fff;
  padding: clamp(24px, 3vw, 32px);
  min-height: 180px;
}

.ep-process__step strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-60);
  margin-bottom: 12px;
}

.ep-process__step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ep-process__step p {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  line-height: 1.5;
}

/* Featured row on portfolio */
.ep-featured {
  padding: var(--section) 0;
  background: #fff;
}

.ep-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .ep-featured__grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   Inner pages — services, contact, pricing, legal, blog article,
   case study, thank-you, 404
   ================================================================= */

.ep-breadcrumb-wrap {
  padding-top: clamp(24px, 4vw, 32px);
}

.ep-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
}

.ep-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted-light);
}

.ep-breadcrumb a {
  color: var(--text-muted-light);
  text-decoration: none;
}

.ep-breadcrumb a:hover {
  color: var(--blue-60);
}

.ep-breadcrumb [aria-current="page"] {
  color: var(--text-on-light);
}

.ep-split--service .ep-split__grid {
  min-height: clamp(400px, 52vh, 540px);
}

.ep-split--compact {
  border-bottom: 1px solid var(--line-light);
}

.ep-split__grid--solo {
  grid-template-columns: 1fr;
  min-height: auto;
}

.ep-split__grid--pricing {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: auto;
  align-items: stretch;
}

@media (max-width: 900px) {
  .ep-split__grid--pricing {
    grid-template-columns: 1fr;
  }
}

.ep-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.ep-taglist li {
  font-size: 0.75rem;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--line-light);
  color: var(--text-muted-light);
}

.ep-split--service .ep-taglist li {
  background: var(--carbon-10);
}

.ent-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* —— Service page sections —— */
.service-page .service-overview,
.service-page .service-why,
.service-page .service-compare,
.service-page .service-diff,
.service-page .service-deliverables,
.service-page .service-process,
.service-page .service-outcomes,
.service-page .service-faq,
.service-page .service-related {
  padding: var(--section) 0;
  background: #fff;
}

.service-page .service-why,
.service-page .service-diff {
  background: var(--carbon-05);
}

.service-page .section-head h2,
.service-page .h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
}

.service-page .section-head .lead,
.service-page .lead {
  color: var(--text-muted-light);
  max-width: 62ch;
}

.service-page .service-overview__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) {
  .service-page .service-overview__layout {
    grid-template-columns: 1fr;
  }
}

.service-page .service-overview__body p {
  color: var(--text-muted-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-page .service-verticals {
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3vw, 32px);
}

.service-page .service-verticals h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-page .service-verticals li {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
}

.service-page .service-why__grid,
.service-page .service-diff__grid,
.service-page .service-deliverables__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-page .service-diff__grid {
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 40px);
}

@media (max-width: 900px) {
  .service-page .service-why__grid,
  .service-page .service-diff__grid,
  .service-page .service-deliverables__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .service-page .service-why__grid,
  .service-page .service-diff__grid,
  .service-page .service-deliverables__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-page .service-why__card,
.service-page .service-deliverables__card {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: none;
  border-radius: 0;
}

/* —— Why teams choose us (service-diff) —— */
.service-page .service-diff__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(28px, 3.5vw, 36px);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-page .service-diff__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--blue-60);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-page .service-diff__card:hover {
  border-color: rgba(15, 98, 254, 0.2);
  background: #fafafa;
  transform: translateY(-2px);
}

.service-page .service-diff__card:hover::before {
  transform: scaleY(1);
}

.service-page .service-diff__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0 18px;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--blue-60);
  background: rgba(15, 98, 254, 0.06);
  border: 1px solid rgba(15, 98, 254, 0.12);
}

.service-page .service-diff__card h3 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.service-page .service-diff__card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted-light);
  flex-grow: 1;
}

.service-page .service-deliverables__icon {
  display: none;
}

.service-page .service-compare__table {
  border: 1px solid var(--line-light);
  background: #fff;
}

.service-page .service-compare__head,
.service-page .service-compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.875rem;
}

@media (max-width: 720px) {
  .service-page .service-compare__head {
    display: none;
  }

  .service-page .service-compare__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.service-page .service-compare__head {
  background: var(--carbon-10);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted-light);
}

.service-page .service-compare__us {
  color: var(--blue-60);
  font-weight: 500;
}

.service-page .service-trust {
  padding: clamp(28px, 4vw, 40px) 0;
  background: var(--carbon-100);
  color: var(--text-on-dark);
}

.service-page .service-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--carbon-80);
}

@media (max-width: 900px) {
  .service-page .service-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-page .service-trust__item {
  background: var(--carbon-100);
  padding: 24px;
}

.service-page .service-trust__item strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-on-dark);
}

.service-page .service-trust__item span {
  font-size: 0.875rem;
  color: var(--text-muted-dark);
  line-height: 1.5;
}

.service-page .service-process__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line-light);
}

@media (max-width: 900px) {
  .service-page .service-process__track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .service-page .service-process__track {
    grid-template-columns: 1fr;
  }
}

.service-page .service-process__step {
  margin: 0;
}

.service-page .service-process__card {
  background: #fff;
  padding: clamp(24px, 3vw, 32px);
  min-height: 180px;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.service-page .service-process__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-60);
  margin-bottom: 12px;
}

.service-page .service-outcomes {
  border-top: none !important;
  background: var(--carbon-100) !important;
  color: var(--text-on-dark);
  padding-block: clamp(48px, 6vw, 72px) !important;
}

.service-page .service-outcomes .section-head {
  margin: 0 auto;
  text-align: center;
}

.service-page .service-outcomes .section-head h2,
.service-page .service-outcomes .h2 {
  color: var(--text-on-dark);
}

.service-page .service-outcomes .lead {
  color: var(--text-muted-dark);
  max-width: 52ch;
  margin-inline: auto;
}

.service-page .service-outcomes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  max-width: 52rem;
  margin: clamp(32px, 4vw, 48px) auto 0;
  background: var(--carbon-80);
  border: 1px solid var(--carbon-80);
  align-items: stretch;
}

@media (max-width: 720px) {
  .service-page .service-outcomes__grid {
    grid-template-columns: 1fr;
  }
}

.service-page .service-outcomes__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--carbon-100) !important;
  border: none !important;
  padding: clamp(28px, 3.5vw, 36px);
  text-align: center;
  min-height: 100%;
}

.service-page .service-outcomes__panel::before {
  display: none;
}

.service-page .service-outcomes__panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 20px;
  padding: 0;
  color: var(--text-on-dark);
  letter-spacing: normal;
  text-transform: none;
  border-bottom: none;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.service-page .service-outcomes__panel--tools .service-outcomes__panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  letter-spacing: normal;
  text-transform: none;
}

.service-page .service-outcomes__list,
.service-page .service-outcomes__tools {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-page .service-outcomes__list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted-dark);
  padding: 12px 12px;
  line-height: 1.55;
  text-align: center;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--carbon-80);
  min-height: 3.25rem;
}

.service-page .service-outcomes__list li:last-child {
  border-bottom: none;
}

.service-page .service-outcomes__list li:first-child {
  padding-top: 12px;
}

.service-page .service-outcomes__list li::before {
  content: "✓";
  position: static;
  transform: none;
  flex-shrink: 0;
  width: auto;
  height: auto;
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue-60);
  background: none;
  border: none;
}

.service-page .service-outcomes__tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border: none;
  background: transparent;
}

.service-page .service-outcomes__tools li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 12px 10px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted-dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--carbon-80);
  text-align: center;
  transition: color 0.15s ease;
}

.service-page .service-outcomes__tools li:nth-child(odd) {
  border-right: 1px solid var(--carbon-80);
}

.service-page .service-outcomes__tools li:nth-last-child(-n + 2) {
  border-bottom: none;
}

.service-page .service-outcomes__tools li:hover {
  color: var(--text-on-dark);
}

@media (max-width: 720px) {
  .service-page .service-outcomes__panel--tools {
    border-top: 1px solid var(--carbon-80);
  }
}

@media (max-width: 480px) {
  .service-page .service-outcomes__tools {
    grid-template-columns: 1fr;
  }

  .service-page .service-outcomes__tools li:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--carbon-80);
  }

  .service-page .service-outcomes__tools li:last-child {
    border-bottom: none;
  }
}

.service-page .service-faq__item {
  border: 1px solid var(--line-light);
  background: #fff;
  margin-bottom: 8px;
  border-radius: 0;
}

.service-page .service-faq__question {
  font-weight: 500;
}

.service-page .service-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .service-page .service-related__grid {
    grid-template-columns: 1fr;
  }
}

.service-page .service-related__card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  box-shadow: none;
}

.service-page .service-related__card:hover {
  border-color: var(--blue-60);
}

.service-page .service-related__label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-page .service-related__desc {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  line-height: 1.5;
}

.service-page .service-related__arrow {
  color: var(--blue-60);
  flex-shrink: 0;
}

/* —— Contact —— */
.ep-contact {
  background: var(--carbon-10);
}

.ep-contact .cx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 900px) {
  .ep-contact .cx-grid {
    grid-template-columns: 1fr;
  }
}

.ep-contact .cx-form {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: none;
  border-radius: 0;
}

.ep-contact .cx-form__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--blue-60);
}

.ep-contact .cx-field input,
.ep-contact .cx-field select,
.ep-contact .cx-field textarea {
  border-radius: 0;
  border-color: var(--line-light);
  background: #fff;
}

.ep-contact .cx-field input:focus,
.ep-contact .cx-field select:focus,
.ep-contact .cx-field textarea:focus {
  border-color: var(--blue-60);
  box-shadow: 0 0 0 1px var(--blue-60);
}

.ep-contact .cx-btn--primary,
.ep-contact .cx-actions .cx-btn--primary {
  background: var(--blue-60);
  border-radius: 0;
  min-height: 48px;
}

.ep-contact .cx-info-card {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3vw, 32px);
  border-radius: 0;
  box-shadow: none;
}

/* —— Pricing —— */
.ep-split--pricing {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: clamp(32px, 5vw, 48px);
}

.ep-pricing-panel {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3vw, 32px);
  align-self: center;
}

.pricing-page .pricing-notice,
.pricing-page .pricing-steps,
.pricing-page .pricing-section,
.pricing-page .pricing-faq-wrap {
  background: #fff;
}

.pricing-page .pricing-notice__inner {
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
  border-radius: 0;
}

.pricing-page .pricing-steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
}

@media (max-width: 900px) {
  .pricing-page .pricing-steps__list {
    grid-template-columns: 1fr;
  }
}

.pricing-page .pricing-step {
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
  padding: 24px;
  border-radius: 0;
}

.pricing-page .pricing-step__num {
  color: var(--blue-60);
  font-weight: 600;
}

.pricing-page .pricing-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 0;
  box-shadow: none;
}

.pricing-page .pricing-card:hover {
  border-color: var(--blue-60);
  transform: none;
}

/* —— Pricing redesign (ep-price) —— */
.pricing-page .ep-price-section,
.pricing-page .ep-price-process,
.pricing-page .ep-price-metrics {
  background: #fff;
}

.pricing-page .ep-price-section--alt {
  background: var(--carbon-10) !important;
}

.pricing-page .ep-price-plan,
.pricing-page .ep-price-table-wrap,
.pricing-page .ep-price-compare-wrap,
.pricing-page .ep-price-faq {
  border-radius: 0;
  box-shadow: none;
}

.pricing-page .ep-price-plan--featured {
  box-shadow: 0 8px 32px rgba(15, 98, 254, 0.08);
}

/* —— Legal —— */
.ep-legal-hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line-light);
  padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 48px);
}

.ep-legal-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--blue-60);
  margin: 16px 0;
}

.ep-legal-hero__meta {
  font-size: 0.875rem;
  color: var(--text-muted-light);
  margin-bottom: 16px;
}

.ep-legal-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ep-legal-hero__chips a {
  font-size: 0.8125rem;
  padding: 8px 16px;
  border: 1px solid var(--line-light);
  background: #fff;
  color: var(--text-muted-light);
  text-decoration: none;
}

.ep-legal-hero__chips a[aria-current="page"],
.ep-legal-hero__chips a:hover {
  border-color: var(--blue-60);
  color: var(--blue-60);
}

.legal-page .legal-content {
  background: #fff;
  padding: var(--section) 0;
}

.legal-page .legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 64px);
}

@media (max-width: 900px) {
  .legal-page .legal-layout {
    grid-template-columns: 1fr;
  }
}

.legal-page .legal-toc {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-offset, 72px) + 16px);
  align-self: start;
  background: #fff;
  border: 1px solid var(--line-light);
  padding: 20px;
}

.legal-page .legal-article h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-on-light);
}

.legal-page .legal-article p,
.legal-page .legal-article li {
  color: var(--text-muted-light);
  line-height: 1.65;
}

.theme-enterprise.legal-page {
  background: var(--hero-bg) !important;
  background-image: none !important;
}

.theme-enterprise .legal-main {
  background: transparent;
}

.theme-enterprise .legal-article {
  background: #fff !important;
  border: 1px solid var(--line-light) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.theme-enterprise .legal-article h2 {
  font-family: inherit !important;
  font-weight: 600 !important;
  color: var(--text-on-light) !important;
  border-top-color: var(--line-light) !important;
}

.theme-enterprise .legal-article h2:first-of-type {
  border-top: none !important;
}

.theme-enterprise .legal-article p,
.theme-enterprise .legal-article li,
.theme-enterprise .legal-article > p:first-child {
  color: var(--text-muted-light) !important;
}

.theme-enterprise .legal-article li strong,
.theme-enterprise .legal-article p strong {
  color: var(--text-on-light) !important;
}

.theme-enterprise .legal-article a {
  color: var(--blue-60) !important;
}

.theme-enterprise .legal-article a:hover {
  color: var(--blue-70) !important;
}

.theme-enterprise .legal-callout {
  background: var(--carbon-10) !important;
  border: 1px solid var(--line-light) !important;
  border-radius: 0 !important;
  color: var(--text-muted-light) !important;
  box-shadow: none !important;
}

.theme-enterprise .legal-callout strong {
  color: var(--text-on-light) !important;
}

.theme-enterprise .legal-address {
  background: var(--carbon-10) !important;
  border: 1px solid var(--line-light) !important;
  border-radius: 0 !important;
  color: var(--text-muted-light) !important;
  box-shadow: none !important;
}

.theme-enterprise .legal-toc {
  background: #fff !important;
  border: 1px solid var(--line-light) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.theme-enterprise .legal-toc__title {
  font-family: inherit !important;
  color: var(--text-muted-light) !important;
}

.theme-enterprise .legal-toc nav a {
  color: var(--text-muted-light) !important;
  border-radius: 0 !important;
}

.theme-enterprise .legal-toc nav a:hover {
  color: var(--blue-60) !important;
  background: rgba(15, 98, 254, 0.06) !important;
}

.theme-enterprise .legal-article__footer {
  border-top-color: var(--line-light) !important;
}

/* —— Blog article —— */
.ep-article-hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line-light);
  padding: clamp(48px, 8vw, 72px) 0 clamp(32px, 4vw, 40px);
}

.ep-article-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--blue-60);
  max-width: 24ch;
  margin: 16px 0 20px;
}

.ep-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted-light);
}

.ep-article-hero__pill {
  padding: 4px 10px;
  border: 1px solid var(--line-light);
  background: #fff;
  font-size: 0.75rem;
}

.ep-article-body {
  background: #fff;
  padding: var(--section) 0;
}

.blog-page .blog-layout-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 960px) {
  .blog-page .blog-layout-wide {
    grid-template-columns: 1fr;
  }
}

.blog-page .blog-article {
  max-width: 68ch;
}

.blog-page .blog-article h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-on-light);
}

.blog-page .blog-article p,
.blog-page .blog-article li {
  color: var(--text-muted-light);
  line-height: 1.65;
}

.blog-page .blog-callout {
  background: var(--carbon-10);
  border-left: 3px solid var(--blue-60);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0;
}

.blog-page .blog-sidebar__panel {
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
  padding: 24px;
  margin-bottom: 16px;
  border-radius: 0;
  box-shadow: none;
}

.blog-page .blog-sidebar__cta {
  color: var(--blue-60);
  text-decoration: none;
  font-size: 0.875rem;
}

.blog-page .back-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--blue-60);
  text-decoration: none;
  font-size: 0.875rem;
}

/* —— Case study (JS-rendered) —— */
.ep-cs .ep-cs-hero {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line-light);
  padding: clamp(48px, 8vw, 72px) 0;
}

.ep-cs .ep-cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .ep-cs .ep-cs-hero__grid {
    grid-template-columns: 1fr;
  }
}

.ep-cs .ep-cs-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--blue-60);
  margin: 12px 0;
}

.ep-cs .ep-cs-hero__headline {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ep-cs .ep-cs-hero__teaser {
  color: var(--text-muted-light);
  line-height: 1.6;
}

.ep-cs .ep-cs-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-light);
}

.ep-cs .ep-cs-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  margin-top: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line-light);
}

@media (max-width: 720px) {
  .ep-cs .ep-cs-highlights {
    grid-template-columns: 1fr;
  }
}

.ep-cs .ep-cs-highlight {
  background: #fff;
  padding: 20px;
  display: flex;
  gap: 12px;
}

.ep-cs .ep-cs-highlight__index {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-60);
}

.ep-cs .ep-section {
  padding: var(--section) 0;
}

.ep-cs .ep-section--alt {
  background: var(--carbon-10);
}

.ep-cs .ep-cs-outcome {
  background: #fff;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line-light);
}

.ep-cs .ep-cs-outcome__card {
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--blue-60);
  background: var(--carbon-10);
  padding: clamp(24px, 3vw, 32px);
}

.ep-cs .ep-cs-outcome__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-60);
  margin-bottom: 12px;
}

.ep-cs .ep-cs-outcome__text {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-on-light);
}

.ep-cs .ep-cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .ep-cs .ep-cs-split {
    grid-template-columns: 1fr;
  }
}

.ep-cs .ep-cs-card {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3vw, 32px);
}

.ep-cs .ep-cs-deliverables {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-cs .ep-cs-deliverable {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line-light);
}

.ep-cs .ep-cs-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
}

@media (max-width: 600px) {
  .ep-cs .ep-cs-results {
    grid-template-columns: 1fr;
  }
}

.ep-cs .ep-cs-results li {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: 16px;
  font-size: 0.875rem;
}

.ep-cs .ep-cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.ep-cs .ep-cs-tags li {
  font-size: 0.8125rem;
  padding: 6px 12px;
  border: 1px solid var(--line-light);
  background: #fff;
}

.ep-cs .ep-cs-nav {
  padding: var(--section) 0;
  background: var(--carbon-10);
  border-top: 1px solid var(--line-light);
}

.ep-cs .ep-cs-nav__projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .ep-cs .ep-cs-nav__projects {
    grid-template-columns: 1fr;
  }
}

.ep-cs .ep-cs-nav__project {
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line-light);
  text-decoration: none;
  color: inherit;
}

.ep-cs .ep-cs-nav__project:hover {
  border-color: var(--blue-60);
}

.ep-cs .ep-cs-nav__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted-light);
  margin-bottom: 4px;
}

.ep-cs .ep-cs-nav__name {
  font-weight: 600;
}

.ep-cs .ep-cs-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.ep-cs .ep-chip {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--line-light);
  background: #fff;
  margin-right: 6px;
}

/* —— Thank you —— */
.ep-thank-you {
  background: var(--carbon-10);
  padding: clamp(48px, 8vw, 96px) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.ep-thank-you__panel {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
}

.ep-thank-you__check {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: rgba(15, 98, 254, 0.08);
  color: var(--blue-60);
  border: 1px solid var(--line-light);
}

.ep-thank-you h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--blue-60);
  margin-bottom: 16px;
}

.ep-thank-you__text {
  color: var(--text-muted-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.ep-thank-you__steps {
  text-align: left;
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.ep-thank-you__steps h2 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ep-thank-you__steps ol {
  padding-left: 1.25rem;
  color: var(--text-muted-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

.ep-thank-you__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* —— 404 —— */
.ep-error-page {
  background: var(--hero-bg);
}

.ep-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}

.ep-error__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.ep-error__brand {
  display: inline-block;
  margin-bottom: 32px;
}

.ep-error__code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--blue-60);
  margin-bottom: 16px;
}

.ep-error__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text-on-light);
}

.ep-error__lead {
  color: var(--text-muted-light);
  line-height: 1.6;
  margin-bottom: 32px;
}

.ep-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .ep-error {
    min-height: auto;
    padding-block: clamp(32px, 10vh, 64px);
  }

  .ep-error__actions {
    flex-direction: column;
    width: 100%;
  }

  .ep-error__actions .btn {
    width: 100%;
  }
}

.ep-error__hint {
  font-size: 0.8125rem;
  color: var(--text-muted-light);
}

.ep-error__hint kbd {
  padding: 2px 6px;
  border: 1px solid var(--line-light);
  background: #fff;
  font-size: 0.75rem;
}

/* =================================================================
   Pricing page — hero (contact-style)
   ================================================================= */

.pricing-page .pricing-hero {
  border-bottom: none;
}

.pricing-page .pricing-hero__grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.pricing-page .pricing-hero .hero--enterprise__content {
  justify-content: center;
  max-width: calc(680px + clamp(24px, 5vw, 48px) * 2);
  padding-top: calc(var(--header-offset, 72px) + clamp(28px, 4vh, 48px));
  padding-bottom: clamp(44px, 5vw, 60px);
  padding-inline: clamp(24px, 5vw, 48px);
  box-sizing: border-box;
}

.pricing-page .pricing-hero .hero--enterprise__eyebrow {
  margin-bottom: clamp(12px, 2vw, 16px);
}

.pricing-page .pricing-hero h1 {
  max-width: 24ch;
  line-height: 1.12;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.pricing-page .pricing-hero .hero--enterprise__lead {
  max-width: 52ch;
  margin-bottom: clamp(28px, 4vw, 36px);
}

.pricing-page .pricing-hero .hero--enterprise__actions {
  gap: 12px;
}

.pricing-page .pricing-hero .hero--enterprise__media {
  min-height: 100%;
}

.pricing-page .pricing-hero .hero--enterprise__media img {
  object-position: 68% center;
}

.pricing-page .pricing-hero .hero--enterprise__media::before {
  background: linear-gradient(90deg, var(--hero-bg) 0%, rgba(242, 244, 248, 0.72) 14%, transparent 32%);
}

@media (min-width: 901px) {
  .pricing-page .pricing-hero__grid {
    min-height: clamp(480px, 62vh, 640px);
  }

  .pricing-page .pricing-hero .hero--enterprise__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .pricing-page .pricing-hero .hero--enterprise__actions .btn {
    min-width: auto;
    width: auto;
    flex: 0 1 auto;
  }
}

@media (max-width: 900px) {
  .pricing-page .pricing-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pricing-page .pricing-hero .hero--enterprise__content {
    margin-left: 0;
    max-width: none;
    padding-top: calc(var(--header-offset, 72px) + clamp(24px, 4vw, 36px));
    padding-bottom: clamp(32px, 5vw, 44px);
    padding-inline: clamp(20px, 4vw, 32px);
  }

  .pricing-page .pricing-hero h1 {
    max-width: none;
  }
}

/* =================================================================
   Contact page — clean minimalist
   ================================================================= */

.contact-page .contact-hero {
  border-bottom: none;
}

.contact-page .contact-hero__grid {
  min-height: clamp(440px, 58vh, 600px);
}

.contact-page .contact-hero .hero--enterprise__content {
  padding-top: calc(var(--header-offset, 72px) + clamp(24px, 3.5vh, 40px));
  padding-bottom: clamp(40px, 5vw, 56px);
}

.contact-page .contact-hero h1 {
  max-width: 16ch;
}

@media (max-width: 900px) {
  .contact-page .contact-hero__grid {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .contact-page .contact-hero h1 {
    max-width: none;
  }
}

.contact-page .contact-main {
  padding: var(--section) 0;
  background: var(--carbon-05);
}

/* Unified contact card — form + details in one panel */
.contact-page .contact-unified {
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: 0 2px 12px rgba(22, 22, 22, 0.04);
}

.contact-page .contact-unified__head {
  padding: clamp(32px, 4.5vw, 48px) clamp(28px, 4vw, 48px) clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--line-light);
}

.contact-page .contact-unified__eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-60);
}

.contact-page .contact-unified__head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-on-light);
  margin: 0 0 10px;
  max-width: 22ch;
}

.contact-page .contact-unified__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted-light);
}

.contact-page .contact-unified__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
}

.contact-page .contact-unified__form-col {
  padding: clamp(28px, 4vw, 40px);
  border-right: 1px solid var(--line-light);
}

.contact-page .contact-unified__info {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  padding: clamp(28px, 4vw, 40px);
  background: var(--carbon-05);
}

@media (max-width: 1024px) {
  .contact-page .contact-unified__body {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-unified__form-col {
    border-right: none;
    border-bottom: 1px solid var(--line-light);
  }
}

.contact-page .contact-unified__info-title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}

.contact-page .contact-unified__info-block--next {
  margin-top: auto;
  padding-top: clamp(16px, 2.5vw, 20px);
  border-top: 1px solid var(--line-light);
}

.contact-page .contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-page .contact-form.cx-form {
  display: flex;
  flex-direction: column;
  flex: none;
  height: auto;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.contact-page .contact-form.cx-form::before {
  display: none !important;
}

.contact-page .contact-form__block {
  margin-bottom: clamp(24px, 3vw, 32px);
}

.contact-page .contact-form__block:last-of-type {
  margin-bottom: 0;
}

.contact-page .contact-form__block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-light);
}

.contact-page .contact-form__block-title span {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--blue-60);
  background: rgba(15, 98, 254, 0.08);
  border: 1px solid rgba(15, 98, 254, 0.18);
}

.contact-page .contact-form__row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-page .contact-form__row:last-child {
  margin-bottom: 0;
}

.contact-page .contact-form__row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .contact-page .contact-form__row--2 {
    grid-template-columns: 1fr;
  }
}

.contact-page .contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-page .contact-field--full {
  margin-top: 4px;
}

.contact-page .contact-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-on-light);
  transition: color 0.15s;
}

.contact-page .contact-field--required .contact-field__label::after {
  content: " *";
  color: var(--blue-60);
  font-weight: 600;
}

.contact-page .contact-field:focus-within .contact-field__label {
  color: var(--blue-60);
}

.contact-page .contact-field__label em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted-light);
}

.contact-page .contact-field__control {
  position: relative;
}

.contact-page .contact-field input,
.contact-page .contact-field select,
.contact-page .contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-on-light);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-page .contact-field__control select {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23616161' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-page .contact-field input::placeholder,
.contact-page .contact-field textarea::placeholder {
  color: #a8a8a8;
}

.contact-page .contact-field input:hover,
.contact-page .contact-field select:hover,
.contact-page .contact-field textarea:hover {
  border-color: #c6c6c6;
}

.contact-page .contact-field input:focus,
.contact-page .contact-field select:focus,
.contact-page .contact-field textarea:focus {
  outline: none;
  border-color: var(--blue-60);
  box-shadow: inset 0 0 0 1px var(--blue-60);
}

.contact-page .contact-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.contact-page .contact-field__hint {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted-light);
}

.contact-page .contact-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  margin-top: clamp(20px, 2.5vw, 28px);
  padding-top: clamp(20px, 2.5vw, 24px);
  border-top: 1px solid var(--line-light);
}

.contact-page .contact-form__submit {
  flex-shrink: 0;
  width: auto;
  min-width: min(100%, 260px);
  min-height: 52px;
  margin-left: auto;
  justify-content: space-between;
  font-size: 1rem;
}

.contact-page .contact-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact-page .contact-form__fineprint {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted-light);
  text-align: left;
}

@media (max-width: 640px) {
  .contact-page .contact-form__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .contact-page .contact-form__submit {
    margin-left: 0;
    width: 100%;
  }
}

.contact-page .contact-form__fineprint a {
  color: var(--blue-60);
  text-decoration: none;
}

.contact-page .contact-form__fineprint a:hover {
  text-decoration: underline;
}

.contact-page .contact-map {
  margin: 0;
}

.contact-page .contact-direct {
  margin: 0;
  display: grid;
  gap: 0;
}

.contact-page .contact-direct__row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
}

.contact-page .contact-direct__row:first-child {
  border-top: none;
  padding-top: 0;
}

.contact-page .contact-direct dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted-light);
}

.contact-page .contact-direct dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-on-light);
}

.contact-page .contact-direct a {
  color: var(--blue-60);
  text-decoration: none;
}

.contact-page .contact-direct a:hover {
  text-decoration: underline;
}

.contact-page .contact-map__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--carbon-10);
  border: 1px solid var(--line-light);
}

.contact-page #cx-map iframe {
  filter: none !important;
}

.contact-page .contact-map__embed,
.contact-page .contact-map__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-page .contact-map figcaption {
  padding-top: 10px;
  font-size: 0.8125rem;
}

.contact-page .contact-map figcaption a {
  color: var(--blue-60);
  text-decoration: none;
}

.contact-page .contact-map figcaption a:hover {
  text-decoration: underline;
}

.contact-page .contact-next {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 10px;
}

.contact-page .contact-next li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted-light);
  padding-left: 4px;
}

.contact-page .contact-next li::marker {
  color: var(--blue-60);
  font-weight: 600;
}

.contact-page .contact-faq {
  background: var(--carbon-10);
  border-top: 1px solid var(--line-light);
}

.contact-page .contact-faq__head {
  margin-bottom: clamp(24px, 3vw, 32px);
}

.contact-page .contact-success {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 28px);
  background: rgba(15, 98, 254, 0.04);
  border: 1px solid rgba(15, 98, 254, 0.2);
  position: relative;
}

.contact-page .contact-success .cx-success__check {
  color: var(--blue-60);
  margin-bottom: 12px;
}

/* —— Portfolio polish —— */
.portfolio-page .portfolio-work {
  padding: var(--section) 0;
  background: #fff;
  border-bottom: 1px solid var(--line-light);
}

.portfolio-page .portfolio-work__head {
  margin-bottom: 0;
}

.portfolio-page .portfolio-toolbar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-offset, 64px));
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  margin-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--line-light);
}

.portfolio-page .portfolio-featured {
  background: var(--carbon-10);
}

.portfolio-page .portfolio-related {
  background: #fff;
  border-top: 1px solid var(--line-light);
}

/* —— Contact form responsive + legacy cx-* neutralizer —— */
.contact-page {
  overflow-x: clip;
}

.contact-page .contact-main__grid > * {
  min-width: 0;
  max-width: 100%;
}

.contact-page .contact-form.cx-form {
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

.contact-page .contact-form.cx-form .cx-btn--primary.contact-form__submit {
  border-radius: 0 !important;
  background: var(--blue-60) !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  transform: none !important;
  filter: none !important;
}

.contact-page .contact-form.cx-form .cx-btn--primary.contact-form__submit:hover {
  background: var(--blue-70) !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.contact-page .cx-success.contact-success {
  background: #fff !important;
  border: 1px solid var(--line-light) !important;
  border-radius: 0 !important;
}

@media (max-width: 640px) {
  .contact-page .contact-panel {
    padding: 20px 16px;
  }

  .contact-page .contact-form__section {
    padding: 16px;
  }

  .contact-page .contact-form__submit {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .contact-page .contact-direct__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

