.case-page{background:var(--soft)}
.case-page-nav{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:64px;font-weight:700}
.case-page-nav a,.case-page-footer a{text-decoration:none}
.case-page-nav a:hover,.case-page-footer a:hover{text-decoration:underline}
.case-story{width:min(820px,calc(100% - 40px));margin:clamp(2rem,6vw,4.5rem) auto;font-size:1.125rem;line-height:1.65}
.case-story .eyebrow{margin:0 0 1rem;color:var(--blue);font-size:.875rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.case-story h1{font-size:clamp(2rem,4.6vw,3.4rem);line-height:1.1;margin:0 0 1.4rem;overflow-wrap:anywhere}
.case-story h2{font-size:clamp(1.5rem,3vw,2rem);line-height:1.2;margin:2.7rem 0 1rem}
.case-story p{margin:0 0 1rem}
.case-story .lead{font-size:clamp(1.2rem,2.5vw,1.45rem);line-height:1.5}
.case-story .case-tagline{font-size:1.04rem;color:var(--muted);margin-bottom:1.5rem}
.case-story .case-tagline strong{color:var(--dark)}
.case-story figure{margin:1.5rem 0 2rem}
.case-story figure.cover{width:min(1120px,calc(100vw - 40px));position:relative;left:50%;transform:translateX(-50%)}
.case-story .cover img{width:100%;height:auto;border-radius:18px;box-shadow:0 16px 40px #1714452b;background:#0b0c24}
.case-story figcaption{margin:.6rem 0 0;color:var(--muted);font-size:.9rem;line-height:1.4}
.case-story .feature-list{margin:0 0 2rem;padding:0;list-style:none;display:grid;gap:1rem}
.case-story .feature-list li{background:#fff;padding:1rem 1.25rem;border:1px solid var(--line);border-radius:12px}
.case-story .feature-list strong{color:#25233e}
.case-story .showcase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.45rem;align-items:start;margin:2rem 0 .9rem}
.case-story .showcase .gallery-item{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center}
.gallery-trigger{background:transparent;border:0;padding:8px;cursor:zoom-in;width:100%;display:flex;align-items:center;justify-content:center;border-radius:30px;transition:transform .2s ease}
.gallery-trigger:hover{transform:translateY(-5px)}
.gallery-trigger:focus-visible,.lightbox-close:focus-visible,.lightbox-bottom button:focus-visible{outline:3px solid #9c80ff;outline-offset:3px}
.iphone-mockup{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:min(100%,230px);aspect-ratio:430/930;padding:22px 7px 9px;border:5px solid #0e0e16;border-radius:37px;background:linear-gradient(120deg,#333344,#14151f 30%,#3e3d4d 90%);box-shadow:0 16px 30px rgba(21,17,56,.25),inset 0 0 0 1px rgba(255,255,255,.12);overflow:hidden}
.iphone-mockup:before{content:'';position:absolute;top:22%;right:-2px;width:3px;height:12%;border-radius:3px;background:#7c7b91}
.iphone-island{position:absolute;z-index:2;top:7px;left:50%;transform:translateX(-50%);width:34%;height:13px;background:#050509;border-radius:16px;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.iphone-display{display:block;width:100%;min-height:0;flex:1;overflow:hidden;border-radius:25px;background:#111020}
.iphone-display img{display:block;width:100%;height:100%;object-fit:fill}
.case-story .gallery-item figcaption{width:100%;display:flex;flex-direction:column;gap:3px;text-align:center;padding:0 .4rem;margin:.35rem 0 0}
.case-story .gallery-item figcaption strong{color:#292541;font-size:.96rem;line-height:1.3}
.case-story .gallery-item figcaption span{font-size:.84rem;color:var(--muted);line-height:1.35}
.case-story .media-note{font-size:.84rem;color:var(--muted);margin:.6rem 0 2rem}
.case-story .try-app{border-left:4px solid #7c56ee;padding:1rem 1.25rem;background:#eeebfd;border-radius:0 10px 10px 0;margin:1.5rem 0}
.case-story .contact-cta{background:#16172e;color:#f9f7ff;border-radius:19px;padding:clamp(1.35rem,4vw,2.3rem);margin-top:2.5rem;box-shadow:0 16px 35px #24234b25}
.case-story .contact-cta h2{margin:0 0 1rem;color:#fff}
.case-story .contact-cta p{color:#edebf8}
.case-story .contact-button{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:48px;padding:13px 24px;margin-top:1rem;background:#8b5cf6;border-radius:11px;color:white;font-weight:700;text-decoration:none;text-align:center}
.case-story .contact-button:hover{background:#7551d6}
.case-page-footer{text-align:center;padding:1.75rem 20px;border-top:1px solid var(--line);background:#fff;font-weight:700}
body.gym-modal-open{overflow:hidden}
.gym-lightbox{border:1px solid #59516f;border-radius:24px;padding:0;width:min(95vw,590px);max-width:none;max-height:calc(100dvh - 16px);background:#161424;color:#fff;box-shadow:0 30px 120px rgba(0,0,0,.5);overflow:hidden}
.gym-lightbox:not([open]){display:none}
.gym-lightbox::backdrop{background:rgba(7,6,19,.85);backdrop-filter:blur(7px)}
.lightbox-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 16px);min-height:0}
.lightbox-head{padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#201d33}
.lightbox-eyebrow{display:block;color:#baa7ed;font-weight:700;font-size:.69rem;letter-spacing:.12em}
.lightbox-head h2{font-size:1rem;line-height:1.25;font-weight:700;margin:.15rem 0 0;color:#fff}
.lightbox-close{display:grid;place-items:center;border:1px solid #736a86;border-radius:12px;width:42px;height:42px;flex:0 0 42px;background:#342d4a;color:#fff;font-size:1.65rem;cursor:pointer}
.lightbox-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:18px 14px;display:flex;align-items:flex-start;justify-content:center;scrollbar-color:#766399 #221f33}
.lightbox-phone{width:min(370px,calc(100vw - 90px));flex:none;box-shadow:0 12px 40px rgba(0,0,0,.5)}
.lightbox-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px 12px;background:#201d33}
.lightbox-bottom button{background:#383052;color:#fff;border:1px solid #62577f;border-radius:10px;cursor:pointer;font-size:.92rem;font-weight:700;min-height:42px;padding:0 14px}
.lightbox-bottom button:hover,.lightbox-close:hover{background:#51446d}
.lightbox-count{white-space:nowrap;font-size:.87rem;color:#d9ccef}
@media(max-width:650px){.case-story{font-size:1rem;line-height:1.6}.case-story .showcase{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem .6rem}.case-story .feature-list li{padding:1rem}.case-story .cover img{border-radius:12px}.case-story figcaption{font-size:.83rem}.iphone-mockup{border-radius:30px;padding:17px 5px 7px;border-width:4px}.iphone-island{top:6px;height:10px}.iphone-display{border-radius:20px}}
@media(max-width:430px){.case-page-nav{font-size:.9rem}.case-story .contact-button{width:100%}.case-story .gallery-item figcaption span{font-size:.77rem}.gallery-trigger{padding:4px}.lightbox-head{padding:10px 13px}.lightbox-scroll{padding:12px 6px}.lightbox-bottom{padding:9px 11px}.lightbox-bottom button{padding:0 10px}}
@media(prefers-reduced-motion:reduce){.gallery-trigger{transition:none}}
