/* AZO V5.81 — authentic separated post designs and vertical reel covers. */
/* Full case studies: posts retain 4:5; reel covers retain 9:16 inside phone frames. */
#work .azo-cases-v580 .azo-pcase-shot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;min-height:0;max-height:none;gap:10px;align-content:start}
#work .azo-cases-v580 .azo-pcase-shot{grid-row:auto!important;aspect-ratio:4/5;min-width:0;min-height:0;max-height:none;overflow:hidden;border-radius:14px}
#work .azo-cases-v580 .azo-pcase-shot img{width:100%;height:100%;display:block;object-fit:contain;object-position:center;background:rgba(255,255,255,.035)}
#work .azo-cases-v580 .azo-pcase-devices{min-height:0;align-items:center;gap:16px;padding:20px 8px;justify-content:center}
#work .azo-cases-v580 .azo-pcase-device{width:min(100%,160px);flex:0 1 160px;max-width:46%;aspect-ratio:9/19.5}
#work .azo-cases-v580 .azo-pcase-device-screen img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
#work .azo-cases-v580 .azo-pcase-showcase{grid-template-columns:minmax(0,1.55fr) minmax(0,.9fr);align-items:start}
#work .azo-cases-v580 .azo-pcase-gallery,#work .azo-cases-v580 .azo-pcase-reels{gap:12px}
#work .azo-cases-v580 .azo-pcase-minihead small{white-space:normal;text-align:end}
/* Home teaser cards; identity and media types are kept distinct. */
#work .azo-cases-home-v581{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(10px,1.4vw,20px);width:100%;max-width:100%;margin-block:clamp(24px,3vw,42px);align-items:stretch}
#work .azo-cases-home-v581 *{box-sizing:border-box}
#work .azo-home-case{isolation:isolate;overflow:hidden;position:relative;min-width:0;display:flex;flex-direction:column;gap:16px;border:1px solid rgba(255,255,255,.34);border-radius:24px;padding:clamp(15px,1.7vw,23px);background:linear-gradient(140deg,rgba(255,255,255,.14),rgba(255,255,255,.04) 65%);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 19px 40px rgba(106,46,4,.1);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#work .azo-home-case:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(circle at 0 0,rgba(255,255,255,.14),transparent 43%)}
#work .azo-home-case-head small{display:block;font-size:10px;letter-spacing:.085em;color:rgba(255,255,255,.75)}
#work .azo-home-case-head h4{font-size:clamp(22px,2.15vw,32px);margin:8px 0 7px;line-height:1.3;overflow-wrap:anywhere}
#work .azo-home-case-head p{font-size:clamp(12px,1.05vw,15px);line-height:1.68;margin:0;color:rgba(255,255,255,.9)}
#work .azo-home-case-visuals{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.78fr);align-items:end;gap:12px;min-width:0}
#work .azo-home-case-post,#work .azo-home-case-reel{min-width:0;display:flex;flex-direction:column;gap:8px;align-items:center}
#work .azo-home-case-post small,#work .azo-home-case-reel small{font-size:11px;font-weight:650;color:rgba(255,255,255,.85);width:100%;text-align:center}
#work .azo-home-case-post img{width:100%;aspect-ratio:4/5;object-fit:contain;display:block;border-radius:11px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.07)}
#work .azo-home-case-phone{aspect-ratio:9/19.5;max-width:125px;width:100%;position:relative;padding:3px;border:3px solid rgba(255,255,255,.9);border-radius:19px;background:#0f0f0f;overflow:hidden;box-shadow:0 9px 18px rgba(85,38,5,.18)}
#work .azo-home-case-phone img{width:100%;height:100%;display:block;object-fit:cover;border-radius:13px}
#work .azo-home-case-notch{position:absolute;z-index:2;top:6px;left:50%;transform:translateX(-50%);width:29%;height:7px;border-radius:0 0 8px 8px;background:#111}
#work .azo-home-case-foot{margin-top:auto;display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-top:12px;border-top:1px solid rgba(255,255,255,.27)}
#work .azo-home-case-foot>div{font-size:11px;display:flex;align-items:center;gap:5px;color:rgba(255,255,255,.88)}
#work .azo-home-case-foot a{display:inline-flex;align-items:center;gap:5px;color:#fff;font-size:12px;font-weight:700;text-decoration:none;padding:9px 12px;border:1px solid rgba(255,255,255,.4);border-radius:100px;background:rgba(255,255,255,.12);transition:background .2s ease,transform .2s ease}
#work .azo-home-case-foot a svg{width:16px;height:16px;transform:scaleX(-1)}
@media(hover:hover){#work .azo-home-case-foot a:hover{background:rgba(255,255,255,.24);transform:translateY(-2px)}}
@media(max-width:980px){#work .azo-cases-home-v581{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:830px){#work .azo-cases-v580 .azo-pcase-showcase{grid-template-columns:1fr;gap:20px}#work .azo-cases-v580 .azo-pcase-shot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){#work .azo-cases-home-v581{grid-template-columns:1fr!important;gap:14px}#work .azo-home-case{gap:13px;border-radius:22px;padding:17px}#work .azo-home-case-head h4{font-size:clamp(23px,7vw,31px)}#work .azo-home-case-head p{font-size:13px}#work .azo-home-case-visuals{grid-template-columns:minmax(0,1.05fr) minmax(0,.7fr);gap:15px;max-width:330px;margin-inline:auto;width:100%}#work .azo-home-case-post img{max-height:260px}#work .azo-home-case-phone{max-width:118px}#work .azo-cases-v580 .azo-pcase-shot-grid{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;gap:10px;padding-bottom:8px;min-height:0;max-height:none}#work .azo-cases-v580 .azo-pcase-shot{flex:0 0 min(70%,240px);aspect-ratio:4/5;scroll-snap-align:start}#work .azo-cases-v580 .azo-pcase-devices{min-height:0;padding:14px 6px;gap:14px}#work .azo-cases-v580 .azo-pcase-device{max-width:44%;flex-basis:140px}}
@media(prefers-reduced-motion:reduce){#work .azo-home-case-foot a{transition:none}}
