/* V89 — THER Innocent Moment case study */
body.portfolio-page .ther-case-study {
  scroll-margin-top: 92px;
  color: #101735;
  background:
    radial-gradient(circle at 88% 10%, rgba(40, 111, 242, .08), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f5f8fd 100%);
}

body.portfolio-page .ther-case-heading,
body.portfolio-page .ther-case-subhead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .62fr);
  align-items: end;
  gap: 34px;
}

body.portfolio-page .ther-case-heading h2 {
  margin: 10px 0 0;
  color: #101735;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.065em;
}

body.portfolio-page .ther-case-heading > p,
body.portfolio-page .ther-case-subhead > p {
  margin: 0;
  color: #5f6b85;
  font-size: .96rem;
  line-height: 1.75;
}

body.portfolio-page .ther-case-labels {
  margin: 28px 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.portfolio-page .ther-case-labels span {
  padding: 9px 12px;
  color: #174fc9;
  border: 1px solid rgba(40, 111, 242, .2);
  border-radius: 999px;
  background: #eef4ff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
}

body.portfolio-page .ther-case-main {
  display: grid;
  grid-template-columns: minmax(320px, .7fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

body.portfolio-page .ther-case-hero-media,
body.portfolio-page .ther-case-brief,
body.portfolio-page .ther-case-photo-grid figure,
body.portfolio-page .ther-case-motion-grid figure,
body.portfolio-page .ther-case-story article,
body.portfolio-page .ther-case-outcome {
  overflow: hidden;
  border: 1px solid rgba(36, 65, 130, .14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(35, 51, 105, .1);
}

body.portfolio-page .ther-case-hero-media,
body.portfolio-page .ther-case-photo-grid figure,
body.portfolio-page .ther-case-motion-grid figure {
  margin: 0;
}

body.portfolio-page .ther-case-hero-media video {
  width: 100%;
  height: min(70vh, 720px);
  min-height: 560px;
  display: block;
  object-fit: cover;
  background: #edf0f6;
}

body.portfolio-page .ther-case-hero-media figcaption,
body.portfolio-page .ther-case-photo-grid figcaption,
body.portfolio-page .ther-case-motion-grid figcaption {
  min-height: 84px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #101735;
  background: #fff;
}

body.portfolio-page .ther-case-hero-media figcaption strong,
body.portfolio-page .ther-case-photo-grid figcaption strong,
body.portfolio-page .ther-case-motion-grid figcaption strong {
  color: #174fc9;
  font-size: .64rem;
  letter-spacing: .075em;
}

body.portfolio-page .ther-case-hero-media figcaption span,
body.portfolio-page .ther-case-photo-grid figcaption span,
body.portfolio-page .ther-case-motion-grid figcaption span {
  color: #66728c;
  font-size: .78rem;
  line-height: 1.5;
}

body.portfolio-page .ther-case-brief {
  padding: clamp(28px, 4vw, 54px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(242, 247, 255, .96)),
    #fff;
}

body.portfolio-page .ther-case-kicker {
  margin: 0 0 18px;
  color: #286ff2;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
}

body.portfolio-page .ther-case-brief > h3 {
  max-width: 760px;
  margin: 0;
  color: #101735;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.055em;
}

body.portfolio-page .ther-case-brief > p:not(.ther-case-kicker) {
  max-width: 720px;
  margin: 22px 0 0;
  color: #5f6b85;
  font-size: .94rem;
  line-height: 1.8;
}

body.portfolio-page .ther-case-facts {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.portfolio-page .ther-case-facts article {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(40, 111, 242, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
}

body.portfolio-page .ther-case-facts span,
body.portfolio-page .ther-case-story span {
  display: block;
  color: #286ff2;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .08em;
}

body.portfolio-page .ther-case-facts strong {
  margin-top: 10px;
  display: block;
  color: #202a4d;
  font-size: .82rem;
  line-height: 1.5;
}

body.portfolio-page .ther-case-story {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.portfolio-page .ther-case-story article {
  padding: 24px;
  box-shadow: 0 12px 34px rgba(35, 51, 105, .07);
}

body.portfolio-page .ther-case-story h3 {
  margin: 14px 0 10px;
  color: #101735;
  font-size: 1.05rem;
  line-height: 1.3;
}

body.portfolio-page .ther-case-story p {
  margin: 0;
  color: #66728c;
  font-size: .78rem;
  line-height: 1.65;
}

body.portfolio-page .ther-case-subhead {
  margin: 92px 0 26px;
}

body.portfolio-page .ther-case-subhead h3 {
  margin: 8px 0 0;
  color: #101735;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

body.portfolio-page .ther-case-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.portfolio-page .ther-case-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: #edf0f6;
}

body.portfolio-page .ther-case-motion-grid {
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.portfolio-page .ther-case-motion-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
  background: #edf0f6;
}

body.portfolio-page .ther-case-outcome {
  margin-top: 92px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.2fr);
  gap: 28px 48px;
  background:
    radial-gradient(circle at 90% 15%, rgba(24, 185, 230, .16), transparent 21rem),
    linear-gradient(135deg, #101735, #17295e);
}

body.portfolio-page .ther-case-outcome h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.055em;
}

body.portfolio-page .ther-case-outcome ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

body.portfolio-page .ther-case-outcome li {
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}

body.portfolio-page .ther-case-outcome li strong {
  display: block;
  color: #77ddff;
  font-size: 2rem;
}

body.portfolio-page .ther-case-outcome li span {
  margin-top: 7px;
  display: block;
  color: #d4ddf1;
  font-size: .68rem;
  line-height: 1.45;
}

body.portfolio-page .ther-case-outcome > p {
  margin: 0;
  color: #c0cbe2;
  font-size: .78rem;
  line-height: 1.7;
}

body.portfolio-page .ther-case-outcome > a {
  justify-self: start;
  align-self: center;
}

@media (max-width: 980px) {
  body.portfolio-page .ther-case-heading,
  body.portfolio-page .ther-case-subhead,
  body.portfolio-page .ther-case-main,
  body.portfolio-page .ther-case-outcome {
    grid-template-columns: 1fr;
  }

  body.portfolio-page .ther-case-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.portfolio-page .ther-case-hero-media video {
    height: auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 680px) {
  body.portfolio-page .ther-case-study {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  body.portfolio-page .ther-case-heading {
    gap: 18px;
  }

  body.portfolio-page .ther-case-heading h2 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }

  body.portfolio-page .ther-case-labels {
    margin-bottom: 24px;
  }

  body.portfolio-page .ther-case-facts,
  body.portfolio-page .ther-case-story,
  body.portfolio-page .ther-case-photo-grid,
  body.portfolio-page .ther-case-motion-grid,
  body.portfolio-page .ther-case-outcome ul {
    grid-template-columns: 1fr;
  }

  body.portfolio-page .ther-case-brief,
  body.portfolio-page .ther-case-story article,
  body.portfolio-page .ther-case-outcome {
    padding: 22px;
  }

  body.portfolio-page .ther-case-subhead,
  body.portfolio-page .ther-case-outcome {
    margin-top: 68px;
  }

  body.portfolio-page .ther-case-photo-grid,
  body.portfolio-page .ther-case-motion-grid {
    gap: 12px;
  }
}
