:root {
  --blue: #064b83;
  --blue-dark: #05365e;
  --ink: #253343;
  --muted: #5c6b78;
  --line: #dce5ec;
  --soft: #f3f6f8;
  --header-height: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; }
body.th { font-family: "Noto Sans Thai", "Sarabun", Tahoma, system-ui, sans-serif; line-height: 1.85; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #1784c3; outline-offset: 3px; }
section[id], #capabilities { scroll-margin-top: calc(var(--header-height) + 20px); }
.container { width: min(100% - 40px, 1180px); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.text-display { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.14; letter-spacing: -.025em; }
.text-heading { font-size: clamp(1.7rem, 2.8vw, 2.45rem); line-height: 1.25; letter-spacing: -.015em; }
.text-body-lg { font-size: 1.12rem; }
.text-body { font-size: 1rem; }
body.th .text-display, body.th .text-heading, body.th .eyebrow, body.th .cap-group__title, body.th .status-chip { letter-spacing: normal; text-transform: none; }
body.th .text-display { line-height: 1.42; }
body.th .text-heading { line-height: 1.4; }
body.th .hero-title, body.th .product-name { overflow-wrap: anywhere; }
h1, h2, h3, h4, p, figure { margin: 0; }
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px #12283b0b; }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-height); }
.logo { display: inline-flex; flex: 0 0 auto; }
.logo img { width: 146px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; border: 0; background: transparent; color: var(--blue); }
.nav-toggle span { display: block; width: 23px; height: 2px; background: currentColor; }
.nav-main { display: block; }
.nav-main.active { display: block; }
.nav-list, .footer-links { margin: 0; padding: 0; list-style: none; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; padding: 6px 0; }
.nav-list a { display: block; padding: 7px 9px; color: var(--ink); border-radius: 4px; font-size: .88rem; }
.nav-list a:hover { background: var(--soft); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang-switch { color: var(--blue); font-weight: 700; padding: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid var(--blue); border-radius: 4px; font-weight: 650; line-height: 1.35; transition: background .2s, color .2s; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: #fff; color: var(--blue); }
.btn-secondary:hover { background: #e8f1f8; }
.hero { background: #f4f7f9; }
.hero-bg { display: none; }
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 36px; padding-block: calc(var(--header-height) + 55px) 70px; }
.hero-copy { max-width: 640px; min-width: 0; overflow-wrap: anywhere; }
.eyebrow { color: var(--blue); font-size: .82rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 15px; }
.hero-title { color: var(--blue-dark); margin-bottom: 10px; }
.hero-kicker { color: var(--blue); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; margin-bottom: 14px; }
.hero-subtitle { color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; border-radius: 6px; overflow: hidden; background: #e5edf2; }
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.section { padding-block: clamp(64px, 7vw, 96px); }
.section-header { max-width: 740px; margin: 0 auto 36px; text-align: center; }
.section-header--left { text-align: left; margin-left: 0; max-width: 780px; }
.section-title { color: var(--blue-dark); margin-bottom: 12px; }
.section-subtitle { color: var(--muted); }
.operations .section-header--left { max-width: none; }
.operations .section-title { text-wrap: balance; }
.operations .section-subtitle { max-width: 900px; text-wrap: balance; }
.operations { background: #fff; }
.operations-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.operations-entrance, .operation-card, .rayong-visual { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.operations-entrance img { width: 100%; height: auto; aspect-ratio: 1327 / 521; object-fit: contain; background: var(--soft); }
.operations-entrance figcaption, .operation-card figcaption, .rayong-visual figcaption { padding: 8px 12px; color: var(--muted); font-size: .82rem; }
.operation-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.operation-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: var(--soft); }
.future-panel { display: grid; align-items: center; gap: 18px; padding: 18px; margin-top: 24px; background: var(--soft); border-radius: 5px; }
.rayong-visual img { width: 100%; aspect-ratio: 3/1; object-fit: contain; }
.status-chip { display: inline-block; padding: 4px 10px; margin-bottom: 10px; background: #dcebf5; color: var(--blue-dark); border-radius: 3px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.future-copy h3 { font-size: 1.25rem; color: var(--blue-dark); margin-bottom: 8px; }
.future-copy p { color: var(--muted); }
.products { background: var(--soft); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.product-media { min-height: 285px; display: flex; flex-direction: column; align-items: stretch; padding: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.product-media > img[data-product-main] { width: 100%; height: 205px; object-fit: contain; }
.product-thumbs { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.product-thumbs button { width: 48px; height: 48px; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.product-thumbs button[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.product-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info { flex: 1; padding: 20px; }
.product-name { font-size: 1.12rem; line-height: 1.45; color: var(--blue-dark); margin-bottom: 7px; }
.product-name__en { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
.product-desc { color: var(--muted); font-size: .9rem; }
.capabilities-compact { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.capabilities-compact > h3 { color: var(--blue-dark); font-size: 1.2rem; margin-bottom: 4px; }
.capabilities-compact > p { color: var(--muted); font-size: .9rem; }
.capability-columns { display: grid; gap: 18px; margin-top: 16px; }
.capability-columns h4 { color: var(--blue); font-size: .9rem; }
.capability-columns ul { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: .88rem; }
.contact { background: var(--soft); }
.contact-info { display: grid; gap: 16px; }
.contact-item { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
a.contact-item:hover { border-color: var(--blue); color: var(--blue); }
.contact-icon { color: var(--blue); margin-bottom: 12px; }
.contact-icon svg { width: 28px; height: 28px; }
.contact-label { color: var(--muted); font-size: .84rem; margin-bottom: 4px; }
.contact-value { font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.contact-address .contact-value { font-weight: 500; font-size: .93rem; }
.site-footer { background: var(--blue-dark); color: #fff; padding: 54px 0 24px; }
.footer-content { display: grid; gap: 32px; margin-bottom: 40px; }
.footer-brand img { width: 145px; margin-bottom: 14px; padding: 4px; border-radius: 3px; background: #fff; }
.footer-brand p, .footer-links a, .footer-bottom { color: #d3e0e9; font-size: .9rem; }
.footer-brand-local { display: block; margin-bottom: 8px; }
.footer-section h2 { font-size: 1rem; margin-bottom: 14px; }
.footer-links li + li { margin-top: 8px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #ffffff38; padding-top: 20px; }
@media (min-width: 700px) {
  .operation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operations-entrance { align-self: start; }
  .future-panel, .capability-columns { grid-template-columns: 1fr 1fr; }
  .contact-info, .footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-content { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 1023px) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-content { height: auto; min-height: var(--header-height); flex-wrap: wrap; padding-top: 8px; }
  html:not(.js) .nav-main { order: 3; flex-basis: 100%; }
  html:not(.js) .hero-content { padding-top: 55px; }
  html.js .nav-toggle { display: flex; }
  html.js .nav-main { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px #12283b18; max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
  html.js .nav-main.active { display: block; }
  html.js .nav-list { display: block; padding: 10px 20px; }
  html.js .nav-list a { padding: 12px; }
}
@media (min-width: 900px) {
  .hero-content { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-main { display: block; position: static; box-shadow: none; border: 0; overflow: visible; }
  .nav-list { display: flex; gap: 4px; padding: 0; }
  .nav-list a { padding: 8px 10px; font-size: .92rem; }
  .header-actions { margin-left: 0; gap: 8px; }
}
@media (max-width: 520px) {
  .header-contact { display: none; }
  .logo img { width: 130px; }
  .future-panel { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
