/* Case studies cleanup (2026-10-07): consistent evidence frames, readable captions,
   section labels, and an in-page enlarge view. Loaded after styles.css and growth.css. */

/* Evidence frames: every report and client message sits in the same frame; images are
   shown whole (contain), never cropped. The report gets the wide slot, messages the narrow one. */
main .mapped-proof-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:20px;align-items:stretch}
main .mapped-shot:first-child{grid-column:auto}
main .mapped-proof-grid .mapped-shot:only-child{grid-column:1/-1}
main .mapped-shot{display:flex;flex-direction:column;background:#16181c;border:1px solid #ffffff1a;border-radius:12px;padding:12px}
main .mapped-shot a,main .proof-shot>a,main .client-message-grid figure>a{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;background:#0e0f11;border:1px solid #ffffff12;border-radius:8px;overflow:hidden;cursor:zoom-in}
main .mapped-shot a{aspect-ratio:16/10}
main .mapped-shot img{width:100%;height:100%;object-fit:contain}
main .mapped-shot figcaption,main .client-message-grid figcaption{margin-top:12px;font-size:14px;line-height:1.45;color:#c3cad5}
main .proof-shot>a{background:#f4f5f7;padding:12px}
main .proof-shot img{height:340px;object-fit:contain}

/* "Enlarge" hint on anything that opens the in-page view */
main [data-zoom]::after{content:"Enlarge";position:absolute;right:10px;bottom:10px;padding:4px 10px;border-radius:999px;background:#000000b3;color:#fff;font-size:12px;line-height:1.4;pointer-events:none}

/* Section labels inside each case: Challenge, What we did, Reported results */
main .case-part{margin:22px 0 6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--light,#91b9ff)}
main .story-summary .case-part:first-child,main .website-project-story .case-part:first-of-type{margin-top:0}
main .story-summary .case-description{margin:0}
main .story-summary .case-note{font-size:13px;color:#a9b7ca;margin-top:12px}
main .website-project-story .mapped-metrics{margin-top:8px}

/* Enlarge view */
.zoom-view{position:fixed;inset:0;z-index:100;display:none;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:56px 20px 24px;background:#07080acc;backdrop-filter:blur(4px)}
.zoom-view.open{display:flex}
.zoom-view img{max-width:min(1200px,100%);max-height:calc(100vh - 150px);object-fit:contain;background:#fff;border-radius:8px}
.zoom-view p{margin:0;color:#e7ebf1;font-size:15px;text-align:center;max-width:70ch}
.zoom-view .zoom-bar{position:absolute;top:12px;right:16px;display:flex;gap:14px;align-items:center}
.zoom-view a{color:#91b9ff;font-size:14px}
.zoom-view button{background:#ffffff1a;color:#fff;border:1px solid #ffffff33;border-radius:999px;padding:6px 14px;font:inherit;font-size:14px;cursor:pointer}
.zoom-view button:focus-visible,.zoom-view a:focus-visible{outline:2px solid #91b9ff;outline-offset:3px}

.zoom-scroll{max-width:100%;display:flex;justify-content:center}
.zoom-hint{display:none;color:#a9b7ca;font-size:13px}
@media(max-width:760px){
 .zoom-view.wide .zoom-scroll{overflow-x:auto;justify-content:flex-start;-webkit-overflow-scrolling:touch}
 .zoom-view.wide img{max-width:none;width:auto;height:min(46vh,420px);max-height:none}
 .zoom-view.wide .zoom-hint{display:block}
 main .mapped-proof-grid{grid-template-columns:1fr}
 main .mapped-shot a{aspect-ratio:4/3}
 main .proof-shot img{height:auto;max-height:320px}
 .zoom-view{padding:52px 10px 16px}
 .zoom-view img{max-height:calc(100vh - 130px)}
}

/* Store-sales cards already say "View full-size report"; skip the extra tag there. */
main .proof-shot>a[data-zoom]::after{display:none}

main .results-glance .growth-number-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
main .results-glance dt{font-size:13px}
main .results-glance .glance-note{margin-top:28px}
@media(max-width:760px){main .results-glance .growth-number-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
