/*  Stage 5 | Home and service case projects | v10. Real user-supplied background, cleaned of embedded UI, with approved blue document/gavel icon.  */
/* The section background must stretch to the full viewport width on both home and service pages, */
/* while the content itself stays centered inside a wide inner container. */
.jp5-cases {position:relative;width:auto;max-width:none;box-sizing:border-box;isolation:isolate;overflow:hidden;min-height:600px;padding:0;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);background:#f4f9fc url("/static/img/stage5/cases-reference-clean-v7.webp") center center / cover no-repeat;color:#164a7d;}
.jp5-cases__inner {position:relative;width:100%;max-width:1560px;margin:0 auto;min-height:600px;padding:54px clamp(26px,4.2vw,80px) 30px;}
.jp5-cases__body {position:relative;z-index:2;width:min(72%,1180px);min-width:0;}
.jp5-cases__header {text-align:center;margin:0 0 48px;}
.jp5-cases__header h2 {margin:0;color:#174d80;font:400 clamp(36px,3.5vw,51px)/1.15 FuturaBook,Roboto,Arial,sans-serif;letter-spacing:0;}
.jp5-cases__heading-line {display:block;height:2px;width:280px;max-width:52%;margin:20px auto 0;background:linear-gradient(90deg,#62b2d4,#2593c6);}
.jp5-cases__grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px;align-items:start;max-width:920px;}
.jp5-case {display:flex;align-items:center;flex-direction:column;min-width:0;min-height:325px;text-align:left;}
.jp5-case__title {align-self:stretch;min-height:92px;margin:0;color:#154a79;font:400 clamp(18px,1.55vw,22px)/1.2 FuturaBook,Roboto,Arial,sans-serif;overflow-wrap:break-word;text-wrap:pretty;}
.jp5-case__title a {color:inherit;text-decoration:none;}
.jp5-case__title a:hover {color:#2587c0;}
.jp5-case__line {align-self:flex-start;display:block;width:55px;height:2px;background:#42a7cf;margin:0 0 12px;}
.jp5-case__art {display:block;width:132px;height:120px;max-width:90%;flex:none;margin:0 auto 11px;filter:drop-shadow(0 7px 10px rgba(33,101,155,.10));}
.jp5-case__art-image {object-fit:contain;aspect-ratio:356/336;}
.jp5-case__button {display:inline-flex;align-items:center;justify-content:center;align-self:center;min-width:166px;min-height:43px;padding:7px 20px;border:1.5px solid #3e99c3;border-radius:999px;color:#1c6f9c!important;text-decoration:none!important;background:rgba(255,255,255,.75);font:400 18px/1.2 FuturaBook,Roboto,Arial,sans-serif;transition:background .2s,border-color .2s,color .2s;}
.jp5-case__button:hover,.jp5-case__button:focus-visible {background:#2d8cbd;color:#fff!important;border-color:#2d8cbd;}
.jp5-cases__all {display:table;margin:27px auto 0;color:#2b75a3!important;font:400 15px/1.35 Roboto,Arial,sans-serif;text-decoration:none!important;border-bottom:1px solid #8bc4df;padding-bottom:4px;}
.jp5-cases__all:hover {color:#15547c!important;}
.jp5-cases__portrait {position:absolute;z-index:1;right:clamp(38px,5vw,95px);bottom:0;width:clamp(325px,27vw,480px);height:100%;overflow:hidden;pointer-events:none;}
.jp5-cases__portrait img {display:block;width:100%;height:100%;object-fit:contain;object-position:50% 100%;}
.jp5-cases__empty {grid-column:1/-1;text-align:center;color:#527593;font:400 19px/1.4 Roboto,Arial,sans-serif;padding:60px 0;}
@media(max-width:1150px){
 .jp5-cases__inner {min-height:540px;padding:45px 24px 28px;}
 .jp5-cases__body {width:70%;}
 .jp5-cases__portrait {width:34%;}
 .jp5-cases__header {margin-bottom:35px;}
 .jp5-cases__grid {gap:12px;}
 .jp5-case__title {font-size:19px;min-height:100px;}
 .jp5-case__art {width:115px;height:104px;}
 .jp5-case__button {min-width:140px;}
}
@media(max-width:800px){
 .jp5-cases {min-height:0;}
 .jp5-cases__inner {min-height:0;padding:38px 20px 36px;}
 .jp5-cases__body {width:100%;}
 .jp5-cases__header {margin-bottom:30px;}
 .jp5-cases__header h2 {font-size:36px;}
 .jp5-cases__grid {gap:10px;}
 .jp5-case__title {font-size:17px;min-height:110px;}
 .jp5-case__art {width:94px;height:85px;}
 .jp5-case__button {min-width:0;width:100%;max-width:145px;font-size:16px;}
 /* No portrait on phones or tablets. Keep the project links accessible. */
 .jp5-cases__portrait {display:none!important;}
}
@media(max-width:560px){
 .jp5-cases__inner {width:100%;max-width:none;padding:34px 16px 34px;}
 .jp5-cases__header {margin-bottom:24px;}
 .jp5-cases__header h2 {font-size:clamp(27px,7.15vw,31px);line-height:1.2;text-wrap:balance;}
 .jp5-cases__heading-line {width:185px;margin-top:15px;}
 .jp5-cases__grid {grid-template-columns:1fr;gap:13px;}
 .jp5-case {display:grid;grid-template-columns:1fr 96px;grid-template-rows:auto auto auto;column-gap:13px;min-height:0;align-items:center;padding:14px 2px 16px;border-bottom:1px solid #c5dfef;}
 .jp5-case__title {grid-row:1;grid-column:1;min-height:0;font-size:20px;line-height:1.2;padding-bottom:9px;align-self:end;}
 .jp5-case__line {grid-column:1;grid-row:2;margin-bottom:10px;align-self:start;}
 .jp5-case__art {grid-column:2;grid-row:1 / 4;align-self:center;width:96px;height:91px;margin:0;}
 .jp5-case__button {grid-column:1;grid-row:3;justify-self:start;max-width:148px;min-height:39px;font-size:16px;}
 .jp5-cases__all {margin-top:20px;font-size:14px;}
 .jp5-cases__portrait {display:none!important;}
}
@media(prefers-reduced-motion:reduce){.jp5-case__button {transition:none;}}

/* Service pages can contain the cases section inside #our_other_services. */
#our_other_services > .jp5-cases {margin-top:0;margin-bottom:0;}
@media (min-width:801px) and (max-width:1199px) {.jp5-cases__body {width:75%;}}

/* Fix the 75px legacy gap on service pages: old #our_other_services margin:75px 0 0;
   The new projects section is now the first child and should join the preceding section flush. */
#our_other_services.jp5-service-area {margin-top:0!important;padding-bottom:0!important;}
#our_other_services.jp5-service-area > .jp5-cases {margin-top:0!important;}
/* Homepage fullPage-era rules otherwise override the new section background. */
body.page_main .home-flow > .home-section.jp5-cases {
  background:#f4f9fc url("/static/img/stage5/cases-reference-clean-v7.webp") center center / cover no-repeat;
}
/* Keep a consistent full width on both desktop and mobile. */
.jp5-cases {display:block;max-width:none!important;min-width:0;}
@media(max-width:800px) {
  .jp5-cases,
  body.page_main .home-flow > .home-section.jp5-cases {background:#f4f9fc!important;}
  .jp5-cases__portrait {display:none!important;}
}

/* v7: woman is part of the actual source image, never render a separate cutout. */
.jp5-cases .jp5-cases__portrait{display:none!important;}

/* STAGE5_V8_HOMEPAGE_EDGE_FIX */
/* Main page home-flow already fills the usable width. Avoid 100vw negative
   gutters here, which can extend underneath the vertical scrollbar. */
body.page_main .home-page-shell > .home-flow > .jp5-cases {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
