/* =========================================================
   AI IN VISION — Premium corporate theme
   Palette from the original site: navy #011627 · off-white #F9F8F8 · signal red #D94948
   Built by webzy.digital
   ========================================================= */
:root {
  --navy: #011627;
  --navy-2: #06223a;
  --navy-3: #0c2e4b;
  --off: #f9f8f8;
  --paper: #ffffff;
  --tint: #f2f1ef;
  --red: #d94948;
  --red-dark: #bf3837;
  --ink: #0b1c2c;
  --muted: #5d6b78;
  --muted-light: rgba(255, 255, 255, .68);
  --line: rgba(1, 22, 39, .1);
  --line-light: rgba(255, 255, 255, .14);
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 30px 60px -30px rgba(1, 22, 39, .35);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Manrope', 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--ink);
  background: var(--off); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.lang-th { line-height: 1.8; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.lang-th h1, .lang-th h2, .lang-th h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.ico { flex-shrink: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.9em; font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  border-radius: var(--radius); border: 1px solid transparent; transition: all .35s var(--ease);
  white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 14px 30px -12px rgba(217, 73, 72, .6); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-outline { border-color: currentColor; }
.btn-outline:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: .7em 1.3em; font-size: .8rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .88rem;
  letter-spacing: .04em; color: var(--navy); position: relative; padding-bottom: 4px;
}
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform-origin: left; transform: scaleX(.3); transition: transform .45s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover { color: var(--red); }
.link-arrow--light { color: #fff; }

/* ---------- eyebrow & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--red);
}
.eyebrow-line { width: 36px; height: 1px; background: currentColor; display: inline-block; }
.eyebrow--light { color: #fff; }
.eyebrow--light .eyebrow-line { background: var(--red); }
.eyebrow--center { justify-content: center; }

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 80px; align-items: end; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 500; color: inherit; }
.section-lead { color: var(--muted); font-size: 1.06rem; margin-top: 20px; max-width: 620px; }
.section--dark .section-lead { color: var(--muted-light); }
.section-head--split .section-lead { margin-top: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
  color: #fff;
}
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(1, 22, 39, .55), transparent); pointer-events: none; transition: opacity .5s; }
.site-header.is-scrolled, .site-header.is-solid { background: rgba(1, 22, 39, .94); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); --header-h: 72px; box-shadow: 0 1px 0 var(--line-light); }
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; }
.brand { display: flex; align-items: center; position: relative; z-index: 2; }
.brand-logo { height: 38px; width: auto; transition: height .4s var(--ease); }
.is-scrolled .brand-logo { height: 32px; }
.brand-logo--dark { display: none; }
.brand-text { font-weight: 700; letter-spacing: .14em; font-size: 1.1rem; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.main-nav a { font-size: .9rem; font-weight: 500; letter-spacing: .02em; position: relative; padding: 6px 0; opacity: .88; transition: opacity .3s; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transition: transform .4s var(--ease); }
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; }
.lang-switch a { opacity: .55; padding: 4px 2px; transition: opacity .3s; }
.lang-switch a.active, .lang-switch a:hover { opacity: 1; }
.lang-switch a.active { color: #fff; border-bottom: 1px solid var(--red); }
.lang-switch span { opacity: .3; }
.nav-toggle { display: none; width: 42px; height: 42px; position: relative; z-index: 2; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HERO (smooth Ken Burns, GPU-composited, no jitter) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  color: #fff; background: var(--navy); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; contain: strict; }
.hero-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; overflow: hidden;
  transition: opacity 1.8s var(--ease); will-change: opacity;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide.is-leaving { opacity: 0; z-index: 1; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* oversize the layer a little so scaling never reveals edges; keep it on its own compositor layer */
  transform: translate3d(0, 0, 0) scale(1.02);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  will-change: transform; transform-origin: 50% 50%;
}
.hero-slide.is-anim[data-zoom="in"] img { animation: kbIn var(--kb-dur, 9s) linear both; }
.hero-slide.is-anim[data-zoom="out"] img { animation: kbOut var(--kb-dur, 9s) linear both; }
@keyframes kbIn { from { transform: translate3d(0, 0, 0) scale(1.02); } to { transform: translate3d(-1%, -1%, 0) scale(1.14); } }
@keyframes kbOut { from { transform: translate3d(1%, 1%, 0) scale(1.14); } to { transform: translate3d(0, 0, 0) scale(1.02); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 22, 39, .92) 0%, rgba(1, 22, 39, .7) 40%, rgba(1, 22, 39, .25) 100%),
    linear-gradient(0deg, rgba(1, 22, 39, .85) 0%, rgba(1, 22, 39, 0) 40%);
}
.hero-grid-lines { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: space-between; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); pointer-events: none; }
.hero-grid-lines span { width: 1px; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .07) 30%, rgba(255, 255, 255, .07) 70%, transparent); }
.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 140px; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; max-width: 14ch; margin-bottom: 30px; }
.lang-th .hero-title { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.22; letter-spacing: -.01em; max-width: 16ch; font-weight: 500; }
.hero-sub { font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .78); max-width: 600px; margin-bottom: 44px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-footer { position: absolute; left: 0; right: 0; bottom: 42px; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.hero-counter { display: flex; align-items: center; gap: 14px; font-size: .82rem; letter-spacing: .14em; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-counter .sep { width: 40px; height: 1px; background: rgba(255, 255, 255, .4); }
.hero-caption { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); transition: opacity .6s; }
.hero-caption.is-fading { opacity: 0; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { width: 46px; height: 24px; display: flex; align-items: center; }
.hero-dot span { display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span::after { animation: dotFill var(--kb-int, 7s) linear forwards; }
.hero-dot.is-done span::after { transform: scaleX(1); background: rgba(255, 255, 255, .7); }
@keyframes dotFill { to { transform: scaleX(1); } }
.hero.is-paused .hero-dot.is-active span::after { animation-play-state: paused; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 130px; width: 1px; height: 70px; background: rgba(255, 255, 255, .2); overflow: hidden; display: none; }
.scroll-cue span { position: absolute; left: 0; top: -30px; width: 1px; height: 30px; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (min-width: 1280px) { .scroll-cue { display: block; right: max(var(--gutter), calc((100vw - var(--container)) / 2 - 40px)); } }

/* ---------- stats ---------- */
.stats { background: var(--navy); color: #fff; border-top: 1px solid var(--line-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 28px; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .45em; color: var(--red); margin-left: 4px; font-weight: 500; letter-spacing: 0; }
.stat-label { font-size: .86rem; color: var(--muted-light); margin-top: 14px; letter-spacing: .02em; }

/* ---------- image frames ---------- */
.img-frame { position: relative; overflow: hidden; background: var(--navy-2); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.img-frame:hover img { transform: scale(1.04); }

/* ---------- solutions ---------- */
.solution-list { display: flex; flex-direction: column; gap: clamp(80px, 10vw, 140px); }
.solution { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.solution.is-reverse .solution-media { order: 2; }
.solution-media { position: relative; }
.solution-media .img-frame { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.solution-media::before { content: ""; position: absolute; width: 38%; height: 50%; border: 1px solid var(--red); top: -22px; left: -22px; z-index: -1; opacity: .5; }
.solution.is-reverse .solution-media::before { left: auto; right: -22px; }
.solution-no { position: absolute; bottom: -34px; right: 26px; font-size: clamp(4rem, 8vw, 7rem); font-weight: 200; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(1, 22, 39, .25); letter-spacing: -.04em; }
.solution.is-reverse .solution-no { right: auto; left: 26px; }
.solution-icon { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--red); margin-bottom: 26px; }
.solution-sub { color: var(--muted); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.lang-th .solution-sub { text-transform: none; letter-spacing: .02em; }
.solution-title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 20px; }
.solution-text { color: var(--muted); font-size: 1.02rem; }
.check-list { margin: 26px 0 34px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .96rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.check-list .ico { color: var(--red); margin-top: 6px; }

/* ---------- products ---------- */
.products { overflow: hidden; }
.products::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(circle, rgba(217, 73, 72, .12), transparent 60%); pointer-events: none; }
.prod-tabs { display: flex; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); margin-bottom: 60px; overflow-x: auto; scrollbar-width: none; }
.prod-tabs::-webkit-scrollbar { display: none; }
.prod-tab { flex: 1 0 auto; min-width: 170px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 24px 26px 0; text-align: left; position: relative; color: rgba(255, 255, 255, .5); transition: color .35s; }
.prod-tab + .prod-tab { padding-left: 24px; border-left: 1px solid var(--line-light); }
.prod-tab::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.prod-tab:hover, .prod-tab.is-active { color: #fff; }
.prod-tab.is-active::after { transform: scaleX(1); }
.prod-tab-no { font-size: .72rem; letter-spacing: .2em; color: var(--red); font-weight: 600; }
.prod-tab-name { font-size: 1rem; font-weight: 600; letter-spacing: .06em; }
.prod-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.prod-panel[hidden] { display: none; }
.prod-panel.is-active { animation: panelIn .8s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }
.prod-visual { aspect-ratio: 4 / 3; background: linear-gradient(145deg, #0d2d48, #021a2d); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.prod-visual::after { content: ""; position: absolute; inset: 18px; border: 1px solid var(--line-light); pointer-events: none; }
.prod-visual img { width: 100%; height: 100%; object-fit: cover; }
.prod-visual img[src$=".png"] { object-fit: contain; padding: 8%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.prod-logo { display: inline-flex; background: #fff; padding: 10px 16px; border-radius: var(--radius); margin-bottom: 28px; }
.prod-logo img { height: 32px; width: auto; }
.prod-cat { color: var(--red); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.lang-th .prod-cat { letter-spacing: .06em; }
.prod-name { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: .02em; margin-bottom: 20px; }
.prod-text { color: var(--muted-light); }
.model-list { margin: 26px 0 36px; border-top: 1px solid var(--line-light); }
.model-list li { padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: .95rem; display: flex; gap: 14px; }
.model-list li::before { content: ""; width: 6px; height: 6px; background: var(--red); margin-top: .7em; flex-shrink: 0; }
.prod-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.about-media { position: relative; padding: 0 12% 14% 0; }
.about-img-main { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about-img-sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border: 10px solid var(--off); box-shadow: var(--shadow); }
.about-badge { position: absolute; left: -24px; top: 12%; background: var(--red); color: #fff; padding: 26px 28px; max-width: 190px; box-shadow: 0 24px 40px -20px rgba(217, 73, 72, .7); }
.about-badge strong { display: block; font-size: 3rem; font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.about-badge sup { font-size: .45em; vertical-align: top; margin-left: 2px; }
.about-badge span { font-size: .82rem; display: block; margin-top: 8px; opacity: .9; }
.about-text { color: var(--muted); margin: 28px 0; font-size: 1.02rem; }
.about-quote { margin: 0 0 40px; padding: 4px 0 4px 26px; border-left: 2px solid var(--red); font-size: 1.2rem; font-weight: 500; color: var(--navy); font-style: italic; }
.lang-th .about-quote { font-style: normal; }

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy); color: #fff; }
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s; opacity: .85; }
.ind-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1, 22, 39, .95) 10%, rgba(1, 22, 39, .2) 60%, rgba(1, 22, 39, .1)); transition: background .6s; }
.ind-card:hover img { transform: scale(1.06); opacity: 1; }
.ind-overlay { position: absolute; inset: auto 0 0 0; padding: 34px; z-index: 2; }
.ind-no { font-size: .74rem; letter-spacing: .2em; color: var(--red); font-weight: 600; display: block; margin-bottom: 12px; }
.ind-overlay h3 { font-size: 1.45rem; margin-bottom: 10px; }
.ind-overlay p { font-size: .92rem; color: rgba(255, 255, 255, .75); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s; }
.ind-card:hover .ind-overlay p, .ind-card:focus-within .ind-overlay p { max-height: 120px; opacity: 1; }
@media (hover: none) { .ind-overlay p { max-height: none; opacity: 1; } }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.why-item { padding: 46px 32px 20px; border-left: 1px solid var(--line); transition: background .5s var(--ease); }
.why-item:first-child { border-left: 0; }
.why-item:hover { background: var(--paper); }
.why-icon { color: var(--red); display: inline-flex; margin-bottom: 26px; }
.why-item h3 { font-size: 1.18rem; margin-bottom: 12px; }
.why-item p { color: var(--muted); font-size: .94rem; }

/* ---------- partners marquee ---------- */
.partners { padding: 70px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.partners-title { text-align: center; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; font-weight: 600; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.partner { flex: 0 0 auto; width: 220px; height: 80px; display: flex; align-items: center; justify-content: center; padding: 0 30px; }
.partner img { max-height: 46px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s; }
.partner:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 34px; }
.article-card { display: flex; flex-direction: column; background: var(--paper); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.article-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.article-meta span:first-child { color: var(--red); font-weight: 600; }
.article-meta--light { color: rgba(255, 255, 255, .7); }
.article-title { font-size: 1.22rem; line-height: 1.45; margin-bottom: 14px; font-weight: 600; }
.article-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.article-title a:hover { background-size: 100% 1px; }
.article-excerpt { color: var(--muted); font-size: .94rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .link-arrow { align-self: flex-start; margin-top: 6px; }
@media (min-width: 1101px) {
  .article-grid:not(.article-grid--3) .article-card.is-featured { grid-column: span 2; grid-row: span 2; }
  .article-grid:not(.article-grid--3) .article-card.is-featured .article-thumb { aspect-ratio: auto; flex: 1 1 auto; min-height: 340px; }
  .article-grid:not(.article-grid--3) .article-card.is-featured .article-body { flex: 0 0 auto; padding: 38px 40px 42px; }
  .article-grid:not(.article-grid--3) .article-card.is-featured .article-title { font-size: 1.75rem; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: 1.1rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { width: 16px; height: 16px; position: relative; flex-shrink: 0; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--red); transition: transform .4s var(--ease); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-a { color: var(--muted); padding: 0 40px 26px 0; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(90px, 12vw, 160px) 0; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; text-align: center; }
.cta-bg { position: absolute; inset: -40px 0; background-position: center; background-size: cover; z-index: -2; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 22, 39, .86), rgba(1, 22, 39, .7)); z-index: -1; }
.cta-inner { max-width: 820px; }
.cta h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); margin-bottom: 20px; }
.cta p { color: rgba(255, 255, 255, .75); font-size: 1.1rem; margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(50px, 7vw, 110px); }
.contact-list { margin-top: 44px; display: grid; gap: 26px; }
.contact-list li { display: flex; gap: 20px; align-items: flex-start; }
.contact-list .ci { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--red); flex-shrink: 0; }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a, .contact-list span { font-size: 1rem; font-weight: 500; }
.contact-list a:hover { color: var(--red); }
.contact-form-wrap { background: var(--paper); padding: clamp(30px, 4.5vw, 56px); box-shadow: var(--shadow); position: relative; }
.contact-form-wrap::before { content: ""; position: absolute; top: 0; left: 0; width: 80px; height: 3px; background: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.field { display: block; margin-bottom: 26px; }
.field span { display: block; font-size: .78rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(1, 22, 39, .2); background: transparent; padding: 10px 0;
  font: inherit; font-size: 1rem; color: var(--ink); border-radius: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23011627' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--red); }
.field.has-error input { border-bottom-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 18px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: #1c7a4a; }
.form-status.err { color: var(--red); }
.contact-form.is-sending button { opacity: .6; pointer-events: none; }
.map-wrap { margin-top: clamp(60px, 8vw, 100px); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.85) contrast(1.05); display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding-top: 100px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 50px; padding-bottom: 70px; }
.footer-logo { height: 38px; width: auto; margin-bottom: 26px; }
.footer-brand p { max-width: 340px; }
.footer-title { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: #fff; margin-bottom: 24px; font-weight: 600; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-contact .ico { color: var(--red); margin-top: 5px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-light); transition: all .3s; }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-light); padding-top: 28px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 30px; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-meta { display: flex; gap: 12px; align-items: center; }
.footer-meta a { display: inline-flex; gap: 6px; align-items: center; }
.footer-meta a:hover { color: #fff; }
.credit a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--red); padding-bottom: 2px; transition: color .3s; }
.credit a:hover { color: var(--red); }

/* ---------- floating contact (follows scroll) ---------- */
.fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-main { display: flex; align-items: center; gap: 0; background: var(--red); color: #fff; border-radius: 40px; height: 60px; padding: 0 6px 0 22px; box-shadow: 0 16px 34px -10px rgba(217, 73, 72, .7); transition: padding .4s var(--ease), background .3s; position: relative; }
.fab-main::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--red); animation: pulse 2.6s var(--ease) infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.fab-main-label { font-size: .86rem; font-weight: 600; letter-spacing: .03em; margin-right: 12px; white-space: nowrap; }
.fab-main-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.fab-main-icon > span { position: absolute; display: inline-flex; transition: transform .4s var(--ease), opacity .3s; }
.fab-main-icon .i-close { opacity: 0; transform: rotate(-90deg); }
.fab.is-open .fab-main-icon .i-open { opacity: 0; transform: rotate(90deg); }
.fab.is-open .fab-main-icon .i-close { opacity: 1; transform: none; }
.fab.is-open .fab-main::before { animation: none; opacity: 0; }
.fab-list { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-list li { opacity: 0; transform: translate3d(0, 14px, 0) scale(.9); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.fab.is-open .fab-list li { opacity: 1; transform: none; pointer-events: auto; }
.fab-item { display: flex; align-items: center; gap: 12px; }
.fab-label { background: var(--paper); color: var(--navy); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 4px; box-shadow: 0 10px 24px -12px rgba(1, 22, 39, .45); white-space: nowrap; }
.fab-icon { width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 24px -10px rgba(1, 22, 39, .6); transition: transform .3s var(--ease); }
.fab-item:hover .fab-icon { transform: scale(1.08); }
.fab-line .fab-icon { background: #06c755; }
.fab-messenger .fab-icon { background: linear-gradient(45deg, #0a7cff, #a033ff 60%, #ff5280); }
.fab-facebook .fab-icon { background: #1877f2; }
.fab-whatsapp .fab-icon { background: #25d366; }
.fab-mail .fab-icon { background: var(--navy-3); }
.fab-phone .fab-icon { background: var(--navy); }
.fab-top { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -12px rgba(1, 22, 39, .5); opacity: 0; transform: translate3d(0, 10px, 0); pointer-events: none; transition: all .4s var(--ease); margin-right: 7px; }
.fab-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab-top { opacity: 0; pointer-events: none; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 90px) 0 90px; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 22, 39, .95), rgba(1, 22, 39, .6)); }
.page-hero-inner { max-width: 900px; margin-left: 0; }
@media (min-width: 1320px) { .page-hero-inner { margin-left: calc((100vw - var(--container)) / 2 - var(--gutter)); } }
.page-title { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 10px 0 22px; line-height: 1.2; }
.lang-th .page-title { line-height: 1.35; }
.page-lead { font-size: 1.1rem; color: rgba(255, 255, 255, .75); max-width: 680px; margin: 0; }
.breadcrumb { display: flex; gap: 10px; font-size: .82rem; color: rgba(255, 255, 255, .6); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }

.article-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); padding-top: 80px; padding-bottom: 110px; max-width: 1180px; }
.article-aside { position: relative; }
.article-aside > * { position: sticky; top: 110px; }
.toc { border-top: 2px solid var(--red); padding-top: 20px; margin-bottom: 30px; }
.toc-title { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.toc li { margin-bottom: 10px; }
.toc a:hover, .toc a.is-current { color: var(--red); }
.aside-cta { background: var(--navy); color: #fff; padding: 28px; top: auto; position: static; }
.aside-cta p { font-weight: 600; font-size: 1.05rem; line-height: 1.5; }
.aside-phone { display: flex; justify-content: center; gap: 8px; align-items: center; margin-top: 16px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.prose { font-size: 1.08rem; line-height: 1.9; color: #253545; max-width: 760px; }
.prose > p:first-child { font-size: 1.2rem; color: var(--ink); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 2.2em 0 .8em; color: var(--navy); scroll-margin-top: 110px; font-weight: 600; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .6em; color: var(--navy); }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1.5px; background: var(--red); }
.prose ol { padding-left: 1.3em; }
.prose ol li { margin-bottom: .6em; }
.prose a { color: var(--red); border-bottom: 1px solid currentColor; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose blockquote { margin: 2em 0; padding: 30px 34px; background: var(--paper); border-left: 3px solid var(--red); font-size: 1.2rem; font-weight: 500; color: var(--navy); }
.prose img { margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .96rem; background: var(--paper); }
.prose th, .prose td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--navy); color: #fff; font-weight: 600; }
.article-share { display: flex; gap: 10px; align-items: center; margin: 50px 0 30px; padding-top: 30px; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article-share span { margin-right: 10px; }
.article-share a { width: 40px; height: 40px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); border-bottom: 1px solid var(--line); transition: all .3s; }
.article-share a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.link-back { border: 0 !important; color: var(--navy) !important; }
.page-404 { padding: 220px 0 140px; text-align: center; }
.page-404 h1 { font-size: 6rem; font-weight: 200; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3) { border-left: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0; background: var(--navy); padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
    display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden;
    transform: translate3d(0, -12px, 0); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line-light); }
  .main-nav a { display: block; font-size: 1.5rem; padding: 18px 0; opacity: 1; }
  .main-nav a::after { display: none; }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }
  .nav-phone { display: flex; gap: 10px; align-items: center; justify-content: center; color: rgba(255, 255, 255, .8); }
  .nav-open { overflow: hidden; }
  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .solution, .prod-panel, .about-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .solution.is-reverse .solution-media { order: 0; }
  .about-media { max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 34px 22px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; padding-top: 50px; }
  .article-aside { order: 2; }
  .article-aside > * { position: static; }
  .toc { display: none; }
  .hero-footer { grid-template-columns: auto 1fr; }
  .hero-caption { display: none; }
  .hero-dots { justify-self: end; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { min-height: 92svh; }
  .hero-content { padding-bottom: 120px; }
  .hero-shade { background: linear-gradient(0deg, rgba(1, 22, 39, .95) 10%, rgba(1, 22, 39, .55) 60%, rgba(1, 22, 39, .6)); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-dot { width: 26px; }
  .hero-footer { bottom: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .ind-grid, .article-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .ind-card { aspect-ratio: 4 / 3; }
  .why-item { border-left: 0; border-top: 1px solid var(--line); padding: 34px 0 14px; }
  .why-item:first-child { border-top: 0; }
  .about-badge { left: 0; top: auto; bottom: 30%; padding: 18px 20px; }
  .about-badge strong { font-size: 2.2rem; }
  .solution-media::before { display: none; }
  .fab-main { padding: 0 6px; }
  .fab-main-label { display: none; }
  .fab-main-icon { width: 48px; }
  .map-wrap iframe { height: 300px; }
  .partner { width: 160px; padding: 0 20px; }
  .lang-switch { font-size: .74rem; }
  .header-actions { gap: 10px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .fab, .cta, .contact-form-wrap, .map-wrap { display: none !important; } }

/* Thai typography: wide tracking hurts Thai glyphs */
.lang-th .partners-title, .lang-th .footer-title, .lang-th .toc-title, .lang-th .contact-list small { letter-spacing: .04em; }
.lang-th .eyebrow { letter-spacing: .2em; }
