/* Homepage-only viewport fit: reserve room for the shared header and value bar. */
/* Night header uses the existing home.js data-night signal, not a second theme state. */
.mmg-homepage .mmg-header[data-night="true"]::before,
.mmg-homepage .mmg-header[data-night="true"]:not([data-scrolled="true"]):not(.menu-open)::before {
 background:transparent;
 box-shadow:none;
}
.mmg-homepage .mmg-header[data-night="true"] {color:#1f1f1f}
/* One shared warm surface integrates the unmodified logo and navigation. */
.mmg-homepage .mmg-header[data-night="true"] .mmg-shell {
 height:72px;margin:8px auto;padding:0 20px;
 background:rgba(255,253,249,.96);
 border:1px solid rgba(192,154,94,.24);border-radius:16px;
 box-shadow:0 8px 24px rgba(0,0,0,.12);
 /* Keep viewport-positioned dropdowns outside any filter containing block. */
}
.mmg-homepage .mmg-header[data-night="true"] .mmg-brand {
 background:transparent;border-radius:0;box-shadow:none;
}
.mmg-homepage .mmg-header[data-night="true"] .mmg-panel {color:#1f1f1f}
@media(min-width:1200px) {
 .mmg-homepage .mmg-header[data-night="true"] .mmg-trigger>span {color:#746c62}
 .mmg-homepage .mmg-header[data-night="true"] .mmg-item[open]>.mmg-trigger,
 .mmg-homepage .mmg-header[data-night="true"] .mmg-item[open]>.mmg-trigger>span {color:#b64b00}
 .mmg-homepage .mmg-header[data-night="true"] :is(.mmg-home,.mmg-trigger):is(:hover,:focus-visible) {color:#b64b00}
 .mmg-homepage .mmg-header[data-night="true"] :is(.mmg-home,.mmg-trigger,.mmg-brand):focus-visible {outline-color:#a65006}
}
@media(max-width:1199px) {
 /* The expanded mobile menu remains warm ivory with dark readable labels. */
 .mmg-homepage .mmg-header[data-night="true"] .mmg-nav {color:#1f1f1f}
 .mmg-homepage .mmg-header[data-night="true"] .mmg-shell {height:68px;margin:6px auto;padding:0 12px;width:calc(100% - 24px);border-radius:12px}
}
@media(max-width:359px) {
 .mmg-homepage .mmg-header[data-night="true"] .mmg-shell {width:calc(100% - 16px);padding:0 5px;gap:5px}
}
@media(min-width:1200px){
 .mmg-homepage .world{height:100svh;min-height:0;max-height:none;--fit-scene-width:min(100vw,calc(177.6833svh - 213.22px))}
 .mmg-homepage .scene::before{content:"";position:absolute;inset:-32px;background:#f4dfc0 url('/assets/home-v3/industry-islands.webp') center/cover no-repeat;filter:blur(28px);opacity:.55;pointer-events:none}
 .mmg-homepage .world[data-light="night"] .scene::before{filter:blur(28px) brightness(.38) saturate(.65)}
 .mmg-homepage .scene-inner{width:var(--fit-scene-width);max-width:none;top:calc(50% + 4px);left:50%;aspect-ratio:1672/941}
 .mmg-homepage .scene-background{mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent),linear-gradient(180deg,transparent,#000 10%,#000 87%,transparent);mask-composite:intersect}
 .mmg-homepage .hero-copy{top:clamp(112px,14svh,164px);left:4.6%;width:25%;max-width:520px}
 .mmg-homepage .hero-copy h1{font-size:clamp(38px,3vw,56px);line-height:1.22}
 .mmg-homepage .hero-copy .eyebrow{font-size:10px;margin-bottom:14px}
 .mmg-homepage .hero-lead{font-size:clamp(14px,1vw,18px);line-height:1.75;margin-top:17px}
 .mmg-homepage .hero-support{font-size:clamp(12px,.9vw,15px);margin-top:12px}
 .mmg-homepage .industry-doors{gap:10px;margin-top:22px}
 .mmg-homepage .industry-doors .action{min-height:48px;padding-inline:18px;font-size:14px;gap:8px}
 .mmg-homepage .center-label{width:19%;min-width:200px;min-height:64px;padding:10px;gap:9px}
 .mmg-homepage .center-label strong{font-size:clamp(14px,1vw,18px)}
 .mmg-homepage .center-label small{font-size:clamp(10px,.65vw,12px)}
 .mmg-homepage .center-icon{width:40px;height:40px}
 .mmg-homepage .hub-label{width:22%;min-width:240px;padding:9px 12px}
 .mmg-homepage .hub-label strong{font-size:clamp(18px,1.25vw,22px)}
 .mmg-homepage .hub-label small{font-size:clamp(10px,.65vw,12px)}
 .mmg-homepage .values{left:50%;bottom:18px;width:min(1180px,calc(100% - 220px));padding:14px 16px;min-height:72px;margin:0;z-index:4}
 .mmg-homepage .values li{padding-inline:18px;gap:12px}
 .mmg-homepage .values svg{width:28px;height:28px}
 .mmg-homepage .values strong{font-size:14px}
 .mmg-homepage .values small{font-size:11px}
 .mmg-homepage .scene-explainer{left:4.6%;top:auto;bottom:176px;width:240px;font-size:12px;min-height:0}
 .mmg-homepage .world-signature{left:5.2%;top:auto;bottom:100px;font-size:14px}
 .mmg-homepage .scroll-cue{right:96px;bottom:112px}
}
@media(min-width:1200px) and (max-height:800px){
 .mmg-homepage .hero-copy{top:110px}
 .mmg-homepage .hero-copy h1{font-size:clamp(36px,2.75vw,44px)}
 .mmg-homepage .hero-copy .eyebrow{font-size:9px;margin-bottom:12px}
 .mmg-homepage .hero-lead{font-size:14px;line-height:1.65;margin-top:14px}
 .mmg-homepage .hero-support{font-size:12px;margin-top:10px}
 .mmg-homepage .industry-doors{margin-top:16px;gap:8px}
 .mmg-homepage .industry-doors .action{min-height:44px;font-size:12px;padding-inline:13px;gap:7px}
 .mmg-homepage .industry-doors small{font-size:10px}
 .mmg-homepage .scene-explainer{bottom:174px;font-size:11px;max-width:220px}
 .mmg-homepage .world-signature{font-size:13px;bottom:104px}
}
/* Short landscape windows keep useful text and controls, rather than clipping a fixed artboard. */
@media(min-width:1200px) and (max-height:650px){
 .mmg-homepage .hero-copy{top:96px;width:24%}
 .mmg-homepage .hero-copy h1{font-size:34px}
 .mmg-homepage .hero-copy .eyebrow{margin-bottom:8px}
 .mmg-homepage .hero-lead{font-size:13px;line-height:1.5;margin-top:10px}
 .mmg-homepage .hero-support{font-size:11px;margin-top:8px}
 .mmg-homepage .hub-label{min-width:220px}
 .mmg-homepage .industry-doors{margin-top:12px}
 .mmg-homepage .scene-explainer{bottom:150px;font-size:10px;width:210px}
 .mmg-homepage .world-signature{bottom:94px;font-size:11px}
 .mmg-homepage .values{bottom:12px;padding-block:10px;min-height:64px}
 .mmg-homepage .values strong{font-size:13px}
 .mmg-homepage .values small{font-size:10px}
}
@media(min-width:1200px) and (max-height:599px){
 .mmg-homepage .world{height:600px;--fit-scene-width:min(100vw,852.88px)}
}


/* 2026-10-23 homepage cover typography: Chinese headline on one line, English brand label on two. */
.mmg-homepage .hero-copy .eyebrow{display:flex;flex-direction:column;align-items:flex-start;gap:1px;line-height:1.2;letter-spacing:.22em}
.mmg-homepage .hero-copy .eyebrow span{display:block}
.mmg-homepage .hero-copy h1{font-size:clamp(20px,1.8vw,32px);line-height:1.3;letter-spacing:-.04em;white-space:nowrap}
.mmg-homepage .hero-copy h1 span,.mmg-homepage .hero-copy h1 em{display:inline;white-space:nowrap}
.mmg-homepage .hero-copy h1 span::after{content:none;display:none}
.mmg-homepage .hero-copy h1 em{margin-left:.16em}
@media(min-width:768px) and (max-width:1199px){.mmg-homepage .hero-copy h1{font-size:clamp(24px,2.8vw,32px)}}
@media(max-width:767px){.mmg-homepage .hero-copy h1{font-size:clamp(20px,6.2vw,28px);line-height:1.26}.mmg-homepage .hero-copy .eyebrow{font-size:9px;letter-spacing:.19em;gap:1px}}
