/* V5 Case Studies: scoped after the shared editorial styles. */
.case-page h1, .case-page .case-card h2, .case-detail h1 { font-family: "Lato Case", Lato, Arial, sans-serif; font-kerning: normal; }
.case-page .v3-editorial-hero { min-height: 0; padding: 96px 0 60px; }
.case-page .v3-editorial-hero h1 { margin: 0 0 18px; font-size: 50px; line-height: 1.27; letter-spacing: -.028em; white-space: pre-line; }
.case-page .v3-editorial-hero p { margin: 0 0 18px; font-size: 19px; line-height: 1.68; }
.case-page .v3-editorial-hero .button { font-size: 15.5px; }
.case-page .v3-editorial-hero__image { border-radius: 18px; }
.case-page .case-card { border-radius: 24px; }
.case-page .case-card__art { position: relative; border-radius: 18px; }
/* Original Figma image layers; user-supplied covers keep the normal cover fit. */
.case-page .case-card__art--benchmark img { position: absolute; width: 100%; height: auto; top: -1.667%; left: 0; }
.case-page .case-card__art--fintech img { position: absolute; width: 100.414%; max-width: none; height: auto; top: -.879%; left: -.326%; }
.case-page .case-card__art--consumer img { position: absolute; width: 100%; height: 142.222%; top: -8.889%; left: 0; }
.case-page .case-card__copy { padding: 26px 26px 28px; }
.case-page .case-card .v3-category { font-size: 10.5px; line-height: normal; }
.case-page .case-card h2 { font-size: 19px; line-height: 1.32; letter-spacing: -.014em; }
.case-page .case-card__copy > p.case-card__link-label { font-size: 13.5px; line-height: 1.6; color: #a2a4a4; }

.case-detail .case-detail-header { padding: 72px 0; min-height: 526px; background: #fff; }
.case-detail .article-header__inner { display: flex; flex-direction: column; gap: 18px; }
.case-detail .article-header__inner > * { margin: 0; }
.case-detail .article-header h1 { max-width: none; font-size: 44px; line-height: 1.18; letter-spacing: normal; }
.case-detail .article-header .text-link { font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--text); }
.case-detail .article-header .eyebrow { font-size: 12px; line-height: 1.4; letter-spacing: .14em; color: var(--teal); }
/* Override the legacy shared article !important declarations within cases only. */
.case-detail .article-standfirst { font-size: 19px !important; line-height: 1.65 !important; font-weight: 400; }
.case-detail .article-meta { margin: 0 !important; font-size: 14px !important; line-height: 1.5 !important; color: #a2a4a4; }
.case-detail-cover__frame { position: relative; height: 420px; overflow: hidden; border-radius: 14px; }
.case-detail .case-detail-cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.case-detail .case-detail-cover__frame--design img { position: absolute; width: 117.58%; max-width: none; height: auto; left: -17.6%; top: .07%; }
.case-detail .case-metrics { display: block; min-height: 178px; padding: 48px 0; background: #f5f6f7; }
.case-metrics__inner { display: flex; justify-content: center; }
.case-detail .case-metrics__item { flex: 1; min-width: 0; max-width: none; }
.case-detail .case-metrics strong { display: block; font-size: 46px; line-height: 1.15; color: var(--deep-teal); }
.case-detail .case-metrics p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.case-detail .article-body { display: flex; flex-direction: column; gap: 26px; width: min(760px, calc(100% - 40px)); max-width: none; min-height: 0; padding: 80px 0; margin-inline: auto; overflow-wrap: anywhere; }
.case-detail .article-body > * { margin: 0; }
.case-detail .article-body h2 { font-size: 26px; line-height: 1.3; letter-spacing: normal; }
.case-detail .article-body p { margin: 0; font-size: 17.5px; line-height: 1.75; color: #444; }
.case-detail .article-body ul, .case-detail .article-body ol { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; border-radius: 12px; background: #f0fafa; font-size: 16px; line-height: 1.65; color: var(--text); list-style-position: inside; }
.case-detail .article-body ul { list-style: none; }
.case-detail .article-body ul > li::before { content: "–"; margin-right: 12px; }
.case-detail .article-body li p { display: inline; font-size: inherit; line-height: inherit; color: inherit; }
.case-detail .article-body blockquote { padding: 6px 0 6px 28px; border-left: 3px solid var(--teal); font-size: 21px; font-style: italic; line-height: 1.5; }
.case-detail .article-body blockquote p { font: inherit; color: inherit; }
.case-detail .article-body img { max-width: 100%; height: auto; }
.case-detail .article-body pre { max-width: 100%; overflow-x: auto; }
.case-detail .closing--simple { min-height: 0; }
.case-detail .closing--simple h2 { line-height: 1.12; }
.case-detail .closing--simple .button { font-size: 15px; min-height: 48px; height: 48px; }

@media (min-width: 701px) and (max-width: 1000px) {
  .case-page .v3-editorial-hero h1 { font-size: 38px; }
}
@media (max-width: 700px) {
  .case-page .v3-editorial-hero { padding: 56px 0 40px; }
  .case-page .v3-editorial-hero .v3-split { gap: 20px; }
  .case-page .v3-editorial-hero h1 { font-size: 28px; white-space: normal; }
  .case-page .v3-editorial-hero p { font-size: 16px; }
  .case-page .v3-editorial-hero .button { min-height: 47px; padding: 15px 26px; font-size: 14px; }
  .case-page .v3-editorial-hero__image { aspect-ratio: 350 / 197; }
  .case-page .v3-editorial-hero__image img { height: 100%; min-height: 0; }
  .case-page .case-listing { padding-bottom: 56px; }
  .case-page .case-card { min-height: 0; }
  .case-page .case-card__art { height: auto; aspect-ratio: 348 / 163.409; border-radius: 16.341px; }
  .case-page .case-card__copy { padding: 26px 14px 28px; }
  .case-page .case-card h2 { margin: 0; font-size: 16px; }
  .case-page .case-card__copy > p.case-card__link-label { display: none; }
  .case-detail .case-detail-header { min-height: 0; padding: 40px 0; }
  .case-detail .article-header .text-link { font-size: 14px; }
  .case-detail .article-header h1 { font-size: 26px; }
  .case-detail .article-standfirst { font-size: 16px !important; }
  .case-detail .case-detail-cover { padding-bottom: 28px; }
  .case-detail-cover__frame { height: auto; aspect-ratio: 350 / 174; }
  .case-detail .case-detail-cover__frame--design img { width: 100%; left: 0; }
  .case-detail .case-metrics { min-height: 0; padding: 28px 0; }
  .case-metrics__inner { flex-direction: column; }
  .case-detail .case-metrics strong { font-size: 26px; }
  .case-detail .case-metrics p { font-size: 14px; }
  .case-detail .article-body { padding: 40px 0; }
  .case-detail .article-body h2 { font-size: 19px; }
  .case-detail .article-body p { font-size: 15px; }
  .case-detail .article-body ul, .case-detail .article-body ol { padding-inline: 14px; font-size: 15px; }
  .case-detail .article-body li p { font-size: inherit; }
  .case-detail .article-body blockquote { padding-left: 14px; font-size: 17px; }
  .case-detail .article-body blockquote p { font-size: inherit; }
  .case-detail .closing--simple .button { font-size: 14px; min-height: 47px; height: 47px; }
}
