/* ==========================================================================
   kudos.css — KUDOS Illustration System case study page
   Loads on top of kikku.css; only adds what Kudos needs.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE BACKGROUND — warm cream tint that flatters the illustration palette
   -------------------------------------------------------------------------- */
body {
  background-color: #FBF7F2;
}

/* --------------------------------------------------------------------------
   OVERVIEW — tighter title/sub-text spacing (overrides kikku.css default)
   -------------------------------------------------------------------------- */
.cs-overview__item {
  gap: 12px;
}

/* --------------------------------------------------------------------------
   SECTION SPACING — uniform 24px gap between every section on this page
   (overrides kikku.css's 60px desktop / 56px mobile section padding)
   -------------------------------------------------------------------------- */
.cs-hero-image-wrap {
  margin-bottom: 24px;
}

.cs-section {
  padding-top: 24px;
}

@media (max-width: 768px) {
  .cs-section {
    padding: 24px 0 0;
  }
}

/* --------------------------------------------------------------------------
   HERO — full bleed, rounded corners, no padding crop
   -------------------------------------------------------------------------- */
.kd-hero-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: #5B45C5;
}

.kd-hero-wrap .cs-hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   GOALS — signpost image full-width, Jero strip below
   -------------------------------------------------------------------------- */
.kd-goals-img {
  width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   CHARACTERS — desktop uses Characters.png; mobile uses individual cards
   -------------------------------------------------------------------------- */
.kd-char-desktop {
  display: block;
}

.kd-char-mobile {
  display: none;
}

.kd-char-list {
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.kd-char-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.kd-char-solo-img {
  width: auto;
  max-width: 300px;
  height: auto;
  display: block;
}

.kd-char-solo-img--cat {
  max-width: 200px;
}

.kd-char-name {
  font-family: 'Emilys Candy', cursive;
  font-size: 24px;
  font-weight: 400;
  color: #5B45C5;
  text-align: center;
  margin: 0;
}

/* --------------------------------------------------------------------------
   ILLUSTRATION SYSTEM — scenes stacked full-width with breathing room
   -------------------------------------------------------------------------- */
.kd-scene {
  margin-bottom: 48px;
}

.kd-scene:last-of-type {
  margin-bottom: 0;
}

.kd-scene__img-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.kd-scene__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Each scene image has its own baked-in caption band at the bottom (from the
   original design export); the aspect-ratio below crops it off so only the
   real 12px HTML caption shows. Tuned per scene since caption length/height varies. */
.kd-scene__img-wrap--1 { aspect-ratio: 1.55; }
.kd-scene__img-wrap--2 { aspect-ratio: 1.49; }
.kd-scene__img-wrap--3 { aspect-ratio: 1.34; }
.kd-scene__img-wrap--4 { aspect-ratio: 1.34; }
.kd-scene__img-wrap--5 { aspect-ratio: 1.63; }
.kd-scene__img-wrap--6 { aspect-ratio: 1.45; }

.kd-scene__caption {
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #6B6B6B;
  line-height: 1.7;
  margin: 10px 0 0 0;
}

@media (min-width: 769px) {
  .kd-scene__caption {
    font-size: 24px;
  }
}

.kd-hr {
  border: none;
  border-top: 1.5px dashed #DDD0FF;
  margin: 40px 0;
}

/* --------------------------------------------------------------------------
   SPOT ILLUSTRATIONS — full-width grid image + Jero strip below
   -------------------------------------------------------------------------- */
.kd-spots-img {
  border-radius: 16px;
}

.kd-jero-strip {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.kd-jero-img {
  width: 75%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   MOBILE UI — stacked: light mode on top, dark mode below
   -------------------------------------------------------------------------- */
.kd-ui-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kd-ui-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kd-ui-label {
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #5B45C5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.kd-ui-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.kd-ui-card--dark .kd-ui-img {
  background: #FFFFFF;
  padding: 24px;
  border-radius: 16px;
  box-sizing: border-box;
}

.kd-billboard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   STYLE GUIDE — logo left, color palette right
   -------------------------------------------------------------------------- */
.kd-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.kd-guide-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kd-guide-label {
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #5C5C5C;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.kd-guide-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   REFLECTIONS — generous text, warm tone
   -------------------------------------------------------------------------- */
.kd-reflections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kd-reflections p {
  font-family: 'Urbanist', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #3D3D3D;
  line-height: 1.8;
  margin: 0;
}

/* --------------------------------------------------------------------------
   NEXT PROJECT — Selected Illustration Works card (desktop)
   -------------------------------------------------------------------------- */
.cs-next-project__card {
  align-items: center;
  padding: 16px 32px;
  gap: 20px;
}

.cs-next-project__image {
  background: transparent;
  align-self: stretch;
  border-radius: var(--radius-xl);
}

.cs-next-project__icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  overflow: visible;
}

.cs-next-project__icon-img {
  object-fit: contain;
}

.cs-next-project__card .project-card__description {
  width: 100%;
}

@media (max-width: 900px) {
  .cs-next-project__card {
    padding: 16px;
    gap: 16px;
  }

  .cs-next-project__image {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Tablet (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .kd-goals-img {
    width: 80%;
  }

  .kd-guide-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .kd-jero-img {
    width: 70%;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .kd-goals-img {
    width: 100%;
  }

  .kd-jero-img {
    width: 90%;
  }

  .kd-char-desktop {
    display: none;
  }

  .kd-char-mobile {
    display: flex;
    gap: 40px;
  }

  .kd-char-item {
    gap: 14px;
  }

  .kd-char-solo-img {
    max-width: 200px;
  }

  .kd-char-solo-img--cat {
    max-width: 140px;
  }

  .kd-char-name {
    font-size: 18px;
  }

  .kd-reflections {
    gap: 20px;
  }

  .kd-reflections p {
    font-size: 16px;
  }

  /* ── Next Project section — mirrors Sparkles mobile ── */
  .cs-next-project {
    padding: 24px 16px 40px;
  }

  .cs-next-project__label {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .cs-next-project__star {
    width: 18px;
    height: 18px;
  }

  .cs-next-project__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    gap: 10.81px;
    width: 100%;
    max-width: 355px;
    height: 567.53px;
    border-radius: 17.2986px;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
    margin: 0 auto;
    overflow: hidden;
  }

  .cs-next-project__image {
    order: -1;
    width: 100%;
    flex: 1;
    min-height: 0;
    align-self: stretch;
  }

  .cs-next-project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .cs-next-project__text {
    flex: none;
    padding: 0 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .cs-next-project__title-row {
    gap: 8px;
  }

  .cs-next-project__icon {
    width: 28px;
    height: 28px;
  }

  .cs-next-project__title {
    font-size: 16px;
  }

  .cs-next-project__card .project-card__category {
    font-size: 12px;
    margin-top: 6px;
  }

  .cs-next-project__card .project-card__description {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
    width: 100%;
  }

  .cs-next-project__card .project-card__metrics {
    margin-top: 8px;
    gap: 4px;
  }

  .cs-next-project__card .project-card__metric {
    font-size: 12px;
    gap: 6px;
  }

  .cs-next-project__card .project-card__check-icon {
    width: 14px;
    height: 14px;
  }

  .cs-next-project__card .project-card__btn {
    margin-top: 10.81px;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
  }
}
