/* ============================================================
   PAGES.CSS — v1.0
   Covers: Contact · Case Studies Index · Single Case Study · Single Service
   Enqueue in functions.php alongside global.css, layout.css
   ============================================================ */

/* ============================================================
   SHARED: PAGE HERO
   Dark slate — matches services-hero but without dot grid
   ============================================================ */
.page-hero {
  background: var(--slate);
  padding-block: 5.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 62%);
  top: -180px; left: -80px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 62%);
  top: 60px; right: -120px;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero .label { color: var(--teal); }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 1.375rem;
}
.page-hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.4vw, 1.0625rem);
  color: rgba(248,250,252,0.7);
  max-width: 580px;
  line-height: 1.82;
}

/* Shared back link — used on single-case_study and single-service */
.cs-back-link,
.svc-single-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.833rem;
  font-weight: 500;
  color: rgba(248,250,252,0.48);
  margin-bottom: 2rem;
  transition: color var(--ease);
}
.cs-back-link:hover,
.svc-single-back:hover { color: rgba(248,250,252,0.8); }

/* Shared deliverables card — referenced from services.css too */
.svc-deliverables {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 130px;
  box-shadow: var(--shadow-sm);
}
.svc-deliverables__head {
  padding: 1.25rem 1.75rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.svc-deliverables__head-label {
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.svc-deliverables__head-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #38BDF8);
  flex-shrink: 0;
}
.svc-deliverables__list {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.svc-deliverables__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: var(--text);
  line-height: 1.55;
}
.svc-deliverables__item::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.48em;
}

/* Shared proof line */
.svc-proof {
  font-family: var(--font-sans);
  font-size: 0.833rem;
  font-weight: 500;
  color: var(--teal-dark);
  background: rgba(16,185,129,0.07);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

/* Shared good-fit block */
.svc-section__who {
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 0.875rem 1.25rem;
  border-left: 3px solid var(--teal);
  background: rgba(16,185,129,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.5rem;
}
.svc-section__who strong {
  display: block;
  font-weight: 600;
  color: var(--slate);
  font-size: 0.667rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding-block: 5rem 6rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 5rem;
  align-items: start;
}

/* Left column */
.contact-context {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: sticky;
  top: 100px;
}

.contact-context__block { display: flex; flex-direction: column; }
.contact-context__block .label { margin-bottom: 0.875rem; }

.contact-context__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  color: var(--slate);
  letter-spacing: -0.04em;
  line-height: 1.07;
  margin-bottom: 1.125rem;
}

.contact-context__body {
  font-family: var(--font-sans);
  font-size: 0.972rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}
.contact-context__body:last-child { margin-bottom: 0; }

/* Good fit block */
.contact-context__fit {
  padding: 1.375rem 1.5rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.contact-context__fit-heading {
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.875rem;
}

.contact-context__fit-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-context__fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.contact-context__fit-list li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.45em;
}

/* Response signal */
.contact-context__signal {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.833rem;
  color: var(--text-faint);
}
.contact-context__signal-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

/* Right column: form card */
.contact-form-wrap {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.contact-form__row { display: flex; gap: 1.25rem; }
.contact-form__row--two > .contact-form__field { flex: 1; }

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__label {
  font-family: var(--font-sans);
  font-size: 0.833rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.01em;
}
.contact-form__label abbr {
  text-decoration: none;
  color: var(--teal);
  margin-left: 0.125rem;
}

.contact-form__input {
  font-family: var(--font-sans);
  font-size: 0.944rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
  outline: none;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
  background: var(--white);
}
.contact-form__input::placeholder { color: var(--text-faint); }

.contact-form__textarea { resize: vertical; min-height: 130px; }

/* Select wrapper for custom arrow */
.contact-form__select-wrap {
  position: relative;
}
.contact-form__select {
  cursor: pointer;
  padding-right: 2.5rem;
}
.contact-form__select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-faint);
  pointer-events: none;
  user-select: none;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.contact-form__submit { flex-shrink: 0; }

.contact-form__note {
  font-family: var(--font-sans);
  font-size: 0.778rem;
  color: var(--text-faint);
  line-height: 1.55;
}

/* Success state */
.contact-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-lg);
}
.contact-success svg { color: var(--teal); flex-shrink: 0; margin-top: 0.125rem; }
.contact-success strong { display: block; font-size: 0.972rem; color: var(--slate); margin-bottom: 0.25rem; }
.contact-success p { font-size: 0.889rem; color: var(--text-muted); }

/* CF7 override — if CF7 is used, adapt its markup to match our form style */
.wpcf7 .wpcf7-form { display: flex; flex-direction: column; gap: 1.375rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  font-family: var(--font-sans);
  font-size: 0.944rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
  outline: none;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.wpcf7 input[type="submit"] {
  background: linear-gradient(135deg, #10B981, #38BDF8);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--ease);
  border: none;
  width: auto;
}
.wpcf7 input[type="submit"]:hover {
  background: linear-gradient(135deg, #059669, #0EA5E9);
}

/* ============================================================
   CASE STUDIES INDEX
   ============================================================ */
.cs-index-section {
  padding-block: 5rem 4rem;
  background: var(--bg);
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cs-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease-md), box-shadow var(--ease-md), border-color var(--ease-md);
}
.cs-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16,185,129,0.2);
}

.cs-card__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.875rem;
  height: 100%;
  text-decoration: none;
}

.cs-card__top { display: flex; flex-direction: column; gap: 0.75rem; }

.cs-card__meta-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.cs-card__industry {
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(16,185,129,0.08);
  padding: 0.2rem 0.625rem;
  border-radius: 4px;
}

.cs-card__status {
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 0.5px solid var(--border);
  padding: 0.2rem 0.625rem;
  border-radius: 4px;
}
.cs-card__status--completed { color: var(--teal-dark); border-color: rgba(16,185,129,0.25); }
.cs-card__status--ongoing   { color: #0C4A6E; border-color: #BAE6FD; background: #F0F9FF; }

.cs-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cs-card__challenge {
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Scope tags */
.cs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* Shared tag style used in cards and single pages */
.cs-tag {
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  padding: 0.2rem 0.625rem;
  border-radius: 4px;
}
.cs-tag--light {
  background: rgba(255,255,255,0.12);
  color: rgba(248,250,252,0.72);
  border-color: rgba(255,255,255,0.15);
}

/* Impact line */
.cs-card__impact {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: rgba(16,185,129,0.05);
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(16,185,129,0.15);
  margin-top: 0.25rem;
}
.cs-card__impact-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.35em;
}
.cs-card__impact-text {
  font-family: var(--font-sans);
  font-size: 0.833rem;
  font-weight: 500;
  color: var(--teal-dark);
  line-height: 1.5;
}

/* Card CTA link */
.cs-card__cta {
  font-family: var(--font-sans);
  font-size: 0.833rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Empty state */
.cs-empty {
  padding-block: 4rem;
}
.cs-empty__inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cs-empty__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--slate);
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.cs-empty__body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ============================================================
   SINGLE CASE STUDY
   ============================================================ */
.cs-hero {
  background: var(--slate);
  padding-block: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cs-hero::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 62%);
  top: -160px; left: -80px;
  pointer-events: none;
}
.cs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.cs-hero .label { color: var(--teal); }

.cs-hero__content {
  margin-bottom: 2.5rem;
}

.cs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.cs-hero__sub {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: rgba(248,250,252,0.7);
  max-width: 600px;
  line-height: 1.8;
}

/* Metadata bar */
.cs-hero__meta-bar {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cs-meta-item__label {
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.cs-meta-item__value {
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: rgba(248,250,252,0.75);
}
.cs-meta-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Body layout */
.cs-body {
  padding-block: 0;
  background: var(--bg);
}

.cs-body__inner {
  max-width: 880px;
  padding-block: 5rem 4rem;
}

/* Structured sections */
.cs-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  padding-block: 3.5rem;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}
.cs-section:first-child { padding-top: 0; }
.cs-section:last-child { border-bottom: none; }

.cs-section__label-col {
  position: sticky;
  top: 100px;
}

.cs-section__num {
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.cs-section__heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cs-section__body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.88;
}
.cs-section__body p { margin-bottom: 1.125rem; }
.cs-section__body p:last-child { margin-bottom: 0; }
.cs-section__body strong { font-weight: 600; color: var(--slate); }

/* Impact/outcome callout */
.cs-impact-callout {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: var(--slate);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.875rem;
}
.cs-impact-callout__metric {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}
.cs-impact-callout__label {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(248,250,252,0.7);
  line-height: 1.6;
  max-width: 320px;
}

/* Fallback for non-structured content */
.cs-fallback-content {
  padding-block: 5rem 4rem;
  max-width: 680px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.88;
}
.cs-fallback-content h2, .cs-fallback-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.cs-fallback-content p { margin-bottom: 1.125rem; }

/* ============================================================
   SINGLE SERVICE PAGE
   ============================================================ */
.svc-single-hero {
  background: var(--slate);
  padding-block: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.svc-single-hero::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 62%);
  top: -200px; left: -80px;
  pointer-events: none;
}
.svc-single-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.svc-single-hero .label { color: var(--teal); }

.svc-single-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 1rem;
}

.svc-single-hero__sub {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: rgba(248,250,252,0.7);
  max-width: 560px;
  line-height: 1.8;
}

/* Body: matches services overview 2-column layout */
.svc-single-body {
  background: var(--bg);
  padding-block: 5.5rem;
  border-bottom: 0.5px solid var(--border);
}

.svc-single-body__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: start;
}

.svc-single-body__main { display: flex; flex-direction: column; }

.svc-single-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.88;
  max-width: 540px;
  margin-bottom: 1.875rem;
}
.svc-single-desc p { margin-bottom: 1.125rem; }
.svc-single-desc p:last-child { margin-bottom: 0; }
.svc-single-desc p:not(.svc-single-desc__lede) {
  font-size: 0.925rem;
  line-height: 1.75;
}
.svc-single-desc strong { font-weight: 600; color: var(--slate); }

.svc-single-cta { margin-top: 0.5rem; }

/* Process section */
.svc-single-process {
  background: var(--slate);
  padding-block: 5rem;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.svc-single-process .label { color: var(--teal); margin-bottom: 0.75rem; }

.svc-single-process__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 3.5rem;
  max-width: 540px;
}

.svc-single-process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc-single-process__step {
  padding: 2rem 1.75rem;
  border-right: 0.5px solid rgba(255,255,255,0.08);
}
.svc-single-process__step:last-child { border-right: none; }

.svc-single-process__step-num {
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.12em;
  margin-bottom: 0.875rem;
}
.svc-single-process__step-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.svc-single-process__step-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(248,250,252,0.55);
  line-height: 1.7;
}

/* Other services grid */
.svc-single-other {
  background: var(--bg-alt);
  padding-block: 5rem;
  border-bottom: 0.5px solid var(--border);
}
.svc-single-other .label { margin-bottom: 0.75rem; }
.svc-single-other__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--slate);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 2.5rem;
}

.svc-single-other__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.svc-other-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--ease-md), box-shadow var(--ease-md), border-color var(--ease-md);
}
.svc-other-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16,185,129,0.2);
}
.svc-other-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.025em;
}
.svc-other-card__sub {
  font-family: var(--font-sans);
  font-size: 0.833rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.svc-other-card__arrow {
  font-size: 0.833rem;
  color: var(--teal);
  margin-top: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Contact */
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .contact-context { position: static; }
  .contact-form-wrap { padding: 2rem; }
}
@media (max-width: 600px) {
  .contact-form__row { flex-direction: column; }
  .contact-section { padding-block: 3.5rem 4rem; }
}

/* Case studies grid */
@media (max-width: 1024px) {
  .cs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-index-section { padding-block: 3.5rem 3rem; }
}

/* Single case study */
@media (max-width: 860px) {
  .cs-section { grid-template-columns: 1fr; gap: 1.25rem; }
  .cs-section__label-col { position: static; }
  .cs-hero__meta-bar { gap: 1.5rem; }
}
@media (max-width: 640px) {
  .cs-body__inner { padding-block: 3.5rem 3rem; }
  .cs-impact-callout { flex-direction: column; gap: 0.5rem; padding: 1.375rem 1.5rem; }
}

/* Single service */
@media (max-width: 1024px) {
  .svc-single-body__grid { grid-template-columns: 1fr; gap: 3rem; }
  .svc-deliverables { position: static; }
  .svc-single-process__steps { grid-template-columns: 1fr 1fr; }
  .svc-single-process__step:nth-child(2) { border-right: none; }
  .svc-single-process__step:nth-child(1),
  .svc-single-process__step:nth-child(2) { border-bottom: 0.5px solid rgba(255,255,255,0.08); }
}
@media (max-width: 640px) {
  .svc-single-body { padding-block: 3.5rem; }
  .svc-single-process__steps { grid-template-columns: 1fr; }
  .svc-single-process__step { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.08); }
  .svc-single-process__step:last-child { border-bottom: none; }
  .svc-single-other__grid { grid-template-columns: 1fr; }
}


/* ============================================================
   SERVICE SIDEBAR — always-present right column
   ============================================================ */
.svc-single-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.svc-sidebar-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc-sidebar-card--deliverables {
  background: var(--bg);
  border: 0.5px solid var(--border);
  padding: 1.75rem;
}

.svc-sidebar-card__head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.svc-sidebar-card__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.svc-sidebar-card__label {
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* CTA sidebar card */
.svc-sidebar-card--cta {
  background: var(--slate);
  background-image:
    radial-gradient(ellipse at 90% 10%, rgba(16,185,129,0.18) 0%, transparent 55%),
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  padding: 2rem;
}

.svc-sidebar-card__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.svc-sidebar-card__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.svc-sidebar-card__body {
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: rgba(248,250,252,0.65);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.svc-sidebar-cta-btn {
  width: 100%;
  text-align: center;
  margin-bottom: 1.25rem;
}

.svc-sidebar-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.667rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

.svc-sidebar-trust__sep {
  color: rgba(255,255,255,0.15);
}

/* Good fit block */
.svc-good-fit-block {
  background: var(--bg-secondary, #F8FAFC);
  border: 0.5px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.875rem;
}

.svc-good-fit-block__heading {
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark, #0d9488);
  margin-bottom: 0.5rem;
}

.svc-good-fit-block__body {
  font-family: var(--font-sans);
  font-size: 0.944rem;
  color: var(--text);
  line-height: 1.75;
}

/* Proof pill */
.svc-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.08);
  border: 0.5px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-full, 9999px);
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.778rem;
  color: var(--teal-dark, #0d9488);
  margin-bottom: 1.5rem;
}

.svc-proof-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ============================================================
   CASE STUDY BODY LAYOUT — 2-column with sidebar
   ============================================================ */
.cs-body__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
  padding-block: 5rem 4rem;
}

.cs-body__main {
  min-width: 0;
}

.cs-body__sidebar {
  position: sticky;
  top: 100px;
}

/* At-a-glance sidebar card */
.cs-sidebar-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-sidebar-card__label {
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.cs-sidebar-stat {
  padding-block: 1rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-sidebar-stat:last-of-type {
  border-bottom: none;
}

.cs-sidebar-stat__key {
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.4);
}

.cs-sidebar-stat__val {
  font-family: var(--font-sans);
  font-size: 0.889rem;
  color: var(--slate);
  font-weight: 500;
}

.cs-sidebar-stat__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Impact metric in sidebar */
.cs-sidebar-impact {
  padding-block: 1.25rem;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.cs-sidebar-impact__metric {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.cs-sidebar-impact__label {
  font-family: var(--font-sans);
  font-size: 0.778rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
}

/* CTA inside sidebar */
.cs-sidebar-cta {
  padding-top: 1.25rem;
}

.cs-sidebar-cta__text {
  font-family: var(--font-sans);
  font-size: 0.778rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.cs-sidebar-cta__btn {
  width: 100%;
  text-align: center;
}

/* cs-tag variants */
.cs-tag--muted {
  background: rgba(15,23,42,0.05);
  color: var(--slate);
  border-color: var(--border);
  font-size: 0.611rem;
}

/* ============================================================
   CASE STUDY FALLBACK CONTENT — rich typography
   ============================================================ */
.cs-fallback-content {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.88;
}

.cs-fallback-content > p:first-child {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.cs-fallback-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.03em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2.5rem;
  border-top: 0.5px solid var(--border);
}

.cs-fallback-content h2::before {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
  content: attr(data-label);
}

.cs-fallback-content h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.025em;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

.cs-fallback-content p {
  margin-bottom: 1.125rem;
}

.cs-fallback-content ul,
.cs-fallback-content ol {
  margin-bottom: 1.25rem;
  padding-left: 0;
  list-style: none;
}

.cs-fallback-content ul li,
.cs-fallback-content ol li {
  position: relative;
  padding-left: 1.375rem;
  margin-bottom: 0.5rem;
  font-size: 0.9725rem;
  color: var(--text);
  line-height: 1.75;
}

.cs-fallback-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.cs-fallback-content ol {
  counter-reset: fallback-counter;
}

.cs-fallback-content ol li {
  counter-increment: fallback-counter;
}

.cs-fallback-content ol li::before {
  content: counter(fallback-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-sans);
  font-size: 0.667rem;
  font-weight: 700;
  color: var(--teal);
}

.cs-fallback-content strong {
  font-weight: 600;
  color: var(--slate);
}

/* Role/Scope meta lines that appear in WP editor content */
.cs-fallback-content p:has(strong:first-child) {
  background: rgba(15,23,42,0.03);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 1rem;
  font-size: 0.889rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   RESPONSIVE: sidebar collapses below 960px
   ============================================================ */
@media (max-width: 960px) {
  .cs-body__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 3.5rem 3rem;
  }
  .cs-body__sidebar {
    position: static;
    order: -1; /* show at-a-glance above content on mobile */
  }
  .cs-sidebar-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
  }
  .cs-sidebar-card__label {
    grid-column: 1 / -1;
  }
  .cs-sidebar-cta {
    grid-column: 1 / -1;
  }
}

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

/* Service sidebar responsive */
@media (max-width: 1024px) {
  .svc-single-sidebar {
    position: static;
  }
  .svc-single-body__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .svc-sidebar-cta-btn {
    max-width: 320px;
  }
}

/* ============================================================
   SINGLE SERVICE PAGE — polished detail page pass
   Appended as scoped overrides so the existing page structure stays intact.
   ============================================================ */
.svc-single-hero {
  padding-block: clamp(4.5rem, 8vw, 7rem) clamp(3.5rem, 6vw, 5.5rem);
}

.svc-single-hero__inner {
  max-width: var(--container);
}

.svc-single-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.svc-single-hero__content {
  max-width: 760px;
}

.svc-single-hero__title {
  font-size: clamp(2.85rem, 6vw, 5rem);
  max-width: 860px;
  margin-bottom: 1.25rem;
}

.svc-single-hero__sub {
  max-width: 680px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(248,250,252,0.76);
}

.svc-single-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.svc-single-hero__note {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.045);
  color: rgba(248,250,252,0.72);
  line-height: 1.7;
}

.svc-single-hero__note::before {
  content: '';
  position: absolute;
  inset: 1rem auto 1rem 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--grad);
}

.svc-single-hero__note-kicker {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--teal);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.svc-single-body {
  padding-block: clamp(4rem, 7vw, 6.5rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(248,250,252,0)),
    var(--bg);
}

.svc-single-body__grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(3rem, 6vw, 5.5rem);
}

.svc-single-body__main {
  gap: 1.5rem;
}

.svc-single-panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.svc-single-panel__eyebrow {
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.svc-single-desc {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.03rem;
  line-height: 1.9;
}

.svc-single-desc h2,
.svc-single-desc h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.svc-single-desc ul,
.svc-single-desc ol {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.svc-single-desc li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
}

.svc-single-desc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
}

.svc-single-callouts {
  display: grid;
  gap: 1rem;
}

.svc-good-fit-block {
  margin-bottom: 0;
  border-radius: var(--radius-lg);
  border-left-width: 4px;
  padding: 1.35rem 1.5rem;
  background: rgba(16,185,129,0.06);
}

.svc-proof-pill {
  margin-bottom: 0;
  width: fit-content;
}

.svc-single-sidebar {
  gap: 1rem;
}

.svc-sidebar-card--cta {
  padding: clamp(1.75rem, 4vw, 2.35rem);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  background-color: var(--slate-deep);
}

.svc-sidebar-card__heading {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.08;
}

.svc-sidebar-card__body {
  color: rgba(248,250,252,0.72);
}

.svc-sidebar-cta-btn {
  justify-content: center;
}

.svc-sidebar-card--deliverables {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.svc-sidebar-card--deliverables .svc-deliverables__list {
  gap: 0.7rem;
}

.svc-single-process {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

.svc-single-process__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.svc-single-process__intro {
  position: sticky;
  top: 100px;
}

.svc-single-process__heading {
  margin-bottom: 1rem;
}

.svc-single-process__sub {
  max-width: 420px;
  color: rgba(248,250,252,0.62);
  line-height: 1.8;
}

.svc-single-process__steps {
  grid-template-columns: 1fr;
  gap: 1rem;
  border: 0;
  overflow: visible;
}

.svc-single-process__step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.75rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.045);
}

.svc-single-process__step:last-child,
.svc-single-process__step {
  border-right: 1px solid rgba(255,255,255,0.09);
}

.svc-single-process__step-num {
  position: absolute;
  top: 1.45rem;
  left: 1.5rem;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: rgba(16,185,129,0.12);
  color: var(--teal);
  margin: 0;
}

.svc-single-process__step-title {
  font-size: 1.18rem;
}

.svc-single-process__step-desc {
  max-width: 620px;
  color: rgba(248,250,252,0.66);
}

.svc-single-other {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.svc-single-other__header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.svc-single-other__heading {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

.svc-single-other__browse {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

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

.svc-other-card {
  min-height: 230px;
  padding: 1.65rem;
}

.svc-other-card__num {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.svc-other-card__title {
  font-size: 1.15rem;
  line-height: 1.18;
}

.svc-other-card__arrow {
  margin-top: auto;
  font-weight: 700;
}

.svc-final-cta-section {
  background: var(--bg);
  padding-top: clamp(4rem, 7vw, 6rem);
}

@media (max-width: 1024px) {
  .svc-single-hero__grid,
  .svc-single-process__inner,
  .svc-single-other__grid {
    grid-template-columns: 1fr;
  }
  .svc-single-hero__note,
  .svc-single-process__intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .svc-single-hero__actions,
  .svc-single-other__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .svc-single-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .svc-single-process__step {
    padding: 1.35rem;
  }
  .svc-single-process__step-num {
    position: static;
    margin-bottom: 1rem;
  }
}

/* ============================================================
   REVISION PASS — service copy, title balance, and contextual CTA spacing
   ============================================================ */
.svc-single-hero__title {
  max-width: 780px;
  text-wrap: balance;
}

.svc-single-hero__title--long {
  max-width: 720px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.svc-single-desc__lede {
  color: var(--slate);
  font-size: clamp(1.08rem, 1.4vw, 1.18rem);
  line-height: 1.72;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.svc-single-desc__custom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.svc-good-fit-block__heading {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.svc-final-cta-section,
.cs-final-cta-section {
  background: var(--bg);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

@media (max-width: 640px) {
  .svc-single-hero__title--long {
    font-size: clamp(2.15rem, 12vw, 3rem);
    line-height: 1.02;
  }
}

/* ============================================================
   TARGETED REVISION — service header, body rhythm, process, related cards, CTA scale
   Keeps the current theme structure intact while tightening proportions.
   ============================================================ */
.svc-single-hero {
  padding-block: clamp(3.25rem, 6vw, 5rem) clamp(2.75rem, 5vw, 4rem);
}

.svc-single-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}

.svc-single-hero__content {
  min-width: 0;
  max-width: 100%;
}

.svc-single-hero__title {
  max-width: 100%;
  font-size: clamp(2.35rem, 4.8vw, 4.1rem);
  line-height: 0.98;
  margin-bottom: 0.95rem;
  text-wrap: balance;
}

.svc-single-hero__title--long {
  max-width: 100%;
  font-size: clamp(2.05rem, 3.7vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: -0.058em;
}

.svc-single-hero__sub {
  max-width: 700px;
  line-height: 1.72;
}

.svc-single-hero__actions {
  margin-top: 1.45rem;
}

.svc-single-hero__note {
  padding: 1.2rem 1.25rem 1.2rem 1.35rem;
  font-size: 0.92rem;
  line-height: 1.62;
}

.svc-single-body {
  padding-block: clamp(3.75rem, 6vw, 5rem);
}

.svc-single-body__grid {
  grid-template-columns: minmax(0, 760px) minmax(300px, 380px);
  gap: clamp(2.75rem, 5vw, 4.5rem);
}

.svc-single-body__main {
  gap: 1.35rem;
}

.svc-single-panel {
  padding: 0 0 0 1.35rem;
  background: transparent;
  border: 0;
  border-left: 2px solid rgba(16,185,129,0.28);
  border-radius: 0;
  box-shadow: none;
}

.svc-single-panel__eyebrow {
  margin-bottom: 0.85rem;
}

.svc-single-desc {
  max-width: 740px;
  font-size: 1.04rem;
  line-height: 1.86;
}

.svc-single-desc p {
  margin-bottom: 1.15rem;
}

.svc-single-desc__lede {
  max-width: 720px;
  font-size: clamp(1.12rem, 1.45vw, 1.22rem);
  line-height: 1.66;
}

.svc-single-desc__custom {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

.svc-good-fit-block {
  padding: 1.15rem 1.25rem;
}

.svc-single-process {
  padding-block: clamp(3.5rem, 6vw, 4.85rem);
}

.svc-single-process__inner {
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(2rem, 4vw, 3.25rem);
}

.svc-single-process__heading {
  max-width: 440px;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.06;
  margin-bottom: 0.85rem;
}

.svc-single-process__sub {
  max-width: 380px;
  font-size: 0.94rem;
  line-height: 1.68;
}

.svc-single-process__steps {
  gap: 0.75rem;
}

.svc-single-process__step {
  padding: 1.18rem 1.25rem 1.18rem 4.25rem;
  border-radius: calc(var(--radius-lg) - 0.25rem);
  background: rgba(255,255,255,0.04);
}

.svc-single-process__step-num {
  top: 1.1rem;
  left: 1.25rem;
  width: 2rem;
  height: 2rem;
}

.svc-single-process__step-title {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
  line-height: 1.2;
}

.svc-single-process__step-desc {
  font-size: 0.86rem;
  line-height: 1.62;
}

.svc-single-other {
  padding-block: clamp(3.5rem, 6vw, 4.85rem);
}

.svc-single-other__header {
  margin-bottom: 1.7rem;
}

.svc-single-other__heading {
  font-size: clamp(1.65rem, 2.7vw, 2.3rem);
}

.svc-single-other__grid {
  gap: 0.9rem;
}

.svc-other-card {
  position: relative;
  min-height: 205px;
  padding: 1.35rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,0.72));
  border-color: rgba(15,23,42,0.08);
}

.svc-other-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.82;
}

.svc-other-card::after {
  content: '';
  position: absolute;
  right: -28px;
  top: -28px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(16,185,129,0.06);
  transition: transform var(--ease-md), opacity var(--ease-md);
}

.svc-other-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.28);
  box-shadow: 0 18px 42px rgba(15,23,42,0.08);
}

.svc-other-card:hover::after {
  transform: scale(1.18);
  opacity: 0.82;
}

.svc-other-card__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.svc-other-card__num {
  margin-bottom: 0;
}

.svc-other-card__kicker {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.svc-other-card__title,
.svc-other-card__sub,
.svc-other-card__arrow {
  position: relative;
  z-index: 1;
}

.svc-other-card__title {
  font-size: 1.08rem;
  line-height: 1.17;
}

.svc-other-card__sub {
  font-size: 0.84rem;
  line-height: 1.58;
}

.svc-other-card__arrow {
  display: inline-flex;
  width: fit-content;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15,23,42,0.08);
}

.svc-final-cta-section,
.cs-final-cta-section,
.resource-bottom-cta {
  padding-top: clamp(2.75rem, 5vw, 4rem) !important;
  padding-bottom: clamp(2.75rem, 5vw, 4rem) !important;
}

@media (max-width: 1024px) {
  .svc-single-hero__grid,
  .svc-single-body__grid,
  .svc-single-process__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .svc-single-hero {
    padding-block: 3rem 3rem;
  }

  .svc-single-hero__title,
  .svc-single-hero__title--long {
    font-size: clamp(2rem, 11vw, 2.85rem);
    line-height: 1.02;
  }

  .svc-single-panel {
    padding-left: 1rem;
  }

  .svc-single-process__step {
    padding: 1.2rem;
  }
}

/* Process source update: keep service-specific steps compact and easy to scan. */
.svc-single-process {
  padding-block: clamp(3rem, 5vw, 4.1rem);
}

.svc-single-process__inner {
  grid-template-columns: minmax(235px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.svc-single-process__heading {
  max-width: 420px;
  font-size: clamp(1.55rem, 2.25vw, 2rem);
  line-height: 1.06;
  margin-bottom: 0.7rem;
}

.svc-single-process__sub {
  max-width: 360px;
  font-size: 0.91rem;
  line-height: 1.58;
}

.svc-single-process__steps {
  gap: 0.65rem;
}

.svc-single-process__step {
  padding: 1.05rem 1.1rem 1.05rem 3.85rem;
  border-radius: calc(var(--radius-lg) - 0.25rem);
}

.svc-single-process__step-num {
  top: 1.02rem;
  left: 1.1rem;
  width: 1.9rem;
  height: 1.9rem;
}

.svc-single-process__step-title {
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.2;
}

.svc-single-process__step-desc {
  font-size: 0.84rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .svc-single-process__step {
    padding: 1rem;
  }
}

/* ============================================================
   CASE STUDY POLISH PASS
   Curated archive cards, tighter single case study rhythm, and sidebar polish.
   ============================================================ */
.page-hero--case-index {
  padding-block: clamp(3.5rem, 6vw, 5.25rem) clamp(3rem, 5vw, 4.25rem);
}

.page-hero__inner--case-index {
  max-width: 780px;
}

.page-hero__inner--case-index .page-hero__title {
  max-width: 12ch;
}

.page-hero__inner--case-index .page-hero__sub {
  max-width: 660px;
}

.cs-index-section {
  padding-block: clamp(3.5rem, 6vw, 5rem) clamp(3.75rem, 6vw, 5rem);
}

.cs-index-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.cs-index-head__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.45rem;
}

.cs-index-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--slate);
  max-width: 560px;
}

.cs-index-head__text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 0 0 auto;
}

.cs-grid--curated,
.cs-index-section .cs-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 410px));
  justify-content: start;
  align-items: stretch;
  gap: 1rem;
  max-width: 1280px;
}

.cs-index-section .cs-card--archive {
  position: relative;
  min-height: 355px;
  background: linear-gradient(180deg, #fff 0%, rgba(248,250,252,0.76) 100%);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: calc(var(--radius-lg) + 0.25rem);
  box-shadow: 0 1px 0 rgba(15,23,42,0.03);
  overflow: hidden;
}

.cs-index-section .cs-card--archive::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.78;
}

.cs-index-section .cs-card--archive:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.26);
  box-shadow: 0 20px 48px rgba(15,23,42,0.08);
}

.cs-index-section .cs-card__inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
  gap: 1.05rem;
}

.cs-index-section .cs-card__top {
  gap: 0.7rem;
}

.cs-card__proof-label,
.cs-card__client-type,
.cs-card__scope-label {
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-card__proof-label {
  color: var(--teal-dark);
}

.cs-card__client-type {
  width: fit-content;
  color: var(--text-muted);
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
}

.cs-index-section .cs-card__status {
  background: rgba(255,255,255,0.82);
}

.cs-index-section .cs-card__title {
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  max-width: 19ch;
}

.cs-index-section .cs-card__challenge {
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.cs-card__scope-block {
  padding-top: 0.95rem;
  border-top: 1px solid rgba(15,23,42,0.07);
}

.cs-card__scope-label {
  display: block;
  color: rgba(15,23,42,0.45);
  margin-bottom: 0.45rem;
}

.cs-card__scope-line {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: 0.65rem;
}

.cs-index-section .cs-card__tags {
  margin-top: 0;
  gap: 0.38rem;
}

.cs-index-section .cs-tag {
  background: rgba(15,23,42,0.035);
}

.cs-index-section .cs-card__impact {
  padding: 0.72rem 0.82rem;
  background: rgba(16,185,129,0.055);
  border-color: rgba(16,185,129,0.16);
  margin-top: auto;
}

.cs-index-section .cs-card__impact-text {
  font-size: 0.81rem;
  line-height: 1.48;
}

.cs-index-section .cs-card__cta {
  width: fit-content;
  margin-top: 0;
  padding-top: 0.25rem;
  color: var(--slate);
  border-bottom: 1px solid rgba(16,185,129,0.35);
  transition: color var(--ease), border-color var(--ease);
}

.cs-index-section .cs-card--archive:hover .cs-card__cta {
  color: var(--teal-dark);
  border-color: var(--teal);
}

/* ============================================================
   SINGLE CASE STUDY RESTORE PASS
   Restores the editorial frontend class pattern used by the template.
   ============================================================ */
.cs-hero {
  padding-block: clamp(4.75rem, 7vw, 6.5rem) clamp(3.75rem, 6vw, 5rem);
}

.cs-hero__inner {
  max-width: 1080px;
}

.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  color: rgba(248,250,252,0.58);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--ease);
}

.cs-back-link:hover {
  color: var(--teal);
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}

.cs-hero__content {
  max-width: 680px;
  margin-bottom: 0;
}

.cs-hero__title {
  max-width: 14ch;
  font-size: clamp(2.65rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.cs-hero__sub {
  max-width: 640px;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: rgba(248,250,252,0.72);
  line-height: 1.78;
}

.cs-project-view {
  justify-self: end;
  width: 100%;
  max-width: 360px;
  padding: 1.15rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 18px 44px rgba(0,0,0,0.14);
  backdrop-filter: blur(10px);
}

.cs-project-view__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cs-project-view__rows {
  display: grid;
  gap: 0;
}

.cs-project-view__row {
  display: grid;
  gap: 0.32rem;
  padding-block: 0.86rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cs-project-view__row:first-child {
  padding-top: 0;
  border-top: none;
}

.cs-project-view__row:last-child {
  padding-bottom: 0;
}

.cs-project-view__row span {
  color: rgba(248,250,252,0.44);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cs-project-view__row strong {
  color: rgba(248,250,252,0.84);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.48;
}

.cs-body__inner {
  max-width: 960px;
  padding-block: clamp(4.25rem, 7vw, 6rem) clamp(4rem, 7vw, 5.5rem);
}

.cs-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.25rem);
  padding-block: clamp(2.75rem, 5vw, 3.75rem);
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}

.cs-section:first-child {
  padding-top: 0;
}

.cs-section:last-child {
  border-bottom: none;
}

.cs-section__label-col {
  position: sticky;
  top: 100px;
}

.cs-section__num {
  margin-bottom: 0.5rem;
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 0.611rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cs-section__heading {
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cs-section__body {
  max-width: 680px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.88;
}

.cs-section__body--lede {
  color: var(--slate);
  font-size: clamp(1.03rem, 1.4vw, 1.12rem);
  line-height: 1.82;
}

.cs-section__body p {
  margin-bottom: 1.125rem;
}

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

.cs-section__body strong {
  color: var(--slate);
  font-weight: 600;
}

.cs-section__body ul,
.cs-section__body ol {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}

.cs-section__body li::marker {
  color: var(--teal);
}

.cs-section--glance {
  align-items: stretch;
}

.cs-glance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cs-glance-item {
  min-width: 0;
  padding: 1.2rem 1.25rem;
  border-right: 0.5px solid var(--border);
}

.cs-glance-item:last-child {
  border-right: none;
}

.cs-glance-item span {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(15,23,42,0.45);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cs-glance-item p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.62;
}

.cs-impact-callout {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.875rem;
  padding: 1.75rem 2rem;
  background: var(--slate);
  border-radius: var(--radius-lg);
}

.cs-impact-callout__metric {
  flex-shrink: 0;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cs-impact-callout__label {
  max-width: 320px;
  color: rgba(248,250,252,0.7);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

.cs-final-cta-section {
  background: var(--bg);
  padding-top: clamp(3.5rem, 6vw, 5rem) !important;
  padding-bottom: clamp(4rem, 7vw, 5.5rem) !important;
}

.cs-final-cta-section .container {
  max-width: 900px;
}

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

  .cs-project-view {
    justify-self: start;
    max-width: 520px;
  }

  .cs-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cs-section__label-col {
    position: static;
  }

  .cs-glance-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .cs-glance-item {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .cs-glance-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .cs-hero {
    padding-block: 3.25rem 3.25rem;
  }

  .cs-hero__title {
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 1.03;
  }

  .cs-body__inner {
    padding-block: 3.5rem 3rem;
  }

  .cs-section {
    padding-block: 2.25rem;
  }

  .cs-impact-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.375rem 1.5rem;
  }
}

/* ============================================================
   SINGLE CASE STUDY CTA — target editorial panel layout
   Scoped only to final-cta final-cta--case final-cta--case-editorial.
   ============================================================ */
.cs-final-cta-section {
  background: var(--bg);
  padding-top: clamp(3.5rem, 6vw, 5rem) !important;
  padding-bottom: clamp(4rem, 7vw, 5.5rem) !important;
}

.cs-final-cta-section .container {
  max-width: 1120px !important;
}

.cs-final-cta-section .final-cta--case.final-cta--case-editorial {
  width: 100%;
  max-width: 1060px !important;
  min-height: 382px;
  margin-inline: auto;
  padding: clamp(3rem, 5vw, 3.55rem) clamp(3rem, 5vw, 3.85rem) !important;
  border-radius: 1.35rem;
}

.cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 440px);
  grid-template-rows: auto auto minmax(90px, 1fr);
  column-gap: clamp(3rem, 6vw, 5.25rem);
  row-gap: 0;
  align-items: start;
  width: 100%;
  max-width: none !important;
  min-height: 265px;
}

.cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 1.55rem;
}

.cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__title {
  grid-column: 1;
  grid-row: 2;
  max-width: 620px !important;
  margin: 0;
  font-size: clamp(2.85rem, 4.35vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__sub {
  grid-column: 1;
  grid-row: 3;
  max-width: 560px !important;
  margin: 1.35rem 0 0;
  align-self: start;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.72;
}

.cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions {
  grid-column: 2;
  grid-row: 3;
  align-self: center;
  justify-self: end;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: 100%;
  margin: 0 !important;
  padding: 0;
}

.cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions .btn {
  width: auto !important;
  min-width: 178px;
  justify-content: center;
  padding: 1.05rem 1.55rem;
  white-space: nowrap;
}

.cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions .btn-primary {
  min-width: 252px;
}

@media (max-width: 960px) {
  .cs-final-cta-section .container {
    max-width: 760px !important;
  }

  .cs-final-cta-section .final-cta--case.final-cta--case-editorial {
    min-height: auto;
  }

  .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__content {
    display: block !important;
    min-height: 0;
  }

  .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions {
    justify-content: flex-start;
    margin-top: 1.65rem !important;
  }
}

@media (max-width: 640px) {
  .cs-final-cta-section .final-cta--case.final-cta--case-editorial {
    padding: 2rem !important;
  }

  .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__title {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions .btn {
    width: 100% !important;
    min-width: 0;
  }
}

/* ============================================================
   TARGETED RESTORATION — single case study layout + editorial CTA
   Restores the single case study structure and featured image,
   and corrects the final CTA composition without affecting other pages.
   ============================================================ */
body.single-case_study .cs-hero {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  padding-block: clamp(2.7rem, 5vw, 3.8rem) clamp(2.55rem, 4.5vw, 3.4rem);
}

body.single-case_study .cs-hero::before {
  content: '';
  position: absolute;
  top: -170px;
  left: -110px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 64%);
  pointer-events: none;
}

body.single-case_study .cs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

body.single-case_study .cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

body.single-case_study .cs-hero__content {
  max-width: 680px;
}

body.single-case_study .cs-hero__title {
  max-width: 650px;
  margin-bottom: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

body.single-case_study .cs-project-view {
  justify-self: end;
  width: 100%;
  max-width: 320px;
  padding: 1rem;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}

body.single-case_study .cs-project-view__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.single-case_study .cs-project-view__rows {
  display: grid;
}

body.single-case_study .cs-project-view__row {
  display: grid;
  gap: 0.28rem;
  padding-block: 0.72rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

body.single-case_study .cs-project-view__row:first-child {
  padding-top: 0;
  border-top: none;
}

body.single-case_study .cs-project-view__row:last-child {
  padding-bottom: 0;
}

body.single-case_study .cs-project-view__row span {
  color: rgba(248,250,252,0.44);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.single-case_study .cs-project-view__row strong {
  color: rgba(248,250,252,0.84);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

body.single-case_study .cs-body {
  background: var(--bg);
}

body.single-case_study .cs-body__inner {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  max-width: 1080px;
  padding-block: clamp(2.6rem, 5vw, 3.75rem);
}

body.single-case_study .cs-featured-media {
  width: 100%;
  margin: 0 0 clamp(2.2rem, 4vw, 3rem);
}

body.single-case_study .cs-featured-media__image {
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(15,23,42,0.08);
  background: #fff;
}

body.single-case_study .cs-featured-media__image img {
  display: block;
  width: 100%;
  height: auto;
}

body.single-case_study .cs-section {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: clamp(1.05rem, 2.4vw, 1.7rem);
  padding-block: 1.55rem;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

body.single-case_study .cs-section:first-of-type {
  padding-top: 0;
}

body.single-case_study .cs-section:last-child {
  border-bottom: none;
}

body.single-case_study .cs-section__label-col {
  position: sticky;
  top: 84px;
  align-self: start;
}

body.single-case_study .cs-section__num {
  margin-bottom: 0.36rem;
  color: rgba(15,23,42,0.38);
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.single-case_study .cs-section__heading {
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

body.single-case_study .cs-section__body {
  max-width: 650px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.72;
}

body.single-case_study .cs-section__body--lede {
  color: var(--slate);
}

body.single-case_study .cs-section__body p {
  margin-bottom: 0.85rem;
}

body.single-case_study .cs-section__body p:last-child {
  margin-bottom: 0;
}

body.single-case_study .cs-section__body strong {
  color: var(--slate);
  font-weight: 600;
}

body.single-case_study .cs-section__body ul,
body.single-case_study .cs-section__body ol {
  display: grid;
  gap: 0.42rem;
  margin: 0.65rem 0 0.95rem;
  padding-left: 0;
  list-style: none;
}

body.single-case_study .cs-section__body li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.62;
}

body.single-case_study .cs-section__body li::before {
  content: '';
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

body.single-case_study .cs-glance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(15,23,42,0.04);
}

body.single-case_study .cs-glance-item {
  padding: 0.95rem 1rem;
  border-right: 1px solid rgba(15,23,42,0.08);
}

body.single-case_study .cs-glance-item:last-child {
  border-right: none;
}

body.single-case_study .cs-glance-item span {
  display: block;
  margin-bottom: 0.28rem;
  color: rgba(15,23,42,0.44);
  font-family: var(--font-sans);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.single-case_study .cs-glance-item p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
}

body.single-case_study .cs-impact-callout {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(16,185,129,0.055);
  border: 1px solid rgba(16,185,129,0.16);
  border-radius: var(--radius-md);
}

body.single-case_study .cs-impact-callout__metric {
  display: block;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

body.single-case_study .cs-impact-callout__label {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.5;
}

body.single-case_study .cs-final-cta-section {
  background: var(--bg);
  padding-top: clamp(2.5rem, 5vw, 4rem) !important;
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem) !important;
}

body.single-case_study .cs-final-cta-section .container {
  max-width: 1120px !important;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial {
  width: 100%;
  max-width: 1060px;
  min-height: auto;
  margin-inline: auto;
  padding: clamp(2.85rem, 4.2vw, 3.45rem) clamp(2.65rem, 4.2vw, 3.45rem) !important;
  border-radius: 1.35rem;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(2rem, 4vw, 4.25rem);
  row-gap: 0;
  align-items: start;
  width: 100%;
  max-width: none !important;
  min-height: 300px;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 1.5rem;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__title {
  grid-column: 1;
  grid-row: 2;
  max-width: none !important;
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__title-line {
  display: inline;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__sub {
  grid-column: 1;
  grid-row: 3;
  max-width: 31rem !important;
  margin: 1.5rem 0 0;
  align-self: start;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.72;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  justify-self: end;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.95rem;
  width: auto;
  margin: 0 !important;
  padding: 0;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions .btn {
  width: auto !important;
  min-width: 172px;
  justify-content: center;
  padding: 1.05rem 1.55rem;
  white-space: nowrap;
}

body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions .btn-primary {
  min-width: 255px;
}

@media (max-width: 960px) {
  body.single-case_study .cs-hero__grid,
  body.single-case_study .cs-section {
    grid-template-columns: 1fr;
  }

  body.single-case_study .cs-project-view {
    justify-self: start;
    max-width: 520px;
  }

  body.single-case_study .cs-section__label-col {
    position: static;
  }

  body.single-case_study .cs-glance-grid {
    grid-template-columns: 1fr;
  }

  body.single-case_study .cs-glance-item {
    border-right: none;
    border-bottom: 1px solid rgba(15,23,42,0.08);
  }

  body.single-case_study .cs-glance-item:last-child {
    border-bottom: none;
  }

  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial {
    min-height: auto;
  }

  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__content {
    display: block !important;
    min-height: 0;
  }

  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__title {
    max-width: 11ch !important;
  }

  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions {
    justify-content: flex-start;
    margin-top: 1.65rem !important;
  }
}

@media (max-width: 640px) {
  body.single-case_study .cs-hero {
    padding-block: 3rem 3rem;
  }

  body.single-case_study .cs-hero__title {
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 1.03;
  }

  body.single-case_study .cs-body__inner {
    padding-block: 2.5rem 2.75rem;
  }

  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial {
    padding: 2rem !important;
  }

  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__title {
    max-width: none !important;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions {
    flex-direction: column !important;
    align-items: flex-start;
  }

  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions .btn,
  body.single-case_study .cs-final-cta-section .final-cta--case.final-cta--case-editorial .final-cta__actions .btn-primary {
    width: 100% !important;
    min-width: 0;
  }
}
/* ── Case study CTA: definitive fix ── */
body.single-case_study .cs-final-cta-section .final-cta--case-editorial {
  grid-template-columns: 1fr !important;
}

body.single-case_study .cs-final-cta-section .final-cta--case-editorial .final-cta__content {
  max-width: none !important;
  display: block !important;
}

body.single-case_study .cs-final-cta-section .final-cta--case-editorial .final-cta__text {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "eyebrow eyebrow"
    "title   title"
    "sub     actions" !important;
  column-gap: clamp(2rem, 4vw, 3.5rem) !important;
  row-gap: 0 !important;
  align-items: center !important;
  width: 100% !important;
}
body.single-case_study .cs-final-cta-section .final-cta--case-editorial .final-cta__actions {
  transform: translateX(3rem) !important;
}

/* Flatten the wrapper so its children participate directly in the grid */
body.single-case_study .cs-final-cta-section .final-cta--case-editorial .site-footer__cta-copy {
  display: contents !important;
}

body.single-case_study .cs-final-cta-section .final-cta--case-editorial .site-footer__cta-eyebrow {
  grid-area: eyebrow !important;
}

body.single-case_study .cs-final-cta-section .final-cta--case-editorial .site-footer__cta-title {
  grid-area: title !important;
  max-width: none !important;
}

body.single-case_study .cs-final-cta-section .final-cta--case-editorial .final-cta__sub {
  grid-area: sub !important;
  max-width: 36rem !important;
  margin: 0 !important;
}

body.single-case_study .cs-final-cta-section .final-cta--case-editorial .final-cta__actions {
  grid-area: actions !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.875rem !important;
  margin: 0 !important;
  justify-self: end !important;
}

@media (max-width: 760px) {
  body.single-case_study .cs-final-cta-section .final-cta--case-editorial .final-cta__text {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "eyebrow"
      "title"
      "sub"
      "actions" !important;
    row-gap: 1.25rem !important;
  }
  body.single-case_study .cs-final-cta-section .final-cta--case-editorial .final-cta__actions {
    justify-self: start !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
}
body.single-case_study .cs-final-cta-section .final-cta--case-editorial .site-footer__cta-title .final-cta__title-line {
  display: block !important;
}

/* ============================================================
   LEGAL PAGES — Privacy Policy · Terms & Conditions
   ============================================================ */
.legal-section {
  padding-block: 4rem 6rem;
  background: #0A1628;
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
}

/* Headings */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-strong, #fff);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.625rem;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-strong, #fff);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.legal-content p {
  margin-bottom: 1rem;
  color: rgba(248,250,252,0.75);
}

/* Lists */
.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.375rem;
  color: rgba(248,250,252,0.75);
}

/* Links */
.legal-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: var(--sky);
}

/* Last updated line */
.legal-content p:first-child strong,
.legal-content > p:first-of-type {
  font-size: 0.875rem;
  color: rgba(248,250,252,0.45);
}

/* Compact hero variant for legal pages */
.page-hero--compact {
  padding-block: 3.5rem 3rem;
}

@media (max-width: 640px) {
  .legal-section {
    padding-block: 2.5rem 4rem;
  }
  .legal-content {
    font-size: 0.9375rem;
  }
}
