/* ==========================================================================
   Homepage — Metalli-style corporate/industrial layout (user-directed 2026-09-18)
   Structure: hero slider → products → core values → capabilities → services →
   stats band → text blocks → factory → cases → applications → news → inquiry banner.
   One family (Barlow), white/light dominant, centered uppercase section titles,
   blue accent for CTAs only. Interactions: slider, count-up, card hover, floaters.
   ========================================================================== */

/* ---- hero slider -------------------------------------------------------- */
.m-slider { position: relative; overflow: hidden; background: var(--c-navy-900); }
.m-slides { display: grid; }
.m-slide { grid-area: 1 / 1; opacity: 0; transition: opacity .8s var(--ease-inout); pointer-events: none; }
.m-slide.is-active { opacity: 1; pointer-events: auto; }
.no-js .m-slide { grid-area: auto; opacity: 1; pointer-events: auto; }
/* per-slide content entrance, replays on every activation */
.m-slide.is-active .m-kicker, .m-slide.is-active .h1, .m-slide.is-active .lead, .m-slide.is-active .btnrow { animation: m-slide-up .8s var(--ease-out-expo) both; }
.m-slide.is-active .lead { animation-delay: .08s; }
.m-slide.is-active .btnrow { animation-delay: .16s; }
.m-slide.is-active .art { animation: m-slide-art 1.1s var(--ease-out-expo) both; }
@keyframes m-slide-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes m-slide-art { from { opacity: 0; transform: scale(1.045); } to { opacity: 1; transform: none; } }
.m-slide.is-active { display: block; }
.m-slide .inner { position: relative; min-height: 560px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 56px; }
.m-slide--a .inner { background: linear-gradient(115deg, var(--c-navy-800) 0 52%, var(--c-brand) 52% 100%); }
.m-slide--b .inner { background: linear-gradient(115deg, var(--c-navy-800) 0 52%, #143A66 52% 100%); }
.m-slide--c .inner { background: #F4F7FA; color: var(--c-text); }
.m-slide--c .inner .kicker { color: var(--c-brand); }
.m-kicker { font-family: BarlowSC, var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #9CC9F5; margin-bottom: 16px; }
.m-slide--c .m-kicker { color: var(--c-brand); }
.m-slide h1, .m-slide .h1 { font-weight: 800; font-size: clamp(2.25rem, 1.5rem + 2.8vw, 4rem); line-height: 1.02; letter-spacing: -.01em; color: #fff; text-transform: uppercase; }
.m-slide--c h1, .m-slide--c .h1 { color: var(--c-navy-900); }
.m-slide .lead { margin: 18px 0 26px; font-size: 17px; color: #D7E3F0; max-width: 46ch; }
.m-slide--c .lead { color: var(--c-text-2); }
.m-slide .btnrow { display: flex; gap: 14px; flex-wrap: wrap; }
.m-slide .art { position: relative; text-align: right; }
.m-slide .art img { width: 100%; max-width: 620px; max-height: 430px; object-fit: contain; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.m-slider__arrows { position: absolute; z-index: 6; display: flex; gap: 8px; right: 92px; bottom: 22px; }
.m-slider__arrows button { width: 42px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); color: #fff; background: rgba(7,21,34,.35); font-size: 18px; }
.m-slider__arrows button:hover { background: var(--c-brand); border-color: var(--c-brand); }
.m-dots { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 6; display: flex; justify-content: center; gap: 10px; }
.m-dots button { width: 34px; height: 4px; background: rgba(255,255,255,.4); border: 0; }
.m-dots button.is-active { background: #fff; }

/* ---- section scaffolding（全站统一节奏）-------------------------------- */
.m-sec { padding-block: clamp(3.5rem, 2.5rem + 3vw, 6rem); background: #fff; }
.m-sec--gray { background: var(--c-surface); }
.m-sec--navy { background: var(--c-navy-900); color: #fff; }
.m-sec--navy h2, .m-sec--navy h3 { color: #fff; }
.m-sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.m-sec-head .kick { font-family: BarlowSC, var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 10px; }
.m-sec--navy .m-sec-head .kick { color: #9CC9F5; }
.m-sec-head h2 { font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.625rem); letter-spacing: .01em; text-transform: uppercase; color: var(--c-navy-900); }
.m-sec--navy .m-sec-head h2 { color: #fff; }
.m-sec-head .lead { margin-top: 12px; color: var(--c-text-2); font-size: 16.5px; }
.m-sec--navy .m-sec-head .lead { color: #B9C7D6; }
.m-more { text-align: center; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }

/* ---- unified card（全站唯一卡片）--------------------------------------- */
.mcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); box-shadow: 0 1px 2px rgba(7,21,34,.04); transition: transform 1.2s cubic-bezier(.22,.61,.36,1), border-color .35s var(--ease-out); height: 100%; transform-origin: center; }
/* hover shadow is a pre-rendered layer faded via opacity — animating box-shadow repaints every frame */
.mcard::after { content: ""; position: absolute; inset: 0; box-shadow: 0 26px 48px -22px rgba(7,21,34,.28); opacity: 0; transition: opacity 1.2s cubic-bezier(.22,.61,.36,1); pointer-events: none; }
.mcard:hover { transform: scale(1.035); border-color: rgba(7,21,34,.14); z-index: 2; }
.mcard:hover::after { opacity: 1; }
.mcard .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--c-navy-800); }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.mcard .bd b a { transition: color .3s var(--ease-out); }
.mcard .bd b a:hover { color: var(--c-brand); }
.mcard .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; }
.mcard .bd .spec { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .bd b, .mcard .t { font-weight: 700; font-size: 17px; color: var(--c-text); }
.mcard .spec { font-size: 14px; color: var(--c-text-2); line-height: 1.5; }
.mcard .spec b { font-family: BarlowSC, var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-brand); }
.mcard .inquire { margin-top: auto; justify-self: start; display: inline-block; padding: .5em 1.1em; border: 1.5px solid var(--c-brand); color: var(--c-brand); font-weight: 600; font-size: 13.5px; }
.mcard .inquire:hover { background: var(--c-brand); color: #fff; }
.m-sec--navy .mcard { background: var(--c-navy-800); border-color: rgba(255,255,255,.14); }
.m-sec--navy .mcard .bd b, .m-sec--navy .mcard .t { color: #fff; }
.m-sec--navy .mcard .spec { color: #B9C7D6; }
.m-sec--navy .mcard .inquire { border-color: #9CC9F5; color: #9CC9F5; }
.m-sec--navy .mcard .inquire:hover { background: #9CC9F5; color: var(--c-navy-900); }
.mcard--flat .bd { text-align: left; }
.mgrid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mgrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* ---- values tiles ------------------------------------------------------ */
.vtile { display: grid; gap: 6px; padding: 26px 24px; border: 1.5px solid var(--c-navy-900); text-align: center; }
.vtile b { font-family: BarlowSC, var(--font-mono); font-weight: 800; font-size: 16px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-navy-900); }
.vtile span { font-size: 14px; color: var(--c-text-2); }

/* ---- services 3 columns ------------------------------------------------ */
.svc { border-top: 3px solid var(--c-brand); background: #fff; padding: 26px 26px 28px; }
.svc b { display: block; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.svc p { font-size: 14.5px; color: var(--c-text-2); margin: 0 0 12px; }

/* ---- stats band -------------------------------------------------------- */
.m-stats { background: var(--c-navy-900); color: #fff; padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.m-stats .stat { text-align: center; }
.m-stats .v { font-family: BarlowSC, var(--font-mono); font-weight: 800; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; }
.m-stats .l { font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; }
.m-stats .n { font-size: 12.5px; color: #B9C7D6; margin-top: 6px; }

/* ---- text blocks（What we do / History / Certificate）------------------ */
.mtext { max-width: 800px; margin: 0 auto; text-align: center; }
.mtext h2 { font-weight: 800; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem); text-transform: uppercase; color: var(--c-navy-900); margin-bottom: 14px; }
.mtext p { font-size: 16.5px; line-height: 1.7; color: var(--c-text-2); margin-bottom: 10px; }
.mtext .badge { vertical-align: middle; }
/* the three profile tiles under the intro — same card language as mcards */
.m-tiles .mtext { max-width: none; text-align: left; background: #fff; border: 1px solid var(--c-line); padding: 24px 26px; }

/* ---- factory / cases / news reuse mcard -------------------------------- */
.mcard--wide .ph { aspect-ratio: 1 / 1; }

/* ---- inquiry banner ---------------------------------------------------- */
.m-inq { background: var(--c-brand); color: #fff; padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.m-inq .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 30px; align-items: center; }
.m-inq h2 { font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); text-transform: uppercase; }
.m-inq p { color: #D7E3F0; margin-top: 10px; }
.btn-white { background: #fff; color: var(--c-navy-800); font-weight: 600; font-size: 16px; padding: .95em 2em; display: inline-block; }
.btn-white:hover { background: var(--c-surface); }

/* ---- header: utility bar + solid header -------------------------------- */
.utilbar { background: var(--c-navy-800); color: #B9C7D6; font-size: 13px; }
.utilbar .container--wide { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.utilbar a { color: #D7E3F0; }
.utilbar a:hover { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 100; }
.site-header .nav__link { color: var(--c-text); text-transform: uppercase; font-size: 13.5px; letter-spacing: .04em; }
.site-header .nav__link:hover { color: var(--c-brand); }
.site-header .brand__name { color: var(--c-navy-900); }

/* Floating widgets: site-wide styles in components.css own this component
   (the 52x52 square override here used to clip the WhatsApp label on the homepage). */


/* ---- responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
	.mgrid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.m-slide .art { display: none; }
	.m-slide .inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.mgrid3, .mgrid4 { grid-template-columns: 1fr; }
	.m-slide .inner { min-height: 0; padding-top: 24px; }
	.m-slide h1, .m-slide .h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
	.m-stats .mgrid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
	.m-inq .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.mcard:hover .ph img, .mcard, .flo { transform: none !important; transition: none !important; }
}

/* ScrollFloat titles (js-split chars; no-js/reduced-motion keep static text) */
[data-float-text] .sf-word { display: inline-block; white-space: nowrap; }
[data-float-text] .sf-char { display: inline-block; }

/* Magnetic buttons: inline transform is the only transform source */
.is-magnetic:hover { transform: none; }
.is-magnetic { transition: none; }

/* --- silk layer: hover transitions at portfolio cadence (400-800ms expo) ---------------------- */
.m-dots button { transition: width .45s var(--ease-out-expo), background-color .3s var(--ease-out), opacity .3s var(--ease-out); }
.m-dots button.is-active { width: 34px; border-radius: 99px; }
.m-slider__arrows button { transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out), transform .45s cubic-bezier(.32,.72,0,1); }
.m-slider__arrows button:hover { transform: translate3d(0, -2px, 0); }
.btn { transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .5s cubic-bezier(.32,.72,0,1) !important; }
.btn:hover { transform: translate3d(0, -2px, 0); }
.mcard .inquire { transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out); }
.m-inq .btn-white { transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .5s cubic-bezier(.32,.72,0,1); }
.m-inq .btn-white:hover { transform: translate3d(0, -2px, 0); }
.m-more .btn-line { position: relative; overflow: hidden; }
.m-more .btn-line::before { content: ""; position: absolute; inset: 0; background: var(--c-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out-expo); z-index: 0; }
.m-more .btn-line:hover::before { transform: scaleX(1); }
.m-more .btn-line span, .m-more .btn-line { z-index: 1; }
.m-more .btn-line:hover { color: #fff; border-color: var(--c-brand); transition: color .3s var(--ease-out) .05s, border-color .3s var(--ease-out); }
.utilbar a, .site-header .nav__link { transition: color .3s var(--ease-out), background-color .3s var(--ease-out); }
.site-header .nav__link { position: relative; }
.site-header .nav__link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--c-brand); transition: right .4s var(--ease-out-expo); }
.site-header .nav__link:hover::after { right: 0; }
.site-header__cta { transition: background-color .3s var(--ease-out), transform .5s cubic-bezier(.32,.72,0,1); }
.flo { transition: transform .4s cubic-bezier(.32,.72,0,1); }
