:root {
  color-scheme: light;
  --ink: #101a31;
  --muted: #4d5b72;
  --accent: #2444d8;
  --accent-hover: #1933a9;
  --line: #dce3ef;
  --tint: #f3f6fc;
  --white: #fff;
  --navy: #101a32;
  --max-width: 1240px;
  --gutter: clamp(22px, 5vw, 76px);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.6; }
html:lang(th) { font-family: "Helvetica Neue", Thonburi, "Leelawadee UI", "Noto Sans Thai", Arial, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid #536dff; outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--max-width)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 16px; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }
.arrow { font-size: 1.13em; line-height: 1; }
.section { padding-block: clamp(64px, 8vw, 112px); }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex: none; align-items: center; gap: 10px; width: fit-content; color: var(--ink); font-size: 1.31rem; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.logo-year { color: var(--accent); margin-left: 2px; font-weight: 650; }
.brand-mark { display: block; flex: none; }
#navigation, .header-actions { display: flex; align-items: center; }
#navigation { gap: clamp(20px, 3vw, 40px); }
#navigation a, .header-actions a, .menu-toggle { font-size: .9rem; font-weight: 650; }
#navigation a { color: var(--muted); padding-block: 12px; }
#navigation .nav-mobile-contact { display: none; }
#navigation a:hover, .language:hover { color: var(--accent); }
.header-actions { gap: 12px; }
.language, .nav-cta, .menu-toggle { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 7px; }
.language { color: var(--muted); padding-inline: 10px; }
.nav-cta, .menu-toggle { gap: 8px; padding: 8px 14px; background: var(--white); border: 1px solid #c5d1e5; }
.nav-cta:hover, .menu-toggle:hover { background: var(--tint); border-color: var(--accent); }
.menu-toggle { display: none; color: var(--ink); }

.hero { background: linear-gradient(115deg, #f8faff 26%, #edf2fc); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .97fr); align-items: center; gap: clamp(36px, 6vw, 88px); padding-block: clamp(58px, 7vw, 102px); }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .12em; line-height: 1.5; }
:lang(th) .eyebrow { letter-spacing: .04em; font-size: .82rem; }
.hero .eyebrow { display: flex; gap: 10px; align-items: center; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--accent); }
.hero h1 { margin-block: 19px 22px; font-size: clamp(2.8rem, 5.45vw, 5.4rem); line-height: .99; letter-spacing: -.073em; text-wrap: balance; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
:lang(th) .hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.85rem); line-height: 1.19; letter-spacing: -.045em; }
.lead { max-width: 34rem; color: var(--muted); font-size: clamp(1.04rem, 1.6vw, 1.23rem); line-height: 1.58; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 21px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: var(--white); font-weight: 700; font-size: .97rem; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.text-link, .service-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; width: fit-content; font-weight: 700; font-size: .92rem; color: var(--accent); }
.text-link:hover, .service-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.region { margin-top: 30px; padding-top: 17px; border-top: 1px solid #d9e2f3; color: var(--muted); font-size: .84rem; }

.hero-visual { position: relative; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; aspect-ratio: 1.23; border-radius: 16px; background: #101b38; color: #dce9ff; box-shadow: 0 22px 48px #162b5e23; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.visual-top, .visual-bottom { display: flex; justify-content: space-between; align-items: center; margin-inline: 5.5%; gap: 8px; font-family: var(--mono); font-size: clamp(.58rem, .9vw, .75rem); font-weight: 600; letter-spacing: .05em; }
:lang(th) .visual-top, :lang(th) .visual-bottom { font-family: inherit; font-size: clamp(.65rem, 1vw, .85rem); letter-spacing: 0; }
.visual-top { padding-block: 4.5%; }
.visual-top span:first-child { display: inline-flex; gap: 9px; align-items: center; }
.visual-top span:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8be3ff; }
.visual-top span:last-child { white-space: nowrap; color: #aabddb; }
.visual-bottom { margin-top: auto; padding-block: 4%; border-top: 1px solid #91b5ff59; }
.visual-bottom span { display: flex; align-items: center; gap: 5px; }
.visual-bottom span::before { content: ""; width: 4px; height: 4px; background: #8be3ff; transform: rotate(45deg); }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .57fr); gap: 12px clamp(24px, 8vw, 100px); align-items: end; margin-bottom: 33px; }
h2 { margin-top: 9px; font-size: clamp(2rem, 4.05vw, 3.75rem); letter-spacing: -.055em; text-wrap: balance; }
:lang(th) h2 { font-size: clamp(1.83rem, 3.6vw, 3.35rem); letter-spacing: -.034em; }
.section-intro { max-width: 41ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.1rem); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(21px, 3.25vw, 38px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.service-top { display: flex; width: 100%; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.service-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 8px; background: #ecf1ff; color: var(--accent); }
.service-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.55; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.service-number { color: var(--muted); font: .77rem var(--mono); }
.service h3, .model-grid h3 { font-size: clamp(1.23rem, 2vw, 1.6rem); letter-spacing: -.032em; }
.service p { margin-top: 9px; color: var(--muted); max-width: 52ch; }
.service-tags, .cap-row ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; }
.service-tags { margin: 15px 0 9px; }
.service-tags li, .cap-row li { padding: 4px 8px; border-radius: 5px; background: var(--tint); color: #364762; font-size: .77rem; line-height: 1.45; }
.service-link { margin-top: auto; }

.capabilities { background: var(--tint); border-block: 1px solid var(--line); }
.cap-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: clamp(28px, 8vw, 105px); }
.cap-grid .section-heading { display: block; margin: 0; }
.cap-list { border-top: 1px solid #ccd7ea; }
.cap-row { display: grid; grid-template-columns: minmax(115px, .6fr) minmax(0, 1.4fr); align-items: start; gap: 15px; padding-block: 16px; border-bottom: 1px solid #ccd7ea; }
.cap-row h3 { font-size: .82rem; line-height: 1.5; letter-spacing: .02em; padding-top: 4px; }
.cap-row ul { margin: 0; }
.cap-row li { border: 1px solid #d9e2f1; background: var(--white); }

.engagement { background: var(--navy); color: #f1f5ff; }
.engagement .eyebrow { color: #a9baff; }
.engagement .section-intro, .model-grid p { color: #bccae1; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid #4a5873; }
.model-grid article { padding: 24px clamp(16px, 3vw, 34px); }
.model-grid article:first-child { padding-left: 0; }
.model-grid article + article { border-left: 1px solid #4a5873; }
.model-number { display: inline-block; margin-bottom: 17px; color: #a9baff; font: .8rem var(--mono); }
.model-grid p { margin-top: 9px; font-size: .96rem; }
.model-grid .model-output { margin-top: 15px; color: #e2eaff; font-size: .86rem; }
.scope { margin-top: 14px; color: #bccae1; font-size: .85rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: start; gap: clamp(25px, 6vw, 80px); padding: clamp(23px, 5vw, 64px); border: 1px solid #dfe7f6; border-radius: 17px; background: #f1f5fd; }
.contact-copy { padding-block: 4px; }
.contact-copy .section-intro { margin-top: 14px; }
form { min-width: 0; padding: clamp(16px, 3vw, 30px); border: 1px solid #d8e1f1; border-radius: 11px; background: var(--white); }
form h3 { margin-bottom: 16px; font-size: 1.32rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
form label { display: block; min-width: 0; margin-bottom: 11px; font-size: .91rem; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; margin-top: 4px; padding: 8px 10px; border: 1px solid #a8b6cd; border-radius: 6px; background: var(--white); color: var(--ink); font-size: 1rem; font-weight: 400; }
textarea { display: block; resize: vertical; }
textarea::placeholder { color: #5c687d; opacity: 1; }
.privacy, #form-status, noscript { color: var(--muted); font-size: .84rem; }
.privacy { margin-bottom: 13px; }
#form-status:not(:empty), noscript p { margin-top: 11px; }
fieldset:disabled { opacity: .66; }

.site-footer { padding-block: 36px 18px; border-top: 1px solid var(--line); background: #f6f8fc; }
.footer-main, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.footer-main p { margin-top: 11px; color: var(--muted); font-size: .92rem; }
.footer-bottom { margin-top: 24px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-bottom a { display: flex; min-height: 44px; gap: 6px; align-items: center; font-weight: 700; }
.footer-bottom a:hover { color: var(--accent); }
.error-page h1 { margin-block: 10px; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.04em; }
.error-page .eyebrow { margin-top: 52px; }
.error-page p + p { margin-top: 10px; }

@media (max-width: 880px) {
  .hero-grid { gap: 25px; }
  .hero h1 { font-size: clamp(2.8rem, 6vw, 4.1rem); }
  :lang(th) .hero h1 { font-size: clamp(2.4rem, 5.25vw, 3.85rem); }
  .header-inner { gap: 14px; }
  #navigation { gap: 15px; }
  #navigation a { font-size: .85rem; }
}
@media (max-width: 740px) {
  html { scroll-padding-top: 75px; }
  .header-inner { min-height: 62px; flex-wrap: wrap; }
  .header-actions { gap: 5px; }
  .header-actions .language, .header-actions .menu-toggle { min-height: 44px; }
  .nav-cta { display: none; }
  #navigation { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; border-top: 1px solid var(--line); }
  #navigation .nav-mobile-contact { display: inline-block; }
  .js .menu-toggle { display: inline-flex; }
  .js #navigation:not(.is-open) { display: none; }
  .hero-grid, .section-heading, .cap-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 29px; padding-block: 42px 37px; }
  .hero h1 { font-size: clamp(2.45rem, 9.2vw, 4.65rem); }
  :lang(th) .hero h1 { font-size: clamp(2.15rem, 7.5vw, 4.3rem); }
  .actions { margin-top: 20px; }
  .region { margin-top: 19px; padding-top: 12px; }
  .hero-visual { width: min(100%, 540px); }
  .visual-top, .visual-bottom { font-size: clamp(.65rem, 2vw, .8rem); }
  .section-heading { margin-bottom: 24px; }
  h2 { text-wrap: initial; }
  .model-grid { grid-template-columns: minmax(0, 1fr); }
  .model-grid article { padding: 19px 0; }
  .model-grid article + article { border-left: 0; border-top: 1px solid #4a5873; }
  .model-number { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .services-grid, .form-row, .cap-row { grid-template-columns: minmax(0, 1fr); }
  .form-row { gap: 0; }
  .cap-row { gap: 7px; }
  .contact-grid { padding: 17px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
