/* Final responsive media geometry; loaded after the shared visual theme. */
:root{--page-gutter:clamp(22px,4vw,48px);--content-width:1200px;--media-gap:clamp(18px,2vw,28px)}
.wrap,.product-content{max-width:var(--content-width);padding-left:var(--page-gutter);padding-right:var(--page-gutter)}
main img,main video{vertical-align:middle}

/* High-density transparent artwork: one proportional image, no oversized offset crop. */
.site-header .brand{--brand-width:160px;width:var(--brand-width);height:50px;display:flex;align-items:center}
.site-header .brand-logo,.footer-brand .brand-logo{position:static;display:block;width:100%;height:auto;max-width:100%;object-fit:contain;image-rendering:auto;transform:none}
.footer-brand .brand{width:184px;height:58px;display:flex;align-items:center}
@media(max-width:1150px){
 .site-header .brand{--brand-width:144px;height:45px}
}

/* The homepage uses layout cells instead of overlapping fixed coordinates. */
.home .hero-cinema{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"copy art" "metrics selector";align-items:center;gap:28px clamp(28px,4vw,64px);padding:clamp(40px,5vw,72px) max(var(--page-gutter),calc((100vw - 1320px) / 2)) 32px;height:auto;min-height:640px}
.home .cinema-copy{grid-area:copy;position:relative;width:auto;max-width:none;min-width:0;padding:0;text-align:left}
.home .cinema-copy h1{font-size:clamp(40px,4.2vw,64px);line-height:1.23;white-space:normal;letter-spacing:-2px}
.lang-en .home .cinema-copy h1{font-size:clamp(37px,4vw,60px)}
.home .cinema-copy .subtitle{max-width:350px;margin:22px 0 0}
.home .cinema-copy .actions{justify-content:flex-start;margin-top:28px;gap:24px}
.home .hero-art{grid-area:art;position:relative;inset:auto;width:100%;height:clamp(400px,42vw,570px);min-width:0}
.home .hero-art .hero-robot[data-enhanced]{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transform:none}
.home .model-selector{grid-area:selector;position:relative;inset:auto;transform:none;justify-self:center;align-self:center;width:max-content;margin:0}
.home .hero-cinema .hero-bottom{grid-area:metrics;position:relative;inset:auto;width:100%;max-width:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start;line-height:1.5}
.home .hero-cinema .hero-bottom strong{display:block;font-size:25px;line-height:1.2;margin:0 0 7px}
.home .hero-cinema .hero-bottom>span{min-width:0;font-size:10px}

/* Consistent apparent product size and stable card baselines. */
.home .product-lineup{gap:var(--media-gap)}
.home .lineup-card:not(.product-concept){display:flex;flex-direction:column;padding:clamp(26px,3vw,40px)}
.home .lineup-card:not(.product-concept) .lineup-art{width:100%;height:clamp(300px,29vw,390px);margin:22px 0 24px;flex-shrink:0;overflow:hidden}
.home .lineup-card .lineup-art img[data-enhanced],.home .lineup-card:hover .lineup-art img[data-enhanced]{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transform:none}
.home .lineup-card:not(.product-concept) .brief{margin-top:auto}
.home .lineup-card>.text-link{margin-top:0}

/* The room photograph is shown at its native ratio, with copy beside it. */
.home .showcase{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);align-items:center;min-height:0;height:auto}
.home .showcase>.scene-photo{display:block;position:relative;width:100%;height:auto;min-height:0;aspect-ratio:4038 / 2694;overflow:hidden}
.home .showcase>.scene-photo>img{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center}
.home .showcase-content{width:100%;max-width:520px;margin:0 auto;padding:clamp(36px,4vw,64px);order:0}
.home .showcase h2{font-size:clamp(34px,3.4vw,50px)}
.home .showcase-content>p:not(.eyebrow){max-width:320px}
.home .technology-photo{display:grid;grid-template-rows:auto auto;aspect-ratio:auto;height:auto;margin:0 auto 48px;overflow:hidden}
.home .technology .technology-photo .wide-art{position:static;width:100%;height:auto;max-height:none;aspect-ratio:1.9;object-fit:cover;object-position:center bottom;margin:0}
.home .technology-photo .image-detail-label{position:static;justify-self:end;margin:12px 18px 14px;padding:0;background:none;box-shadow:none}

/* Product pages: text and complete product share one balanced hero row. */
.product-page .product-hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(24px,5vw,80px);align-items:center;text-align:left;padding:clamp(40px,5vw,72px) max(var(--page-gutter),calc((100vw - 1200px) / 2));min-height:590px}
.product-hero-copy{min-width:0}
.product-page .product-hero h1{font-size:clamp(72px,7vw,104px);line-height:1.05}
.product-page .product-hero .product-tagline{font-size:clamp(20px,2vw,25px);line-height:1.6;max-width:430px;margin-top:20px}
.product-page .product-hero .actions{justify-content:flex-start;gap:20px 26px;margin-top:28px}
.product-page .product-hero .hero-stage{position:relative;width:100%;max-width:none;height:clamp(430px,42vw,550px);min-width:0;margin:0;display:block;overflow:hidden}
.product-page .product-hero .hero-stage img[data-enhanced]{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transform:none}
.product-page .product-content{padding-top:clamp(48px,6vw,80px);padding-bottom:clamp(64px,8vw,100px)}
.product-page .film-heading{margin:0 auto 28px;max-width:800px}
.product-page .video-wrap{width:min(100%,1040px,calc(70svh * 16 / 9));height:auto;aspect-ratio:16 / 9;margin:0 auto clamp(48px,6vw,80px);overflow:hidden;background:#090909}
.product-page .video-wrap video{display:block;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:16 / 9;object-fit:contain;object-position:center}
.product-page .video-wrap video:fullscreen{width:100vw;height:100vh;object-fit:contain;background:#000}

/* Original photography: separate the viewing surface from its caption. */
.product-content .img-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:var(--media-gap);margin:clamp(48px,6vw,72px) 0}
.product-content .img-card{display:block;height:clamp(340px,34vw,450px);min-height:0;aspect-ratio:auto}
.product-content .img-card .image-detail{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;width:100%;height:100%;min-height:0;aspect-ratio:auto;padding:20px 20px 16px}
.media-viewport{display:block;position:relative;width:100%;height:100%;min-height:0;overflow:hidden}
.product-content .img-card .media-viewport img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transform:none}
.product-content .detail-x1 .media-viewport img{inset:auto auto 16px 48%;width:auto;height:120%;max-width:none;max-height:none;transform:translateX(-50%)}
.product-content .detail-l1 .media-viewport img{inset:50% auto auto 50.7%;width:auto;height:120%;max-width:none;max-height:none;transform:translate(-50%,-50%)}
.product-content .img-card .image-detail-label{position:static;justify-self:end;padding:0;background:none;box-shadow:none;font-size:11px;line-height:1.5}

/* Documentation diagrams remain uncropped and comfortably readable. */
.docs-page .docs-layout{max-width:1200px;grid-template-columns:180px minmax(0,1fr);gap:clamp(32px,5vw,64px);padding-left:var(--page-gutter);padding-right:var(--page-gutter)}
.document-content .img-box{max-width:800px;margin:30px auto;padding:20px;background:#fff}
.document-content .img-box .image-detail{display:flex;flex-direction:column;gap:14px;width:100%;height:auto}
.document-content .img-box .image-detail img{position:static;display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;margin:0 auto;transform:none}
.document-content .img-box img[data-original$="lianjie.PNG"]{width:min(100%,640px)}
.document-content .image-detail .image-detail-label{position:static;align-self:flex-end;padding:0;background:none;box-shadow:none;font-size:11px}

/* Logos have uniform display slots without stretching the artwork. */
.home .logo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 32px}
.home .partner-logo{height:80px;min-width:0;padding:10px 4px}
.home .partner-logo img{display:block;width:100%;height:100%;max-width:160px;max-height:56px;object-fit:contain;object-position:center}
.home .investors-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:850px}
.image-viewer-stage:not(.is-actual) img{padding:clamp(12px,3vw,36px)}

@media(max-width:1100px){
 .home .logo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
 .home .showcase{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr)}
 .home .showcase-content{padding:32px}
 .home .showcase h2{font-size:34px}
}
@media(max-width:900px){
 .home .hero-cinema{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "art" "selector" "metrics";gap:22px;min-height:0;padding:40px var(--page-gutter) 28px}
 .home .cinema-copy{text-align:center;max-width:650px;width:100%;margin:auto}
 .home .cinema-copy h1{font-size:clamp(36px,6vw,50px)}
 .lang-en .home .cinema-copy h1{font-size:clamp(34px,5.5vw,46px)}
 .home .cinema-copy .subtitle{max-width:400px;margin:18px auto 0}
 .home .cinema-copy .actions{justify-content:center;margin-top:24px}
 .home .hero-art{height:clamp(340px,55vw,460px);max-width:560px;justify-self:center}
 .home .hero-cinema .hero-bottom{max-width:520px;justify-self:center;text-align:center;gap:18px;padding-top:4px}
 .home .hero-cinema .hero-bottom strong{font-size:24px}
 .home .showcase{grid-template-columns:1fr}
 .home .showcase-content{order:-1;max-width:650px;text-align:center;align-items:center;padding:44px var(--page-gutter)}
 .home .showcase-content>p:not(.eyebrow){max-width:420px}
 .home .showcase .actions{flex-direction:row;justify-content:center;align-items:center}
 .home .showcase>.scene-photo{max-width:100%;aspect-ratio:4038 / 2694}
 .product-page .product-hero{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);min-height:0;gap:24px;padding:40px var(--page-gutter)}
 .product-page .product-hero .hero-stage{height:400px}
 .product-page .product-hero h1{font-size:72px}
 .product-page .product-hero .product-tagline{font-size:20px}
 .product-page .product-hero .actions{flex-direction:column;align-items:flex-start;gap:18px}
 .home .logo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .home .investors-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .docs-page .docs-layout{grid-template-columns:150px minmax(0,1fr);gap:30px}
}
@media(max-width:600px){
 .home .hero-cinema{padding:32px 22px 26px;gap:20px}
 .home .cinema-copy h1{font-size:clamp(32px,9.4vw,44px);letter-spacing:-1.5px}
 .lang-en .home .cinema-copy h1{font-size:clamp(30px,8.7vw,41px)}
 .home .cinema-copy .eyebrow{margin-bottom:18px}
 .home .cinema-copy .subtitle{margin-top:16px;font-size:12px}
 .home .cinema-copy .actions{margin-top:22px;gap:18px}
 .home .hero-art{height:clamp(275px,88vw,390px)}
 .home .hero-cinema .hero-bottom{gap:12px}
 .home .hero-cinema .hero-bottom>span{font-size:9px}
 .home .hero-cinema .hero-bottom strong{font-size:23px;margin-bottom:6px}
 .home .lineup-card:not(.product-concept){padding:26px}
 .home .lineup-card:not(.product-concept) .lineup-art{height:clamp(270px,82vw,360px);margin:18px 0 22px}
 .home .showcase-content{padding:40px 24px}
 .home .showcase h2{font-size:32px}
 .home .technology .technology-photo .wide-art{aspect-ratio:1.9;object-fit:cover}
 .home .technology-photo{margin-bottom:32px}
 .product-page .product-hero{grid-template-columns:1fr;text-align:center;padding:36px 22px 24px;gap:22px}
 .product-page .product-hero h1{font-size:64px}
 .product-page .product-hero .product-tagline{font-size:19px;line-height:1.5;margin:16px auto 0}
 .product-page .product-hero .actions{flex-direction:row;justify-content:center;align-items:center;gap:18px;margin-top:22px}
 .product-page .product-hero .hero-stage{height:clamp(300px,94vw,430px);max-width:440px;margin:0 auto}
 .product-page .video-wrap{margin-bottom:48px}
 .product-content .img-grid{grid-template-columns:1fr;margin:44px 0;gap:18px}
 .product-content .img-card{height:clamp(300px,86vw,390px)}
 .product-content .img-card:last-child{height:clamp(255px,75vw,350px)}
 .product-content .img-card .image-detail{padding:16px;gap:10px}
 .product-content .detail-x1 .media-viewport img{height:117%;bottom:12px}
 .docs-page .docs-layout{display:block;padding-top:26px;padding-bottom:60px}
 .document-content .img-box{margin:24px 0;padding:12px}
 .document-content .img-box .image-detail{gap:12px}
 .home .logo-grid,.home .investors-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
 .home .partner-logo{height:68px;padding:8px 0}
 .home .partner-logo img{max-width:150px;max-height:50px}
}
@media(max-height:500px) and (min-width:601px){
 .product-page .product-hero .hero-stage{height:340px}
 .product-page .video-wrap{width:min(100%,calc(72svh * 16 / 9))}
}
