.gallery{grid-template-columns:minmax(0,1fr);grid-template-rows:98px minmax(250px,1fr) 224px}
.gallery>*{min-width:0}
.gallery-bottom{min-width:0}
.gallery-stage{perspective:1100px;--travel:1}
.scene{transform-origin:50% 50%;transform:translate3d(calc(var(--travel)*76px),0,-160px) rotateY(calc(var(--travel)*-6deg));clip-path:inset(0 9% 0 9%);transition:opacity .65s cubic-bezier(.22,1,.36,1),transform .9s cubic-bezier(.22,1,.36,1),clip-path .9s cubic-bezier(.22,1,.36,1),visibility .9s}
.scene.leaving{transform:translate3d(calc(var(--travel)*-60px),0,-120px) rotateY(calc(var(--travel)*5deg));clip-path:inset(0 6% 0 6%)}
.scene.active{transform:translate3d(0,0,0) rotateY(0);clip-path:inset(0);z-index:2}
.media-surface{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.scene .cover-video{max-width:100%;height:100%;object-fit:contain}
.stage-controls{perspective:900px}
.stage-controls button{position:relative;width:clamp(66px,9vw,120px);height:clamp(90px,13vw,170px);padding:0;background:#13191c;overflow:hidden;border:1px solid #ffffff14;transform:rotateY(15deg) scale(.94);transition:transform .45s cubic-bezier(.22,1,.36,1),border-color .3s}
.stage-controls button[data-direction="1"]{transform:rotateY(-15deg) scale(.94)}
.stage-controls button img{display:block;width:100%;height:100%;object-fit:cover;opacity:.3;filter:saturate(.65);transition:opacity .35s,filter .35s}
.stage-controls button span{position:absolute;inset:0;display:grid;place-items:center;text-shadow:0 2px 14px #000;font-size:28px}
.stage-controls button:hover,.stage-controls button:focus-visible{transform:rotateY(0) scale(1);background:#13191c;border-color:#ffffff60}
.stage-controls button:hover img,.stage-controls button:focus-visible img{opacity:.7;filter:saturate(1)}
.preview-controls{background:#101719ec;gap:12px;max-width:calc(100% - 32px)}
.preview-progress{width:62px;height:2px;background:#ffffff29;overflow:hidden;display:block}
.preview-progress span{height:100%;width:100%;background:#d8e6df;display:block;transform:scaleX(0);transform-origin:left center}
.preview-clock{font-size:10px;min-width:70px;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:#c6d2cc}
.preview-toggle{border-left:1px solid #ffffff25;padding:6px 0 6px 12px;min-width:51px}
.preview-story{display:flex;flex-direction:column;gap:5px;max-width:430px;min-width:0;flex:1}
.preview-story-count{font-size:10px;letter-spacing:.08em;color:#879a94;font-variant-numeric:tabular-nums}
.preview-story-text{font-size:13px;color:#cbd5cf;line-height:1.6}
.filmstrip{gap:10px;min-width:0;max-width:60%;flex:0 1 60%}
.thumb-track{display:flex;position:relative;gap:10px;min-width:0;flex:1;overflow-x:auto;overflow-y:hidden;padding:9px 3px 11px;perspective:600px;scrollbar-width:thin;scrollbar-color:#55625b transparent}
.position{flex-shrink:0;margin-right:0}
.case-secondary{display:inline-block;color:#c8d6cc;margin:14px 0 0 20px;font-size:13px}
.filmstrip button{transition:opacity .35s,transform .55s cubic-bezier(.22,1,.36,1);transform:rotateY(-9deg) translateZ(-7px)}
.filmstrip button[data-active=true]{transform:translateY(-5px) translateZ(10px);opacity:1}
.filmstrip button[data-active=true]~button{transform:rotateY(9deg) translateZ(-7px)}
.case-media{margin:0;min-width:0}
.case-media figcaption{font-size:11px;color:#8fa098;line-height:1.7;margin-top:13px}
.case-demo{background:#101719;max-width:100%;max-height:65svh}
@media(min-width:1800px){.gallery{grid-template-rows:110px minmax(300px,1fr) 240px}}
@media(max-width:900px){.gallery{grid-template-rows:85px minmax(250px,1fr) 230px}.stage-controls button{width:62px;height:95px}.preview-clock{display:none}.preview-story-text{font-size:12px;max-width:270px}}
@media(max-width:600px){
  .gallery{min-height:740px;grid-template-rows:83px minmax(260px,1fr) 295px}
  .gallery-caption{padding-top:18px;gap:15px}
  .gallery-bottom{margin-top:0;display:flex;flex-direction:column;gap:13px;align-items:stretch}
  .gallery-note.preview-story{display:flex;flex-direction:row;align-items:baseline;gap:11px;margin:0;max-width:100%}
  .preview-story-count{font-size:10px;white-space:nowrap;flex-shrink:0}
  .preview-story-text{font-size:11px;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .preview-controls{left:7px;bottom:7px;gap:8px;padding:4px 8px;max-width:calc(100% - 14px)}
  .preview-label{font-size:10px}.preview-progress{width:40px}.preview-toggle{padding-left:8px;min-width:46px}
  .filmstrip{gap:12px;justify-content:space-between;max-width:100%;width:100%;flex:none}
  .thumb-track{gap:7px;flex:1;padding-top:8px}
  .filmstrip button{width:clamp(32px,11.7vw,48px);height:32px}
  .position{margin-right:0;min-width:43px}
  .stage-controls button,.stage-controls button[data-direction="1"]{width:32px;height:46px;transform:none;background:#101719c9;border:0}
  .stage-controls button img{display:none}.stage-controls button span{font-size:23px}
  .scene{transform:translate3d(calc(var(--travel)*30px),0,-30px) rotateY(calc(var(--travel)*-2deg));clip-path:inset(0 3%)}
  .scene.leaving{transform:translate3d(calc(var(--travel)*-25px),0,-30px) rotateY(0)}
  .scene.active{transform:none;clip-path:inset(0)}
  .case-demo{max-height:410px;min-height:0}.case-media figcaption{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.scene,.scene.leaving,.scene.active,.filmstrip button,.filmstrip button[data-active=true],.filmstrip button[data-active=true]~button,.stage-controls button,.stage-controls button[data-direction="1"]{transform:none;clip-path:none}.preview-progress{display:none}}
