/* The mobile edition keeps the product tabs above a vertical showcase. */
:root{--masthead-height:84px;--nav-font-size:11px}
.mobile-site .header-inner{width:calc(100% - 32px);gap:12px}
.mobile-site .brand-symbol{font-size:32px;letter-spacing:-3px;padding-right:2px}
.mobile-site .header-brand{--brand-mark-width:24px;gap:7px}
.mobile-site .brand-wordmark{font-size:20px;gap:5px}
.mobile-site .brand-wordmark small{font-size:7px;letter-spacing:.1em}
.mobile-site .header-inner nav{gap:clamp(7px,2vw,20px);white-space:nowrap}
.mobile-site .header-inner nav a:not(.language-switch){display:inline-flex;align-items:center;min-height:44px}
.mobile-site .home-showcase,.mobile-site .home-showcase:has(.hero-slide.is-active){
 height:auto;min-height:calc(100svh - var(--masthead-height));scroll-margin-top:var(--masthead-height);overflow:clip;
 background:linear-gradient(180deg,#08131d22 15%,#0b1722 88%) top / 100% 100svh no-repeat,
  #0b1722 url("assets/night.webp") 62% top / auto 100svh no-repeat;
}
.mobile-site .home-showcase .hero-slide,
.mobile-site .home-showcase .slide-reset.is-active{
 position:relative;display:none;min-height:calc(100svh - var(--masthead-height));
 padding:55px 12px 28px;
}
.mobile-site .home-showcase .hero-slide.is-active{display:flex;transition:none}
.mobile-site .home-showcase .slide-heading h1,
.mobile-site .home-showcase .slide-heading h2{font-size:clamp(24px,6.8vw,38px);letter-spacing:-.045em;text-align:center}
.mobile-site .home-showcase .slide-heading h3{font-size:clamp(12px,3.5vw,16px);letter-spacing:0;text-align:center}
.mobile-site .home-showcase .hero-actions{
 display:grid;justify-content:initial;gap:0;margin-top:8px;
}
.mobile-site .hero-actions a{margin-inline-start:20px}
.mobile-site .product-selectors{width:min(calc(100% - 24px),580px);top:0;gap:8px}
.mobile-site .product-selectors button{min-height:44px;padding:6px 2px;font-size:clamp(10px,2.9vw,13px);flex:1;white-space:normal}

.mobile-site .home-showcase .reset-showcase{
 display:flex;flex:initial;flex-direction:column;align-items:center;gap:20px;
 width:min(100%,480px);height:auto;margin-top:16px;padding:0;container-type:normal;perspective:none;
}
.mobile-site .reset-showcase .reset-phone{
 width:min(100%,calc(88svh * var(--phone-ratio)),390px);max-height:none;
 border:5px solid #203b4b;border-radius:17px;margin:0;transform:none;
}
.mobile-site .cockpit-showcase .reset-phone{
 --cockpit-border:10px;
 width:min(calc(100% - var(--cockpit-border)),calc(88svh * var(--panel-ratio)),380px);
}
.mobile-site .reset-showcase .reset-interactive{
 width:min(100%,calc(clamp(240px, 100svh - var(--masthead-height) - 240px, 720px) * var(--phone-ratio)),390px);
}
.mobile-site .cockpit-showcase .reset-interactive{
 width:min(calc(100% - var(--cockpit-border)),calc(clamp(230px, 100svh - var(--masthead-height) - 250px, 710px) * var(--panel-ratio)),380px);
}
.mobile-site .reset-showcase .reset-recording video{object-fit:contain}
.mobile-site .reset-scroll-screen{border-radius:12px}
.mobile-site .phone-expand{display:inline-flex;min-height:44px;margin:-10px 0 0;font-size:12px}

.mobile-site .home-showcase .hero-engine.live-engine{
 flex:none;width:calc(100% + 24px);height:auto;min-height:auto;
 padding:56px 0 0;container-type:normal;
}
.mobile-site .engine-stage{width:100%}
.mobile-site .engine-stage iframe{border-radius:0}
.mobile-site .live-engine .engine-expand{min-height:44px;right:12px}
.mobile-site .engine-close{display:none}

.mobile-site .product-grid{grid-template-columns:minmax(0,1fr);padding:12px;scroll-margin-top:0}
.mobile-site .product-tile{min-height:355px;height:min(580px,75svh);padding-top:25px}
.mobile-site .engine-tile{min-height:290px;height:min(500px,62svh)}
.mobile-site .about-story,.mobile-site .about-work{grid-template-columns:1fr}
.mobile-site.detail-page .section{padding-block:clamp(38px,8vw,65px)}
.mobile-site .detail-media{height:min(60svh,450px)}
.mobile-site .detail-media.cockpit{height:auto}
.mobile-site .detail-media.cockpit img{max-height:min(60svh,450px);object-fit:contain}
footer .edition-switch{white-space:nowrap}
.mobile-site footer>div:last-child{flex-wrap:wrap;gap:10px 14px;justify-content:flex-start}

@media(max-width:350px){
 .mobile-site .header-inner{width:calc(100% - 20px);gap:6px}
 .mobile-site .header-inner nav{gap:5px}
}
@media(orientation:landscape) and (max-height:540px){
 .mobile-site .home-showcase .slide-heading h1,
 .mobile-site .home-showcase .slide-heading h2{font-size:clamp(21px,4vw,28px)}
 .mobile-site .home-showcase .slide-heading h3{font-size:13px}
}

html:has(.engine-landscape){overflow:hidden;overscroll-behavior:none}
.mobile-site.engine-landscape .home-showcase{overflow:visible;z-index:40}
.mobile-site.engine-landscape :is(.site-header,.showcase-bottom,.slide-heading,.hero-actions,.product-grid,.about-section,footer,.skip){
 visibility:hidden;
}
.mobile-site .engine-stage.is-expanded{
 position:fixed;z-index:50;top:50%;left:50%;transform:translate(-50%,-50%);
 display:flex;align-items:center;justify-content:center;padding:48px 6px 6px;
 width:100dvw;height:100dvh;aspect-ratio:auto;background:#08131f;
}
.mobile-site .engine-stage.is-expanded iframe{
 width:min(100%,calc((100dvh - 54px) * 1.9));height:auto;aspect-ratio:1.9;border-radius:5px;
}
.mobile-site .engine-stage.is-expanded .engine-expand{display:none}
.mobile-site .engine-stage.is-expanded .engine-close{
 position:absolute;top:3px;right:6px;display:inline-flex;min-height:42px;
}
@media(orientation:portrait){
 .mobile-site .engine-stage.is-expanded{
  width:100dvh;height:100dvw;transform:translate(-50%,-50%) rotate(90deg);
 }
 .mobile-site .engine-stage.is-expanded iframe{width:min(100%,calc((100dvw - 54px) * 1.9))}
}
