/* BIGPIE case-study page: all selectors scoped to #bp-case; existing theme remains intact. */

#bp-case {margin-top:200px; position:relative;}

.bp-case__stats {
  margin-top: 200px;
  position: relative;
}

#bp-case{--bp-ink:#111;--bp-paper:#fff;--bp-gutter:clamp(20px,4.3vw,84px);--bp-radius:clamp(18px,2.7vw,44px);color:var(--bp-ink);background:var(--bp-paper);font-family:inherit;overflow:hidden}
#bp-case *,#bp-case *::before,#bp-case *::after{box-sizing:border-box}
#bp-case .bp-case__container{width:100%;max-width:1920px;margin:0 auto;padding-inline:var(--bp-gutter)}
#bp-case h1,#bp-case h2,#bp-case h3,#bp-case p,#bp-case figure{margin:0}
#bp-case h1,#bp-case h2,#bp-case h3{font-family:inherit;letter-spacing:-.065em;line-height:.94;font-weight:800}
#bp-case p{line-height:1.45}
#bp-case .bp-case__intro{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(32px,6vw,112px);padding-block:clamp(64px,8vw,154px) clamp(46px,6vw,112px)}
#bp-case .bp-case__eyebrow,#bp-case .bp-case__section-index,#bp-case .bp-case__gallery-heading,#bp-case .bp-case__gallery-count{font-size:clamp(11px,.87vw,15px);font-weight:700;letter-spacing:.01em}
#bp-case .bp-case__eyebrow{margin-bottom:clamp(26px,4vw,66px)}
#bp-case .bp-case__eyebrow span{margin-inline:10px}
#bp-case .bp-case__title{font-size:clamp(68px,9.2vw,176px);max-width:840px;line-height:.82;overflow-wrap:normal}
#bp-case .bp-case__outline-link{display:inline-flex;align-items:center;gap:26px;margin-top:clamp(25px,3.5vw,56px);padding:11px 23px;border:1px solid currentColor;border-radius:100px;color:inherit;font-size:14px;text-decoration:none;transition:background .25s,color .25s}
#bp-case .bp-case__outline-link:hover{background:#111;color:#fff}
#bp-case .bp-case__stats>h2{font-size:clamp(36px,4.6vw,88px);margin-bottom:27px}
#bp-case .bp-case__stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#bp-case .bp-case__text-block{color:#111;background:#fff;border-radius:6px;transition:background-color .24s ease,color .24s ease;outline-offset:3px}
#bp-case .bp-case__text-block:hover,#bp-case .bp-case__text-block:focus-visible{background:#111;color:#fff}
#bp-case .bp-case__text-block--compact{padding:clamp(14px,1.6vw,29px)}
#bp-case .bp-case__text-block--compact h3{font-size:clamp(21px,2vw,37px);margin-bottom:12px}
#bp-case .bp-case__text-block--compact p{font-size:clamp(13px,1vw,17px);max-width:460px}
#bp-case .bp-case__gallery{padding-block:12px clamp(58px,7vw,120px)}
#bp-case .bp-case__gallery-heading{display:flex;justify-content:space-between;gap:16px;padding-bottom:20px}
#bp-case .bp-case__gallery-track{display:flex;gap:clamp(12px,1.5vw,28px);overflow-x:auto;overflow-y:hidden;padding-inline:var(--bp-gutter);padding-block:0 15px;scroll-snap-type:x proximity;scrollbar-width:none;cursor:grab;touch-action:pan-y;user-select:none;overscroll-behavior-inline:contain}
#bp-case .bp-case__gallery-track::-webkit-scrollbar{display:none}
#bp-case .bp-case__gallery-track.is-dragging{cursor:grabbing;scroll-snap-type:none}
#bp-case .bp-case__gallery-card{flex:0 0 clamp(220px,30vw,490px);aspect-ratio:6/9;position:relative;scroll-snap-align:center;border-radius:var(--bp-radius);overflow:hidden;background:#ddd}
#bp-case .bp-case__gallery-card img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
#bp-case .bp-case__gallery-card figcaption{position:absolute;bottom:17px;left:21px;color:#fff;font-size:12px;font-weight:700;text-shadow:0 1px 7px #0008}
#bp-case .bp-case__gallery-controls{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
#bp-case .bp-case__gallery-controls div{display:flex;gap:10px}
#bp-case .bp-case__gallery-controls button{border:1px solid #111;background:#fff;color:#111;width:45px;height:45px;border-radius:50%;font:inherit;font-size:20px;cursor:pointer;transition:background .2s,color .2s}
#bp-case .bp-case__gallery-controls button:hover{background:#111;color:#fff}
#bp-case .bp-case__section{margin-bottom:clamp(65px,8vw,156px)}
#bp-case .bp-case__objectives{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,2.4vw,44px)}
#bp-case .bp-case__feature-block{min-height:clamp(360px,30vw,570px);padding:clamp(26px,4.2vw,78px);border:1px solid #111}
#bp-case .bp-case__feature-block:nth-child(2){background:#111;color:white}
#bp-case .bp-case__feature-block:nth-child(2):hover,#bp-case .bp-case__feature-block:nth-child(2):focus-visible{background:#fff;color:#111}
#bp-case .bp-case__section-index{display:block;margin-bottom:clamp(24px,4vw,64px)}
#bp-case .bp-case__feature-block h2,#bp-case .bp-case__story-copy h2,#bp-case .bp-case__bottom-heading h2{font-size:clamp(42px,5.2vw,104px);margin-bottom:clamp(22px,3vw,50px)}
#bp-case .bp-case__feature-block p{font-size:clamp(16px,1.45vw,26px);max-width:670px;margin-top:21px}
#bp-case .bp-case__wide-photo{margin:0 var(--bp-gutter) clamp(70px,8vw,160px);height:clamp(280px,48vw,820px);border-radius:var(--bp-radius);overflow:hidden;background:#d5d8c7}
#bp-case .bp-case__wide-photo img,#bp-case .bp-case__mask img,#bp-case .bp-case__final-image img{width:100%;height:100%;object-fit:cover;display:block}
#bp-case .bp-case__wide-photo img{object-position:center 52%}
#bp-case .bp-case__story{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(25px,5vw,95px);align-items:center}
#bp-case .bp-case__story-copy{padding:clamp(24px,3vw,58px)}
#bp-case .bp-case__story-copy p{font-size:clamp(15px,1.25vw,22px);max-width:680px;margin-top:22px}
#bp-case .bp-case__story-copy .bp-case__credit{font-size:13px;margin-top:36px}
#bp-case .bp-case__story-illustration{overflow:hidden}
#bp-case .bp-case__story-illustration img{display:block;width:100%;height:auto;} /*filter:grayscale(1);mix-blend-mode:multiply*/
#bp-case .bp-case__bottom-heading{padding-bottom:clamp(40px,5vw,90px)}
#bp-case .bp-case__bottom-heading h2{margin-bottom:0}
#bp-case .bp-case__mask-row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(12px,2vw,36px);padding-inline:var(--bp-gutter);width: 100%;}
#bp-case .bp-case__mask{aspect-ratio:1;overflow:hidden;isolation:isolate;background:#ddd;width: 100%;}
#bp-case .bp-case__mask--left{clip-path:polygon(0px 0px,100% 0px,100% 100%,0% 70%);/*! border-radius:var(--bp-radius) */}
#bp-case .bp-case__mask--right{clip-path:polygon(0px 0px,100% 0px,100% 70%,0% 100%);/*! border-radius:var(--bp-radius) */}
#bp-case .bp-case__mask img{transition:transform .55s ease}
#bp-case .bp-case__mask:hover img{transform:scale(1.035)}
#bp-case .bp-case__descriptions{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding-block:clamp(50px,6vw,110px)}
#bp-case .bp-case__final-image{width:100%;height:clamp(300px,58vw,1020px);overflow:hidden;background:#dfdfdf}
#bp-case .bp-case__final-image img{object-position:center}
@media(max-width:820px){#bp-case .bp-case__intro{grid-template-columns:1fr;gap:54px}#bp-case .bp-case__title{font-size:clamp(66px,13vw,115px)}#bp-case .bp-case__objectives,#bp-case .bp-case__story{grid-template-columns:1fr}#bp-case .bp-case__feature-block{min-height:unset}#bp-case .bp-case__gallery-card{flex-basis:clamp(220px,58vw,430px)}#bp-case .bp-case__story-illustration{max-height:420px}#bp-case .bp-case__descriptions{grid-template-columns:1fr 1fr}}
@media(max-width:540px){#bp-case .bp-case__stats-grid,#bp-case .bp-case__descriptions{grid-template-columns:1fr}#bp-case .bp-case__gallery-card{flex-basis:72vw}#bp-case .bp-case__gallery-heading{font-size:11px}#bp-case .bp-case__mask-row{grid-template-columns:1fr}#bp-case .bp-case__mask{aspect-ratio:1.35}#bp-case .bp-case__wide-photo{margin-inline:16px}#bp-case .bp-case__feature-block{padding:28px}#bp-case .bp-case__stats>h2{font-size:54px}}
@media(prefers-reduced-motion:reduce){#bp-case *,#bp-case *::before,#bp-case *::after{transition-duration:.01ms!important;scroll-behavior:auto!important}}
