/* =============================================
   PEABODY — SPECIFIC STYLES
   ============================================= */

/* Peabody nav link colors */
.case-study--peabody .nav .nav-link {
  color: var(--cs-800);
}

.case-study--peabody .nav .nav-link:hover {
  background: var(--cs-800);
  color: var(--cs-000);
}

/* Peabody hero image */
.cs-hero--peabody .cs-hero-image {
  width: 1000px;
  bottom: 0;
}

.cs-hero--peabody .cs-hero-phone {
  bottom: -300px;
  right: -180px;
  width: 1000px;
  top: auto;
  height: auto;
}

/* Peabody logo - text-based */
.cs-peabody-logo {
  position: relative;
  width: 273px;
  height: 144px;
  color: var(--cs-800);
}

.cs-peabody-logo-tagline {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
}

.cs-peabody-logo-main {
  position: absolute;
  top: 22px;
  left: 0;
  font-family: var(--font-heading);
  font-size: 49px;
  font-weight: 800;
  line-height: 0.97;
}

.cs-peabody-logo-tagline-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  text-align: right;
}

/* Image caption */
.cs-image-caption {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--cs-500);
  text-align: center;
  width: 100%;
}

/* Persona card */
.cs-persona-card {
  background: var(--cs-000);
  border: 1px solid var(--cs-900-10);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-persona-goals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Peabody highlight text */
.cs-peabody-highlight {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cs-500);
  line-height: 1.3;
}

/* Peabody intro images row */
.cs-images-row--peabody-intro {
  max-width: 1304px;
  height: 404px;
}

.cs-images-row--peabody-intro .cs-image-box--peabody-second {
  width: 529px;
  height: 404px;
  background: #f5e9db;
  flex-shrink: 0;
}

/* Peabody sketches image */
.cs-images-row--peabody-sketches {
  flex-direction: column;
  gap: 16px;
  max-width: 1304px;
}

.cs-image-box--peabody-sketches {
  width: 100%;
  max-height: 640px;
}

.cs-image-box--peabody-sketches img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Research layout - Desktop: image left, card+ideation right stacked */
.cs-research-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  grid-template-rows: auto auto;
  gap: 32px 96px;
  max-width: 1304px;
  width: 100%;
  padding: 0 120px;
}

.cs-research-image {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
}

.cs-research-card {
  grid-column: 2;
  grid-row: 1;
}

.cs-research-ideation {
  grid-column: 2;
  grid-row: 2;
}

.cs-image-box--peabody-persona {
  flex: 1;
  min-height: 400px;
}

.cs-image-box--peabody-persona img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Peabody solution image */
.cs-images-row--peabody-solution {
  max-width: 1304px;
}

.cs-image-box--peabody-solution {
  width: 100%;
  aspect-ratio: 1200 / 504;
}

.cs-image-box--peabody-solution img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Peabody solution section gap */
.cs-section--peabody-solution {
  gap: 104px;
}

/* Peabody impact section */
.cs-section--peabody-impact {
  background: var(--cs-100);
  gap: 104px;
  padding: 104px 0 32px;
}

/* Peabody full-bleed teal image - no rounded corners */
.cs-fullbleed--peabody {
  background: var(--peabody-color);
  aspect-ratio: 1200 / 640;
  border-radius: 0;
}

/* Peabody impact border */
.cs-col-right--peabody-impact {
  border-left: 2px solid var(--cs-500);
  padding-left: 32px;
}

/* =============================================
   PEABODY — RESPONSIVE (TABLET)
   ============================================= */
@media (max-width: 1239px) {
  .cs-hero--peabody .cs-hero-image {
    width: 750px;
    right: -80px;
  }

  .cs-hero--peabody .cs-hero-phone {
    width: 750px;
    bottom: -200px;
    right: -120px;
  }

  /* 1. Intro images row - tablet: 304px height */
  .cs-images-row--peabody-intro {
    height: 304px;
  }

  .cs-images-row--peabody-intro .cs-image-box {
    height: 304px;
  }

  .cs-images-row--peabody-intro .cs-image-box--peabody-second {
    width: auto;
    flex: 0 0 40%;
    height: 304px;
  }

  .cs-images-row--peabody-intro .cs-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 2. Sketches - tablet: keep ratio */
  .cs-image-box--peabody-sketches {
    max-height: none;
    height: auto;
  }

  .cs-image-box--peabody-sketches img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* 5. Solution image - tablet: keep ratio */
  .cs-image-box--peabody-solution {
    aspect-ratio: auto;
    height: auto;
  }

  .cs-image-box--peabody-solution img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Research layout - Tablet: image + card side by side, ideation below full width */
  .cs-research-layout {
    grid-template-columns: auto 1fr;
    gap: 24px 32px;
    padding: 0 64px;
  }

  .cs-research-image {
    grid-column: 1;
    grid-row: 1;
  }

  .cs-research-card {
    grid-column: 2;
    grid-row: 1;
    min-width: 400px;
  }

  .cs-research-ideation {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .cs-image-box--peabody-persona {
    min-height: 300px;
  }
}

/* =============================================
   PEABODY — RESPONSIVE (MOBILE)
   ============================================= */
@media (max-width: 767px) {
  .cs-hero--peabody .cs-hero-image {
    width: 100%;
    right: -40%;
    top: auto;
    bottom: -80px;
    height: 560px;
  }

  .cs-hero--peabody .cs-hero-phone {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    object-position: left top;
  }

  .cs-peabody-logo {
    width: 200px;
    height: 110px;
  }

  .cs-peabody-logo-main {
    font-size: 36px;
    top: 18px;
  }

  .cs-peabody-logo-tagline,
  .cs-peabody-logo-tagline-bottom {
    font-size: 10px;
  }

  .cs-fullbleed--peabody {
    aspect-ratio: auto;
    padding: 0;
  }

  /* Solution section gap on mobile */
  .cs-section--peabody-solution {
    gap: 64px;
  }

  /* Impact section on mobile */
  .cs-section--peabody-impact {
    gap: 64px;
    padding: 80px 0 32px;
  }

  .cs-col-right--peabody-impact {
    border-left: none;
    border-top: 2px solid var(--cs-500);
    padding-left: 0;
    padding-top: 24px;
  }

  /* 1. Intro images row - mobile: stack vertically */
  .cs-images-row--peabody-intro {
    flex-direction: column;
    height: auto;
  }

  .cs-images-row--peabody-intro .cs-image-box,
  .cs-images-row--peabody-intro .cs-image-box--peabody-second {
    width: 100%;
    height: auto;
    flex: none;
  }

  .cs-images-row--peabody-intro .cs-image-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* 2. Sketches - mobile: use mobile image, keep ratio */
  .cs-image-box--peabody-sketches {
    max-height: none;
    height: auto;
  }

  .cs-image-box--peabody-sketches img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Research layout - Mobile: vertical stack */
  .cs-research-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }

  .cs-research-image {
    order: 1;
  }

  .cs-research-card {
    order: 2;
    min-width: unset;
  }

  .cs-research-ideation {
    order: 3;
  }

  .cs-image-box--peabody-persona {
    min-height: 300px;
    height: 300px;
  }

  /* 5. Solution image - mobile: keep ratio */
  .cs-image-box--peabody-solution {
    aspect-ratio: auto;
    height: auto;
  }

  .cs-image-box--peabody-solution img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
