/* Machinery page only; shared site styles remain unchanged. */
.machinery-hero{display:grid;grid-template-columns:50% 50%;background:var(--navy);color:#fff;min-height:470px}
.machinery-hero-copy{padding:64px 10% 64px 81px;align-self:center;min-width:0}
.machinery-kicker{display:block;color:#79d4e9;font-size:14px;font-weight:600;letter-spacing:.09em;margin-bottom:18px}
.machinery-hero h1{font-size:clamp(38px,4vw,58px);margin-bottom:23px}
.machinery-hero p{color:#c9d8e0;max-width:48ch;font-size:16px;line-height:1.8}
.machinery-hero .button,.machinery-cta .button{gap:12px;align-self:flex-start}
.machinery-hero-media{position:relative;margin:0;min-width:0;overflow:hidden;background:#203d4d}
.machinery-hero-media img{width:100%;height:100%;object-fit:cover;object-position:center;filter:brightness(1.1)}
.machinery-hero-media figcaption{position:absolute;left:24px;bottom:22px;margin:0;padding:8px 12px;background:rgba(16,42,58,.9);color:#fff;font-size:14px}
.machinery-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:16px 34px;padding:22px 6%;background:#eaf0f2;border-bottom:1px solid var(--line)}
.machinery-nav a{font-size:16px;font-weight:600;color:var(--ink);text-underline-offset:5px}
.machinery-nav a:hover{text-decoration:underline;color:var(--blue)}
.machinery-section{padding:66px 6%;scroll-margin-top:24px}
.machinery-section+.machinery-section{border-top:1px solid var(--line)}
.machinery-heading{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:8%;margin-bottom:28px}
.machinery-heading .machinery-kicker{color:var(--blue);margin-bottom:12px}
.machinery-heading h2{font-size:clamp(30px,3vw,42px)}
.machinery-heading p{margin:0;font-size:16px}
.machinery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.machinery-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}
.machinery-card{margin:0;min-width:0;border:1px solid var(--line);background:#fff}
.machinery-photo{display:block;width:100%;border:0;padding:0;background:#eef2f3;cursor:zoom-in}
.machinery-photo img{width:100%;height:auto;aspect-ratio:1280/850;object-fit:contain}
.machinery-photo:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.machinery-card figcaption{padding:19px 22px}
.machinery-card h3{font-size:22px;line-height:1.4;margin-bottom:7px}
.machinery-card p{font-size:16px;line-height:1.7;margin:0}
.machinery-details .machinery-card h3{font-size:19px}
.machinery-press{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:42px;align-items:center}
.machinery-press-copy h3{font-size:26px;margin-bottom:16px}
.machinery-press-copy p{font-size:16px;margin-bottom:18px}
.machinery-related{display:inline-block;font-size:16px;color:var(--blue);text-decoration:underline;text-underline-offset:5px}
.machinery-cta{background:#eaf0f2;padding:50px 6%;display:flex;gap:36px;align-items:center;justify-content:space-between}
.machinery-cta h2{font-size:clamp(30px,3vw,40px);margin-bottom:15px}
.machinery-cta p{margin:0;max-width:68ch}
.machinery-cta .button{flex:none;align-self:center;max-width:100%}
.machinery-lightbox{width:min(1100px,94vw);max-width:94vw;max-height:94vh;border:0;padding:20px;background:#102a3a;color:white}
.machinery-lightbox::backdrop{background:rgba(0,0,0,.85)}
.machinery-lightbox-close{display:block;margin:0 0 16px auto;min-height:44px;border:1px solid #718c9b;background:#102a3a;color:#fff;padding:8px 16px;font:inherit;cursor:pointer}
.machinery-lightbox img{margin:auto;width:auto;max-height:70vh;object-fit:contain}
.machinery-lightbox p{color:#fff;margin:14px 0 0;font-size:16px}
html[lang=th] .machinery-kicker{letter-spacing:0}
html[lang=th] .machinery-hero h1{line-height:1.4}
@media(max-width:1000px){.machinery-hero-copy{padding:50px 8%}.machinery-details{gap:16px}.machinery-card figcaption{padding:16px}.machinery-cta{display:block}.machinery-cta .button{margin-top:24px}}
@media(max-width:700px){.machinery-hero{grid-template-columns:1fr;min-height:0}.machinery-hero-copy{padding:42px 6%}.machinery-hero h1{font-size:clamp(36px,9vw,48px)}.machinery-hero-media img{height:auto}.machinery-hero-media figcaption{left:16px;bottom:16px}.machinery-nav{justify-content:flex-start;gap:12px 22px;padding:20px 6%}.machinery-section{padding:46px 6%}.machinery-heading{grid-template-columns:1fr;gap:17px}.machinery-grid,.machinery-details,.machinery-press{grid-template-columns:1fr;gap:22px}.machinery-press-copy{padding-top:4px}.machinery-cta{padding:42px 6%}.machinery-lightbox{padding:14px}}

.machinery-grid+.machinery-press-copy{margin-top:24px}

/* Fit the newly cropped footage inside the shared hero footprint. */
.machinery-hero-video{background:var(--navy);min-height:470px}
.machinery-hero-video video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 60%}
.machinery-hero-video figcaption{top:auto;bottom:22px;left:20px;max-width:calc(100% - 86px);pointer-events:none}
@media(max-width:700px){.machinery-hero-video{min-height:0;aspect-ratio:1280/850}}


/* Factory video uses the same responsive hero frame as the original photograph. */
.machinery-video-toggle{position:absolute;right:18px;bottom:22px;z-index:1;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(16,42,58,.45);color:#fff;font-size:12px;line-height:1;cursor:pointer}
.machinery-video-toggle::after{content:"";position:absolute;inset:-7px;border-radius:50%}
.machinery-video-toggle[hidden]{display:none}
.machinery-video-toggle:hover,.machinery-video-toggle:focus-visible{background:rgba(16,42,58,.85);border-color:rgba(255,255,255,.7)}

