.case-gallery{position:absolute;right:-2%;top:24px;bottom:48px;width:58%;z-index:1;isolation:isolate;min-height:520px}
.gallery-atmosphere{position:absolute;inset:8% 0 8% 3%;z-index:-2;overflow:hidden;border-radius:50%;filter:blur(30px);opacity:.8;mask-image:radial-gradient(ellipse,#000 10%,transparent 72%)}
.gallery-atmosphere i{position:absolute;width:80%;height:70%;border-radius:50%;animation:gallery-mist 16s ease-in-out infinite alternate;mix-blend-mode:multiply}
.gallery-atmosphere i:nth-child(1){background:radial-gradient(ellipse,#aad2c9a6,transparent 70%);left:15%;top:14%}
.gallery-atmosphere i:nth-child(2){background:radial-gradient(ellipse,#f4ecd9e6,transparent 72%);right:10%;top:-5%;animation-delay:-5s}
.gallery-atmosphere i:nth-child(3){background:radial-gradient(ellipse,#cbdbe7a6,transparent 70%);left:5%;bottom:-5%;animation-delay:-10s}
.gallery-topline,.gallery-bottomline{display:flex;align-items:center;justify-content:space-between;position:absolute;font:7px Arial,"Microsoft YaHei",sans-serif;letter-spacing:1.5px;color:#687674;left:13%;right:12%;z-index:4;pointer-events:none}
.gallery-topline{top:8%}.gallery-live{display:flex;gap:6px;align-items:center;letter-spacing:1px;font-size:8px}.gallery-live i{width:4px;height:4px;background:var(--studio-teal);border-radius:50%}
.gallery-bottomline{bottom:8%;font-size:8px;letter-spacing:.4px;color:#737373}
.gallery-statement{position:absolute;right:13%;top:16%;text-align:right;font:21px/.98 Arial,sans-serif;letter-spacing:-.7px;color:var(--studio-navy);z-index:2;pointer-events:none}.gallery-statement em{display:inline-block;font-style:normal;font-size:9px;letter-spacing:.8px;margin-top:11px;color:#5a686b}
.gallery-orbit{position:absolute;inset:24% 3% 26% 4%;border:1px solid #247f7a18;border-radius:50%;transform:rotate(28deg);z-index:-1}.gallery-orbit:after{content:"";position:absolute;inset:-10% 3%;border-radius:50%;border:1px dashed #c7b89734}
#case-canvas,.case-poster{position:absolute;display:block;z-index:2;pointer-events:none}
#case-canvas{opacity:0;touch-action:pan-y}
.gallery-ready #case-canvas{opacity:1;pointer-events:auto}
.gallery-ready .case-fallback,.gallery-ready .case-poster,.gallery-fallback .case-poster{display:none}
.case-poster{container-type:size}
.case-poster img{display:block;width:100%;height:100%;object-fit:cover}
@container (aspect-ratio < 1){
  .case-poster img{content:url('/assets/cases/gallery-first-frame-mobile.webp');object-fit:contain}
}
@container (aspect-ratio > 1.8){
  .case-poster img{object-fit:fill}
}
@container (aspect-ratio > 1.9){
  .case-poster img{content:url('/assets/cases/gallery-first-frame-wide.webp')}
}
.case-fallback{display:none}.gallery-fallback .case-fallback{display:block}
.gallery-focus-line{position:absolute;left:9%;bottom:29%;font-size:8px;color:#596762;display:flex;align-items:center;gap:12px;z-index:1;letter-spacing:.5px;pointer-events:none}.gallery-focus-line i{width:25px;height:1px;background:#91afa6}
.gallery-console{position:absolute;left:17%;right:13%;bottom:14%;z-index:5;display:flex;align-items:center;gap:14px;justify-content:space-between}
.case-caption{display:flex;align-items:center;gap:11px;background:#ffffffc9;border:1px solid #fff;backdrop-filter:blur(18px);padding:9px 13px 9px 9px;border-radius:12px;box-shadow:0 12px 35px #17324d0d,inset 0 1px 0 #fff;text-align:left;min-width:225px;transition:transform .4s var(--ease),background .3s}
.case-caption:hover{transform:translateY(-4px);background:#fff}.case-caption>img{width:40px;height:43px;object-fit:cover;border-radius:6px}.case-caption small{display:block;color:#687a73;font-size:7px;font-weight:400;letter-spacing:.6px;margin-bottom:7px}.case-caption strong{font-size:10px;font-weight:500;color:var(--studio-navy)}.case-caption-play{margin-left:auto;border:1px solid #c4d4ce;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-size:7px;padding-left:1px;color:var(--studio-teal)}
.case-navigation{display:flex;align-items:center;gap:13px}.case-navigation button{width:31px;height:31px;border:1px solid #d9e1df;border-radius:50%;background:#ffffff94;color:var(--studio-navy);font-size:16px;transition:background .3s,transform .3s}.case-navigation button:hover{background:var(--studio-champagne);transform:translateY(-2px)}.case-count{display:flex;align-items:center;gap:7px;color:#9ba3a0;font:8px Arial,sans-serif;white-space:nowrap}.case-count b{color:var(--studio-navy);font-weight:400}.case-count i{font-style:normal;color:#c8ceca}
.case-fallback{position:absolute;inset:0;perspective:800px}.case-fallback button{position:absolute;padding:0;width:39%;aspect-ratio:1.6;left:calc(2% + var(--i)*10%);top:calc(18% + var(--i)*7%);transform:rotateY(-24deg) rotateZ(-13deg);background:#17324d;box-shadow:9px 13px 23px #17324d22;clip-path:none;border-radius:0;transition:transform .8s var(--ease);z-index:calc(7 - var(--i))}.case-fallback button:nth-child(3){width:49%;left:24%;top:32%;z-index:8;transform:rotateY(-18deg) rotateZ(-7deg)}.case-fallback img{display:block;width:100%;height:100%;object-fit:cover}.case-fallback button:hover{transform:rotateY(0deg) rotateZ(0deg) translateY(-10px)}
.case-dialog{width:min(970px,93vw);padding:32px;background:#fff}.case-dialog-close{position:absolute;right:18px;top:15px;background:#f0f3f2;border-radius:50%;font-size:25px;width:34px;height:34px;color:#525252;z-index:2}.case-dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:8px 7px 23px}.case-dialog-heading h2{font-size:27px;margin:14px 0 8px;line-height:1.4}.case-dialog-heading p{font-size:10px;color:#737373;margin:0;line-height:1.7}.case-dialog-heading .eyebrow{font-size:8px;color:var(--studio-teal)}.case-dialog-mark{font:50px Arial,sans-serif;color:#cfddd7;margin-right:23px}.case-video-wrap{border-radius:9px;background:#122539;overflow:hidden;position:relative;aspect-ratio:16/9}.case-video-wrap video{display:block;width:100%;height:100%;object-fit:contain}.case-video-wrap p{position:absolute;inset:auto 15px 30%;font-size:12px;line-height:2;text-align:center;color:white;background:#17324dcc;padding:15px;border-radius:6px}.case-video-wrap [hidden]{display:none}.case-dialog-footer{display:flex;justify-content:space-between;align-items:center;font-size:9px;padding:20px 7px 3px;color:#737373}.case-dialog-footer a{color:var(--studio-teal);border-bottom:1px solid #bdcfc8;padding-bottom:4px}.case-dialog::backdrop{background:#142b4285;backdrop-filter:blur(14px)}
@keyframes gallery-mist{to{transform:translate(-7%,8%) scale(1.12)}}
@media(min-width:1550px){.case-gallery{right:calc((100vw - 1540px)/2);width:860px}}
@media(max-width:1150px) and (min-width:761px){.case-gallery{right:-5%;width:59%;top:5px;bottom:50px}.gallery-console{left:13%;right:11%;gap:8px;flex-wrap:wrap;bottom:12%}.case-navigation{gap:8px}.case-caption{min-width:210px}.gallery-bottomline{bottom:5%}.gallery-statement{font-size:17px}.gallery-focus-line{font-size:7px;bottom:30%}}
@media(max-width:760px){.hero{min-height:890px}.case-gallery{position:relative;inset:auto;width:116%;left:-8%;height:420px;min-height:0;margin-top:0}.gallery-topline{top:5%;left:10%;right:10%;font-size:5px;letter-spacing:1px}.gallery-live{font-size:6px;letter-spacing:0;gap:4px}.gallery-statement{top:11%;right:11%;font-size:13px;letter-spacing:-.2px}.gallery-statement em{font-size:5px;letter-spacing:.4px;margin-top:7px}.gallery-atmosphere{inset:7% 1% 13% 3%;filter:blur(18px)}.gallery-console{left:10%;right:10%;bottom:9%;gap:10px}.case-caption{min-width:0;flex:1;padding:7px 8px;gap:8px;border-radius:9px}.case-caption>img{width:31px;height:34px;border-radius:4px}.case-caption small{font-size:6px;letter-spacing:.3px;margin-bottom:5px}.case-caption strong{font-size:8px;white-space:nowrap}.case-caption-play{width:19px;height:19px;font-size:6px;flex-shrink:0}.case-navigation{gap:7px}.case-navigation button{width:26px;height:26px;font-size:14px}.case-count{font-size:7px;gap:4px}.gallery-bottomline{left:11%;right:11%;bottom:3%;font-size:6px;letter-spacing:0}.gallery-focus-line{left:10%;bottom:25%;font-size:6px;gap:8px}.gallery-focus-line i{width:18px}.gallery-orbit{inset:20% 2% 26%}.case-dialog{padding:22px 15px}.case-dialog-close{right:11px;top:10px;width:28px;height:28px;font-size:22px}.case-dialog-heading{padding:5px 5px 20px}.case-dialog-heading h2{font-size:21px;margin:14px 0 9px}.case-dialog-heading p{font-size:8px;max-width:240px}.case-dialog-mark{font-size:33px;margin:0 10px 0 0}.case-dialog-heading .eyebrow{font-size:6px}.case-dialog-footer{font-size:7px;padding:17px 5px 3px;gap:20px}.case-video-wrap{border-radius:5px}.case-video-wrap p{font-size:10px;padding:8px}}
@media(prefers-reduced-motion:reduce){.gallery-atmosphere i{animation:none}#case-canvas{transition:none}}

/* Let the ribbon enter and leave outside the hero, while the copy keeps its own space. */
#case-canvas,.case-poster{left:-6%;top:-6%;width:130%;height:112%;mask-image:linear-gradient(90deg,transparent,#000 10%,#000);-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000)}
@media(min-width:1550px){.case-gallery{right:-7%;width:61%}}
@media(max-width:1150px) and (min-width:761px){#case-canvas,.case-poster{left:0;width:127%}}
@media(max-width:760px){#case-canvas,.case-poster{left:-14%;top:-8%;width:128%;height:118%;mask-image:none;-webkit-mask-image:none}}
.case-gallery:not(.gallery-ready) .gallery-atmosphere i,.gallery-paused .gallery-atmosphere i{animation-play-state:paused}
@media (hover:hover) {
  .case-fallback button {
    transition: transform .35s var(--ease), translate .25s var(--ease),
      filter .12s ease-out, opacity .12s ease-out;
  }
  .case-fallback button:has(+button:hover), .case-fallback button:hover + button {
    filter: blur(4px) saturate(.93);
    opacity: .96;
  }
  body:not(.motion-off) .case-fallback button:has(+button:hover) { translate: -18px -3px; }
  body:not(.motion-off) .case-fallback button:hover + button { translate: 18px 3px; }
}
