/* Case Study – shared content rail (1440px, matches Hero) */
.cs-summary__container,
.cs-challenges__container,
.cs-solution__container,
.cs-delivery__container,
.cs-outcomes__container,
.cs-tech-stack__container,
.cs-testimonial__container {
  width: 100%;
  max-width: 90rem; /* 1440px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  .cs-summary__container,
  .cs-challenges__container,
  .cs-solution__container,
  .cs-delivery__container,
  .cs-outcomes__container,
  .cs-tech-stack__container,
  .cs-testimonial__container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Case Study – Hero Section */
.cs-hero {
  --cs-hero-max-width: 90rem; /* 1440px */
  margin: 0;
  padding: 1rem 1rem 3.125rem;
  width: 100%;
}

.cs-hero__band {
  position: relative;
  width: 100%;
  min-height: 33.4375rem; /* 535 */
  overflow: hidden;
  isolation: isolate;
  background-color: #0c0908;
  border-radius: 1.25rem;
}

.cs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cs-hero__bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Text + side image sit in a centered 1440px rail */
.cs-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--cs-hero-max-width);
  min-height: 33.4375rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.cs-hero__media {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: 60%;
  height: auto;
  max-height: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cs-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
}

.cs-hero__body {
  position: relative;
  z-index: 2;
  min-height: 33.4375rem;
}

.cs-hero__content {
  position: relative;
  z-index: 2;
  max-width: 40%;
  width: 100%;
  padding: 3.125rem 0 3.125rem;
}

.cs-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.3125rem 0.625rem;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: normal;
  color: var(--cs-hero-badge-text-color, #ffffff);
  background-color: var(--cs-hero-badge-bg-color, #907afb);
}

.cs-hero__title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-hero-title-color, #ffffff);
}

.cs-hero__description {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
  color: var(--cs-hero-description-color, #ffffff);
}

.cs-hero__divider {
  width: 100%;
  height: 0.0625rem;
  margin: 1.875rem 0;
  background-color: var(--cs-hero-divider-color, rgba(255, 255, 255, 0.35));
}

.cs-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 1.875rem 3.125rem;
  margin: 0;
}

.cs-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  margin: 0;
}

.cs-hero__meta-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cs-hero-meta-label-color, #907afb);
}

.cs-hero__meta-value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: normal;
  color: var(--cs-hero-meta-value-color, #ffffff);
}

/* Explore Now — mirrors the Project Details .sub-title / .project-details-button
   rules, which are scoped to .project-details and so don't reach the hero. */
.cs-hero__explore-title {
  margin: 1.875rem 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3125rem;
  overflow: hidden;
  color: var(--cs-hero-explore-title-color, var(--cs-hero-description-color, #ffffff));
}

.cs-hero__explore {
  display: flex;
  gap: 1.5625rem;
}

@media screen and (max-width: 1024px) {
  .cs-hero__band,
  .cs-hero__inner,
  .cs-hero__body {
    min-height: auto;
  }

  .cs-hero__inner {
    display: flex;
    flex-direction: column-reverse;
    padding: 0 1rem 1.5rem;
  }

  .cs-hero__bg {
    position: absolute;
    inset: 0;
  }

  .cs-hero__media {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    aspect-ratio: 660 / 343;
    margin: 0.75rem auto 0;
    transform: none;
  }

  .cs-hero__image {
    object-position: center center;
  }

  .cs-hero__body {
    order: 1;
  }

  .cs-hero__content {
    max-width: none;
    padding: 2rem 0 0.5rem;
  }

  .cs-hero__title {
    font-size: 1.75rem;
  }

}
@media screen and (max-width: 767px) {
  .cs-hero__meta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Case Study – Project Summary Section
   Figma (1280): gray band 500px; title at y+50; media stage y+252 / h411 overlapping into Challenges */
.cs-summary {
  --cs-summary-band-height: 31.25rem; /* 500 — Figma grey band */
  --cs-summary-media-height: 25.6875rem; /* 411 */
  /* Portion of media that sits inside the grey band / hangs into Challenges */
  --cs-summary-media-in-band: 15.5rem; /* 248 */
  --cs-summary-media-overhang: 10.1875rem; /* 163 */
  --cs-summary-center-left: 21.953125%; /* 281/1280 */
  --cs-summary-center-width: 56.09375%; /* 718/1280 */
  --cs-summary-left-width: 37.5%; /* 480/1280 */
  --cs-summary-right-width: 38.515625%; /* 493/1280 */
  --cs-summary-side-top: 4.375rem; /* 322-252 */
  position: relative;
  z-index: 2;
  margin-top: 0;
  overflow: visible;
}

.case-study-summary-section {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.cs-summary__backdrop {
  position: relative;
  z-index: 0;
  height: auto;
  min-height: var(--cs-summary-band-height);
  padding: 3.125rem 0 0; /* 50px top */
  background-color: #f5f5f5;
  box-sizing: border-box;
}

/* Reserve the in-band image zone below the text so long copy
   grows the grey band and pushes media down instead of overlapping. */
.cs-summary--has-media .cs-summary__backdrop {
  padding-bottom: var(--cs-summary-media-in-band);
}

.cs-summary:not(.cs-summary--has-media) .cs-summary__backdrop {
  padding-bottom: 3.125rem;
  min-height: 0;
}

.cs-summary__container {
  position: relative;
  z-index: 1;
}

.cs-summary--has-media .cs-summary__container {
  /* Keep a small breathing gap above the media zone */
  padding-bottom: 1.25rem;
}

.cs-summary__title {
  margin: 0 0 0.625rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-summary-title-color, #907afb);
}

.cs-summary__content {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.625rem;
  color: var(--cs-summary-content-color, #0c0908);
}

.cs-summary__content > :first-child {
  margin-top: 0;
}

.cs-summary__content > :last-child {
  margin-bottom: 0;
}

.cs-summary__content p {
  margin: 0;
}

.cs-summary__media-stage {
  /* Anchor to the bottom of the (growing) grey band so longer
     text pushes the collage down instead of covering copy. */
  position: absolute;
  top: auto;
  bottom: calc(-1 * var(--cs-summary-media-overhang));
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  height: var(--cs-summary-media-height);
  pointer-events: none;
}

.cs-summary__media-stage .cs-summary__media {
  pointer-events: auto;
}

.cs-summary__media {
  margin: 0;
  overflow: visible;
  line-height: 0;
}

.cs-summary__media--left,
.cs-summary__media--right {
  display: none;
}

.cs-summary__media--center {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: min(56.09375%, 44.875rem);
  max-width: 56.09375%;
  transform: translateX(-50%);
}

.cs-summary:not(.cs-summary--media-collage) .cs-summary__media--center {
  left: 3.125%;
  right: 3.125%;
  width: auto;
  max-width: none;
  transform: none;
}

.cs-summary__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--cs-summary-media-height);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 1.25rem 2.5rem rgba(12, 9, 8, 0.28));
}

.cs-summary--media-collage .cs-summary__media--left,
.cs-summary--media-collage .cs-summary__media--right {
  display: block;
  position: absolute;
  top: var(--cs-summary-side-top);
  z-index: 1;
}

.cs-summary--media-collage .cs-summary__media--left {
  left: 0.3125%;
  width: var(--cs-summary-left-width);
}

.cs-summary--media-collage .cs-summary__media--right {
  right: 0;
  left: auto;
  width: var(--cs-summary-right-width);
}

.cs-summary--media-collage .cs-summary__media--center {
  left: var(--cs-summary-center-left);
  width: var(--cs-summary-center-width);
  max-width: none;
  transform: none;
}

.cs-summary--media-collage .cs-summary__media--left .cs-summary__image,
.cs-summary--media-collage .cs-summary__media--right .cs-summary__image {
  max-height: 17.0625rem;
}

/*
 * Tablet + mobile: in-flow media with grey/challenges overlap.
 * Desktop (≥1025px) keeps the absolute Figma collage layout above.
 */
@media screen and (max-width: 1024px) {
  .cs-summary {
    --cs-summary-band-height: auto;
    --cs-summary-media-top: auto;
    --cs-summary-media-height: auto;
    /* ~half the image height for 2:1 landscape media */
    --cs-summary-image-gap: 2rem;
    --cs-summary-image-overlap: calc(0.28 * (100vw - 2.5rem));
    --cs-summary-image-inset-x: 1.25rem;
  }

  .cs-summary__backdrop {
    min-height: 0;
    padding: 2.5rem 0 0;
  }

  .cs-summary--has-media .cs-summary__backdrop {
    padding-bottom: calc(var(--cs-summary-image-gap) + var(--cs-summary-image-overlap));
  }

  .cs-summary--has-media .cs-summary__container {
    padding-bottom: 0;
  }

  .cs-summary__media-stage {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 3;
    width: auto;
    height: auto;
    margin-top: calc(-1 * var(--cs-summary-image-overlap));
    margin-bottom: calc(-1 * var(--cs-summary-image-overlap));
    padding: 0 var(--cs-summary-image-inset-x);
    box-sizing: border-box;
  }

  .cs-summary__media--center,
  .cs-summary:not(.cs-summary--media-collage) .cs-summary__media--center,
  .cs-summary--media-collage .cs-summary__media--center {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 46.25rem; /* ~740px — keeps 3-laptop collage readable */
    margin: 0 auto;
    transform: none;
  }

  .cs-summary--media-collage .cs-summary__media--left,
  .cs-summary--media-collage .cs-summary__media--right {
    display: none;
  }

  .cs-summary__image {
    max-height: none;
    width: 100%;
    height: auto;
  }

  .cs-summary__title {
    font-size: 1.75rem;
  }

  .cs-summary__content {
    font-size: 0.875rem;
    line-height: 1.5rem;
  }
}

@media screen and (max-width: 767px) {
  .cs-summary {
    --cs-summary-image-gap: 1.5rem;
    --cs-summary-image-overlap: calc(0.3 * (100vw - 2rem));
    --cs-summary-image-inset-x: 1rem;
  }

  .cs-summary__backdrop {
    padding: 2rem 0 0;
  }

  .cs-summary__media--center,
  .cs-summary:not(.cs-summary--media-collage) .cs-summary__media--center,
  .cs-summary--media-collage .cs-summary__media--center {
    max-width: none;
  }

  .cs-summary__title {
    font-size: 1.5rem;
  }

  .cs-summary__content {
    font-size: 0.8125rem;
    line-height: 1.5rem;
  }
}

/* Case Study – The Challenges Section
   Figma: black band; title ~233px into band to clear overlapping media */
.cs-challenges {
  position: relative;
  z-index: 0;
  margin-top: 0;
  padding: 3.125rem 0 5.3125rem;
  background-color: #0c0908;
}

.case-study-summary-section:has(.cs-summary--has-media) + .case-study-challenges-section .cs-challenges {
  padding-top: 14.5625rem; /* 233 */
}

.cs-challenges__title {
  margin: 0 0 0.3125rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-challenges-title-color, #907afb);
}

.cs-challenges__subtitle {
  margin: 0 0 0.625rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-challenges-subtitle-color, #ffffff);
}

.cs-challenges__intro {
  margin: 0 0 1.875rem;
  max-width: 77.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
  color: var(--cs-challenges-intro-color, #ffffff);
}

.cs-challenges__intro > :first-child {
  margin-top: 0;
}

.cs-challenges__intro > :last-child {
  margin-bottom: 0;
}

.cs-challenges__intro p {
  margin: 0;
}

.cs-challenges__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.cs-challenges__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 21.5625rem;
  padding: 1.875rem;
  border-radius: 1.25rem;
  background: linear-gradient(
    180deg,
    var(--cs-challenges-card-gradient-from, rgba(144, 122, 251, 0.2)) 0%,
    var(--cs-challenges-card-gradient-to, rgba(12, 9, 8, 0.2)) 100%
  );
  box-sizing: border-box;
}

.cs-challenges__card-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border-radius: 0.625rem;
  background-color: var(--cs-challenges-card-icon-bg-color, #907afb);
  box-sizing: border-box;
}

.cs-challenges__card-icon-image {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.cs-challenges__card-title {
  flex-shrink: 0;
  width: 100%;
  min-height: 3.75rem;
  margin: 0 0 1.9375rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cs-challenges-card-title-color, #907afb);
  position: relative;
}

.cs-challenges__card-title::after {
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 0.25rem;
  border-top: 0.0625rem dashed var(--cs-challenges-card-border-color, rgba(182, 182, 182, 0.6));
  content: "";
}

.cs-challenges__card-description {
  margin: 0;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.375rem;
  color: var(--cs-challenges-card-description-color, #ffffff);
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .case-study-summary-section:has(.cs-summary--has-media) + .case-study-challenges-section .cs-challenges {
    /* Match .cs-summary --cs-summary-image-overlap + breathing room */
    padding-top: calc(0.28 * (100vw - 2.5rem) + 3rem);
  }

  .cs-challenges {
    padding: 2.5rem 0 3rem;
  }

  .cs-challenges__title {
    font-size: 1.75rem;
  }

  .cs-challenges__subtitle {
    font-size: 1.125rem;
  }

  .cs-challenges__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .cs-challenges__card {
    min-height: 0;
  }

  .cs-challenges__card-title {
    min-height: auto;
    margin-bottom: 1.25rem;
  }
}

@media screen and (max-width: 767px) {
  .case-study-summary-section:has(.cs-summary--has-media) + .case-study-challenges-section .cs-challenges {
    /* Match .cs-summary --cs-summary-image-overlap + breathing room */
    padding-top: calc(0.3 * (100vw - 2rem) + 2.5rem);
  }

  .cs-challenges {
    padding: 2rem 0 2.5rem;
  }

  .cs-challenges__title {
    font-size: 1.5rem;
  }

  .cs-challenges__subtitle {
    font-size: 1.125rem;
  }

  .cs-challenges__intro {
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.25rem;
  }

  .cs-challenges__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: none;
  }

  .cs-challenges__card {
    min-height: 0;
    padding: 1.5rem;
  }

  .cs-challenges__card-title {
    min-height: auto;
    margin-bottom: 1rem;
    font-size: 1.125rem;
  }
}

/* Case Study – Our Solution Section */
.cs-solution {
  margin-top: 0;
  padding: 3.125rem 0;
}

.cs-solution__title {
  margin: 0 0 1.25rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-solution-title-color, #907afb);
}

.cs-solution__intro {
  margin: 0 0 3.125rem;
  max-width: 71.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.625rem;
  color: var(--cs-solution-intro-color, #0c0908);
}

.cs-solution__intro > :first-child {
  margin-top: 0;
}

.cs-solution__intro > :last-child {
  margin-bottom: 0;
}

.cs-solution__intro p {
  margin: 0;
}

.cs-solution__cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
}

.cs-solution__card-sticky {
  position: relative;
}

.cs-solution__card {
  display: grid;
  grid-template-columns: minmax(0, 24.375rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
  min-height: 26.875rem;
  padding: 3.125rem;
  border-radius: 1.25rem;
  background-color: #f5f5f5;
  box-sizing: border-box;
}

.cs-solution__card-media {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
}

.cs-solution__card-image {
  display: block;
  width: 100%;
  height: 20.625rem;
  object-fit: cover;
  object-position: center;
}

.cs-solution__card-body {
  min-width: 0;
}

.cs-solution__card-title {
  margin: 0 0 0.625rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-solution-card-title-color, #0c0908);
}

.cs-solution__card-description {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.375rem;
  color: var(--cs-solution-card-description-color, #5c5c5c);
}

.cs-solution__card-list {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--cs-solution-card-list-color, #0c0908);
}

.cs-solution__card-list ul {
  margin: 0;
  padding-left: 1.3125rem;
  list-style: disc;
  text-align: justify;
}

.cs-solution__card-list li {
  margin: 0;
  line-height: 1.875rem;
}

.cs-solution__card-list li + li {
  margin-top: 0;
}

@media screen and (min-width: 1025px) {
  .cs-solution__cards {
    --cs-solution-sticky-top: 7rem;
    --cs-solution-sticky-step: 1.25rem;
    --cs-solution-card-gap: 1.25rem;
    gap: 0;
  }

  .cs-solution__card-sticky {
    position: sticky;
    top: calc(
      var(--cs-solution-sticky-top) +
      (var(--cs-solution-card-index, 1) - 1) * var(--cs-solution-sticky-step)
    );
    z-index: var(--cs-solution-card-index, 1);
    margin-bottom: var(--cs-solution-card-gap);
    background-color: #fff;
    border-radius: 1.25rem;
  }

  .cs-solution__card-sticky:last-child {
    margin-bottom: 0;
  }

  .cs-solution__card {
    height: 100%;
    min-height: 26.875rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .cs-solution {
    padding-bottom: 3rem;
  }

  .cs-solution__title {
    font-size: 1.75rem;
  }

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

  .cs-solution__card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
    padding: 2rem;
  }

  .cs-solution__card-image {
    height: 16rem;
    object-fit: contain;
  }
}

@media screen and (max-width: 767px) {
  .cs-solution {
    padding-bottom: 2.5rem;
  }

  .cs-solution__title {
    font-size: 1.5rem;
  }

  .cs-solution__intro {
    margin-bottom: 2rem;
    font-size: 0.8125rem;
    line-height: 1.5rem;
  }

  .cs-solution__card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    min-height: auto;
    padding: 1.5rem;
  }

  .cs-solution__card-title {
    font-size: 1.25rem;
  }

  .cs-solution__card-description {
    font-size: 0.8125rem;
    line-height: 1.25rem;
  }

  .cs-solution__card-list {
    font-size: 0.8125rem;
  }

  .cs-solution__card-image {
    height: 12.5rem;
  }
  .cs-solution__card-list li {
    line-height: 1.25rem;
  }
}

/* Case Study – How We Deliver Section */
.cs-delivery {
  margin-top: 0;
  padding: 3.125rem 0;
}

.cs-delivery__title {
  margin: 0 0 1.25rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-delivery-title-color, #907afb);
}

.cs-delivery__intro {
  margin: 0 0 3.125rem;
  max-width: 71.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.625rem;
  color: var(--cs-delivery-intro-color, #0c0908);
}

.cs-delivery__intro > :first-child {
  margin-top: 0;
}

.cs-delivery__intro > :last-child {
  margin-bottom: 0;
}

.cs-delivery__intro p {
  margin: 0;
}

.cs-delivery__stage {
  position: relative;
}

.cs-delivery__diagram {
  margin: 0;
}

.cs-delivery__diagram-image {
  display: block;
  width: 100%;
  height: auto;
}

.cs-delivery__description {
  margin-top: 2rem;
  max-width: 34.0625rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.875rem;
  color: var(--cs-delivery-description-color, #0c0908);
}

.cs-delivery__description > :first-child {
  margin-top: 0;
}

.cs-delivery__description > :last-child {
  margin-bottom: 0;
}

.cs-delivery__description p {
  margin: 0;
}

@media screen and (min-width: 1025px) {
  .cs-delivery__stage.cs-delivery__stage--has-diagram {
    min-height: 29.4375rem;
    max-width: 90rem;
    width: 100%;
    margin: 0 auto;
  }

  .cs-delivery__stage.cs-delivery__stage--has-diagram .cs-delivery__description {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    max-width: 50%;
    margin-top: 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .cs-delivery {
    padding-bottom: 3rem;
  }

  .cs-delivery__title {
    font-size: 1.75rem;
  }

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

@media screen and (max-width: 767px) {
  .cs-delivery {
    padding-bottom: 2.5rem;
  }

  .cs-delivery__title {
    font-size: 1.5rem;
  }

  .cs-delivery__intro {
    margin-bottom: 2rem;
    font-size: 0.8125rem;
    line-height: 1.5rem;
  }

  .cs-delivery__description {
    font-size: 0.8125rem;
    line-height: 1.625rem;
  }
}

/* Case Study – Outcomes Delivered Section */
.cs-outcomes {
  margin-top: 0;
  padding: 3.125rem 0;
}

.cs-outcomes__title {
  margin: 0 0 1.25rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-outcomes-title-color, #907afb);
}

.cs-outcomes__intro {
  margin: 0 0 3.125rem;
  max-width: 71.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.625rem;
  color: var(--cs-outcomes-intro-color, #0c0908);
}

.cs-outcomes__intro > :first-child {
  margin-top: 0;
}

.cs-outcomes__intro > :last-child {
  margin-bottom: 0;
}

.cs-outcomes__intro p {
  margin: 0;
}

.cs-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.cs-outcomes__card {
  display: flex;
  flex-direction: column;
  min-height: 11.8125rem;
  padding: 1.25rem;
  border-radius: 0 2.5rem 0 2.5rem; /* Figma: top-right + bottom-left 40px */
  background: linear-gradient(
    180deg,
    var(--cs-outcomes-card-gradient-from, rgba(144, 122, 251, 0.2)) 0%,
    var(--cs-outcomes-card-gradient-to, rgba(12, 9, 8, 0.2)) 100%
  );
  box-sizing: border-box;
}

.cs-outcomes__card-value {
  margin: 0 0 0.625rem;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-outcomes-card-value-color, #907afb);
}

.cs-outcomes__card-label {
  margin: 0 0 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-outcomes-card-label-color, #ffffff);
}

.cs-outcomes__card-description {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: normal;
  color: var(--cs-outcomes-card-description-color, #ffffff);
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .cs-outcomes {
    padding-bottom: 4rem;
  }

  .cs-outcomes__title {
    font-size: 1.75rem;
  }

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

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

@media screen and (max-width: 767px) {
  .cs-outcomes {
    padding-bottom: 3rem;
  }

  .cs-outcomes__title {
    font-size: 1.5rem;
  }

  .cs-outcomes__intro {
    margin-bottom: 2rem;
    font-size: 0.8125rem;
    line-height: 1.5rem;
  }

  .cs-outcomes__grid {
    grid-template-columns: 1fr;
  }

  .cs-outcomes__card {
    min-height: auto;
  }

  .cs-outcomes__card-value {
    font-size: 1.75rem;
  }
}

/* Case Study – Tech Stack Section */
.cs-tech-stack {
  margin-top: 0;
  padding: 3.125rem 0;
  background-color: #f5f5f5;
}

.cs-tech-stack__layout {
  display: grid;
  grid-template-columns: minmax(0, 28.75rem) minmax(0, 1fr);
  gap: 2.5rem 5.3125rem;
  align-items: center;
}

.cs-tech-stack__content {
  max-width: 28.75rem;
}

.cs-tech-stack__title {
  margin: 0 0 1.25rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: normal;
  color: var(--cs-tech-stack-title-color, #907afb);
}

.cs-tech-stack__intro {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.875rem;
  color: var(--cs-tech-stack-intro-color, #0c0908);
}

.cs-tech-stack__intro > :first-child {
  margin-top: 0;
}

.cs-tech-stack__intro > :last-child {
  margin-bottom: 0;
}

.cs-tech-stack__intro p {
  margin: 0;
}

.cs-tech-stack__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}


.cs-tech-stack__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 4.125rem;
  padding: 0.9375rem 1.25rem;
  border: none;
  border-radius: 1.875rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(144, 122, 251, 0.2) 100%
  );
  box-sizing: border-box;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

a.cs-tech-stack__item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.cs-tech-stack__item:hover {
  transform: translateY(-0.0625rem);
  filter: brightness(1.03);
  box-shadow: 0 0.25rem 0.75rem rgba(144, 122, 251, 0.12);
}

a.cs-tech-stack__item:active {
  transform: translateY(0);
}

a.cs-tech-stack__item:focus-visible {
  outline: 0.125rem solid #907afb;
  outline-offset: 0.125rem;
}

.cs-tech-stack__item-icon {
  display: block;
  flex-shrink: 0;
  width: 1.703125rem;
  height: 2rem;
  object-fit: contain;
}

.cs-tech-stack__item-name {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: normal;
  color: var(--cs-tech-stack-item-name-color, #0c0908);
  white-space: nowrap;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .cs-tech-stack {
    padding: 3rem 0;
  }

  .cs-tech-stack__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cs-tech-stack__content {
    max-width: none;
  }

  .cs-tech-stack__title {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 767px) {
  .cs-tech-stack {
    padding: 2.5rem 0;
  }

  .cs-tech-stack__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cs-tech-stack__content {
    max-width: none;
  }

  .cs-tech-stack__title {
    font-size: 1.5rem;
  }

  .cs-tech-stack__intro {
    font-size: 0.875rem;
    line-height: 1.625rem;
  }

  .cs-tech-stack__item {
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
  }

  .cs-tech-stack__item-icon {
    width: 1.5rem;
    height: 1.75rem;
  }

  .cs-tech-stack__item-name {
    font-size: 1.125rem;
    white-space: normal;
  }
}

/* Case Study – Testimonial Section */
.cs-testimonial {
  margin-top: 0;
  padding: 3rem 0;
  overflow: hidden;
}

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

.cs-testimonial__card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 71.25rem;
  min-width: 0;
  min-height: auto;
  margin: 0 auto;
  box-sizing: border-box;
}

.cs-testimonial__media {
  position: relative;
  z-index: 2;
  flex: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 420 / 460;
}

.cs-testimonial__media,
.cs-testimonial__image {
  box-sizing: border-box;
}

.cs-testimonial__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center top;
}

.cs-testimonial__video-media {
  width: 100%;
  max-width: 64.125rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.25rem;
  line-height: 0;
  background-color: #0c0908;
}

.cs-testimonial__video-wrap,
.cs-testimonial__video,
.cs-testimonial__video-media video {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  border: 0;
  vertical-align: top;
}

.cs-testimonial__video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.cs-testimonial--video .cs-testimonial__card {
  display: block;
  min-height: 0;
}

.cs-testimonial__panel {
  flex: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: -1.25rem 0 0;
  padding: 2rem 1.25rem 1.5rem;
  border-radius: 1.25rem;
  background-color: var(--cs-testimonial-panel-bg-color, #f5f5f5);
  box-sizing: border-box;
}

.cs-testimonial__body {
  position: relative;
  max-width: none;
}

.cs-testimonial__quote-icon {
  display: block;
  position: static;
  width: 4rem;
  height: 3.2rem;
  margin: 0 0 1rem;
}

.cs-testimonial__quote {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.625rem;
  color: var(--cs-testimonial-quote-color, rgba(12, 9, 8, 0.7));
}

.cs-testimonial__quote > :first-child {
  margin-top: 0;
}

.cs-testimonial__quote > :last-child {
  margin-bottom: 0;
}

.cs-testimonial__quote p {
  margin: 0;
}

.cs-testimonial__author {
  margin: 0;
}

.cs-testimonial__name {
  display: block;
  margin: 0 0 0.3125rem;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: normal;
  line-height: normal;
  color: var(--cs-testimonial-name-color, #0c0908);
}

.cs-testimonial__role {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: normal;
  color: var(--cs-testimonial-role-color, rgba(12, 9, 8, 0.6));
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
  .cs-testimonial {
    padding: 4rem 0;
  }

  .cs-testimonial--text .cs-testimonial__media {
    max-width: 26.25rem;
    margin: 0 auto;
  }

  .cs-testimonial__panel {
    margin-top: -2rem;
    padding: 2.5rem 2rem 2rem;
  }

  .cs-testimonial__quote-icon {
    width: 5rem;
    height: 4rem;
    margin-bottom: 1.25rem;
  }

  .cs-testimonial__quote {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.875rem;
  }

  .cs-testimonial__name {
    font-size: 1.75rem;
  }

  .cs-testimonial__role {
    font-size: 1rem;
  }
}
@media screen and (min-width: 1280px) {
  .cs-testimonial {
    padding: 3.125rem 0;
  }

  .cs-testimonial__card {
    flex-direction: row;
    align-items: flex-start;
    min-height: 33.1875rem;
  }

  .cs-testimonial--video .cs-testimonial__card {
    display: block;
    flex-direction: column;
    min-height: 0;
  }

  .cs-testimonial--text .cs-testimonial__media {
    flex: 0 0 26.25rem;
    width: 26.25rem;
    max-width: 26.25rem;
    aspect-ratio: auto;
    height: 28.75rem;
    margin: 3.8125rem 0 0;
  }

  .cs-testimonial__image {
    height: 100%;
  }

  .cs-testimonial__video-media {
    max-width: 64.125rem;
  }

  .cs-testimonial__panel {
    flex: 1 1 auto;
    width: auto;
    min-height: 30rem;
    margin: 3.1875rem 0 0 -19.125rem;
    padding: 5.5625rem 2.5rem 2.5rem 22.875rem;
  }

  .cs-testimonial__body {
    max-width: 38.625rem;
  }

  .cs-testimonial__quote-icon {
    position: absolute;
    top: -8.75rem;
    left: 0;
    width: 7.5rem;
    height: 6rem;
    margin: 0;
  }

  .cs-testimonial__quote {
    margin-bottom: 2.375rem;
    font-size: 1rem;
    line-height: 1.875rem;
  }

  .cs-testimonial__name {
    font-size: 2rem;
  }

  .cs-testimonial__role {
    font-size: 1rem;
  }
}
