/*
*  Case Study Single Styles
*
*  Markup: single-case_study.php + template-parts/case-study/{layout}.php
*  Base card (.work-card) and button (.btn-work, .btn-ghost) styles live in home.css.
*/

/* Scoped reset; shared home.css components are excluded so this later, equal-specificity reset keeps their padding. */
.case-study,
.case-study *:not(.work-card, .work-card *, .btn-ghost, .btn-ghost *, .btn-work, .btn-work *),
.case-study *::before,
.case-study *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.case-study .work-card,
.case-study .work-card *,
.case-study .btn-ghost,
.case-study .btn-ghost *,
.case-study .btn-work,
.case-study .btn-work * {
  box-sizing: border-box;
}

.case-study {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
}

/* ——— Website - Hero (template-parts/case-study/website_hero.php) ——— */
.case-study .cs-website-hero {
  padding-top: 104px;
  background: var(--page);
}

.case-study .cs-website-hero__inner {
  padding: 0 64px 0 56px;
}

/* Same values as .work-card__more-label in home.css, arrow mirrored (shared with .cs-marketing-hero) */
.case-study .cs-website-hero__back,
.case-study .cs-marketing-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 64px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 46px;
  color: var(--ink);
  text-decoration: none;
}

.case-study .cs-website-hero__back img,
.case-study .cs-marketing-hero__back img {
  display: block;
  flex-shrink: 0;
  width: 0.7em;
  height: auto;
  transform: scaleX(-1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study .cs-website-hero__back-text,
.case-study .cs-marketing-hero__back-text {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study .cs-website-hero__back:hover img,
.case-study .cs-website-hero__back:focus-visible img,
.case-study .cs-marketing-hero__back:hover img,
.case-study .cs-marketing-hero__back:focus-visible img {
  transform: scaleX(-1) translateX(7px);
}

.case-study .cs-website-hero__back:hover .cs-website-hero__back-text,
.case-study .cs-website-hero__back:focus-visible .cs-website-hero__back-text,
.case-study .cs-marketing-hero__back:hover .cs-marketing-hero__back-text,
.case-study .cs-marketing-hero__back:focus-visible .cs-marketing-hero__back-text {
  transform: translateX(5px);
}

/* Title column on the left, copy + pills on the right starting at ~53% of the viewport */
.case-study .cs-website-hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
  column-gap: 24px;
  align-items: end;
}

/* Same values as .story-intro__eyebrow in home.css */
.case-study .cs-website-hero__eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--orange-subtle);
}

/* Same values as .work__title in home.css, with room between lines so two-line titles don't collide */
.case-study .cs-website-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 4.5rem;
  line-height: 1.1;
  color: var(--ink);
}

/* Same type values as .about-cta__copy in about.css; ink instead of cream for the light background */
.case-study .cs-website-hero__copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--ink);
}

.case-study .cs-website-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Same values as .work-card__tags span in home.css */
.case-study .cs-website-hero__tags span {
  display: inline-flex;
  align-items: center;
  height: 43px;
  padding: 0 18px;
  border: 1px solid var(--light-gray);
  border-radius: 40px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--medium-gray);
  background: transparent;
}

.case-study .cs-website-hero__image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .case-study .cs-website-hero__back img,
  .case-study .cs-website-hero__back-text,
  .case-study .cs-marketing-hero__back img,
  .case-study .cs-marketing-hero__back-text {
    transition: none;
  }

  .case-study .cs-website-hero__back:hover img,
  .case-study .cs-website-hero__back:focus-visible img,
  .case-study .cs-marketing-hero__back:hover img,
  .case-study .cs-marketing-hero__back:focus-visible img {
    transform: scaleX(-1);
  }

  .case-study .cs-website-hero__back:hover .cs-website-hero__back-text,
  .case-study .cs-website-hero__back:focus-visible .cs-website-hero__back-text,
  .case-study .cs-marketing-hero__back:hover .cs-marketing-hero__back-text,
  .case-study .cs-marketing-hero__back:focus-visible .cs-marketing-hero__back-text {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .case-study .cs-website-hero__inner {
    padding: 0 28px;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-hero {
    padding-top: 84px;
  }

  .case-study .cs-website-hero__inner {
    padding: 0 16px;
  }

  .case-study .cs-website-hero__back,
  .case-study .cs-marketing-hero__back {
    margin-bottom: 40px;
    font-size: 1rem;
    font-weight: 600;
  }

  .case-study .cs-website-hero__intro {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  .case-study .cs-website-hero__eyebrow {
    margin-bottom: 0;
  }

  .case-study .cs-website-hero__title {
    font-size: clamp(2rem, 10.7vw, 2.625rem);
    line-height: 1.1;
  }

  .case-study .cs-website-hero__tags {
    gap: 4px;
    margin-top: 8px;
  }

  .case-study .cs-website-hero__tags span {
    height: 30px;
    padding: 0 22px;
    font-size: 0.625rem;
    letter-spacing: 1px;
  }

  .case-study .cs-website-hero__image {
    margin-top: 36px;
  }
}

/* ——— Website - Stats (template-parts/case-study/website_stats.php) ——— */
/* Negative margin pulls the card up over the bottom of the preceding hero image. */
.case-study .cs-website-stats {
  position: relative;
  z-index: 1;
  margin-top: -44px;
  padding: 0 60px;
}

.case-study .cs-website-stats__card {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 32px 0;
  border-radius: 8px;
  background: var(--ink);
  list-style: none;
}

.case-study .cs-website-stats__item {
  padding: 20px 48px 4px;
}

.case-study .cs-website-stats__item + .cs-website-stats__item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Same values as .about-stats__num in about.css */
.case-study .cs-website-stats__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.48vw, 92px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.case-study .cs-website-stats__label {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--light-gray);
}

@media (max-width: 1100px) {
  .case-study .cs-website-stats {
    padding: 0 28px;
  }

  .case-study .cs-website-stats__item {
    padding: 20px 32px 4px;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-stats {
    margin-top: 28px;
    padding: 0 16px;
  }

  .case-study .cs-website-stats__card {
    display: flex;
    flex-direction: column;
    padding: 28px 16px;
  }

  .case-study .cs-website-stats__item {
    display: flex;
    align-items: center;
    padding: 12px 0;
  }

  .case-study .cs-website-stats__item:first-child {
    padding-top: 0;
  }

  .case-study .cs-website-stats__item:last-child {
    padding-bottom: 0;
  }

  .case-study .cs-website-stats__item + .cs-website-stats__item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .case-study .cs-website-stats__num {
    flex: 0 0 61%;
  }

  .case-study .cs-website-stats__label {
    flex: 1 1 auto;
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--cream);
  }
}

/* ——— Website - Intro Text (template-parts/case-study/website_intro.php) ——— */
.case-study .cs-website-intro {
  padding: 136px 60px 112px;
  background: var(--page);
}

.case-study .cs-website-intro__inner {
  width: 39%;
  margin: 0 auto;
  text-align: center;
}

/* Same values as .story-intro__eyebrow in home.css; ink per Figma */
.case-study .cs-website-intro__eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
}

/* Same values as .about-cta__title in about.css */
.case-study .cs-website-intro__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.86vw, 48px);
  line-height: 1.17;
  color: var(--ink);
}

/* Same type values as .about-cta__copy in about.css; ink for the light background */
.case-study .cs-website-intro__copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--ink);
}

.case-study .cs-website-intro__title + .cs-website-intro__copy {
  margin-top: 36px;
}

.case-study .cs-website-intro__copy p + p {
  margin-top: 1em;
}

@media (max-width: 1100px) {
  .case-study .cs-website-intro {
    padding: 112px 28px 96px;
  }

  .case-study .cs-website-intro__inner {
    width: 66.6667%;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-intro {
    padding: 32px 16px 28px;
  }

  .case-study .cs-website-intro__inner {
    width: 100%;
    text-align: left;
  }

  .case-study .cs-website-intro__eyebrow {
    margin-bottom: 8px;
  }

  .case-study .cs-website-intro__title + .cs-website-intro__copy {
    margin-top: 8px;
  }
}

/* ——— Website - Full Width Image (template-parts/case-study/website_full_image.php) ——— */
.case-study .cs-website-full-image__img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study .cs-website-full-image--contained {
  padding: 104px 56px;
}

.case-study .cs-website-full-image--light {
  background: var(--page);
}

.case-study .cs-website-full-image--medium-gray {
  background: var(--medium-gray);
}

.case-study .cs-website-full-image--dark {
  background: var(--ink);
}

/* 1568px = 1680px frame minus the 56px side gutters */
.case-study .cs-website-full-image__inner {
  max-width: 1568px;
  margin: 0 auto;
}

.case-study .cs-website-full-image--medium .cs-website-full-image__inner {
  max-width: 1200px;
}

.case-study .cs-website-full-image--small .cs-website-full-image__inner {
  max-width: 864px;
}

@media (max-width: 1100px) {
  .case-study .cs-website-full-image--contained {
    padding: 72px 28px;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-full-image--contained {
    padding: 48px 16px;
  }
}

/* ——— Website - Solution Steps (template-parts/case-study/website_solution_steps.php) ——— */
.case-study .cs-website-steps {
  display: flex;
  align-items: flex-start;
  background: var(--page);
}

/* Image column: 127px / 610px of the 1680px frame */
.case-study .cs-website-steps__media {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  flex: 0 0 36%;
  height: 100vh;
  margin-left: 8%;
}

.case-study .cs-website-steps__frame {
  position: relative;
  width: min(100%, calc((100vh - 140px) * 610 / 700));
  aspect-ratio: 610 / 700;
  border-radius: 30px;
  background: #30302f;
}

.case-study .cs-website-steps__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-study .cs-website-steps__img.is-active {
  opacity: 1;
}

/* No box: the whole image fits inside the frame, with no backdrop or rounding */
.case-study .cs-website-steps--no-box .cs-website-steps__frame {
  border-radius: 0;
  background: none;
}

.case-study .cs-website-steps--no-box .cs-website-steps__img {
  object-fit: contain;
  border-radius: 0;
}

/* Text column starts at ~55% of the frame */
.case-study .cs-website-steps__list {
  flex: 0 0 33%;
  margin-left: 11%;
  list-style: none;
}

.case-study .cs-website-steps__step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 72px 0;
}

.case-study .cs-website-steps__step-img {
  display: none;
}

/* Same values as .story-intro__eyebrow in home.css; ink per Figma */
.case-study .cs-website-steps__eyebrow {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
}

/* Same values as .about-cta__title in about.css */
.case-study .cs-website-steps__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.86vw, 48px);
  line-height: 1.17;
  color: var(--ink);
}

/* Same type values as .about-cta__copy in about.css; ink for the light background */
.case-study .cs-website-steps__copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--ink);
}

.case-study .cs-website-steps__title + .cs-website-steps__copy {
  margin-top: 24px;
}

.case-study .cs-website-steps__copy p + p {
  margin-top: 1em;
}

@media (max-width: 1100px) {
  .case-study .cs-website-steps__media {
    flex-basis: 44%;
    margin-left: 4%;
  }

  .case-study .cs-website-steps__list {
    flex-basis: 42%;
    margin-left: 6%;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-steps {
    display: block;
    padding: 0 16px 28px;
  }

  .case-study .cs-website-steps__media {
    display: none;
  }

  .case-study .cs-website-steps__list {
    margin-left: 0;
  }

  .case-study .cs-website-steps__step {
    display: block;
    min-height: 0;
    padding: 28px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }

  .case-study .cs-website-steps__step-img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .case-study .cs-website-steps--no-box .cs-website-steps__step-img {
    border-radius: 0;
  }

  .case-study .cs-website-steps__eyebrow {
    margin-bottom: 0;
  }

  .case-study .cs-website-steps__title + .cs-website-steps__copy {
    margin-top: 20px;
  }
}

/* ——— Website - Walkthrough (template-parts/case-study/website_walkthrough.php) ——— */
.case-study .cs-website-walkthrough {
  position: relative;
  background: #30302f;
}

.case-study .cs-website-walkthrough__media {
  display: block;
  width: 100%;
  height: auto;
}

/* Frosted bar overlays the bottom of the media; copy column starts at ~67% of the frame */
.case-study .cs-website-walkthrough__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 29%;
  column-gap: 24px;
  align-items: center;
  padding: 44px 64px;
  background: rgba(48, 48, 47, 0.8);
  -webkit-backdrop-filter: blur(27.5px);
  backdrop-filter: blur(27.5px);
}

/* Same values as .services__title in home.css; cream per Figma */
.case-study .cs-website-walkthrough__eyebrow {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 4.8px;
  text-transform: uppercase;
  color: var(--cream);
}

/* Same values as .work-card__title in home.css; white for the dark bar */
.case-study .cs-website-walkthrough__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.2vw, 2rem);
  line-height: 36px;
  letter-spacing: 0;
  color: var(--white);
}

/* Same values as .about-cta__copy in about.css */
.case-study .cs-website-walkthrough__copy {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--cream);
}

.case-study .cs-website-walkthrough__copy p + p {
  margin-top: 1em;
}

@media (max-width: 1100px) {
  .case-study .cs-website-walkthrough__bar {
    grid-template-columns: minmax(0, 1fr) 40%;
    padding: 32px 28px;
  }
}

/* Bar drops below the media and the text stacks */
@media (max-width: 768px) {
  .case-study .cs-website-walkthrough__bar {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 16px;
    background: #30302f;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Same values as .story-intro__eyebrow in home.css (Figma mobile: 12px, 2.4px tracking) */
  .case-study .cs-website-walkthrough__eyebrow {
    margin-bottom: 4px;
    font-size: 0.75rem;
    letter-spacing: 2.4px;
  }

  /* Same values as .work-card__title at 768px in home.css */
  .case-study .cs-website-walkthrough__title {
    font-size: 1.375rem;
    line-height: 26px;
  }
}

/* ——— Website - Client Voice (template-parts/case-study/website_client_voice.php) ——— */
.case-study .cs-website-client-voice {
  padding: 104px 0 72px;
  background: var(--page);
}

.case-study .cs-website-client-voice:not(.is-shuffle) {
  padding: 104px 0 146px;
}

.case-study .cs-website-client-voice--medium-gray {
  background: var(--medium-gray);
}

.case-study .cs-website-client-voice--dark {
  background: var(--ink);
}

/* Front card: 864px of the 1680px frame */
.case-study .cs-website-client-voice__stack {
  position: relative;
  isolation: isolate;
  width: 51%;
  margin: 0 auto;
}

.case-study .cs-website-client-voice__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
}

.case-study .cs-website-client-voice__layer--1 {
  background: var(--orange-soft);
  transform: translate(14px, 14px);
}

.case-study .cs-website-client-voice__layer--2 {
  background: var(--orange);
  transform: translate(29px, 28px);
}

.case-study .cs-website-client-voice__layer--3 {
  background: #d34719;
  transform: translate(43px, 42px);
}

/* Hidden at rest; client_voice.js fades it in under layer 3 during a shuffle */
.case-study .cs-website-client-voice__layer--4 {
  background: #d34719;
  transform: translate(43px, 42px);
  opacity: 0;
}

.case-study .cs-website-client-voice__card {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}

.case-study .cs-website-client-voice__card.is-light-text,
.case-study .cs-website-client-voice__card.is-light-text .cs-website-client-voice__eyebrow,
.case-study .cs-website-client-voice__card.is-light-text .cs-website-client-voice__quote,
.case-study .cs-website-client-voice__card.is-light-text .cs-website-client-voice__cite {
  color: var(--white);
}

/* Same values as .story-intro__eyebrow in home.css; ink per Figma */
.case-study .cs-website-client-voice__eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 26px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
}

/* Slides share one grid cell so the card keeps the height of the tallest quote */
.case-study .cs-website-client-voice__slides {
  display: grid;
}

.case-study .cs-website-client-voice__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.case-study .cs-website-client-voice__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

/* client_voice.js animates the card and slide wrapper itself, so slides swap instantly */
.case-study .cs-website-client-voice.is-shuffle .cs-website-client-voice__slide,
.case-study .cs-website-client-voice.is-shuffle .cs-website-client-voice__slide.is-active {
  transition: none;
}

.case-study .cs-website-client-voice__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 38px;
  color: var(--ink);
}

.case-study .cs-website-client-voice__quote p + p {
  margin-top: 1em;
}

.case-study .cs-website-client-voice__cite {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  font-family: var(--font-display);
  color: var(--ink);
}

.case-study .cs-website-client-voice__name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 26px;
}

.case-study .cs-website-client-voice__role {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 26px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.case-study .cs-website-client-voice__controls {
  display: flex;
  justify-content: center;
  margin-top: 72px;
}

.case-study .cs-website-client-voice__arrows {
  display: flex;
  gap: 3px;
}

.case-study .cs-website-client-voice__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.case-study .cs-website-client-voice__arrow--prev {
  background: rgba(255, 255, 255, 0.5);
}

.case-study .cs-website-client-voice__arrow--next {
  background: var(--orange);
}

/* Arrow is 12px of the 39px button */
.case-study .cs-website-client-voice__arrow img {
  display: block;
  width: 31%;
  height: auto;
}

.case-study .cs-website-client-voice__arrow--prev img {
  transform: scaleX(-1);
}

.case-study .cs-website-client-voice__arrow:focus-visible,
.case-study .cs-website-client-voice__dot:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.case-study .cs-website-client-voice__dots {
  display: none;
  gap: 4px;
}

.case-study .cs-website-client-voice__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}

.case-study .cs-website-client-voice__dot[aria-current="true"] {
  background: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
  .case-study .cs-website-client-voice__slide,
  .case-study .cs-website-client-voice__slide.is-active {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .case-study .cs-website-client-voice__stack {
    width: 66.6667%;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-client-voice {
    padding: 56px 16px 60px;
  }

  .case-study .cs-website-client-voice:not(.is-shuffle) {
    padding: 56px 16px 98px;
  }

  /* Offsets stay inside the 16px gutter: the front card is 16px narrower than the stack */
  .case-study .cs-website-client-voice__stack {
    width: calc(100% - 16px);
    margin: 0;
  }

  .case-study .cs-website-client-voice__layer--1 {
    transform: translate(5px, 12px);
  }

  .case-study .cs-website-client-voice__layer--2 {
    transform: translate(11px, 25px);
  }

  .case-study .cs-website-client-voice__layer--3,
  .case-study .cs-website-client-voice__layer--4 {
    transform: translate(16px, 37px);
  }

  .case-study .cs-website-client-voice__card {
    padding: 32px 16px;
  }

  .case-study .cs-website-client-voice__eyebrow {
    margin-bottom: 4px;
  }

  .case-study .cs-website-client-voice__quote {
    font-size: 1.125rem;
    line-height: 24px;
  }

  .case-study .cs-website-client-voice__cite {
    margin-top: 32px;
  }

  .case-study .cs-website-client-voice__arrows {
    display: none;
  }

  .case-study .cs-website-client-voice__dots {
    display: flex;
  }
}

/* ——— Website - CTA (template-parts/case-study/website_cta.php) ———
   Same glow surface as .cs-marketing-cta__box / .about-cta__panel; js/glow.js eases it toward the pointer. */
.case-study .cs-website-cta {
  --cta-glow-x: 82%;
  --cta-glow-y: 78%;
  --cta-glow-strength: 0.42;
  --cta-glow-size: 60%;

  position: relative;
  padding: 180px 32px 180px;
  text-align: center;
  background:
    radial-gradient(
        ellipse var(--cta-glow-size) 90% at var(--cta-glow-x) var(--cta-glow-y),
        rgba(229, 83, 6, var(--cta-glow-strength)),
        transparent 62%
      ),
    radial-gradient(ellipse 50% 70% at 12% 20%, rgba(229, 83, 6, 0.16), transparent 60%),
    #0d0e01;
}

/* Text column is 649px of the 1680px frame */
.case-study .cs-website-cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 39%;
  margin: 0 auto;
}

/* Same values as .about-cta__title in about.css */
.case-study .cs-website-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.86vw, 48px);
  line-height: 1.17;
  color: var(--white);
}

/* Same type values as .about-cta__copy in about.css; #e9e9ec per Figma */
.case-study .cs-website-cta__copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--page);
}

.case-study .cs-website-cta__copy p + p {
  margin-top: 1em;
}

.case-study .cs-website-cta__btn {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .case-study .cs-website-cta {
    padding: 144px 28px 200px;
  }

  .case-study .cs-website-cta__inner {
    width: 66.6667%;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-cta {
    padding: 72px 32px 60px;
  }

  .case-study .cs-website-cta__inner {
    gap: 8px;
    width: 100%;
  }

  .case-study .cs-website-cta__copy {
    color: var(--cream);
  }

  .case-study .cs-website-cta__btn {
    margin-top: 16px;
  }
}

/* ——— Website - More Work (template-parts/case-study/website_more_work.php) ——— */
/* Home .work spacing is wiped by the scoped reset above, so it is restated per Figma here. */
.case-study .cs-website-more-work {
  padding: 100px 60px 228px;
}

.case-study .cs-website-more-work .work__intro {
  padding-top: 20px;
}

.case-study .cs-website-more-work .work__title {
  margin-bottom: 4px;
}

.case-study .cs-website-more-work .work__trust {
  margin-bottom: 60px;
}

.case-study .cs-website-more-work .work__trust p + p {
  margin-top: 1em;
}

@media (max-width: 1100px) {
  .case-study .cs-website-more-work {
    padding: 80px 28px 160px;
  }

  .case-study .cs-website-more-work .work__intro {
    margin-bottom: 8px;
    padding-top: 0;
  }

  .case-study .cs-website-more-work .work__trust {
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-more-work {
    padding: 80px 16px 68px;
  }

  .case-study .cs-website-more-work .work__grid {
    row-gap: 12px;
  }

  .case-study .cs-website-more-work .work__intro {
    margin-bottom: 12px;
  }

  .case-study .cs-website-more-work .work__title {
    margin-bottom: 0;
  }

  .case-study .cs-website-more-work .work__trust {
    margin-bottom: 16px;
  }

  .case-study .cs-website-more-work .work-card--more {
    margin-top: 20px;
  }
}

/* ——— Website - Win CTA (template-parts/case-study/website_win_cta.php) ——— */
.case-study .cs-website-win-cta {
  padding-bottom: 120px;
}

/* Card is 1546px of the 1680px frame */
.case-study .cs-website-win-cta__card {
  display: flex;
  align-items: flex-start;
  width: 92%;
  margin: 0 auto;
  border-radius: 8px;
  background: #f4f4f4;
  overflow: hidden;
}

.case-study .cs-website-win-cta__text {
  flex: 1;
  min-width: 0;
  padding: 88px 60px 88px 72px;
}

/* Same values as .banner__headline in home.css, weight 600 per Figma */
.case-study .cs-website-win-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 64px;
  letter-spacing: 0;
  color: var(--ink);
}

.case-study .cs-website-win-cta__accent {
  display: block;
  font-style: italic;
  font-weight: 400;
}

/* Same type values as .about-cta__copy in about.css */
.case-study .cs-website-win-cta__copy {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--ink);
}

.case-study .cs-website-win-cta__copy p + p {
  margin-top: 1em;
}

.case-study .cs-website-win-cta__btn {
  margin-top: 32px;
}

/* Image is 811px of the 1546px card, inset 12px */
.case-study .cs-website-win-cta__media {
  flex-shrink: 0;
  width: 54%;
  padding: 12px;
}

.case-study .cs-website-win-cta__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .case-study .cs-website-win-cta {
    padding-bottom: 88px;
  }

  .case-study .cs-website-win-cta__text {
    padding: 48px 32px 48px 40px;
  }

  .case-study .cs-website-win-cta__title {
    font-size: clamp(1.75rem, 6.5vw, 2.625rem);
    line-height: 1.15;
  }

  .case-study .cs-website-win-cta__copy {
    margin-top: 16px;
  }

  .case-study .cs-website-win-cta__btn {
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .case-study .cs-website-win-cta {
    padding-bottom: 32px;
  }

  /* Card is 341px of the 375px frame */
  .case-study .cs-website-win-cta__card {
    flex-direction: column;
    align-items: stretch;
    width: 91%;
  }

  .case-study .cs-website-win-cta__text {
    padding: 24px 20px 0;
  }

  .case-study .cs-website-win-cta__title {
    font-size: clamp(1.625rem, 8vw, 2rem);
    line-height: 1.32;
  }

  .case-study .cs-website-win-cta__copy {
    margin-top: 4px;
  }

  .case-study .cs-website-win-cta__btn {
    margin-top: 24px;
  }

  .case-study .cs-website-win-cta__media {
    width: 100%;
    margin-top: 32px;
    padding: 4px;
  }
}

/* ——— Marketing - Hero (template-parts/case-study/marketing_hero.php) ——— */
.case-study .cs-marketing-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 56px;
  background: var(--ink);
  color: var(--cream);
}

.case-study .cs-marketing-hero__media {
  position: absolute;
  inset: 0;
}

.case-study .cs-marketing-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.case-study .cs-marketing-hero__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study .cs-marketing-hero__inner {
  position: relative;
  padding: 0 56px;
}

/* Base back-link styles are shared with .cs-website-hero__back above */
.case-study .cs-marketing-hero__back {
  margin-bottom: 0;
  color: var(--cream);
}

/* Text column on the left, result card + scroll label in a ~413px-of-1680 column on the right */
.case-study .cs-marketing-hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26%;
  column-gap: 56px;
  align-items: end;
  margin-top: 184px;
}

.case-study .cs-marketing-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 88px;
}

/* Same values as .work-card__tags span in home.css; cream + backdrop blur per Figma */
.case-study .cs-marketing-hero__tags span {
  display: inline-flex;
  align-items: center;
  height: 43px;
  padding: 0 18px;
  border: 1px solid var(--light-gray);
  border-radius: 40px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  -webkit-backdrop-filter: blur(47px);
  backdrop-filter: blur(47px);
}

/* Same values as .about-hero__title in about.css; cream for the dark background.
   max-width matches .svc-hero__title (956px at 92px) so long titles wrap well clear of the result card */
.case-study .cs-marketing-hero__title {
  max-width: 10.4em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 5.75rem);
  line-height: 1.1;
  color: var(--cream);
}

/* Same values as .work-card__title in home.css; cream for the dark background */
.case-study .cs-marketing-hero__copy,
.case-study .cs-marketing-hero__result-copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.2vw, 2rem);
  line-height: 36px;
  letter-spacing: 0;
  color: var(--cream);
}

.case-study .cs-marketing-hero__copy {
  margin-top: 40px;
}

/* Wide screens: the title may use the extra room, but always stops 160px short of the column (216px from the result card) */
@media (min-width: 1600px) {
  .case-study .cs-marketing-hero__title {
    max-width: max(10.4em, calc(100% - 160px));
  }
}

.case-study .cs-marketing-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card fill and cut corner come from the Figma shape (1:3587); clip-path keeps the blur inside the cut */
.case-study .cs-marketing-hero__result {
  padding: 28px 36px 44px;
  background: url("../images/case-study/marketing_hero_card.svg") no-repeat 0 0 / 100% 100%;
  -webkit-backdrop-filter: blur(60px);
  backdrop-filter: blur(60px);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 87% 100%, 0 100%);
}

/* Same values as .story-intro__eyebrow in home.css; cream per Figma */
.case-study .cs-marketing-hero__result-eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--cream);
}

/* Same values as .about-stats__num in about.css */
.case-study .cs-marketing-hero__result-num {
  margin-top: 68px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.48vw, 92px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.case-study .cs-marketing-hero__result-copy {
  margin-top: 8px;
}

/* Same values as .story-intro__eyebrow in home.css; light gray per Figma */
.case-study .cs-marketing-hero__scroll {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--light-gray);
}

@media (max-width: 1100px) {
  .case-study .cs-marketing-hero__inner {
    padding: 0 28px;
  }

  .case-study .cs-marketing-hero__intro {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
    margin-top: 120px;
  }

  .case-study .cs-marketing-hero__aside {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .case-study .cs-marketing-hero {
    padding: 84px 0 20px;
  }

  .case-study .cs-marketing-hero__inner {
    padding: 0 16px;
  }

  .case-study .cs-marketing-hero__intro {
    row-gap: 20px;
    margin-top: 72px;
  }

  .case-study .cs-marketing-hero__tags {
    margin-bottom: 16px;
  }

  /* Same values as .work-card__tags span at 768px in home.css */
  .case-study .cs-marketing-hero__tags span {
    height: 30px;
    padding: 0 22px;
    font-size: 0.625rem;
    letter-spacing: 1px;
  }

  /* Same values as .about-hero__title at 768px in about.css */
  .case-study .cs-marketing-hero__title {
    font-size: clamp(26px, 7.6vw, 34px);
  }

  /* Same values as .work-card__title at 768px in home.css */
  .case-study .cs-marketing-hero__copy,
  .case-study .cs-marketing-hero__result-copy {
    font-size: 1.375rem;
    line-height: 26px;
  }

  .case-study .cs-marketing-hero__copy {
    margin-top: 16px;
  }

  .case-study .cs-marketing-hero__aside {
    width: 100%;
  }

  /* Mobile Figma shape (1:3874) has a shallower cut corner */
  .case-study .cs-marketing-hero__result {
    padding: 24px 24px 20px;
    background-image: url("../images/case-study/marketing_hero_card_mobile.svg");
    clip-path: polygon(0 0, 100% 0, 100% 78%, 89% 100%, 0 100%);
  }

  .case-study .cs-marketing-hero__result-num {
    margin-top: 24px;
  }

  .case-study .cs-marketing-hero__result-copy {
    margin-top: 16px;
  }

  .case-study .cs-marketing-hero__scroll {
    display: none;
  }
}

/* ——— Marketing - Story (template-parts/case-study/marketing_story.php) ——— */
/* Text ~471px and card 320px of the 1680px frame; card column grows if a stat number is wider than 19% */
.case-study .cs-marketing-story {
  position: relative;
  display: grid;
  grid-template-columns: 28% minmax(0, 1fr) minmax(min-content, 19%);
  min-height: 100vh;
  min-height: 100svh;
  padding: 88px 20px 20px 56px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.case-study .cs-marketing-story--medium_gray {
  background: var(--medium-gray);
}

.case-study .cs-marketing-story--orange {
  background: var(--orange);
}

.case-study .cs-marketing-story--bright_orange {
  background: #f86d24;
}

.case-study .cs-marketing-story--soft_orange {
  background: var(--orange-soft);
}

.case-study .cs-marketing-story--off_white {
  background: var(--cream);
}

/* Off-white without a background image: ink text; the card keeps its glass but takes ink text too.
   js/case-study/story_card.js puts .is-light on the pinned card while an off-white panel is behind it. */
.case-study .cs-marketing-story--light :is(.cs-marketing-story__eyebrow, .cs-marketing-story__title, .cs-marketing-story__copy),
.case-study :is(.cs-marketing-story--light .cs-marketing-story__card, .cs-marketing-story__card.is-light),
.case-study :is(.cs-marketing-story--light .cs-marketing-story__card, .cs-marketing-story__card.is-light) :is(.cs-marketing-story__card-title, .cs-marketing-story__tags span, .cs-marketing-story__stat-label, .cs-marketing-story__stat-num) {
  color: var(--ink);
}

.case-study :is(.cs-marketing-story--light .cs-marketing-story__card, .cs-marketing-story__card.is-light) .cs-marketing-story__tags span {
  border-color: rgba(41, 43, 40, 0.35);
}

.case-study .cs-marketing-story__media {
  position: absolute;
  inset: 0;
}

.case-study .cs-marketing-story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.case-study .cs-marketing-story__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study .cs-marketing-story__text {
  position: relative;
  z-index: 2;
  grid-column: 1;
  align-self: center;
}

/* Same values as .story-intro__eyebrow in home.css; white per Figma */
.case-study .cs-marketing-story__eyebrow {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--white);
}

/* Same values as .about-cta__title in about.css */
.case-study .cs-marketing-story__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.86vw, 48px);
  line-height: 1.17;
  color: var(--white);
}

/* Same type values as .about-cta__copy in about.css; white per Figma */
.case-study .cs-marketing-story__copy {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--white);
}

.case-study .cs-marketing-story__copy p + p {
  margin-top: 12px;
}

/* No images: side columns match so the text sits in the true center */
.case-study .cs-marketing-story--no-images {
  grid-template-columns: minmax(min-content, 19%) minmax(0, 1fr) minmax(min-content, 19%);
}

.case-study .cs-marketing-story--no-images .cs-marketing-story__text {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: 760px;
  text-align: center;
}

/* Phones are placed against the whole panel and clipped at its bottom edge */
.case-study .cs-marketing-story__phones {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.case-study .cs-marketing-story__phone {
  position: absolute;
  top: 15%;
  display: block;
  height: auto;
}

/* 1 phone: 447px of the 1680px frame, centered (1:3274) */
.case-study .cs-marketing-story__phones--1 .cs-marketing-story__phone {
  left: 50%;
  width: 27%;
  transform: translateX(-50%);
}

/* 2 phones: 349px + 409px of the frame, overlapping (1:3238, 1:3246) */
.case-study .cs-marketing-story__phones--2 .cs-marketing-story__phone:nth-child(1) {
  top: 29%;
  left: 37%;
  width: 21%;
}

.case-study .cs-marketing-story__phones--2 .cs-marketing-story__phone:nth-child(2) {
  top: 16%;
  left: 52%;
  width: 24%;
}

/* 3 phones: 487px each of the frame (1:3229, 1:3256, 1:3266) */
.case-study .cs-marketing-story__phones--3 .cs-marketing-story__phone {
  width: 29%;
}

.case-study .cs-marketing-story__phones--3 .cs-marketing-story__phone:nth-child(1) {
  left: 30%;
}

.case-study .cs-marketing-story__phones--3 .cs-marketing-story__phone:nth-child(2) {
  left: 46%;
}

.case-study .cs-marketing-story__phones--3 .cs-marketing-story__phone:nth-child(3) {
  left: 63%;
}

.case-study .cs-marketing-story__card {
  position: relative;
  z-index: 2;
  grid-column: 3;
  display: flex;
  flex-direction: column;
  padding: 64px 28px 32px;
  background: rgba(41, 43, 40, 0.2);
  -webkit-backdrop-filter: blur(60px);
  backdrop-filter: blur(60px);
  color: var(--cream);
}

.case-study .cs-marketing-story__card--logo {
  padding-top: 40px;
}

.case-study .cs-marketing-story__card-head {
  margin-bottom: auto;
}

/* Logo is 157px of the 320px card */
.case-study .cs-marketing-story__logo {
  display: block;
  width: 49%;
  height: auto;
  margin-bottom: 8px;
}

/* Same type values as .about-cta__copy in about.css; cream per Figma */
.case-study .cs-marketing-story__card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--cream);
}

.case-study .cs-marketing-story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Same values as .work-card__tags span in home.css; cream + backdrop blur per Figma */
.case-study .cs-marketing-story__tags span {
  display: inline-flex;
  align-items: center;
  height: 43px;
  padding: 0 18px;
  border: 1px solid var(--light-gray);
  border-radius: 40px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  -webkit-backdrop-filter: blur(47px);
  backdrop-filter: blur(47px);
}

.case-study .cs-marketing-story__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  list-style: none;
}

/* Same values as .story-intro__eyebrow in home.css; cream per Figma */
.case-study .cs-marketing-story__stat-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--cream);
}

.case-study .cs-marketing-story__stat-label {
  margin-bottom: 12px;
}

/* Same values as .about-stats__num in about.css */
.case-study .cs-marketing-story__stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.48vw, 92px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--cream);
}

/* ——— Sticky story card (single-case_study.php wraps the run, js/case-study/story_card.js) ———
   Desktop only. The panels keep their own (transparent) cards so the column width and the reading order stay;
   a copy in the rail sticks below the nav and stops 20px above the end of the run. */
.case-study .cs-story-run__rail {
  display: none;
}

@media (min-width: 1101px) {
  .case-study .cs-story-run {
    position: relative;
  }

  .case-study .cs-story-run.is-sticky .cs-story-run__rail {
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    z-index: 3;
    display: block;
    width: var(--story-card-width, 19%);
    padding: 88px 0 20px;
    pointer-events: none;
  }

  .case-study .cs-story-run.is-sticky .cs-marketing-story > .cs-marketing-story__card {
    opacity: 0;
  }

  /* Same height as the in-panel card on a full-height panel; the stat numbers also scale with the viewport height so it fits short screens */
  .case-study .cs-story-run__rail .cs-marketing-story__card {
    position: sticky;
    top: 88px;
    height: calc(100svh - 108px);
  }

  .case-study .cs-story-run__rail .cs-marketing-story__stats {
    gap: clamp(8px, 2svh, 20px);
    padding-top: clamp(16px, 3svh, 32px);
  }

  .case-study .cs-story-run__rail .cs-marketing-story__stat-label {
    margin-bottom: clamp(4px, 1.2svh, 12px);
  }

  .case-study .cs-story-run__rail .cs-marketing-story__stat-num {
    font-size: clamp(32px, min(5.48vw, 8svh), 92px);
  }

  /* Still too tall: size to the content and stick by the bottom edge (top set by the script) */
  .case-study .cs-story-run__rail .cs-marketing-story__card.is-tall {
    top: var(--story-card-top, 88px);
    height: auto;
  }
}

/* Text and phones side by side, the card becomes a horizontal block below (mobile card 1:3719) */
@media (max-width: 1100px) {
  .case-study .cs-marketing-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding: 88px 28px 28px;
  }

  /* Phones get their own clipped box; 364 x 560px in the mobile frame */
  .case-study .cs-marketing-story__phones {
    position: relative;
    inset: auto;
    grid-column: 2;
    aspect-ratio: 13 / 20;
    overflow: hidden;
  }

  .case-study .cs-marketing-story__phones--1 .cs-marketing-story__phone {
    top: 1%;
    width: 100%;
  }

  .case-study .cs-marketing-story__phones--2 .cs-marketing-story__phone:nth-child(1) {
    top: 20%;
    left: 4%;
    width: 50%;
  }

  .case-study .cs-marketing-story__phones--2 .cs-marketing-story__phone:nth-child(2) {
    top: 6%;
    left: 42%;
    width: 56%;
  }

  /* 3 phones: two side by side behind a larger centered one (1:3657, 1:3662, 1:3667) */
  .case-study .cs-marketing-story__phones--3 .cs-marketing-story__phone {
    top: 19%;
    width: 63%;
  }

  .case-study .cs-marketing-story__phones--3 .cs-marketing-story__phone:nth-child(1) {
    left: -4%;
  }

  .case-study .cs-marketing-story__phones--3 .cs-marketing-story__phone:nth-child(2) {
    left: 42%;
  }

  .case-study .cs-marketing-story__phones--3 .cs-marketing-story__phone:nth-child(3) {
    top: 5%;
    left: 4%;
    width: 86%;
  }

  /* No story card below desktop: the pinned card is desktop only, and repeating it under every panel was too much */
  .case-study .cs-marketing-story__card {
    display: none;
  }

  .case-study .cs-marketing-story:has(> .cs-marketing-story__card) {
    padding-bottom: 60px;
  }

  .case-study .cs-marketing-story--no-images {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study .cs-marketing-story--no-images .cs-marketing-story__text {
    grid-column: 1;
  }

  /* Without the card, match the top padding */
  .case-study .cs-marketing-story--no-images .cs-marketing-story__text:last-child {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .case-study .cs-marketing-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 84px 24px 4px;
  }

  .case-study .cs-marketing-story__text {
    margin-bottom: 24px;
  }

  .case-study .cs-marketing-story__eyebrow {
    margin-bottom: 24px;
  }

  .case-study .cs-marketing-story__copy {
    margin-top: 16px;
  }

  .case-study .cs-marketing-story__phones {
    grid-column: 1;
    margin: 0 -20px;
  }

  .case-study .cs-marketing-story--no-images .cs-marketing-story__text:last-child {
    margin-bottom: 80px;
  }
}

/* ——— Marketing - Payoff (template-parts/case-study/marketing_payoff.php) ——— */
/* Figma background 1:3401 is a flat #e9e9ec fill (no gradient), same as --page */
.case-study .cs-marketing-payoff {
  padding: 212px 60px 96px;
  background: var(--page);
}

.case-study .cs-marketing-payoff__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Same values as .story-intro__eyebrow in home.css; ink per Figma */
.case-study .cs-marketing-payoff__eyebrow,
.case-study .cs-marketing-payoff__stat-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
}

.case-study .cs-marketing-payoff__eyebrow {
  margin-bottom: 20px;
}

/* Same values as .about-hero__title in about.css */
.case-study .cs-marketing-payoff__title {
  width: 46%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 5.75rem);
  line-height: 0.98;
  color: var(--ink);
}

/* Same values as .work-card__title in home.css; ink for the light background */
.case-study .cs-marketing-payoff__copy {
  width: 35%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.2vw, 2rem);
  line-height: 36px;
  letter-spacing: 0;
  color: var(--ink);
}

.case-study .cs-marketing-payoff__title + .cs-marketing-payoff__copy {
  margin-top: 36px;
}

.case-study .cs-marketing-payoff__copy p + p {
  margin-top: 1em;
}

.case-study .cs-marketing-payoff__stats {
  display: flex;
  justify-content: center;
  width: 80%;
  margin-top: 92px;
  list-style: none;
}

.case-study .cs-marketing-payoff__eyebrow + .cs-marketing-payoff__stats,
.case-study .cs-marketing-payoff__inner > .cs-marketing-payoff__stats:first-child {
  margin-top: 0;
}

.case-study .cs-marketing-payoff__stat {
  flex: 0 0 33.3333%;
  min-width: 0;
}

/* Same values as .about-stats__num in about.css */
.case-study .cs-marketing-payoff__stat-num {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.48vw, 92px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .case-study .cs-marketing-payoff {
    padding: 160px 28px 96px;
  }

  .case-study .cs-marketing-payoff__title,
  .case-study .cs-marketing-payoff__copy {
    width: 66.6667%;
  }

  .case-study .cs-marketing-payoff__stats {
    width: 100%;
    margin-top: 72px;
  }
}

/* Mobile 1:3638: stats stack in one centered column (1:3820) */
@media (max-width: 768px) {
  .case-study .cs-marketing-payoff {
    padding: 136px 16px 48px;
  }

  .case-study .cs-marketing-payoff__eyebrow {
    margin-bottom: 8px;
  }

  /* Same values as .about-hero__title at 768px in about.css */
  .case-study .cs-marketing-payoff__title {
    width: 100%;
    font-size: clamp(26px, 7.6vw, 34px);
  }

  /* Same values as .work-card__title at 768px in home.css */
  .case-study .cs-marketing-payoff__copy {
    width: 100%;
    font-size: 1.375rem;
    line-height: 26px;
  }

  .case-study .cs-marketing-payoff__title + .cs-marketing-payoff__copy {
    margin-top: 20px;
  }

  .case-study .cs-marketing-payoff__stats {
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
  }

  .case-study .cs-marketing-payoff__stat-num {
    margin-top: 8px;
  }
}

/* ——— Marketing - CTA (template-parts/case-study/marketing_cta.php) ——— */
.case-study .cs-marketing-cta {
  background: var(--page);
}

/* Box 1:3404 is 1570px of the 1680px frame. Same glow surface as .about-cta__panel in about.css; js/glow.js eases it toward the pointer. */
.case-study .cs-marketing-cta__box {
  --cta-glow-x: 82%;
  --cta-glow-y: 78%;
  --cta-glow-strength: 0.42;
  --cta-glow-size: 60%;

  position: relative;
  width: 93%;
  margin: 0 auto;
  padding: 76px 32px 64px;
  border-radius: 8px;
  text-align: center;
  background:
    radial-gradient(
        ellipse var(--cta-glow-size) 90% at var(--cta-glow-x) var(--cta-glow-y),
        rgba(229, 83, 6, var(--cta-glow-strength)),
        transparent 62%
      ),
    radial-gradient(ellipse 50% 70% at 12% 20%, rgba(229, 83, 6, 0.16), transparent 60%),
    #0d0e01;
}

.case-study .cs-marketing-cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Same values as .about-cta__title in about.css; #f4f4f4 per Figma */
.case-study .cs-marketing-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.86vw, 48px);
  line-height: 1.17;
  color: #f4f4f4;
}

/* Same type values as .about-cta__copy in about.css; #f4f4f4 per Figma */
.case-study .cs-marketing-cta__copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: #f4f4f4;
}

.case-study .cs-marketing-cta__copy p + p {
  margin-top: 1em;
}

.case-study .cs-marketing-cta__btn {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .case-study .cs-marketing-cta__box {
    padding: 64px 28px 56px;
  }
}

/* Mobile 1:3827-1:3832: box is 344px of the 375px frame */
@media (max-width: 768px) {
  .case-study .cs-marketing-cta__box {
    width: 92%;
    padding: 40px 24px 44px;
    border-radius: 10px;
  }

  .case-study .cs-marketing-cta__inner {
    gap: 12px;
  }

  .case-study .cs-marketing-cta__btn {
    margin-top: 8px;
  }
}

/* ——— Marketing - Other Wins (template-parts/case-study/marketing_other_wins.php) ——— */
.case-study .cs-marketing-other-wins {
  padding: 168px 60px 184px 56px;
  background: var(--page);
}

.case-study .cs-marketing-other-wins__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* .work__title values, weight 600 and 72/80 per Figma 1:3423; bottom offset 184px per Figma */
.case-study .cs-marketing-other-wins__title {
  align-self: end;
  padding-bottom: 184px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4.5rem;
  line-height: 1.11;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .case-study .cs-marketing-other-wins {
    padding: 120px 28px 140px;
  }

  .case-study .cs-marketing-other-wins__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study .cs-marketing-other-wins__title {
    grid-column: 1 / -1;
    padding-bottom: 8px;
  }
}

/* Mobile 1:3817-1:3850; title uses the mobile .work__title values */
@media (max-width: 768px) {
  .case-study .cs-marketing-other-wins {
    padding: 88px 16px;
  }

  .case-study .cs-marketing-other-wins__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-study .cs-marketing-other-wins__title {
    padding-bottom: 16px;
    font-size: clamp(2rem, 10.7vw, 2.625rem);
    line-height: 1.05;
    text-align: center;
  }
}
