/* Scene text follows the four original Figma frames; tertiary headings are solid. */
/* Narrow screens use the reference's header-adjusted media viewport, without a trailing spacer. */
@media(max-width:1199px){
 body #scenes{height:auto;padding-bottom:0}
 body #scenes .scene-stage{position:relative;top:auto;height:calc(100svh - 56px);min-height:640px}
 body #scenes .scene-main{height:100%;min-height:0}
 body #scenes .scene-footer{position:absolute;inset:auto 0 0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;padding:16px 20px;margin:0;background:#fff;border-top:1px solid #e4e9e8;backdrop-filter:none;z-index:5}
 body #scenes .scene-options{position:static;transform:none;display:flex;justify-content:center;gap:12px;width:auto;margin:0;grid-column:2;grid-row:1;min-width:0}
 body #scenes .scene-option{padding:8px 16px;min-height:44px;border:1px solid #d9e2e5;background:#f0f4f5;border-radius:6px}
 body #scenes .scene-option strong{font-size:14px;line-height:24px;color:#536469;white-space:nowrap}
 body #scenes .scene-option[aria-selected=true] strong{color:#fff}
 body #scenes .scene-direction{font-size:14px;line-height:24px;min-height:44px;gap:8px;color:#66777b;white-space:nowrap}
 body #scenes .scene-direction>span[aria-hidden]{width:32px;height:32px;min-width:32px;min-height:32px;background:#f0f5f4;border:0;border-radius:50%}
 body #scenes #scene-prev{grid-column:1;grid-row:1}
 body #scenes #scene-next{grid-column:3;grid-row:1;margin:0}
 body #scenes .asset-caption{bottom:94px}
 body #scenes .scene-copy{max-height:calc(100% - 190px);overflow-y:auto}
}
@media(max-width:767px){
 body #scenes .scene-footer{grid-template-columns:1fr 1fr;gap:12px;padding:12px 20px}
 body #scenes .scene-options{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 body #scenes .scene-option{padding:8px 2px}
 body #scenes #scene-prev{grid-column:1;grid-row:2;justify-self:start}
 body #scenes #scene-next{grid-column:2;grid-row:2;justify-self:end}
 body #scenes .asset-caption{bottom:132px}
 body #scenes .scene-copy{max-height:calc(100% - 210px)}
}
/* White section above dissolves vertically into the full-contrast scene below. */
body .scene-photo{opacity:1}
body .scene-overlay{background:linear-gradient(180deg,#fff 0%,rgb(255 255 255 / .9) 22%,rgb(255 255 255 / .5) 58%,rgb(255 255 255 / 0) 100%);height:clamp(240px,28vw,460px);bottom:auto;pointer-events:none}
body .scene-copy{isolation:isolate}
body .scene-copy::before{content:"";position:absolute;inset:-24px -32px;z-index:-1;background:radial-gradient(ellipse at 30% 30%,#ffffffb8,transparent 74%);pointer-events:none}
body .scene-copy h3 span{background:none;background-clip:initial;-webkit-text-fill-color:currentColor;color:inherit}
body .scene-copy{top:120px;width:480px;max-width:calc(100% - 40px)}
body .scene-copy h3{margin-bottom:16px}
body .scene-copy p{margin:0}
body .scene-copy .tags{margin-top:32px;gap:24px;flex-wrap:wrap}
body .scene-copy .tags span{padding:4px 20px;border:1px solid white;border-radius:8px;background:rgb(204 204 204 / .2)}
/* Keep one-screen browsing, with a dedicated information surface below each image. */
body .cases .case-card{display:grid;grid-template-rows:minmax(0,1fr) auto auto;background:#202b34;overflow:hidden}
body .cases .case-image{position:relative;inset:auto;height:100%;aspect-ratio:auto;min-height:180px;z-index:auto;background-size:cover;background-position:center}
body .cases .case-image::after{background:linear-gradient(0deg,rgba(10,23,31,.25),transparent 65%)}
body .cases .case-content{position:relative;inset:auto;padding:24px 32px 12px;align-items:center;background:#202b34}
body .cases .case-content h3{margin:6px 0 8px;font-size:24px;line-height:34px}
body .cases .case-content p{margin:0;color:#bdc9d1;font-size:16px;line-height:26px}
body .cases .case-content .case-open{flex:none;width:48px;height:48px;margin:0}
body .cases .case-figures{position:relative;inset:auto;margin:0 32px;padding:18px 0 24px;border-top:1px solid #ffffff20;gap:24px;font-size:14px;line-height:22px;flex-wrap:wrap}
body .cases .case-figures b{font-size:28px;line-height:36px;margin-right:6px}
body .cases .case-figures small{font-size:12px;color:#bdc9d1;margin-left:auto}
body .cases .partner-row{padding:20px 24px;gap:20px;align-items:center;flex-wrap:wrap}
body .cases .partner-row{background:linear-gradient(#10232bd9,#10232b80);color:white}
body .cases .partner-row>strong{font-size:20px;line-height:28px}
body .cases .partner-row small{font-size:11px}
body .cases .partner-note{max-width:none;width:100%;font-size:12px;line-height:20px}
body .cases .case-image>span{top:auto;bottom:20px;left:24px;font-size:12px}
body .contact-tile-center{background-image:url(assets/cooperation-stars-optimized.webp);background-size:cover;background-position:center}
body:not(.reference-scroll-enabled) .contact-cta{background:linear-gradient(#08142250,#08142280),url(assets/cooperation-stars-optimized.webp) center/cover}
@media(max-width:1199px){body .scene-copy{top:80px}}
@media(max-width:767px){body .scene-copy{top:48px;width:calc(100% - 40px)}body .scene-copy .tags{gap:8px;margin-top:24px}body .scene-copy .tags span{padding:4px 12px}body .cases .case-content{padding:20px 20px 12px}body .cases .case-content h3{font-size:20px;line-height:28px}body .cases .case-figures{margin-inline:20px;gap:12px;padding-bottom:20px}body .cases .case-figures small{width:100%;margin:0}body .cases .case-figures b{font-size:24px}body .cases .partner-row{padding:16px;gap:12px}body .cases .partner-row>strong{font-size:16px}}
