/* GOODCYBER v5 — เว็บสาธารณะชุดใหม่
   ธีมเดิมของเว็บ: พื้นกรมท่าเกือบดำ #060912/#0a0e1a + เขียวโลโก้ #00ff88 → มะนาว #a0ff59
   โมชั่น: เคลื่อนแค่ transform/opacity/filter/clip-path · ปิดทั้งหมดเมื่อ prefers-reduced-motion */

:root {
  --bg: #05080f;
  --bg2: #0a0e1a;
  --bg3: #0e1424;
  --panel: rgba(16, 24, 42, .62);
  --panel2: rgba(22, 32, 54, .72);
  --line: rgba(170, 196, 226, .11);
  --line2: rgba(170, 196, 226, .2);
  --g: #00ff88;
  --lime: #a0ff59;
  --g-dim: rgba(0, 255, 136, .14);
  --ink: #03140b;
  --text: #eaf0f7;
  --muted: #9eabbd;
  --dim: #6d7b90;
  --grad: linear-gradient(100deg, var(--g) 10%, var(--lime) 90%);
  --head: 'Prompt', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --body: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 18px;
  --r-sm: 11px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --hdr: 96px;
  --wrap: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

/* ---------- แถบเลื่อน: ราง = สีพื้นเว็บ · แท่งเป็นไล่เฉดเขียวแบรนด์ มุมมน ไม่มีลูกศร (ของเดิมเป็นแถบเทาสว่างของ Windows บนพื้นมืด) ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(0, 255, 136, .5), rgba(160, 255, 89, .34)); border-radius: 12px; border: 3px solid var(--bg); background-clip: padding-box; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #00ff88, #a0ff59); background-clip: padding-box; border: 3px solid var(--bg); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(0, 255, 136, .45) var(--bg); } }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--g); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.grad { color: var(--g); }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15.5px/1 var(--head); letter-spacing: .01em; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, border-color .25s; }
.btn .ic { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn-pri { background: var(--g); color: var(--ink); }
.btn-pri:hover { background: #2bff9d; }
.btn-ghost { border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(0, 255, 136, .5); background: rgba(0, 255, 136, .06); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.tlink { display: inline-flex; align-items: center; gap: .4em; color: var(--g); font: 600 15px var(--head); }
.tlink:hover .ic { transform: translateX(3px); }
.tlink .ic { transition: transform .25s var(--ease); }

/* ---------- ส่วนหัว ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background-color .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.hdr.is-scrolled, .hdr.nav-open { background: rgba(5, 8, 15, .84); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 64px; width: auto; filter: drop-shadow(0 0 10px rgba(0, 255, 136, .35)); transition: filter .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(0, 255, 136, .55)); }
.nav { margin-right: auto; }
.nav > ul { display: flex; gap: 2px; }
.nav-a { display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 15px; border-radius: 10px; font: 500 16px var(--head); letter-spacing: .02em; color: #cdd6e3; transition: color .2s, background-color .2s; }
.nav-a:hover, .nav-a[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .05); }
.caret { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-a[aria-expanded="true"] .caret { transform: rotate(180deg); }
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: calc(var(--hdr) - 1px); padding: 0 20px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
.mega-in { width: min(100%, var(--wrap)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; padding: 22px 24px 18px; background: rgba(9, 14, 26, .97); border: 1px solid var(--line2); border-top: 0; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.mega-h { font: 600 14px/1 var(--head); color: var(--g); margin-bottom: 10px; }
.mega-col a { display: flex; align-items: center; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 10px; font: 500 15px/1.3 var(--head); color: #d5deea; transition: background-color .2s; }
.mega-col a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.mega-img { width: 46px; height: 40px; border-radius: 8px; background: radial-gradient(circle at 50% 60%, rgba(0, 255, 136, .14), transparent 70%), var(--bg3); display: grid; place-items: center; padding: 4px; flex: none; }
.mega-img img { max-height: 32px; width: auto; object-fit: contain; }
.mega-all { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: var(--g); font: 600 14px var(--head); padding-top: 8px; }
.hdr-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* เข้าสู่ระบบ = ปุ่มไอคอน (ป้ายชื่อโผล่ตอนชี้) · เบอร์โทรกับขอใบเสนอราคาย้ายไปส่วนติดต่อด้านล่าง */
.hdr-login { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #dbe4ee; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); transition: color .25s, background-color .25s, border-color .25s; }
.hdr-login .ic { width: 21px; height: 21px; transition: transform .3s var(--ease); }
.hdr-login:hover, .hdr-login:focus-visible { color: var(--ink); background: var(--g); border-color: var(--g); }
.hdr-login:hover .ic, .hdr-login:focus-visible .ic { transform: translateX(2px); }
.hdr-login:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
.hdr-login::after { content: attr(data-tip); position: absolute; top: calc(100% + 10px); right: 0; padding: 7px 11px; border-radius: 9px; background: #0e1626; border: 1px solid var(--line2); color: #e8eef5; font: 500 13px/1 var(--head); white-space: nowrap; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; }
@media (hover: hover) { .hdr-login:hover::after { opacity: 1; transform: none; } }
.hdr-login:focus-visible::after { opacity: 1; transform: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); place-items: center; }
.menu-btn .ic { width: 22px; height: 22px; grid-area: 1/1; }
.menu-btn .ic:last-child, .hdr.nav-open .menu-btn .ic:first-child { display: none; }
.hdr.nav-open .menu-btn .ic:last-child { display: block; }
.nav-m-foot { display: none; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(660px, 100svh, 920px); padding-top: var(--hdr); display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hb-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 90%; background: radial-gradient(closest-side, rgba(0, 255, 136, .06), transparent 70%); }
.hb-grid { display: none; position: absolute; left: -10%; right: -10%; bottom: 0; height: 46%; background-image: linear-gradient(rgba(0, 255, 136, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, .09) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); z-index: -1; pointer-events: none; }

.slides { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 28px 0 12px; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 64px); opacity: 0; visibility: hidden; transition: opacity .55s var(--ease-io), visibility 0s .55s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .55s var(--ease-io) .1s, visibility 0s; }

.slide-copy { max-width: 580px; position: relative; z-index: 2; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--head); color: #cfd8e3; }
.kicker-n { color: var(--g); font-weight: 600; }
.kicker-n::after { content: '/'; margin-left: 10px; color: var(--dim); font-weight: 400; }
.h-hero { margin: 22px 0 18px; font: 600 clamp(2.15rem, 3.5vw, 3.15rem)/1.18 var(--head); letter-spacing: -.01em; text-wrap: balance; }
.ln { display: block; overflow: hidden; padding: .1em 0 .16em; margin: -.1em 0 -.16em; }
.ln > span { display: inline-block; }
.lead { color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); max-width: 520px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 30px; border-top: 1px solid var(--line); }
.specs > div { padding: 14px 14px 0 0; }
.specs > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.specs dt { font: 400 13.5px/1.3 var(--body); color: var(--dim); }
.specs dd { margin-top: 6px; font: 600 15.5px/1.35 var(--head); color: #dfe8f2; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* เวทีสินค้า: พิกัดทุกชิ้นเป็น % ของเวที (ให้ CMS ตั้ง layout ได้) */
/* เวที = กรอบมาตรฐานเดียวกันทุกสไลด์: ตาราง 40px จาง ๆ + สินค้าเรียงบนเส้นฐาน + HUD ที่มุมบนซ้าย/ขวา */
.stage { position: relative; width: 100%; aspect-ratio: 1 / .8; max-height: calc(100svh - var(--hdr) - 130px); min-height: 380px; margin-inline: auto; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(16, 24, 42, .55), rgba(5, 8, 15, .25)); overflow: hidden; isolation: isolate; }
.stage-grid { display: none; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(170, 196, 226, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(170, 196, 226, .05) 1px, transparent 1px); background-size: 40px 40px; background-position: center; -webkit-mask-image: radial-gradient(75% 70% at 50% 55%, #000, transparent); mask-image: radial-gradient(75% 70% at 50% 55%, #000, transparent); }
.row { position: absolute; left: 4%; right: 4%; bottom: 7%; display: flex; align-items: flex-end; justify-content: center; gap: 3%; z-index: 1; }
.row-top { position: absolute; left: 4%; right: 4%; top: 7%; display: flex; justify-content: center; z-index: 1; }
.lay-gvms .row { gap: 1.5%; }
.lay-duo .row { gap: 9%; }
.spot { position: absolute; z-index: -1; left: 10%; right: 10%; top: 12%; bottom: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 255, 136, .09), transparent 72%); }
.floor { position: absolute; z-index: 0; left: 8%; right: 8%; bottom: calc(7% + 22px); height: 13%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }


.pi { position: relative; flex: 0 0 var(--w); width: var(--w); margin: 0; display: flex; flex-direction: column; align-items: center; }
.pi-box { position: relative; width: 100%; aspect-ratio: var(--ar, 1); }
.pi-over { margin-left: calc(var(--w) * -.5); z-index: 2; }
.pi-top { flex-basis: auto; }
/* ชื่อรุ่นใต้สินค้า (สูงเท่ากันทุกชิ้น → ฐานตรงกัน) */
.pi-cap { display: inline-flex; align-items: center; gap: 7px; height: 22px; margin-top: 14px; font: 500 12.5px/1 var(--head); color: var(--muted); white-space: nowrap; }
.pi-cap::before { content: ''; width: 14px; height: 1px; background: var(--line2); }
.pi-cap:empty { visibility: hidden; }
.pi-float { position: relative; width: 100%; height: 100%; }
.pi-float > img, .bar-base img, .bar-arm img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }

/* แสงวิ่งผ่านตัวสินค้า: mask ด้วยรูปตัวเอง → แสงอยู่แค่บนเนื้อสินค้า */
.pi:not(.dev) .pi-float::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 140% 0; -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat; opacity: 0; }

/* ไม้กั้น 2 ชั้น: ตู้ (ซ้าย 24.5%) + แขน (หมุนรอบจุดหมุน) */
.fx-barrier .pi-float::after { display: none; }
.bar-base, .bar-arm { position: absolute; inset: 0; }
.bar-base { clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.bar-arm { clip-path: inset(var(--at) 0 var(--ab) var(--cut)); transform-origin: var(--ox) var(--oy); }
/* Access Point ภาพมุมบน → เอียงให้เหมือนมองจากใต้เพดาน */
.fx-tilt .pi-float > img { transform: perspective(900px) rotateX(62deg); transform-origin: 50% 0; }
.fx-tilt .pi-float::after { display: none; }
/* หน้าจอซอฟต์แวร์จริงในกรอบอุปกรณ์ */
.dev-laptop .pi-box, .dev-site .pi-box { aspect-ratio: 16 / 10.4; }
.dev-laptop .mk-laptop { width: 100%; }
.dev-phone .pi-box { aspect-ratio: 9 / 19; }
.dev-phone .mk-phone { position: absolute; inset: 0; width: 100%; right: auto; bottom: auto; }
.mk-fit { width: 100%; height: 100%; object-fit: cover; object-position: top center; }


/* จอ laptop / มือถือ (ภาพหน้าจอจริงเลื่อนเอง) */
.mk-laptop { position: relative; width: 84%; aspect-ratio: 16 / 10.4; }
.mk-lid { position: absolute; left: 6%; right: 6%; top: 0; bottom: 6%; padding: 2.4% 2.4% 3%; border-radius: 14px 14px 4px 4px; background: linear-gradient(#1b2232, #0a0f1a); box-shadow: inset 0 0 0 1px #2f3a50, 0 0 0 1px #000, 0 30px 60px -20px rgba(0, 0, 0, .8); }
.mk-base { position: absolute; left: 0; right: 0; bottom: 0; height: 6.5%; background: linear-gradient(#e8edf3, #aab4c1 55%, #6f7a88); border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%; }
.mk-base::before { content: ''; position: absolute; left: 42%; right: 42%; top: 0; height: 32%; background: #8a95a3; border-radius: 0 0 9px 9px; }
.mk-scr { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: #fff; }
.mk-roll { width: 100%; height: auto; }
.mk-phone { position: absolute; right: 2%; bottom: 0; width: 22%; aspect-ratio: 9 / 19; padding: 3.2% 1.6%; padding: 0; border-radius: 18% / 8.5%; background: #090d16; box-shadow: inset 0 0 0 2px #333d52, 0 0 0 1px #000, 0 26px 50px -16px rgba(0, 0, 0, .85); }
.mk-phone .mk-scr { position: absolute; inset: 3.4% 5%; width: auto; height: auto; border-radius: 13% / 6%; }
.dev .pi-float { display: flex; align-items: flex-end; }
.dev-site .mk-laptop { width: 86%; }
.dev-site .mk-phone { right: 0; bottom: 0; width: 21%; }

/* ป้ายชี้ (callout) */
.co { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 4; display: flex; align-items: center; pointer-events: none; }
.co-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px rgba(0, 255, 136, .18), 0 0 14px var(--g); flex: none; }
.co-ln { width: 26px; height: 1px; background: linear-gradient(90deg, var(--g), rgba(0, 255, 136, .2)); transform-origin: 0 50%; }
.co-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(8, 13, 24, .82); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 13px/1.2 var(--body); color: #dce6f1; white-space: nowrap; }
.co-pill b { font: 600 11px/1 var(--mono); padding: 5px 7px; border-radius: 999px; background: var(--g-dim); color: var(--g); letter-spacing: .05em; }
.co-r { flex-direction: row-reverse; transform: translateX(-100%); }
.co-r .co-ln { transform-origin: 100% 50%; background: linear-gradient(270deg, var(--g), rgba(0, 255, 136, .2)); }

/* กล่อง HUD ใช้ร่วม */
.scn { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hud.slot-tl { left: 4%; top: 5%; }
.hud.slot-tr { right: 4%; top: 5%; }
.hud { position: absolute; background: rgba(7, 12, 22, .86); border: 1px solid rgba(0, 255, 136, .22); border-radius: 14px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); color: #dfe8f2; font-size: 13px; line-height: 1.35; }
.hud-top { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.hud-t { margin-left: auto; color: var(--g); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 8px #ff4d5e; }
.br { position: absolute; width: 14px; height: 14px; border: 2px solid var(--g); }
.br.tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.br.tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.br.bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.br.br2 { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.scanline { position: absolute; left: 4%; right: 4%; top: 0; height: 2px; background: var(--g); box-shadow: 0 0 12px 2px rgba(0, 255, 136, .7); opacity: 0; }

/* ฉาก LPR (GVMS) */
.lpr-card { width: 40%; padding: 12px; }
.plate { position: relative; margin: 10px 0; padding: 10px 8px 8px; border-radius: 8px; background: #f4f6f2; color: #111; text-align: center; overflow: hidden; }
.plate b { display: block; font: 700 clamp(18px, 2vw, 26px)/1.1 var(--head); letter-spacing: .04em; }
.plate small { display: block; font: 500 11px/1.4 var(--body); color: #333; }
.plate .br { border-color: #00c46a; }
.plate .scanline { left: 0; right: 0; }
.lpr-res { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.lpr-res span { display: inline-flex; align-items: center; gap: 5px; }
.lpr-res .ic { width: 15px; height: 15px; }
.lpr-res .ok { padding: 4px 9px 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-weight: 600; }
.lpr-guest { padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.lpr-guest .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.lpr-beam { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lpr-beam path { fill: none; stroke: var(--g); stroke-width: .35; stroke-dasharray: 1.2 1.2; vector-effect: non-scaling-stroke; stroke-width: 1.4; opacity: 0; }

/* ฉากกล้อง AI */
.fov { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.vf { width: 40%; padding: 8px; }
.vf-img { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.vf-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.05) brightness(.9); }
.vf-img::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.vf-top { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; color: #fff; text-shadow: 0 1px 2px #000; }
.vf-top .hud-t { margin-left: 8px; color: #fff; }
.vf-ch { margin-left: auto; }
.vf-bot { padding: 8px 4px 2px; font-size: 12px; color: var(--muted); }
.tbox { position: absolute; border: 1.5px solid var(--lime); border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.tbox span { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 3px; padding: 2px 5px; border-radius: 3px; background: var(--lime); color: var(--ink); font: 700 9.5px/1.2 var(--mono); white-space: nowrap; }
.tbox em { font-style: normal; }
.tb1 { left: calc(8px + 38% * .97); top: calc(8px + 50% * .82); width: 17%; height: 32%; }
.tb2 { left: calc(8px + 58% * .97); top: calc(8px + 60% * .82); width: 26%; height: 28%; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; }
.toast > .ic { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #06c755; color: #fff; }
.toast b { display: block; font: 600 12.5px/1.2 var(--head); }
.toast span { font-size: 12px; color: var(--muted); }

/* ฉากสแกนหน้า: กรอบอยู่บนจอเครื่อง (พิกัด % ของรูป) */
.scn-face { position: absolute; inset: 0; pointer-events: none; }
.fs-frame { position: absolute; left: 33%; right: 33%; top: 21%; bottom: 58%; }
.fs-frame .scanline { left: -6%; right: -6%; }
.face-ok { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; }
.face-ok .avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--g-dim); color: var(--g); }
.face-ok b { display: block; font: 600 14px/1.2 var(--head); color: var(--g); }
.face-ok span { font-size: 12px; color: var(--muted); }
.face-ok i { font-style: normal; font-family: var(--mono); }
.door { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12.5px; }
.door .ic { width: 18px; height: 18px; color: var(--g); }
.door .shackle { transform-box: fill-box; transform-origin: 85% 100%; }

/* ฉากเครือข่าย */
.net, .energy { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke: rgba(0, 255, 136, .28); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; }
.flow { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2 26; opacity: 0; filter: drop-shadow(0 0 3px var(--g)); }
.ripple { position: absolute; left: 50%; top: 17%; width: 34%; aspect-ratio: 1; margin: -17% 0 0 -17%; border-radius: 50%; border: 1.5px solid rgba(0, 255, 136, .5); opacity: 0; }
.node { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 13px; background: rgba(7, 12, 22, .9); border: 1px solid rgba(0, 255, 136, .3); color: var(--g); }
.node .ic { width: 22px; height: 22px; }
.node.n1 { left: 10%; top: 45%; }
.node.n2 { left: 90%; top: 45%; }
.thr { padding: 10px 12px; min-width: 150px; }
.thr span:first-child { display: block; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.thr b { display: block; margin: 6px 0; font: 600 20px/1 var(--mono); color: var(--g); }
.thr i, .kwh i { font-style: normal; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i { flex: 1; height: 100%; background: rgba(0, 255, 136, .5); border-radius: 2px; transform-origin: 50% 100%; transform: scaleY(.4); }

/* ฉากโซลาร์ */
.sun { position: absolute; right: 5%; top: 5%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff7c2 0 22%, #ffd84d 34%, rgba(255, 196, 0, .25) 52%, transparent 70%); }
.sun i { position: absolute; inset: -30%; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 220, 90, .35) 0 4deg, transparent 4deg 18deg); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 70%); mask: radial-gradient(circle, transparent 38%, #000 40%, transparent 70%); }
.n-home { left: 91%; top: 46%; }
.kwh { padding: 12px 14px; min-width: 190px; }
.kwh > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.kwh > span:first-child .ic { color: #ffd84d; width: 15px; height: 15px; }
.kwh b { display: block; margin: 6px 0 10px; font: 600 24px/1 var(--mono); color: var(--text); }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 1px 1px; background: linear-gradient(var(--lime), rgba(0, 255, 136, .35)); transform-origin: 50% 100%; }

/* ฉากเว็บไซต์ */
.badges { position: absolute; left: 4%; right: 4%; top: 5%; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.badges .hud { position: relative; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 9px; font: 600 13px/1 var(--head); color: #e6f8ee; }
.badge .ic { width: 17px; height: 17px; color: var(--g); }

/* แท็บ + ปุ่มควบคุมแบนเนอร์ */
.hero-ctrl { display: flex; align-items: center; gap: 18px; padding: 8px 0 28px; position: relative; z-index: 3; }
.tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.tab { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 10px 0 0; text-align: left; color: var(--dim); transition: color .25s; }
.tab:hover { color: var(--muted); }
.tab.is-active { color: var(--text); }
.tab-n { font: 600 12px/1 var(--mono); color: inherit; }
.tab.is-active .tab-n { color: var(--g); }
.tab-l { font: 500 14px/1.3 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-bar { grid-column: 1 / -1; height: 2px; margin-top: 10px; background: var(--line2); border-radius: 2px; overflow: hidden; }
.tab-bar i { display: block; height: 100%; background: var(--g); transform: scaleX(0); transform-origin: 0 50%; }
.ctrl-btns { display: flex; gap: 8px; }
.cbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); transition: border-color .2s, background-color .2s; }
.cbtn:hover { border-color: rgba(0, 255, 136, .5); background: rgba(0, 255, 136, .07); }
.cbtn .ic { width: 18px; height: 18px; grid-area: 1/1; }
[data-toggle] .ic:last-child, .hero.is-paused [data-toggle] .ic:first-child { display: none; }
.hero.is-paused [data-toggle] .ic:last-child { display: block; }

/* =================== โมชั่นแบนเนอร์ =================== */
@media (prefers-reduced-motion: no-preference) {
  /* ข้อความ: เลื่อนขึ้นจากใต้เส้น (mask) ทีละบรรทัด */
  .slide.is-active .kicker { animation: up .7s var(--ease) .05s both; }
  .slide.is-active .ln > span { animation: lineUp .95s var(--ease) both; }
  .slide.is-active .ln:nth-child(1) > span { animation-delay: .12s; }
  .slide.is-active .ln:nth-child(2) > span { animation-delay: .22s; }
  .slide.is-active .lead { animation: up .8s var(--ease) .34s both; }
  .slide.is-active .specs > div { animation: up .7s var(--ease) both; }
  .slide.is-active .specs > div:nth-child(1) { animation-delay: .44s; }
  .slide.is-active .specs > div:nth-child(2) { animation-delay: .5s; }
  .slide.is-active .specs > div:nth-child(3) { animation-delay: .56s; }
  .slide.is-active .cta-row { animation: up .7s var(--ease) .62s both; }

  /* เวที: ไฟส่อง + พื้นวงแหวน */
  .slide.is-active .spot { animation: bloom 1.4s var(--ease) both, breathe 6s ease-in-out 1.4s infinite alternate; }
  .slide.is-active .floor { animation: floorIn 1.1s var(--ease) .1s both; }

  /* สินค้า: ลอยขึ้นจากพื้น หายเบลอ ทีละชิ้น แล้วลอยช้า ๆ */
  .slide.is-active .pi-box { animation: piIn 1.05s var(--ease) both; }
  .slide.is-active .pi-cap { animation: up .7s var(--ease) .9s both; }
  .slide.is-active .pi-1 .pi-box { animation-delay: .1s; }
  .slide.is-active .pi-2 .pi-box { animation-delay: .2s; }
  .slide.is-active .pi-3 .pi-box { animation-delay: .3s; }
  .slide.is-active .pi-float { animation: float 6s ease-in-out 1.1s infinite alternate; }
  .slide.is-active .pi-1 .pi-float { animation-delay: 1.9s; animation-duration: 7s; }
  .slide.is-active .pi-2 .pi-float { animation-delay: 1.4s; animation-duration: 5.5s; }
  .slide.is-active .pi-3 .pi-float { animation: none; }
  .slide.is-active .pi-float::after { animation: sheen 1.6s ease-in-out 1.1s both; }
  .slide.is-active .pi-1 .pi-float::after { animation-delay: 1.35s; }
  .slide.is-active .pi-2 .pi-float::after { animation-delay: 1.55s; }
  .slide.is-active .pi-3 .pi-float::after { animation-delay: 1.75s; }

  /* ป้ายชี้: จุดเด้ง → เส้นวิ่ง → ป้ายเผย */
  .slide.is-active .co-dot { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) calc(1.5s + var(--d, 0s)) both, ping 2.4s ease-out calc(2.2s + var(--d, 0s)) infinite; }
  .slide.is-active .co-ln { animation: drawX .45s var(--ease) calc(1.7s + var(--d, 0s)) both; }
  .slide.is-active .co-pill { animation: wipe .6s var(--ease) calc(1.9s + var(--d, 0s)) both; }
  .slide.is-active .co-1 { --d: .35s; }
  .co-r .co-pill { --wipe-from: inset(0 0 0 100% round 999px); }

  /* HUD เข้าแบบสปริง */
  .slide.is-active .hud { animation: hudIn .8s var(--ease) both; }

  /* --- LPR: สแกนป้าย → อ่านได้ → อนุญาต → ยกไม้กั้น → ลดลง --- */
  .slide.is-active .lpr-card { animation-delay: .5s; }
  .slide.is-active .lpr-beam path { animation: beam 1.6s linear .9s both, dash 1s linear .9s infinite; }
  .slide.is-active .plate .scanline { animation: scan 1.1s ease-in-out .8s 2 both; }
  .slide.is-active .plate b, .slide.is-active .plate small { animation: decode .5s ease-out 2.05s both; }
  .slide.is-active .plate .br { animation: lock .4s var(--ease) 2.05s both; }
  .slide.is-active .lpr-res .ok { animation: okOn .4s var(--ease) 2.4s both; }
  .slide.is-active .bar-arm { animation: armLift 7s var(--ease-io) both; animation-duration: var(--dur); }
  .slide.is-active .lpr-guest { animation-delay: 3.4s; }

  /* --- กล้อง AI: จอดูภาพ + กรอบจับวัตถุ + แจ้งเตือน --- */
  .slide.is-active .fov { animation: fade .8s ease 1s both, sweep 5s ease-in-out 1.6s infinite alternate; transform-origin: 55% 30%; }
  .slide.is-active .vf { animation-delay: .45s; }
  .slide.is-active .tbox { animation: boxIn .55s cubic-bezier(.34, 1.56, .64, 1) 1.25s both, drift 3.2s ease-in-out 1.8s infinite alternate; }
  .slide.is-active .tb2 { animation-delay: 1.45s, 2.1s; animation-duration: .55s, 4s; }
  .slide.is-active .rec { animation: blink 1s steps(2, start) infinite; }
  .slide.is-active .toast { animation: toastIn .7s cubic-bezier(.34, 1.4, .64, 1) 2.7s both; }

  /* --- สแกนหน้า --- */
  .slide.is-active .fs-frame { animation: frameIn .6s var(--ease) .9s both; }
  .slide.is-active .fs-frame .scanline { animation: scan 1.3s ease-in-out 1.1s 2 both; }
  .slide.is-active .face-ok { animation-delay: 2.5s; }
  .slide.is-active .door { animation-delay: 2.8s; }
  .slide.is-active .door .shackle { animation: unlock .5s var(--ease) 3.2s both; }

  /* --- เครือข่าย: สายวาด → ข้อมูลวิ่ง → คลื่น Wi-Fi --- */
  .slide.is-active .scn-net .wire { animation: draw 1s var(--ease) .6s both; }
  .slide.is-active .scn-net .flow { animation: fade .3s ease 1.4s both, flow 1.1s linear 1.4s infinite; }
  .slide.is-active .scn-net .flow.f2 { animation-duration: .3s, 1.4s; }
  .slide.is-active .scn-net .flow.f3 { animation-duration: .3s, .9s; }
  .slide.is-active .ripple { animation: ripple 2.7s ease-out 1s infinite; }
  .slide.is-active .ripple.r2 { animation-delay: 1.9s; }
  .slide.is-active .ripple.r3 { animation-delay: 2.8s; }
  .slide.is-active .scn-net .node { animation: pop .55s cubic-bezier(.34, 1.56, .64, 1) 1.2s both; }
  .slide.is-active .scn-net .n2 { animation-delay: 1.35s; }
  .slide.is-active .thr { animation-delay: .7s; }
  .slide.is-active .bars i { animation: eq 1.2s ease-in-out infinite alternate; }
  .slide.is-active .bars i:nth-child(2n) { animation-duration: .9s; }
  .slide.is-active .bars i:nth-child(3n) { animation-duration: 1.5s; animation-delay: .2s; }

  /* --- โซลาร์: อาทิตย์ขึ้น → พลังงานไหล → ตัวเลขนับ --- */
  .slide.is-active .sun { animation: sunUp 1.4s var(--ease) .3s both; }
  .slide.is-active .sun i { animation: spin 30s linear infinite; }
  .slide.is-active .scn-solar .wire { animation: draw 1s var(--ease) 1s both; }
  .slide.is-active .scn-solar .flow { animation: fade .3s ease 1.8s both, flow 1.2s linear 1.8s infinite; }
  .slide.is-active .scn-solar .n-home { animation: pop .55s cubic-bezier(.34, 1.56, .64, 1) 1.9s both; }
  .slide.is-active .kwh { animation-delay: .6s; }
  .slide.is-active .chart i { animation: growY .8s var(--ease) both; }
  .slide.is-active .chart i:nth-child(1) { animation-delay: 1.1s; }
  .slide.is-active .chart i:nth-child(2) { animation-delay: 1.17s; }
  .slide.is-active .chart i:nth-child(3) { animation-delay: 1.24s; }
  .slide.is-active .chart i:nth-child(4) { animation-delay: 1.31s; }
  .slide.is-active .chart i:nth-child(5) { animation-delay: 1.38s; }
  .slide.is-active .chart i:nth-child(6) { animation-delay: 1.45s; }
  .slide.is-active .chart i:nth-child(7) { animation-delay: 1.52s; }

  /* --- เว็บไซต์: หน้าจอเลื่อนเอง + ป้ายมาตรฐานเด้ง --- */
  .slide.is-active .mk-roll { animation: roll 9s ease-in-out 1s infinite alternate; }
  .slide.is-active .badge { animation: pop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
  .slide.is-active .badge.b1 { animation-delay: 1.2s; }
  .slide.is-active .badge.b2 { animation-delay: 1.45s; }
  .slide.is-active .badge.b3 { animation-delay: 1.7s; }

  /* แถบเวลา = นาฬิกาของ autoplay (JS ฟัง animationend) */
  .hero:not(.no-auto) .tab.is-active .tab-bar i { animation: prog var(--dur) linear both; }
  .hero.is-hold .tab.is-active .tab-bar i { animation-play-state: paused; }
  .hero.is-paused *, .hero.is-off * { animation-play-state: paused !important; }

  /* ส่วนอื่นของหน้า: เผยตอนเลื่อนถึง (เบราว์เซอร์ที่ไม่รองรับเห็นเนื้อหาปกติ) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .steps::before { animation: drawX linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
  }
  .pcard .pc-stage img, .scard img { transition: transform .6s var(--ease); }
}

@keyframes up { from { opacity: 0; transform: translateY(22px); } }
@keyframes lineUp { from { transform: translateY(108%); } }
@keyframes bloom { from { opacity: 0; transform: scale(.55); } }
@keyframes breathe { to { opacity: .72; transform: scale(1.04); } }
@keyframes floorIn { from { opacity: 0; transform: scaleX(.3); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes piIn { from { opacity: 0; transform: translateY(46px) scale(.92); filter: blur(12px); } 60% { filter: blur(0); } }
@keyframes float { to { transform: translateY(-10px); } }
@keyframes sheen { 0% { opacity: 1; background-position: 140% 0; } 100% { opacity: 1; background-position: -40% 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, .5), 0 0 14px var(--g); } 70%, 100% { box-shadow: 0 0 0 12px rgba(0, 255, 136, 0), 0 0 14px var(--g); } }
@keyframes drawX { from { transform: scaleX(0); } }
@keyframes wipe { from { clip-path: var(--wipe-from, inset(0 100% 0 0 round 999px)); } to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes hudIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes beam { 0%, 100% { opacity: 0; } 15%, 80% { opacity: .9; } }
@keyframes dash { to { stroke-dashoffset: -2.4; } }
@keyframes scan { 0% { opacity: 0; top: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
@keyframes decode { from { opacity: .15; filter: blur(5px); } }
@keyframes lock { from { opacity: 0; transform: scale(1.6); } }
@keyframes okOn { from { transform: scale(.9); } to { background: rgba(0, 255, 136, .16); color: var(--g); } }
/* แขนไม้กั้น: นิ่ง → ยก (ช่วง 37–50%) → ค้าง → ลด (84–95%) — ยาวเท่ารอบ autoplay */
@keyframes armLift { 0%, 37% { transform: rotate(0); } 50%, 84% { transform: rotate(-68deg); } 95%, 100% { transform: rotate(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@keyframes boxIn { from { opacity: 0; transform: scale(1.5); } }
@keyframes drift { to { transform: translate(4%, -3%); } }
@keyframes blink { to { opacity: .2; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.92); } }
@keyframes frameIn { from { opacity: 0; transform: scale(1.25); } }
@keyframes unlock { to { transform: translateY(-3px) rotate(18deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes sunUp { from { opacity: 0; transform: translateY(40%) scale(.6); } }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes roll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(var(--roll, -62%)); } }
@keyframes prog { to { transform: scaleX(1); } }

/* ลดการเคลื่อนไหว: สถานะนิ่งที่สวยอยู่แล้ว (ไม่มีอะไรค้างโปร่ง) */
@media (prefers-reduced-motion: reduce) {
  .scanline { display: none; }
  .scn-net .wire, .scn-solar .wire { stroke-dashoffset: 0; }
  .flow { opacity: .8; }
  .lpr-res .ok { background: rgba(0, 255, 136, .16); color: var(--g); }
  .tab.is-active .tab-bar i { transform: scaleX(1); }
  .pi:not(.dev) .pi-float::after { display: none; }
  html { scroll-behavior: auto; }
}

/* =================== ส่วนอื่นของหน้า =================== */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 20, 36, .6), rgba(5, 8, 15, 0)); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 8px 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 600 clamp(28px, 3.2vw, 42px)/1.1 var(--head); color: var(--text); }
.stat span { color: var(--muted); font-size: 15px; }

.sec { padding: clamp(80px, 10vw, 136px) 0; position: relative; }
.sec-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-row .sec-head { margin-bottom: 0; }
.eyebrow { font: 600 15px/1.4 var(--head); color: var(--g); }

.h2 { margin: 16px 0 0; font: 600 clamp(1.9rem, 3.4vw, 3rem)/1.2 var(--head); letter-spacing: -.005em; }
.sec-sub { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 640px; }

/* สินค้า */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); font: 500 14.5px var(--head); color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--text); border-color: rgba(0, 255, 136, .4); }
.chip.is-on { background: var(--g); border-color: var(--g); color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard[hidden] { display: none; }
.pcard a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 14px 18px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease), background-color .3s; overflow: hidden; }
.pcard a:hover { border-color: rgba(0, 255, 136, .35); transform: translateY(-3px); background: var(--panel2); }
.pc-stage { position: relative; aspect-ratio: 4 / 3; margin: 0 -4px 14px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(60% 55% at 50% 58%, rgba(0, 255, 136, .13), transparent 72%); }
.pc-stage::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 8%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
.pc-stage img { position: relative; z-index: 1; max-width: 78%; max-height: 80%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.pcard a:hover .pc-stage img { transform: translateY(-6px) scale(1.04); }
.pc-cat { font: 500 13px/1 var(--head); color: var(--g); }
.pc-name { margin-top: 8px; font: 600 18px/1.3 var(--head); }
.pc-desc { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pc-go { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); color: var(--muted); transition: all .25s; }
.pcard a:hover .pc-go { background: var(--g); border-color: var(--g); color: var(--ink); transform: rotate(-45deg); }

/* โซลูชันตามสถานที่ */
.sgrid { display: grid; grid-template-columns: 1.25fr 1fr; grid-auto-rows: 300px; gap: 16px; }
.scard { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); isolation: isolate; }
.scard:nth-child(1) { grid-row: span 2; }
.scard:nth-child(4) { grid-column: 1 / -1; }
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.scard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 15, .1) 20%, rgba(5, 8, 15, .92) 100%); }
.scard:hover img { transform: scale(1.04); }
.sc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; display: grid; gap: 6px; }
.sc-n { display: none; }
.sc-name { font: 600 clamp(20px, 2vw, 26px)/1.25 var(--head); }
.sc-desc { color: #c3cedb; font-size: 15.5px; max-width: 520px; }
.sc-tags { display: flex; gap: 6px; margin-top: 6px; }
.sc-tags i { font: 500 12.5px/1 var(--head); font-style: normal; padding: 6px 9px; border-radius: 999px; background: rgba(0, 255, 136, .12); color: var(--g); border: 1px solid rgba(0, 255, 136, .25); }

/* ซอฟต์แวร์ */
.sw { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-item { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.sw-vis { position: relative; height: 300px; padding: 30px 30px 0; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(60% 70% at 50% 100%, rgba(0, 255, 136, .14), transparent 70%); overflow: hidden; }
.sw-vis .mk-laptop { width: min(88%, 520px); margin-bottom: -2%; }
.sw-vis .mk-phone { right: 8%; bottom: -14%; width: 23%; max-width: 130px; }
.sw-vis .mk-phone.solo { position: relative; right: auto; bottom: -24%; width: 40%; max-width: 180px; }
.sw-copy { padding: 22px 26px 26px; }
.sw-copy h3 { font: 600 22px/1.3 var(--head); }
.sw-copy p { margin: 8px 0 14px; color: var(--muted); }
.sw-wide { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1.3fr 1fr; align-items: center; }
.sw-wide .sw-vis { height: 380px; }
.sw-wide .sw-copy { padding: 36px; }
.sw-wide .sw-copy h3 { font-size: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .mk-roll.slow { animation: roll 14s ease-in-out infinite alternate; --roll: -58%; }
  .mk-phone .mk-roll.slow { --roll: -72%; animation-duration: 18s; }
}

/* ขั้นตอน */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: linear-gradient(90deg, var(--g), rgba(0, 255, 136, .1)); transform-origin: 0 50%; }
.step { position: relative; padding-right: 12px; }
.step-n { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--bg3); border: 1px solid rgba(0, 255, 136, .35); font: 600 16px var(--mono); color: var(--g); box-shadow: 0 0 0 6px var(--bg); }
.step h3 { margin-top: 22px; font: 600 20px/1.3 var(--head); }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* ผลงาน */
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wgrid[hidden] { display: none; }
.wcard { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.wcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.wcard:hover img { transform: scale(1.05); }
.wcard figcaption { position: absolute; inset: auto 0 0; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(5, 8, 15, .94)); display: grid; gap: 4px; }
.wcard b { font: 600 17px/1.3 var(--head); }
.wcard span { color: #b7c3d1; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* CTA */
.cta { padding: 0 0 clamp(80px, 10vw, 120px); }
.cta-in { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--bg3); border: 1px solid var(--line2); overflow: hidden; }

.cta-copy p { margin: 16px 0 28px; color: #c3cedb; font-size: 18px; max-width: 560px; }
.cta-info { display: grid; gap: 14px; align-content: center; position: relative; z-index: 1; }
.cta-info li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(5, 8, 15, .5); border: 1px solid var(--line); }
.cta-info .ic { width: 22px; height: 22px; color: var(--g); margin-top: 2px; }
.cta-info b { display: block; font: 500 13px/1.4 var(--head); color: var(--dim); }
.cta-info a:hover { color: var(--g); }

/* ท้ายเว็บ */
.ftr { border-top: 1px solid var(--line); background: #04060c; padding: 56px 0 24px; color: var(--muted); font-size: 15px; }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ftr-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.ftr-col p { font: 600 15px var(--head); color: var(--text); margin-bottom: 12px; }
.ftr-col li + li { margin-top: 8px; }
.ftr-col a:hover { color: var(--g); }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.proto-badge { position: fixed; left: 12px; bottom: 12px; z-index: 60; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 196, 0, .14); border: 1px solid rgba(255, 196, 0, .4); color: #ffd666; font: 600 12px var(--head); pointer-events: none; }

/* =================== จอเล็ก =================== */
@media (max-width: 1120px) {
  .nav-a { padding: 0 10px; font-size: 15px; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --hdr: 76px; }
  .brand img { height: 46px; }
  .menu-btn { display: grid; }
  .nav { position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; margin: 0; padding: 12px 20px 24px; background: rgba(5, 8, 15, .98); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
  .hdr.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-a { width: 100%; height: 56px; padding: 0 4px; font-size: 18px; justify-content: space-between; border-radius: 0; }
  .nav-a:hover { background: none; }
  .mega { position: static; padding: 0; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-mega.is-open .mega { display: block; }
  .mega-in { grid-template-columns: 1fr 1fr; padding: 4px 0 16px; background: none; border: 0; box-shadow: none; }
  .nav-m-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  body.nav-lock { overflow: hidden; }

  .hero { min-height: 0; }
  .slides { padding: 12px 0 0; align-items: start; }
  .slide { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .stage { order: -1; width: 100%; max-width: 560px; aspect-ratio: 1 / .78; max-height: none; min-height: 0; }
  .slide-copy { max-width: none; }
  .h-hero { margin: 16px 0 12px; }
  .hero-ctrl { padding-bottom: 20px; }
  .tabs { grid-auto-columns: minmax(84px, 1fr); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-l { font-size: 13px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 0 22px 18px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .sgrid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .scard:nth-child(1) { grid-row: auto; }
  .sw { grid-template-columns: 1fr; }
  .sw-wide { grid-template-columns: 1fr; }
  .sw-wide .sw-vis, .sw-vis { height: 260px; }
  .sw-wide .sw-copy { padding: 22px 26px 26px; }
  .sw-wide .sw-copy h3 { font-size: 24px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .steps::before { display: none; }
  .wgrid { grid-template-columns: 1fr 1fr; }
  .cta-in { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  .sec-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard a { padding: 10px 12px 14px; }
  .pc-name { font-size: 16px; }
  .pc-desc { display: none; }
  .pc-go { display: none; }
  .specs dd { font-size: 14px; }
  .specs > div { padding-right: 8px; }
  .specs > div + div { padding-left: 10px; }
  .cta-row .btn { flex: 1 1 auto; }
  .ctrl-btns [data-prev], .ctrl-btns [data-next] { display: none; }
  .hud { font-size: 11.5px; border-radius: 11px; }
  .co-pill { font-size: 11.5px; padding: 4px 9px 4px 4px; }
  .co-ln { width: 14px; }
  .lpr-card { width: 50%; padding: 8px; }
  .vf { width: 48%; padding: 6px; }
  .vf-bot, .vf-top { display: none; }
  .tbox span { font-size: 8px; }
  .thr, .kwh { min-width: 0; padding: 8px 10px; }
  .kwh b { font-size: 18px; margin: 4px 0 6px; }
  .chart { height: 26px; }
  .node { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .steps { grid-template-columns: 1fr; }
  .wgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ftr-in { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proto-badge { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { [data-toggle] { display: none; } }

/* โซลูชัน: ยังไม่มีรูปหน้างาน → ภาพสินค้าบนเวทีไฟ */
.scard.art { background: radial-gradient(70% 80% at 72% 38%, rgba(0, 255, 136, .16), transparent 70%), linear-gradient(160deg, #101a2c, #070b14); }
.scard.art::before { background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 15, .9) 100%); }
.sc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sc-art { position: absolute; inset: 6% 6% 34% 30%; z-index: -2; display: flex; align-items: flex-end; justify-content: center; gap: 4%; }
.sc-art img { position: static; inset: auto; width: auto; height: auto; max-height: 100%; max-width: 48%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .6)); }
.scard:nth-child(1) .sc-art { inset: 8% 6% 30% 8%; }
.scard:nth-child(4) .sc-art { inset: 8% 4% 12% 48%; }
.scard.art:hover .sc-art img { transform: translateY(-6px); }
.sc-art img { transition: transform .5s var(--ease); }

/* ผลงาน: ช่องรอรูปหน้างาน */
.wcard.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px), var(--bg3); border: 1.5px dashed var(--line2); }
.wcard.ph .ph-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--g-dim); color: var(--g); margin-bottom: 40px; }
.wcard.ph .ph-ic .ic { width: 30px; height: 30px; }
.wcard.ph figcaption { background: none; }
.wcard.ph figcaption span { color: var(--dim); }

/* ซอฟต์แวร์: ป้ายประเภท + จอแบบพอดีกรอบ */
.sw-tag { display: inline-block; margin-bottom: 8px; padding: 5px 10px; border-radius: 999px; background: var(--g-dim); color: var(--g); font: 600 12px/1 var(--head); }
.sw-vis .mk-phone .mk-fit, .sw-vis .mk-laptop .mk-fit { object-position: top center; }

/* ===== จัดระเบียบ: การ์ดทุกใบสูงเท่ากัน ภาพอยู่ในกรอบคงที่ ข้อความไม่ทับภาพ ===== */
.sec-head { max-width: 920px; }
.h2 { text-wrap: balance; }
.pc-stage { display: block; position: relative; aspect-ratio: 4 / 3; }
.pc-stage img { position: absolute; left: 12%; top: 10%; width: 76%; height: 76%; max-width: none; max-height: none; object-fit: contain; }
.pcard a { min-height: 100%; }
.sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
.scard, .scard:nth-child(1), .scard:nth-child(4) { grid-row: auto; grid-column: auto; display: flex; flex-direction: column; }
.scard::before { display: none; }
.scard.art { background: var(--panel); }
.sc-art, .scard:nth-child(1) .sc-art, .scard:nth-child(4) .sc-art { position: relative; inset: auto; z-index: 0; height: 230px; padding: 26px 26px 0; gap: 6%; background: radial-gradient(60% 70% at 50% 100%, rgba(0, 255, 136, .08), transparent 70%); border-bottom: 1px solid var(--line); }
.sc-art img { max-height: 100%; max-width: 44%; }
.sc-photo { position: relative; inset: auto; height: 230px; z-index: 0; border-bottom: 1px solid var(--line); }
.sc-body { position: static; padding: 22px 26px 26px; }
@media (max-width: 960px) {
  .sgrid { grid-template-columns: 1fr; }
  .sc-art, .sc-photo { height: 190px; }
}
.pi { min-width: 0; }
.pi-cap { width: max-content; }
@media (max-width: 640px) {
  .hud.slot-tr { display: none; }
  .lpr-card, .vf { width: 56%; }
  .row { bottom: 5%; }
  .pi-cap { font-size: 11px; margin-top: 8px; height: 18px; }
  .floor { bottom: calc(5% + 16px); }
  .stage { aspect-ratio: 1 / .92; }
}
@media (max-width: 640px) {
  .lpr-card { width: 52%; padding: 8px; }
  .lpr-card .hud-top { font-size: 9.5px; letter-spacing: .04em; }
  .plate { margin: 6px 0; padding: 6px 4px 5px; }
  .plate b { font-size: 16px; }
  .lpr-res { font-size: 10.5px; white-space: nowrap; }
  .lpr-res .who { display: none; }
  .lpr-res .ok { margin-left: auto; }
}
/* ภาพสินค้าโทนมืด (อาคารโซลาร์) ยกความสว่างให้แยกจากพื้นหลัง */
.fx-lift .pi-float > img { filter: brightness(1.45) contrast(1.05) drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); }
.lay-single .spot { background: radial-gradient(closest-side, rgba(0, 255, 136, .16), transparent 72%); }

/* ===== เวทีไม่มีกรอบ (ผู้ใช้ขอเอาขอบออก) ===== */
.stage { border: 0; background: none; overflow: visible; }

/* ===== GVMS: หน้าต่างโปรแกรมจริง + มือถือ + ป้ายแจ้งผล (แบบ hero หน้า gvms.html) ===== */
.app-shot { position: absolute; inset: 8% 0 6% 2%; perspective: 1400px; }
.app-shot .browser { position: absolute; left: 0; top: 4%; width: 88%; border-radius: 14px; overflow: hidden; background: #0a1a24; transform: rotateY(-6deg) rotateX(3deg); transform-origin: 60% 50%; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .09); }
.app-shot .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #132a38; }
.app-shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2e4a5b; }
.app-shot .bar span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: #0d202c; color: #8fa9b8; font: 500 12px/1.5 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shot .screen { position: relative; }
.app-shot .screen img { width: 100%; height: auto; }
.app-shot .cam-scan { position: absolute; left: 18.1%; top: 22.9%; width: 26.3%; height: 22.5%; overflow: hidden; border-radius: 6px; }
.app-shot .cam-scan::before { content: ''; position: absolute; left: 0; right: 0; height: 38%; top: -40%; background: linear-gradient(180deg, transparent, rgba(0, 255, 136, .22) 70%, rgba(160, 255, 89, .85) 100%); opacity: 0; }
.app-shot .lpr { position: absolute; left: 18.6%; top: 54%; width: 16.8%; height: 5%; opacity: 0; }
.app-shot .lpr::before, .app-shot .lpr::after, .app-shot .lpr i::before, .app-shot .lpr i::after { content: ''; position: absolute; width: 12px; height: 10px; border: 2.5px solid #edffa3; }
.app-shot .lpr::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; }
.app-shot .lpr::after { right: -5px; top: -5px; border-left: 0; border-bottom: 0; }
.app-shot .lpr i::before { left: -5px; bottom: -5px; border-right: 0; border-top: 0; }
.app-shot .lpr i::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.app-shot .lpr b { position: absolute; left: -5px; top: calc(100% + 8px); white-space: nowrap; padding: 4px 7px; border-radius: 5px; background: #edffa3; color: #04121b; font: 600 11px/1 var(--head); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.app-shot .live { position: absolute; left: 19.4%; top: 24.4%; padding: 4px 7px 4px 16px; border-radius: 5px; background: rgba(214, 48, 52, .92); color: #fff; font: 600 10px/1 var(--head); letter-spacing: .08em; }
.app-shot .live::before { content: ''; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; }
.app-shot .phone { position: absolute; right: 0; bottom: 0; width: 27%; max-width: 200px; padding: 7px; border-radius: 26px; background: #0a1a24; box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); }
.app-shot .phone img { display: block; width: 100%; height: auto; border-radius: 20px; }
.app-shot .tap { position: absolute; left: 27%; top: 65%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .25); opacity: 0; }
.app-shot .float-tag { position: absolute; left: -3%; bottom: 16%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 12px; background: #fff; color: #0e1a23; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.35; }
.app-shot .float-tag b { display: block; font: 600 15px/1.3 var(--head); }
.app-shot .float-tag small { color: #5b6b77; font-size: 12.5px; }
.app-shot .float-tag .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e2f4ea; color: #12a150; flex: none; }
.app-shot .float-tag .ico .ic { width: 20px; height: 20px; stroke-width: 2.4; }
@media (max-width: 640px) {
  .app-shot { inset: 4% 0 4% 0; }
  .app-shot .browser { width: 92%; transform: none; }
  .app-shot .bar span { font-size: 10px; }
  .app-shot .phone { width: 30%; padding: 4px; border-radius: 16px; }
  .app-shot .phone img { border-radius: 12px; }
  .app-shot .float-tag { left: 0; bottom: 4%; padding: 7px 10px 7px 7px; }
  .app-shot .float-tag .ico { width: 28px; height: 28px; }
  .app-shot .float-tag b { font-size: 13px; }
  .app-shot .live, .app-shot .lpr b { font-size: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* ลำดับ: หน้าต่างเข้า → มือถือขึ้น → สแกนกล้อง → ล็อกป้ายทะเบียน → "เปิดอัตโนมัติ" → ลูกบ้านแตะ "ให้เข้า" */
  .slide.is-active .app-shot .browser { animation: winIn 1.1s var(--ease) both; }
  .slide.is-active .app-shot .phone { animation: up .9s var(--ease) .35s both, float 6s ease-in-out 1.4s infinite alternate; }
  .slide.is-active .app-shot .cam-scan::before { animation: fade .2s linear .9s both, gvScan 2.8s cubic-bezier(.45, 0, .55, 1) .9s infinite; }
  .slide.is-active .app-shot .live::before { animation: blink 1s steps(2, start) infinite; }
  .slide.is-active .app-shot .lpr { animation: lockOn .5s var(--ease) 1.6s both; }
  .slide.is-active .app-shot .float-tag { animation: toastIn .7s cubic-bezier(.34, 1.4, .64, 1) 2.2s both, float 5s ease-in-out 3s infinite alternate; }
  .slide.is-active .app-shot .tap { animation: tap 1.4s ease-out 3.4s 2 both; }
}
@media (prefers-reduced-motion: reduce) { .app-shot .lpr { opacity: 1; } }
@keyframes winIn { from { opacity: 0; transform: translateY(30px) rotateY(-14deg) rotateX(6deg) scale(.96); } }
@keyframes gvScan { 0% { top: -40%; } 70%, 100% { top: 105%; } }
@keyframes lockOn { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: none; } }
@keyframes tap { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@media (max-width: 640px) {
  .pi-cap { width: auto; max-width: 130%; height: auto; min-height: 26px; white-space: normal; text-align: center; justify-content: center; line-height: 1.25; font-size: 10.5px; }
  .pi-cap::before { display: none; }
}

/* ===== กล้องวงจรปิด: จอกล้อง AI เต็มเวที ===== */
.camv { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); border-radius: 18px; overflow: hidden; background: #070b13; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .09); }
.camv-scr { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.camv-zoom { position: absolute; inset: 0; transform-origin: 48% 70%; }
.camv-zoom img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.06); }
.camv-scr::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, .45)); }
.camv-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); color: #fff; font: 600 13px/1 var(--mono); letter-spacing: .08em; text-shadow: 0 1px 2px #000; }
.camv-top .hud-t { color: #fff; margin-left: 6px; }
.camv-ch { margin-left: auto; }
.camv-bot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--muted); font: 500 14.5px/1.3 var(--head); }
.camv-bot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px var(--g); }
.cbox { position: absolute; z-index: 1; border: 2px solid var(--lime); border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .2); }
.cbox b { position: absolute; left: -2px; bottom: 100%; margin-bottom: 4px; padding: 3px 7px; border-radius: 4px; background: var(--lime); color: var(--ink); font: 700 12px/1.2 var(--mono); white-space: nowrap; }
.cbox em { font-style: normal; }
.camv-scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(160, 255, 89, .08) 80%, rgba(160, 255, 89, .35)); opacity: 0; }
@media (max-width: 640px) {
  .camv { border-radius: 12px; }
  .camv-top { padding: 8px 10px; font-size: 10px; }
  .camv-bot { padding: 9px 12px; font-size: 12.5px; }
  .cbox b { font-size: 9px; padding: 2px 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .camv { animation: camIn 1s var(--ease) both; }
  .slide.is-active .camv-zoom { animation: kenburns 14s ease-in-out .6s both; }
  .slide.is-active .camv .rec { animation: blink 1s steps(2, start) infinite; }
  .slide.is-active .camv-scan { animation: camScan 3.6s ease-in-out 1s infinite; }
  .slide.is-active .cbox { animation: boxIn .55s cubic-bezier(.34, 1.56, .64, 1) both; }
  .slide.is-active .cb-0 { animation-delay: 1.1s; }
  .slide.is-active .cb-1 { animation-delay: 1.45s; }
  .slide.is-active .cb-2 { animation-delay: 1.8s; }
  .slide.is-active .camv-bot { animation: up .6s var(--ease) 2.1s both; }
}
@keyframes camIn { from { opacity: 0; transform: translateY(calc(-50% + 30px)) scale(.97); } }
@keyframes kenburns { to { transform: scale(1.07); } }
@keyframes camScan { 0% { opacity: 0; top: -30%; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
@media (min-width: 961px) { .slide[data-motion="cam"] { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); } }
@keyframes kenburns { to { transform: scale(1.035); } }

/* ===== แบบ 01 ใช้ซ้ำ: กล้องหน้าประตูมุมขวาล่าง (แทนมือถือ) ===== */
.mini-cam { position: absolute; right: 0; bottom: 0; width: 34%; border-radius: 14px; overflow: hidden; background: #070b13; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
.mc-scr { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.mc-scr img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.mc-scr::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); pointer-events: none; }
.mc-bar { display: flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--muted); font: 500 12px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cam .cbox b { font-size: 10px; }
/* กรอบสถานะปกติ = เขียว (ต่างจากกรอบตรวจจับสีมะนาว) */
.cbox.ok { border-color: var(--g); }
.cbox.ok b { background: var(--g); }
.rec.on { background: var(--g); box-shadow: 0 0 8px var(--g); }

/* ===== แดชบอร์ดโซลาร์ในหน้าต่าง (ธีมสว่างแบบหน้าจอโปรแกรมจริง) ===== */
.sol { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10; background: #f5f7f6; color: #10201a; font-family: var(--body); }
.sol-pic { position: relative; background: radial-gradient(80% 70% at 50% 60%, #dfe9e4, #c9d6d0); display: grid; place-items: center; overflow: hidden; }
.sol-pic img { width: 92%; height: auto; filter: brightness(1.15) drop-shadow(0 14px 16px rgba(0, 0, 0, .25)); }
.sol-sun { position: absolute; right: 8%; top: 8%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6c4 0 28%, #ffd34d 40%, rgba(255, 200, 0, .25) 58%, transparent 72%); }
.sol-main { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; gap: 8px; padding: 12px; }
.sol-kpi { padding: 9px 10px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 rgba(16, 32, 26, .06), 0 0 0 1px rgba(16, 32, 26, .07); }
.sol-kpi:first-child { grid-column: 1 / -1; }
.sol-kpi span { display: block; font-size: 11px; color: #5b6b65; }
.sol-kpi b { display: block; margin-top: 2px; font: 600 clamp(16px, 1.7vw, 24px)/1.15 var(--head); color: #10201a; }
.sol-kpi:first-child b { color: #0a9f5a; font-size: clamp(20px, 2.2vw, 30px); }
.sol-kpi i { font-style: normal; }
.sol-kpi small { font-size: .55em; color: #5b6b65; margin-left: 2px; }
.sol-batt { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: #e3ebe7; overflow: hidden; }
.sol-batt i { display: block; height: 100%; width: 100%; background: #0ac26b; transform-origin: 0 50%; transform: scaleX(var(--v)); }
.sol-chart { grid-column: 1 / -1; display: flex; flex-direction: column; padding: 9px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 32, 26, .07); min-height: 0; }
.sol-chart > span { font-size: 11px; color: #5b6b65; }
.sol-bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding-top: 8px; min-height: 40px; }
.sol-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 1px 1px; background: linear-gradient(#2fe08a, #0a9f5a); transform-origin: 50% 100%; }
.sol-hrs { display: flex; justify-content: space-between; margin-top: 4px; font: 500 10px var(--mono); color: #8a9893; }
.sol-hrs em { font-style: normal; }
.p-solar .float-tag { bottom: 10%; }
@media (max-width: 640px) {
  .mini-cam { width: 36%; border-radius: 10px; }
  .mc-bar { font-size: 9.5px; padding: 5px 7px; }
  .sol-main { padding: 6px; gap: 4px; }
  .sol-kpi { padding: 4px 6px; }
  .sol-kpi span, .sol-chart > span { font-size: 8px; }
  .sol-chart { padding: 4px 6px; }
  .sol-hrs { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .mini-cam { animation: up .9s var(--ease) .35s both, float 6s ease-in-out 1.4s infinite alternate; }
  .slide.is-active .mini-cam .cbox { animation: boxIn .55s cubic-bezier(.34, 1.56, .64, 1) 1.3s both; }
  .slide.is-active .sol-bars i { animation: growY .9s var(--ease) both; animation-delay: calc(.9s + var(--k) * 70ms); }
  .slide.is-active .sol-batt i { animation: battIn 1.6s var(--ease) 1s both; }
  .slide.is-active .sol-sun { animation: sunUp 1.4s var(--ease) .5s both; }
}
@keyframes battIn { from { transform: scaleX(0); } }

/* ===== เครือข่าย: วิดีโอ Map View สลับกับ Diagram View (ข้อมูลวิ่งเข้าหา BM00) ===== */
.scr-video { display: block; width: 100%; height: auto; background: #f5f6fa; }
.net-diag { position: absolute; right: 0; bottom: 0; z-index: 1; background: #f5f6fa; border-top-left-radius: 14px; display: flex; flex-direction: column; opacity: 0; }
.nd-tabs { align-self: center; display: flex; gap: 2px; margin-top: 1.2%; padding: 2px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(20, 30, 60, .08); font: 500 clamp(8px, .9vw, 12px)/1 var(--body); }
.nd-tabs span { padding: 5px 10px; border-radius: 4px; color: #5d6676; }
.nd-tabs .on { color: #1a73e8; font-weight: 600; background: #eef4ff; }
.net-diag svg { flex: 1; width: 100%; min-height: 0; }
.nd-line { fill: none; stroke: #47b84a; stroke-width: 1.6; opacity: .75; }
.nd-flow { fill: none; stroke: #2fbf4a; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 34; opacity: .9; }
.nd-node { fill: #36b03d; }
.nd-center { fill: #2a9f32; }
.nd-ping { fill: none; stroke: #36b03d; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.net-diag text { font: 500 17px var(--body); fill: #3d4552; }
@media (prefers-reduced-motion: no-preference) {
  /* 8 วินาทีต่อรอบ: แผนที่ (วิดีโอ) 4 วิ → ไดอะแกรม 4 วิ */
  .slide.is-active .net-diag { animation: viewSwap 8s ease-in-out 3.2s infinite; }
  .slide.is-active .nd-flow { animation: ndFlow 1.1s linear infinite; animation-delay: calc(var(--k) * -.27s); }
  .slide.is-active .nd-ping { animation: ndPing 1.6s ease-out infinite; }
}
@keyframes viewSwap { 0%, 4% { opacity: 0; } 9%, 52% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes ndFlow { to { stroke-dashoffset: -35; } }
@keyframes ndPing { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@media (min-width: 961px) { #slide-network { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }
#slide-network .app-shot { inset: 14% 0 8% 0; }
#slide-network .app-shot .browser { width: 100%; top: 0; transform: rotateY(-4deg) rotateX(2deg); }
#slide-network .float-tag { left: -2%; bottom: 4%; }
.nd-flow { stroke-dasharray: 1 70; stroke-width: 9; }
@keyframes ndFlow { to { stroke-dashoffset: -71; } }
.slide.is-active .nd-flow { animation-duration: 1.5s; }
.net-diag text { font-size: 24px; }

/* ===== สไลด์สลับ 2 ฉาก (03 สแกนหน้า ↔ FaceInTime) ===== */
.swap-shot { position: absolute; inset: 0; }
.sw-view { position: absolute; inset: 0; }
.sw-b { opacity: 0; pointer-events: none; }
.term { position: absolute; left: 50%; top: 50%; height: 94%; aspect-ratio: 416 / 783; margin: 0; transform: translate(-36%, -50%); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); }
.term > img { width: 100%; height: 100%; object-fit: contain; }
.sw-a .float-tag { left: 0; bottom: 14%; }
/* จอเครื่องที่วาดใหม่ (พิกัด % ของภาพเครื่อง) */
.term-scr { position: absolute; left: 9.4%; right: 9.1%; top: 12.2%; bottom: 14.7%; border-radius: 4% / 2.2%; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(90% 60% at 50% 40%, #16306b, #0a1530 70%); color: #fff; container-type: inline-size; }
.ts-top { display: flex; justify-content: space-between; align-items: baseline; padding: 6cqw 7cqw 0; font: 500 5.4cqw/1 var(--head); color: #c7d4f0; }
.ts-top b { font: 600 8cqw/1 var(--mono); color: #fff; letter-spacing: .02em; }
.ts-cam { position: relative; flex: 1; display: grid; place-items: center; }
.ts-face { width: 82%; height: auto; overflow: visible; }
.ts-ring { fill: none; stroke: rgba(120, 170, 255, .4); stroke-width: 1.6; stroke-dasharray: 6 8; transform-box: fill-box; transform-origin: center; }
.ts-body, .ts-head { fill: rgba(150, 190, 255, .12); stroke: rgba(170, 205, 255, .55); stroke-width: 1.4; }
.ts-mesh { fill: none; stroke: rgba(160, 255, 89, .7); stroke-width: .8; stroke-dasharray: 600; stroke-dashoffset: 600; }
.lm { fill: #a0ff59; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ts-frame { position: absolute; left: 22%; right: 22%; top: 14%; bottom: 26%; }
.ts-frame .br { width: 14%; height: 10%; border-color: #7fb0ff; }
.ts-line { position: absolute; left: 14%; right: 14%; top: 14%; height: 2px; background: #a0ff59; box-shadow: 0 0 12px 2px rgba(160, 255, 89, .7); opacity: 0; }
.ts-ok { margin: 0 6cqw 7cqw; display: flex; align-items: center; gap: 4cqw; padding: 4cqw 5cqw; border-radius: 4cqw; background: rgba(255, 255, 255, .95); color: #10201a; opacity: 0; }
.ts-ok .ico { display: grid; place-items: center; width: 11cqw; height: 11cqw; border-radius: 50%; background: #12b76a; color: #fff; flex: none; }
.ts-ok .ico .ic { width: 7cqw; height: 7cqw; stroke-width: 3; }
.ts-ok b { display: block; font: 600 6cqw/1.2 var(--head); }
.ts-ok small { font: 500 4.8cqw/1.3 var(--body); color: #4c5a55; }
/* หน้าจอ/มือถือแบบเลื่อนเอง (ภาพหน้าเว็บยาว) */
.app-shot .screen.is-roll { aspect-ratio: 16 / 10; overflow: hidden; }
.app-shot .screen.is-roll img { height: auto; }
.app-shot .phone.is-roll { aspect-ratio: 9 / 19; overflow: hidden; padding: 6px; }
.app-shot .phone.is-roll img { border-radius: 18px; }
.sw-b .app-shot { inset: 8% 0 6% 2%; }
@media (max-width: 640px) {
  .term { height: 96%; transform: translate(-42%, -50%); }
  .sw-a .float-tag { bottom: 6%; }
}
@media (prefers-reduced-motion: no-preference) {
  /* รอบ 8 วิ: เครื่องสแกนหน้า 4 วิ → FaceInTime 4 วิ */
  .slide.is-active .sw-a { animation: swapOut 8s ease-in-out 3.6s infinite; }
  .slide.is-active .sw-b { animation: viewSwap 8s ease-in-out 3.6s infinite; }
  .slide.is-active .term { animation: termIn 1s var(--ease) both; }
  .slide.is-active .ts-ring { animation: spin 14s linear infinite; }
  .slide.is-active .ts-line { animation: scan 1.2s ease-in-out .7s 2 both; }
  .slide.is-active .lm { animation: lmIn .35s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.8s + var(--i) * 60ms); }
  .slide.is-active .ts-mesh { animation: draw 1.1s var(--ease) 1.3s both; }
  .slide.is-active .ts-frame .br { animation: frameOk .3s ease 2.3s both; }
  .slide.is-active .ts-ok { animation: okUp .6s var(--ease) 2.4s both; }
  .slide.is-active .sw-a .float-tag { animation: toastIn .7s cubic-bezier(.34, 1.4, .64, 1) 2.8s both; }
  .slide.is-active .sw-b .mk-roll { animation: roll 6s ease-in-out 4.2s infinite alternate; --roll: -62%; }
  .slide.is-active .sw-b .phone .mk-roll { --roll: -78%; }
}
@media (prefers-reduced-motion: reduce) { .lm, .ts-ok { opacity: 1; } .ts-mesh { stroke-dashoffset: 0; } }
@keyframes swapOut { 0%, 4% { opacity: 1; } 9%, 52% { opacity: 0; } 57%, 100% { opacity: 1; } }
@keyframes termIn { from { opacity: 0; transform: translate(-36%, calc(-50% + 30px)) scale(.96); } }
@keyframes lmIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes frameOk { to { border-color: #a0ff59; } }
@keyframes okUp { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
/* ป้ายขาวใช้ได้ทุกฉาก (ไม่ผูกกับ .app-shot) */
.sw-a .float-tag { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 12px; background: #fff; color: #0e1a23; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.35; z-index: 2; }
.sw-a .float-tag b { display: block; font: 600 15px/1.3 var(--head); }
.sw-a .float-tag small { color: #5b6b77; font-size: 12.5px; }
.sw-a .float-tag .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e2f4ea; color: #12a150; flex: none; }
.sw-a .float-tag .ico .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.h-hero .ln > span { word-break: keep-all; }
@media (max-width: 640px) { .sw-a .float-tag { padding: 7px 10px 7px 7px; } .sw-a .float-tag .ico { width: 28px; height: 28px; } .sw-a .float-tag b { font-size: 13px; } }

/* ===== พาร์ทเนอร์ / ลูกค้า: การ์ดโลโก้ขนาดเท่ากันทุกใบ ===== */
.lwall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ltile { display: grid; place-items: center; align-content: center; gap: 4px; height: 104px; padding: 16px 18px; border-radius: 14px; background: #f4f6f8; border: 1px solid rgba(255, 255, 255, .6); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.ltile:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
.ltile img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.ltile.txt { background: #eef1f4; }
.lt-name { font: 600 15px/1.25 var(--head); color: #17202b; }
.lt-note { font: 400 12px/1.3 var(--body); color: #66717e; }
.lwall-more { margin-top: 18px; color: var(--muted); font-size: 15px; }
#partners .ltile { height: 96px; }
#partners .ltile img { max-height: 40px; }
@media (max-width: 1120px) { .lwall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lwall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ltile { height: 84px; padding: 12px; } .ltile img { max-height: 40px; } .lt-name { font-size: 13.5px; } }
/* แถบเมนู: ห้ามตัดบรรทัด */
.nav-a { white-space: nowrap; }
.hdr-in { gap: 22px; }
@media (max-width: 1360px) { .nav-a { padding: 0 11px; } }
.ltile { padding: 12px 16px; }
.ltile img { max-height: 70px; }
#partners .ltile img { max-height: 40px; }
/* กริดโลโก้: แถวสุดท้ายจัดกึ่งกลาง (จำนวนไม่ลงตัวก็ยังดูตั้งใจ) */
.lwall { display: flex; flex-wrap: wrap; justify-content: center; }
.ltile { flex: 0 0 calc((100% - 5 * 12px) / 6); }
.ltile img + .lt-cap { margin-top: 2px; }
.lt-cap { font: 500 11.5px/1.2 var(--head); color: #4a5563; }
.ltile:has(.lt-cap) img { max-height: 52px; }
@media (max-width: 1120px) { .ltile { flex-basis: calc((100% - 3 * 12px) / 4); } }
@media (max-width: 640px) { .ltile { flex-basis: calc((100% - 8px) / 2); } }

/* ===== เมนูเดิม: บริการ ▾ (รายการ) + ป้าย "ใหม่" ===== */
.has-dd { position: relative; }
.mega.dd { left: 50%; right: auto; top: calc(100% + 18px); width: 300px; padding: 0; transform: translate(-50%, -6px); }
.has-dd.is-open .mega.dd { transform: translate(-50%, 0); }
.dd-in { padding: 8px; border-radius: 14px; background: rgba(9, 14, 26, .97); border: 1px solid var(--line2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.dd-in a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; transition: background-color .2s; }
.dd-in a:hover { background: rgba(255, 255, 255, .05); }
.dd-l { font: 500 15px/1.3 var(--head); color: #e3eaf3; }
.dd-d { font-size: 12.5px; color: var(--dim); }
.nav-badge { margin-left: 5px; padding: 2px 7px; border-radius: 6px; background: var(--g); color: var(--ink); font: 600 11px/1.4 var(--head); }
@media (max-width: 960px) {
  .mega.dd { position: static; width: auto; transform: none; display: none; }
  .has-dd.is-open .mega.dd { display: block; transform: none; }
  .dd-in { background: none; border: 0; box-shadow: none; padding: 0 0 12px; }
}

/* ===== ขั้นตอนการทำงาน: motion graphic ไล่ทีละขั้น ===== */
.proc { position: relative; }
.proc-track { position: absolute; left: 12.5%; right: 12.5%; top: calc(var(--art-h, 190px) + 47px); height: 2px; background: var(--line2); border-radius: 2px; }
.proc-track i { display: block; height: 100%; border-radius: 2px; background: var(--g); box-shadow: 0 0 10px var(--g); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .8s var(--ease); }
.proc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pstep { position: relative; cursor: pointer; }
.pstep-art { height: var(--art-h, 190px); border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 60%, rgba(255, 255, 255, .03), transparent 70%), #0a101c; display: grid; place-items: center; padding: 14px; transition: border-color .5s, box-shadow .5s, background-color .5s; }
.pstep-art svg { width: 100%; max-width: 260px; height: 100%; overflow: visible; }
.pstep-body { padding: 18px 6px 0; text-align: center; }
.pstep .step-n { margin: 0 auto; transition: background-color .4s, color .4s, box-shadow .4s; }
.pstep h3 { margin-top: 16px; font: 600 19px/1.3 var(--head); color: #c9d3df; transition: color .4s; }
.pstep p { margin-top: 6px; color: var(--dim); font-size: 15px; transition: color .4s; }
.pstep.is-on .pstep-art { border-color: rgba(0, 255, 136, .45); box-shadow: 0 0 0 1px rgba(0, 255, 136, .15), 0 20px 50px -24px rgba(0, 255, 136, .45); }
.pstep.is-on .step-n { background: var(--g); color: var(--ink); box-shadow: 0 0 0 6px var(--bg), 0 0 22px rgba(0, 255, 136, .55); }
.pstep.is-on h3 { color: #fff; }
.pstep.is-on p { color: var(--muted); }

/* เส้นและชิ้นส่วนในภาพ */
.pstep-art svg * { vector-effect: non-scaling-stroke; }
.pa-line { fill: none; stroke: rgba(200, 214, 229, .45); stroke-width: 1.6; stroke-linejoin: round; }
.pa-draw, .pa-draw2 { stroke-dasharray: 900; stroke-dashoffset: 0; }
.pa-pin path { fill: var(--g); }
.pa-pin circle { fill: #0a101c; }
.pa-meas { fill: none; stroke: var(--lime); stroke-width: 1.6; }
.pa-txt { fill: var(--lime); font: 600 12px var(--mono); }
.pa-cams circle { fill: var(--g); }
.pa-cone { fill: rgba(0, 255, 136, .18); stroke: none; }
.pa-boq rect { fill: rgba(255, 255, 255, .04); stroke: rgba(200, 214, 229, .4); stroke-width: 1.4; }
.pa-boq path { stroke: rgba(200, 214, 229, .55); stroke-width: 3; stroke-linecap: round; }
.pa-boq .pa-sum { stroke: var(--lime); }
.pa-trk { fill: rgba(255, 255, 255, .07); }
.pa-fill { fill: var(--g); transform-box: fill-box; transform-origin: 0 50%; }
.pa-photos rect { fill: #121b2b; stroke: rgba(200, 214, 229, .5); stroke-width: 1.4; }
.pa-photos rect:last-child { fill: #1a2a22; stroke: var(--g); }
.pa-sign { fill: none; stroke: #7fb0ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 0; }
.pa-stamp circle { fill: rgba(0, 255, 136, .12); stroke: var(--g); stroke-width: 2; }
.pa-stamp path { fill: none; stroke: var(--g); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pa-chat rect, .pa-chat path:first-of-type { fill: #06c755; }
.pa-chat path { stroke: rgba(255, 255, 255, .9); stroke-width: 3; stroke-linecap: round; fill: none; }
.pa-pin, .pa-cams g, .pa-cams circle, .pa-cone, .pa-boq, .pa-camera, .pa-photos rect, .pa-stamp, .pa-chat { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  /* เล่นใหม่ทุกครั้งที่ขั้นนั้นสว่าง (.is-on ถูกใส่ใหม่ → animation เริ่มใหม่) */
  .pstep.is-on .pa-draw { animation: paDraw 1.1s var(--ease) both; }
  .pstep.is-on .pa-draw2 { animation: paDraw 1s var(--ease) .5s both; }
  .pstep.is-on .pa-pin { animation: paDrop .7s cubic-bezier(.34, 1.56, .64, 1) .9s both; }
  .pstep.is-on .pa-meas { animation: paGrow .8s var(--ease) 1.4s both; transform-box: fill-box; transform-origin: 0 50%; }
  .pstep.is-on .pa-txt { animation: up .5s var(--ease) 1.9s both; }
  .pstep.is-on .pa-cams circle { animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
  .pstep.is-on .pa-cams circle:nth-of-type(1) { animation-delay: 1s; }
  .pstep.is-on .pa-cams circle:nth-of-type(2) { animation-delay: 1.2s; }
  .pstep.is-on .pa-cams circle:nth-of-type(3) { animation-delay: 1.4s; }
  .pstep.is-on .pa-cone { animation: fade .6s ease both; animation-delay: 1.3s; }
  .pstep.is-on .pa-boq { animation: up .6s var(--ease) 1.5s both; }
  .pstep.is-on .pa-boq path { animation: paGrow .5s var(--ease) both; transform-box: fill-box; transform-origin: 0 50%; }
  .pstep.is-on .pa-boq path:nth-of-type(1) { animation-delay: 1.8s; }
  .pstep.is-on .pa-boq path:nth-of-type(2) { animation-delay: 1.95s; }
  .pstep.is-on .pa-camera { animation: paSlide .8s var(--ease) .3s both; }
  .pstep.is-on .pa-fill { animation: paGrow 1.6s var(--ease) .9s both; }
  .pstep.is-on .pa-photos rect { animation: pop .4s cubic-bezier(.34, 1.56, .64, 1) both; }
  .pstep.is-on .pa-photos rect:nth-child(1) { animation-delay: 1.2s; }
  .pstep.is-on .pa-photos rect:nth-child(2) { animation-delay: 1.6s; }
  .pstep.is-on .pa-photos rect:nth-child(3) { animation-delay: 2s; }
  .pstep.is-on .pa-sign { animation: paDraw 1.2s ease-in-out .5s both; }
  .pstep.is-on .pa-stamp { animation: paStamp .5s cubic-bezier(.34, 1.56, .64, 1) 1.6s both; }
  .pstep.is-on .pa-chat { animation: toastIn .6s cubic-bezier(.34, 1.4, .64, 1) 2.1s both; }
}
@keyframes paDraw { from { stroke-dashoffset: 900; } }
@keyframes paDrop { from { opacity: 0; transform: translateY(-40px); } }
@keyframes paGrow { from { transform: scaleX(0); } }
@keyframes paSlide { from { opacity: 0; transform: translateX(60px); } }
@keyframes paStamp { from { opacity: 0; transform: scale(2.2) rotate(-12deg); } }
.pa-sign { animation-name: none; }
@media (prefers-reduced-motion: no-preference) { .pstep.is-on .pa-sign { animation-name: paSign; } }
@keyframes paSign { from { stroke-dashoffset: 200; } }
@media (max-width: 960px) {
  .proc-steps { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .proc-track { display: none; }
  .pstep-art { height: 150px; }
}
@media (max-width: 520px) { .proc-steps { grid-template-columns: 1fr; } }

/* ===== GVMS ทำอะไรได้บ้าง: รายการฟีเจอร์ซ้าย + เวทีฉากเคลื่อนไหวขวา + คำอธิบายใต้เวที =====
   ฉากออกแบบบนกระดาน 64×40em (1em = 1/64 ของความกว้างเวที) · หน้าตา UI ในฉากใช้สีจริงของโปรแกรม GVMS (ธีมสว่าง ฟ้า/เขียว) */
.gvf { --gvb: #1491cf; --gvg: #1f9d6a; --gvr: #e0464e; --gvo: #e8830c; --gvn: #0f2c40; --gvt: #13212e; --gvm: #687888; --gvl: #e3e9ef; --gvbg: #f2f5f8;
  position: relative; border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(60% 70% at 70% 30%, rgba(20, 145, 207, .08), transparent 70%), linear-gradient(180deg, #0b1220, #070b14); }
.gv-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.gvf-top { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.gvf-brand { display: flex; align-items: center; gap: 12px; }
.gvf-brand .gv-mark { width: 30px; height: 37px; }
.gvf-brand b { display: block; font: 700 21px/1.1 var(--head); letter-spacing: .04em; }
.gvf-brand small { display: block; margin-top: 3px; color: var(--dim); font: 500 12.5px/1.3 var(--mono); }
.gvf-aud { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gvf-aud small { margin-right: 4px; color: var(--dim); font-size: 13.5px; }
.gvf-aud i { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line2); color: #c9d3df; font: 500 13.5px/1.3 var(--head); font-style: normal; }
.gvf-aud + .btn { margin-left: 6px; }
.gvf-top .btn { padding: 9px 16px; font-size: 15px; }
.gvf-main { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.gvf-list { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-right: 1px solid var(--line); }
.gvf-li button { position: relative; width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 6px; padding: 9px 12px 11px; border-radius: 12px; text-align: left; color: var(--muted); font: 500 15.5px/1.35 var(--head); transition: color .3s, background-color .3s; }
.gvf-li .n { font: 600 12px/1 var(--mono); color: var(--dim); transition: color .3s; }
.gvf-li button:hover { color: #fff; background: rgba(255, 255, 255, .035); }
.gvf-li button:focus-visible { outline: 2px solid var(--g); outline-offset: -2px; }
.gvf-li.is-on button { color: #fff; background: rgba(0, 255, 136, .07); }
.gvf-li.is-on .n { color: var(--g); }
.gvf-li .bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; opacity: 0; }
.gvf-li.is-on .bar { opacity: 1; }
.gvf-li .bar i { display: block; height: 100%; background: var(--g); transform-origin: 0 50%; transform: scaleX(0); }
.gvf-view { min-width: 0; padding: 18px 18px 6px; }
.gvf-stage { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(60% 60% at 55% 45%, rgba(20, 145, 207, .12), transparent 70%), radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 22px 22px, #070c16; }
.gvf-caps { padding: 20px 4px 14px; }
.gvc { display: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 32px; align-items: start; }
.gvc.is-on { display: grid; }
.gvc-n { font: 600 12.5px/1 var(--mono); color: var(--g); letter-spacing: .08em; }
.gvc h3 { margin-top: 10px; font: 600 clamp(20px, 2vw, 25px)/1.3 var(--head); }
.gvc-d { margin-top: 8px; color: var(--muted); }
.gvc ul { display: grid; gap: 8px; padding-top: 4px; }
.gvc li { display: flex; gap: 10px; align-items: flex-start; color: #c9d3df; font-size: 16px; line-height: 1.5; }
.gvc li .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--g); }
.gvf-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; color: var(--dim); font-size: 15px; }
.gvf-others a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color .2s; }
.gvf-others a:hover { color: #fff; }
.gvf-others .ic { width: 16px; height: 16px; }

/* ---- ฉาก: ภาพหน้าจอจริงในกรอบ + ซูม/ไฮไลต์/คลิก/แตะ/ป้าย ---- */
.gvs { position: absolute; inset: 0; display: none; font-size: calc(100cqw / 64); line-height: 1.35; color: #e8eef5; font-family: var(--body); }
.gvs.is-on { display: block; }
.gvs b { font-family: var(--head); font-weight: 600; }
.gvs small { display: block; line-height: 1.35; }
.gv-mark { display: block; }
.gs-win, .gs-ph, .gs-cam, .gs-img, .gs-tag { position: absolute; }
.gs-scr { position: relative; overflow: hidden; }
.gs-s { position: absolute; inset: 0; }
.gs-z { position: relative; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gs-z > img { display: block; width: 100%; height: auto; }
/* หน้าต่างโปรแกรม */
.gs-win { overflow: hidden; border-radius: .9em; background: #f2f5f8; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 2.6em 5em -2em rgba(0, 0, 0, .85); }
.gs-bar { height: 2em; display: flex; align-items: center; gap: .45em; padding: 0 1em; background: #dfe5ec; }
.gs-bar i { width: .7em; height: .7em; border-radius: 50%; background: #ff6159; }
.gs-bar i:nth-child(2) { background: #ffbd2e; }
.gs-bar i:nth-child(3) { background: #28c941; }
.gs-bar span { margin: 0 auto; padding: .15em 2em; border-radius: .45em; background: #fff; color: #687888; font: 500 .95em/1.3 var(--mono); white-space: nowrap; }
.gs-win .gs-scr { aspect-ratio: 16 / 10; }
.gs-modal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(10, 18, 30, .45); }
.gs-modal > span { display: block; border-radius: .8em; overflow: hidden; box-shadow: 0 2em 4em -1em rgba(0, 0, 0, .6); }
.gs-modal img { display: block; width: 100%; height: auto; }
/* มือถือ */
.gs-ph { padding: .55em; border-radius: 2.4em; background: #0c111a; box-shadow: 0 0 0 .15em #2b3443, 0 2.6em 4.6em -2em rgba(0, 0, 0, .85); }
.gs-ph .gs-scr { aspect-ratio: 600 / 1298; border-radius: 1.9em; background: #f2f5f8; }
.gs-push { position: absolute; left: .6em; right: .6em; top: .8em; z-index: 5; display: flex; align-items: center; gap: .7em; padding: .75em .85em; border-radius: 1.1em; color: #13212e; background: rgba(255, 255, 255, .97); box-shadow: 0 1em 2.4em -1em rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .06); }
.gs-push b { font-size: 1.15em; }
.gs-push small { font-size: 1em; color: #687888; }
.gv-pi { flex: none; display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: .75em; background: #102c3c; }
.gv-pi .gv-mark { width: 1.5em; height: 1.85em; }
.gs-tx { display: flex; flex-direction: column; min-width: 0; }
/* จอกล้อง: ภาพถ่ายหน้างาน */
.gs-cam { overflow: hidden; border-radius: 1em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 2.6em 5em -2em rgba(0, 0, 0, .85); }
.gs-cam .gs-scr { aspect-ratio: 16 / 10; }
.gs-cam::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 22%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); }
.gs-hud { position: absolute; left: 1em; top: .8em; z-index: 2; color: #e6f1fb; font: 500 1.05em/1.2 var(--mono); }
.gs-hud b { font: 600 1em/1.2 var(--mono); color: var(--g); }
.gs-rec { position: absolute; right: 1em; top: .8em; z-index: 2; display: flex; align-items: center; gap: .35em; color: #ff6b6b; font: 600 1em/1.2 var(--mono); }
.gs-rec i { width: .6em; height: .6em; border-radius: 50%; background: currentColor; }
.gs-scan { position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 24%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(0, 255, 136, .08)); border-bottom: 1px solid rgba(0, 255, 136, .35); }
.gs-alarm { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 .3em rgba(224, 70, 78, .9), inset 0 0 5em rgba(224, 70, 78, .4); }
/* ภาพลอย (บัตรจอด ป๊อปอัป ตัวเครื่อง) */
.gs-img { margin: 0; }
.gs-img img { display: block; width: 100%; height: auto; }
.gs-img.sh img { border-radius: .5em; box-shadow: 0 1.8em 3.6em -1.6em rgba(0, 0, 0, .8); }
.gs-img.scan img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 2em 3em rgba(0, 0, 0, .6)); }
.gs-scanbox { position: absolute; left: 9.4%; right: 9.1%; top: 12.2%; bottom: 14.7%; overflow: hidden; border-radius: .4em; background: radial-gradient(90% 60% at 50% 40%, #16306b, #0a1530 70%); }
.gs-scanbox i { position: absolute; left: 6%; right: 6%; top: 12%; height: .18em; background: var(--g); box-shadow: 0 0 1em var(--g); }
.gs-scanbox b { position: absolute; left: 6%; right: 6%; bottom: 7%; display: flex; align-items: center; justify-content: center; gap: .3em; padding: .5em .3em; border-radius: .55em; background: #1f9d6a; color: #fff; font-size: 1em; text-align: center; }
.gs-scanbox .ic { flex: none; width: 1.2em; height: 1.2em; }
/* กรอบไฮไลต์ในจอ */
.gs-mk { position: absolute; z-index: 2; border-radius: .35em; border: .16em solid var(--g); background: rgba(0, 255, 136, .08); box-shadow: 0 0 0 .3em rgba(0, 255, 136, .14), 0 0 1.6em rgba(0, 255, 136, .35); }
.gs-mk.warn { border-color: #f5a524; background: rgba(245, 165, 36, .08); box-shadow: 0 0 0 .3em rgba(245, 165, 36, .16), 0 0 1.6em rgba(245, 165, 36, .35); }
.gs-mk.bad { border-color: #ff4d57; background: rgba(255, 77, 87, .08); box-shadow: 0 0 0 .3em rgba(255, 77, 87, .16), 0 0 1.6em rgba(255, 77, 87, .4); }
.gs-mk em { position: absolute; left: -.16em; bottom: 100%; margin-bottom: .35em; padding: .3em .6em; border-radius: .35em; background: var(--g); color: #03140b; font: 600 .95em/1.25 var(--head); font-style: normal; white-space: nowrap; }
.gs-mk em.u { bottom: auto; top: 100%; margin: .35em 0 0; }
.gs-mk em.r { left: auto; right: -.16em; }
/* ในจอที่ซูม: ป้าย เส้น และเมาส์ไม่ขยายตาม */
.gs-z .gs-mk { border-width: calc(.16em / var(--zs, 1)); }
.gs-z .gs-mk em { font-size: calc(.95em / var(--zs, 1)); }
.gs-z .gs-click, .gs-z .gs-tap { font-size: calc(1em / var(--zs, 1)); }
.gs-mk.warn em { background: #f5a524; color: #2a1700; }
.gs-mk.bad em { background: #ff4d57; color: #fff; }
.gs-click, .gs-tap { position: absolute; z-index: 3; width: 0; height: 0; }
.gs-click .gv-cur { position: absolute; left: -.15em; top: -.1em; width: 1.7em; height: 1.7em; pointer-events: none; }
.gv-cur svg { width: 100%; height: 100%; fill: #fff; stroke: #13212e; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 .2em .3em rgba(0, 0, 0, .35)); }
.gs-click .gv-tap { position: absolute; left: -1em; top: -1em; width: 2em; height: 2em; border-radius: 50%; border: .15em solid rgba(20, 145, 207, .95); opacity: 0; pointer-events: none; }
.gs-tap .gv-touch { position: absolute; left: -1.3em; top: -1.3em; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(20, 145, 207, .35); box-shadow: 0 0 0 .3em rgba(20, 145, 207, .2); opacity: 0; pointer-events: none; }
/* ป้ายสรุป (แบบป้ายในแบนเนอร์ด้านบน) */
.gs-tag { z-index: 6; display: flex; align-items: center; gap: .7em; padding: .7em .9em; border-radius: 1em; background: rgba(14, 22, 38, .9); border: 1px solid rgba(170, 196, 226, .22); box-shadow: 0 1.6em 3em -1.4em rgba(0, 0, 0, .8); backdrop-filter: blur(6px); }
.gs-tag .ico { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(0, 255, 136, .14); color: var(--g); }
.gs-tag .ico .ic { width: 1.35em; height: 1.35em; stroke-width: 2.2; }
.gs-tag.info .ico { background: rgba(20, 145, 207, .2); color: #5cc0f0; }
.gs-tag.warn .ico { background: rgba(245, 165, 36, .18); color: #f5a524; }
.gs-tag.bad .ico { background: rgba(255, 77, 87, .18); color: #ff6b73; }
.gs-tag b { font-size: 1.15em; line-height: 1.3; color: #fff; }
.gs-tag small { margin-top: .1em; font-size: 1em; color: #9eabbd; }

/* ---- จังหวะ ---- */
@media (prefers-reduced-motion: no-preference) {
  .gvs.is-on { animation: gvFade .4s ease both; }
  .gvs.is-on [data-a] { animation: var(--a) var(--t, .6s) var(--e, cubic-bezier(.16, 1, .3, 1)) var(--d, 0s) both; }
  .gvs.is-on [data-t] { animation: var(--a) var(--t, .6s) var(--e, cubic-bezier(.16, 1, .3, 1)) var(--d, 0s) both, gvOut .3s ease var(--d2, 3s) forwards; }
  .gvs.is-on [data-l] { animation: var(--a) var(--t, 1.2s) ease-in-out var(--d, 0s) infinite both; }
  .gvs.is-on .gs-z[data-z] { animation: gsZoom var(--zt, 1.4s) cubic-bezier(.65, 0, .35, 1) var(--zd, 0s) both; }
  .gvs.is-on .gs-z[data-zo] { animation: gsZoom var(--zt, 1.4s) cubic-bezier(.65, 0, .35, 1) var(--zd, 0s) both, gsZoomOut 1.2s cubic-bezier(.65, 0, .35, 1) var(--zo) forwards; }
  .gvs.is-on .gs-rec i { animation: blink 1s steps(2, start) infinite; }
  .gvf:not(.no-auto) .gvf-li.is-on .bar i { animation: prog var(--dur, 8s) linear both; }
  .gvf.is-hold .gvf-li.is-on .bar i, .gvf.is-off .gvf-li.is-on .bar i { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .gvs [data-t], .gv-cur, .gv-tap, .gv-touch, .gs-scan, .gs-alarm { display: none; }
  .gvf-li .bar { display: none; }
}
@keyframes gvFade { from { opacity: 0; } }
@keyframes gvUp { from { opacity: 0; transform: translateY(1.4em); } }
@keyframes gvDown { from { opacity: 0; transform: translateY(-1.6em); } }
@keyframes gvL { from { opacity: 0; transform: translateX(-2em); } }
@keyframes gvR { from { opacity: 0; transform: translateX(2em); } }
@keyframes gvPop { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.04); } 100% { transform: none; } }
@keyframes gvOut { to { opacity: 0; transform: scale(.96); } }
@keyframes gsSlide { from { transform: translateX(100%); } }
@keyframes gsZoom { from { transform: none; } to { transform: scale(var(--zs, 1.4)); } }
@keyframes gsZoomOut { from { transform: scale(var(--zs, 1.4)); } to { transform: none; } }
@keyframes gvCur { 0% { opacity: 0; transform: translate(-4em, 3em); } 25% { opacity: 1; } 80% { transform: none; } 88% { transform: scale(.85); } 100% { transform: none; } }
@keyframes gvTap { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: .9; } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes gvTouch { 0% { opacity: 0; transform: scale(1.8); } 35% { opacity: 1; transform: scale(1); } 55% { transform: scale(.82); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes gvPrint { from { clip-path: inset(0 0 100% 0); transform: translateY(-3em); } }
@keyframes gvScan { from { transform: translateY(-100%); } to { transform: translateY(420%); } }
@keyframes gvScanY { 0%, 100% { transform: none; } 50% { transform: translateY(16em); } }
@keyframes gvAlarm { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

@media (max-width: 960px) {
  .gvf-main { grid-template-columns: minmax(0, 1fr); }
  .gvf-list { flex-direction: row; gap: 6px; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; scroll-snap-type: x proximity; }
  .gvf-list::-webkit-scrollbar { display: none; }
  .gvf-li { flex: none; scroll-snap-align: center; }
  .gvf-li button { grid-template-columns: auto auto; padding: 8px 12px 10px; font-size: 14.5px; white-space: nowrap; }
  .gvf-view { padding: 12px 12px 4px; }
  .gvc { grid-template-columns: minmax(0, 1fr); }
  .gvf-top { flex-wrap: wrap; padding: 14px 16px; }
  .gvf-aud { order: 3; width: 100%; margin-left: 0; }
  .gvf-top .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .gvf { border-radius: 20px; }
  .gvf-stage { border-radius: 12px; }
  .gvf-brand small { display: none; }
}

/* ===== ผลงาน 1 ชุด (รูปหน้างานจริง): หัวโครงการ + แถวรูปแนวตั้ง ===== */
.wproj { margin-bottom: 18px; padding: clamp(18px, 2.4vw, 28px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, #0b1220, #080d18); }
.wproj-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 26px; align-items: center; }
.wproj-logo { display: block; width: 132px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.wproj-logo img { display: block; width: 100%; height: auto; }
.wproj-k { color: var(--g); font: 500 14px/1.4 var(--head); }
.wproj-copy h3 { margin-top: 4px; font: 600 clamp(19px, 1.8vw, 23px)/1.35 var(--head); }
.wproj-copy p:last-child { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 62ch; }
.wproj-stats { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px 26px; }
.wproj-stats li { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--g); }
.wproj-stats b { font: 700 22px/1.1 var(--head); color: #fff; white-space: nowrap; }
.wproj-stats span { color: var(--dim); font-size: 13.5px; white-space: nowrap; }
.wproj-head.nologo { grid-template-columns: minmax(0, 1fr) auto; }
.wproj-strip { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.wproj-ph { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: var(--bg3); }
.wproj-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.wproj-ph:hover img { transform: scale(1.06); }
.wproj-ph figcaption { position: absolute; inset: auto 0 0; padding: 34px 10px 10px; background: linear-gradient(transparent, rgba(5, 8, 15, .9)); color: #dbe4ee; font: 500 13px/1.35 var(--head); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .wproj-ph { animation: up linear both; animation-timeline: view(); animation-range: entry calc(var(--i) * 3%) entry calc(60% + var(--i) * 3%); }
  }
}
@media (max-width: 1080px) {
  .wproj-head { grid-template-columns: auto minmax(0, 1fr); }
  .wproj-head.nologo { grid-template-columns: minmax(0, 1fr); }
  .wproj-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; }
}
@media (max-width: 760px) {
  .wproj-head { grid-template-columns: minmax(0, 1fr); }
  .wproj-logo { width: 116px; }
  .wproj-stats { grid-template-columns: repeat(2, minmax(0, auto)); }
  .wproj-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
  .wproj-strip::-webkit-scrollbar { display: none; }
  .wproj-ph { flex: 0 0 44%; scroll-snap-align: start; }
}

/* เข้าระบบอยู่แล้ว: อักษรย่อชื่อ + จุดเขียว (v5.js ใส่ .is-in เมื่อมี token ที่ยังไม่หมดอายุ) */
.hdr-login.is-in { color: var(--g); background: rgba(0, 255, 136, .1); border-color: rgba(0, 255, 136, .45); }
.hdr-login.is-in:hover, .hdr-login.is-in:focus-visible { color: var(--ink); background: var(--g); border-color: var(--g); }
.hdr-av { font: 700 18px/1 var(--head); }
.hdr-av.has-img { position: absolute; inset: 3px; border-radius: 10px; font-size: 0; background-size: cover; background-position: center; }
.hdr-login.is-in:hover .hdr-av.has-img, .hdr-login.is-in:focus-visible .hdr-av.has-img { box-shadow: 0 0 0 2px var(--ink); }
.hdr-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px var(--bg); }

/* เมนูหน้าปัจจุบัน: ตัวขาว + ขีดเขียวใต้คำ */
.nav-a[aria-current="page"] { position: relative; color: #fff; }
.nav-a[aria-current="page"]::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--g); }
@media (max-width: 1360px) { .nav-a[aria-current="page"]::after { left: 11px; right: 11px; } }
@media (max-width: 1120px) { .nav-a[aria-current="page"]::after { left: 10px; right: 10px; } }
@media (max-width: 960px) { .nav-a[aria-current="page"]::after { display: none; } .nav-a[aria-current="page"] { color: var(--g); } }

/* =================== หน้าย่อย (site-next/v5/pages/*.json → build-pages.js) =================== */
.phero { padding: calc(var(--hdr) + clamp(40px, 6vw, 72px)) 0 clamp(44px, 6vw, 64px); border-bottom: 1px solid var(--line);
  background: radial-gradient(55% 90% at 85% 0%, rgba(0, 255, 136, .07), transparent 62%), linear-gradient(180deg, #0a1020, var(--bg)); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--dim); font: 500 14px/1.4 var(--head); }
.crumb a { color: var(--muted); transition: color .2s; }
.crumb a:hover { color: #fff; }
.crumb [aria-current] { color: #cfd8e3; }
.phero-h { margin-top: 14px; font: 600 clamp(2.1rem, 4.4vw, 3.6rem)/1.16 var(--head); letter-spacing: -.005em; max-width: 20em; text-wrap: balance; }
.phero-sub { margin-top: 18px; max-width: 680px; color: var(--muted); font-size: 18.5px; line-height: 1.7; }
.phero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.phero-chips a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: #cfd8e3; font: 500 15px/1.3 var(--head); transition: border-color .2s, color .2s, background-color .2s; }
.phero-chips a:hover { border-color: rgba(0, 255, 136, .5); background: rgba(0, 255, 136, .06); color: #fff; }

/* แถวบริการ: รูปงานจริง + ข้อความ สลับซ้ายขวา */
.srows { display: grid; gap: clamp(64px, 9vw, 120px); }
.srow { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; scroll-margin-top: calc(var(--hdr) + 28px); }
.srow.flip .srow-media { order: 2; }
.srow-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--bg3); }
.srow-media.tall { aspect-ratio: 4 / 5; width: min(100%, 500px); justify-self: center; }
.srow-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.srow:hover .srow-media img { transform: scale(1.03); }
.srow-media figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 8px 12px; border-radius: 10px; background: rgba(5, 8, 15, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #dbe4ee; font: 500 13.5px/1.45 var(--head); }
.srow-k { display: flex; align-items: center; gap: 10px; color: var(--g); font: 600 15px/1.3 var(--head); }
.srow-k span { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--dim); font: 600 12.5px/1.2 var(--mono); }
.srow-h { margin-top: 14px; font: 600 clamp(1.6rem, 2.6vw, 2.3rem)/1.25 var(--head); text-wrap: balance; }
.srow-d { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.srow-pts { display: grid; gap: 10px; margin-top: 20px; }
.srow-pts li { display: flex; gap: 10px; color: #d5dee8; font-size: 16px; line-height: 1.55; }
.srow-pts .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--g); }
.srow-prods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.srow-prods span { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 10px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .07), transparent 70%), var(--bg3); }
.srow-prods img { height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.srow-prods small { color: var(--muted); font: 500 12.5px/1.3 var(--head); text-align: center; }
.srow-copy .btn { margin-top: 26px; }

/* การ์ดลิงก์ */
.scards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .3s var(--ease); }
a.lcard:hover { border-color: rgba(0, 255, 136, .4); transform: translateY(-3px); }
.lcard-img { display: grid; place-items: center; height: 130px; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, .08), transparent 70%), var(--bg3); }
.lcard-img img { width: 100%; height: 100%; padding: 12px; object-fit: contain; }
.lcard-body b { display: block; padding-right: 24px; font: 600 18px/1.3 var(--head); }
.lcard-body small { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.lcard > .ic { position: absolute; right: 16px; bottom: 18px; color: var(--dim); transition: color .2s, transform .25s var(--ease); }
a.lcard:hover > .ic { color: var(--g); transform: translateX(3px); }

/* ตารางราคา/สเปก */
.stable { margin-bottom: 28px; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.stable-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.stable-h h3 { font: 600 20px/1.3 var(--head); }
.stable-h p { color: var(--muted); font-size: 15px; }
.stable-scroll { overflow-x: auto; }
.stable table { width: 100%; min-width: 560px; border-collapse: collapse; }
.stable th, .stable td { padding: 14px 22px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.stable th { color: var(--dim); font: 500 13.5px/1.3 var(--head); background: rgba(255, 255, 255, .02); }
.stable td { color: #dbe4ee; font: 500 16px/1.4 var(--head); font-variant-numeric: tabular-nums; }
.stable th:first-child, .stable td.first { text-align: left; }
.stable tr:last-child td { border-bottom: 0; }
.stable tr.best td { background: rgba(0, 255, 136, .05); }
.stable td.first em { margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--g); color: var(--ink); font: 600 11.5px/1.4 var(--head); font-style: normal; }
.stable-foot { color: var(--dim); font-size: 14.5px; }

/* คำถามที่พบบ่อย */
.sfaq { display: grid; gap: 10px; max-width: 880px; }
.sfaq details { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.sfaq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font: 600 17px/1.4 var(--head); }
.sfaq summary::-webkit-details-marker { display: none; }
.sfaq .pm { position: relative; flex: none; width: 14px; height: 14px; }
.sfaq .pm::before, .sfaq .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--g); transition: transform .25s var(--ease); }
.sfaq .pm::after { transform: rotate(90deg); }
.sfaq details[open] .pm::after { transform: rotate(0); }
.sfaq details p { padding: 0 22px 20px; color: var(--muted); line-height: 1.75; }

/* ข้อความยาว (นโยบาย ฯลฯ) */
.stext { max-width: 820px; }
.stext h2 { margin: 40px 0 12px; font: 600 22px/1.35 var(--head); }
.stext h2:first-child { margin-top: 0; }
.stext p, .stext li { color: var(--muted); line-height: 1.8; }
.stext p + p { margin-top: 10px; }
.stext ul { display: grid; gap: 6px; margin-top: 10px; padding-left: 20px; list-style: disc; }

/* นโยบาย: สารบัญติดซ้าย + การ์ดทีละข้อ */
.slegal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.slegal-toc { position: sticky; top: calc(var(--hdr) + 24px); }
.slegal-toc p { margin-bottom: 12px; color: var(--dim); font: 500 13px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.slegal-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.slegal-toc a { display: flex; gap: 10px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 15px; line-height: 1.45; transition: color .2s, border-color .2s; }
.slegal-toc a span { color: var(--dim); font: 500 13px/1.7 var(--head); font-variant-numeric: tabular-nums; }
.slegal-toc a:hover, .slegal-toc a.on { color: var(--text); border-left-color: var(--g); }
.slegal-body { display: grid; gap: 16px; max-width: 820px; }
.slegal-card { padding: 28px 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: calc(var(--hdr) + 20px); }
.slegal-card h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font: 600 21px/1.35 var(--head); }
.slegal-card h2 span { color: var(--g); font: 600 15px/1 var(--head); font-variant-numeric: tabular-nums; }
.slegal-card p, .slegal-card li { color: #c9d3de; line-height: 1.85; }
.slegal-card p + p, .slegal-card ul + p { margin-top: 12px; }
.slegal-card ul { display: grid; gap: 10px; margin-top: 4px; }
.slegal-card li { position: relative; padding-left: 20px; }
.slegal-card li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--g); }
.slegal-card li b { color: var(--text); font-weight: 600; }
.slegal-card .en { padding-top: 12px; border-top: 1px dashed var(--line); color: var(--dim); font-size: 14.5px; line-height: 1.7; }
.slegal-card a, .slegal-foot a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 255, 136, .35); }
.slegal-foot { margin-top: 8px; padding: 18px 22px; border-radius: 14px; background: rgba(0, 255, 136, .05); border: 1px solid rgba(0, 255, 136, .18); color: var(--muted); font-size: 15px; line-height: 1.75; }
@media (max-width: 960px) {
  .slegal { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .slegal-toc { position: static; }
  .slegal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; gap: 4px 16px; }
  .slegal-toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .slegal-toc ol { grid-template-columns: minmax(0, 1fr); }
  .slegal-card { padding: 22px 20px; }
  .slegal-card h2 { font-size: 19px; }
}

@media (max-width: 960px) {
  .srow { grid-template-columns: minmax(0, 1fr); }
  .srow.flip .srow-media { order: 0; }
  .srow-media.tall { width: 100%; aspect-ratio: 4 / 3; }
  .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .scards { grid-template-columns: minmax(0, 1fr); }
  .phero-sub { font-size: 17px; }
  .srow-prods span { width: 84px; }
}

/* โลโก้หัวเว็บห้ามหด (ถ้าแถบแคบ รูปจะถูกบีบผิดสัดส่วน) · โลโก้แบบไม่มีบรรทัดล่าง img/logo-gc.png เก็บไว้ก่อน (ผู้ใช้ขอคืนแบบเดิม 11 ต.ค.) */
.brand { flex: none; }
.brand img { flex: none; }

/* แถวที่เป็นภาพหน้าจอเว็บ: กรอบหน้าต่างเบราว์เซอร์ + มือถือซ้อนมุมขวาล่าง */
.srow-media.frame-b { aspect-ratio: auto; overflow: visible; border: 0; border-radius: 0; background: none; }
.fb-win { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 34px 70px -28px rgba(0, 0, 0, .85); }
.fb-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #e6e9ef; }
.fb-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.fb-bar i:nth-child(2) { background: #ffbd2e; }
.fb-bar i:nth-child(3) { background: #28c941; }
.fb-bar span { margin: 0 auto; padding: 3px 22px; border-radius: 7px; background: #fff; color: #6b7686; font: 500 12.5px/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.fb-win img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.srow:hover .frame-b img { transform: none; }
.fb-phone { position: absolute; right: -18px; bottom: -30px; width: 24%; padding: 5px; border-radius: 22px; background: #0c111a; box-shadow: 0 0 0 2px #2b3443, 0 24px 50px -16px rgba(0, 0, 0, .9); }
.fb-phone img { display: block; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 17px; object-fit: cover; object-position: top; }
.frame-b figcaption { left: 14px; bottom: 14px; }
@media (max-width: 960px) { .fb-phone { right: -6px; bottom: -20px; width: 26%; } }

/* หน้าติดต่อ: ฟอร์ม + ช่องทางติดต่อ + แผนที่ */
.cgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cform { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; border: 1px solid var(--line); background: var(--panel); }
.cform-h { font: 600 24px/1.3 var(--head); }
.cform-sub { margin-top: -6px; color: var(--muted); font-size: 15.5px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf { display: grid; gap: 6px; }
.cf span { color: #cfd8e3; font: 500 14px/1.3 var(--head); }
.cf input, .cf select, .cf textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(5, 8, 15, .6); color: var(--text); font: 400 16px/1.5 var(--body); transition: border-color .2s, box-shadow .2s; }
.cf textarea { resize: vertical; min-height: 120px; }
.cf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.cf select option { background: #0e1424; color: var(--text); }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: rgba(0, 255, 136, .6); box-shadow: 0 0 0 3px rgba(0, 255, 136, .14); }
.cform .btn { justify-self: start; margin-top: 4px; }
.cform .btn:disabled { opacity: .6; cursor: progress; }
.cf-msg { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.cf-msg.ok { background: rgba(0, 255, 136, .1); border: 1px solid rgba(0, 255, 136, .35); color: #b8ffd9; }
.cf-msg.err { background: rgba(255, 77, 87, .1); border: 1px solid rgba(255, 77, 87, .35); color: #ffc3c7; }
.cside { display: grid; gap: 10px; }
.cway { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
a.cway:hover { border-color: rgba(0, 255, 136, .45); }
.cway.hot { border-color: rgba(6, 199, 85, .45); background: linear-gradient(135deg, rgba(6, 199, 85, .14), rgba(16, 24, 42, .62)); }
.cw-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 255, 136, .1); color: var(--g); }
.cway.hot .cw-ic { background: #06c755; color: #fff; }
.cw-ic .ic { width: 22px; height: 22px; }
.cway b { display: block; font: 600 17px/1.3 var(--head); }
.cway small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cmap { overflow: hidden; height: 260px; border-radius: 16px; border: 1px solid var(--line); }
.cmap iframe { display: block; width: 100%; height: 100%; border: 0; filter: invert(92%) hue-rotate(180deg) saturate(.85) brightness(.9); }
@media (max-width: 960px) { .cgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cf-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- เครื่องคิดเลขโซลาร์ (solar_calculator.html · ลอจิก solar-calc.js) ---------- */
.sc { max-width: 940px; margin-inline: auto; scroll-margin-top: calc(var(--hdr) + 16px); }
.sc-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.sc-steps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font: 500 14.5px/1.3 var(--head); text-align: left; transition: color .2s, border-color .2s, background-color .2s; }
.sc-steps span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line2); font: 600 13px/1 var(--head); }
.sc-steps em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-steps .is-on button { color: var(--text); border-color: rgba(0, 255, 136, .45); background: rgba(0, 255, 136, .06); }
.sc-steps .is-on span { background: var(--g); border-color: var(--g); color: var(--ink); }
.sc-steps .is-done button { color: var(--muted); }
.sc-steps .is-done button:hover { border-color: var(--line2); color: var(--text); }
.sc-steps .is-done span { color: var(--g); border-color: rgba(0, 255, 136, .5); }
.sc-steps button:disabled { cursor: default; opacity: .55; }
.sc-pane { padding: 34px 36px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); }
.sc-pane[hidden] { display: none; }
.sc-h { font: 600 24px/1.3 var(--head); outline: none; }
.sc-h small { margin-left: 8px; color: var(--dim); font: 500 15px/1 var(--mono); }
.sc-d { margin: 6px 0 26px; color: var(--muted); line-height: 1.7; }
.sc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sc-wide { grid-column: 1 / -1; }
.sc-f { display: grid; gap: 8px; align-content: start; }
.sc-f > span:first-child { color: var(--muted); font: 500 14.5px/1.3 var(--head); }
.sc-f > span b { color: var(--g); }
.sc-in { position: relative; display: block; }
.sc-in i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); font-style: normal; font-size: 14px; pointer-events: none; }
.sc input, .sc select { width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); font: 500 16px var(--body); transition: border-color .2s, box-shadow .2s; }
.sc-in input { padding-right: 100px; }
.sc select { appearance: none; padding-right: 40px; background: rgba(255, 255, 255, .03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239eabbd' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; cursor: pointer; }
.sc select option { background: #0b1220; color: var(--text); }
.sc input:focus, .sc select:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(0, 255, 136, .14); }
.sc input[aria-invalid="true"] { border-color: #ff6b6b; }
.sc-err { color: #ff8b8b; font-size: 14px; }
.sc-acs { display: grid; gap: 10px; margin-bottom: 10px; }
.sc-ac { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; gap: 14px; align-items: end; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.sc-ac-n { grid-column: 1 / -1; color: var(--g); font: 600 13px/1 var(--head); }
.sc-del { height: 50px; border-radius: 12px; border: 1px solid var(--line2); color: var(--dim); font-size: 22px; line-height: 1; transition: color .2s, border-color .2s; }
.sc-del:hover { color: #ff8b8b; border-color: rgba(255, 107, 107, .5); }
.sc-add { width: 100%; padding: 13px; border-radius: 12px; border: 1px dashed rgba(0, 255, 136, .35); color: var(--g); font: 500 15px/1 var(--head); transition: background-color .2s; }
.sc-add:hover { background: rgba(0, 255, 136, .05); }
.sc-appls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sc-appl { border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .2s, background-color .2s; }
.sc-appl > button { position: relative; width: 100%; display: grid; gap: 4px; justify-items: start; padding: 16px; text-align: left; }
.sc-appl svg { width: 30px; height: 30px; margin-bottom: 6px; color: var(--muted); transition: color .2s; }
.sc-appl b { font: 600 15.5px/1.35 var(--head); }
.sc-appl small { color: var(--dim); font-size: 13.5px; }
.sc-appl > button::after { content: ""; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line2); }
.sc-appl:hover { border-color: var(--line2); }
.sc-appl.is-on { border-color: rgba(0, 255, 136, .5); background: rgba(0, 255, 136, .05); }
.sc-appl.is-on svg { color: var(--g); }
.sc-appl.is-on > button::after { border-color: var(--g); background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303140b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 14px; }
.sc-appl-c { display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.sc-appl.is-on .sc-appl-c { display: grid; }
.sc-appl-c label { display: grid; gap: 4px; color: var(--dim); font-size: 12.5px; }
.sc .sc-appl-c input { height: 38px; padding: 0 10px; border-radius: 10px; font-size: 15px; }
.sc-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sc-nav .btn-pri { margin-left: auto; min-width: 180px; }
.sc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.sc-stat { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.sc-stat b { display: block; font: 700 30px/1.15 var(--head); font-variant-numeric: tabular-nums; }
.sc-stat.g { border-color: rgba(0, 255, 136, .4); background: rgba(0, 255, 136, .05); }
.sc-stat.g b { color: var(--g); }
.sc-stat small { color: var(--dim); font-size: 14px; }
.sc-sub { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 600 16px/1.3 var(--head); }
.sc-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sc-bars { display: grid; gap: 12px; margin-bottom: 32px; }
.sc-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 14px; align-items: center; color: var(--muted); font-size: 14.5px; }
.sc-bar > span:nth-child(2) { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.sc-bar i { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--c, var(--g)); transition: width 1s var(--ease); }
.sc-bar b { text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-warn { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(240, 185, 82, .07); color: #e9c98a; font-size: 14.5px; line-height: 1.65; }
.sc-pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; padding-top: 10px; }
.sc-pkg { position: relative; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.sc-pkg.is-rec { border-color: rgba(0, 255, 136, .55); background: rgba(0, 255, 136, .05); }
.sc-pkg em { position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 8px; background: var(--g); color: var(--ink); font: 600 12px/1.4 var(--head); font-style: normal; }
.sc-pkg h4 { margin: 0; font: 700 30px/1 var(--head); }
.sc-pkg h4 small { color: var(--dim); font-size: 15px; font-weight: 500; }
.sc-pkg .t { display: inline-block; margin: 12px 0 16px; padding: 3px 10px; border-radius: 999px; background: rgba(56, 214, 255, .1); color: #7fe4ff; font: 500 12.5px/1.5 var(--head); }
.sc-pkg .t.h { background: rgba(0, 255, 136, .1); color: var(--g); }
.sc-pkg dl { display: grid; gap: 8px; }
.sc-pkg dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.sc-pkg dt { color: var(--dim); }
.sc-pkg dd { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-pkg .price dd { font: 700 18px/1.3 var(--head); }
.sc-note { margin-bottom: 22px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(240, 185, 82, .28); background: rgba(240, 185, 82, .05); color: #d9c08f; font-size: 14.5px; line-height: 1.75; }
.sc-note b { color: #f0c46a; }
.sc-note a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; }
.sc-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 26px; border-radius: 18px; border: 1px solid rgba(0, 255, 136, .25); background: linear-gradient(135deg, rgba(0, 255, 136, .1), rgba(56, 214, 255, .05)); }
.sc-cta h3 { margin-bottom: 4px; font: 600 20px/1.35 var(--head); }
.sc-cta p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.sc-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .sc-bar i { transition: none; } }
@media (max-width: 860px) {
  .sc-steps em { display: none; }
  .sc-steps button { justify-content: center; padding: 10px 6px; }
  .sc-appls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-pkgs { grid-template-columns: minmax(0, 1fr); }
  .sc-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sc-pane { padding: 24px 18px; border-radius: 20px; }
  .sc-h { font-size: 21px; }
  .sc-h small { display: block; margin: 6px 0 0; }
  .sc-grid2 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sc-ac { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; padding: 14px; }
  .sc-ac > label:nth-of-type(1) { grid-column: 1 / -1; }
  .sc-ac > span:last-child { display: none; }
  .sc-appls { gap: 10px; }
  .sc-appl > button { padding: 14px; }
  .sc-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sc-stat:first-child { grid-column: 1 / -1; }
  .sc-stat b { font-size: 23px; white-space: nowrap; }
  .sc-bar { grid-template-columns: 96px minmax(0, 1fr) 72px; gap: 10px; font-size: 13.5px; }
  .sc-nav .btn { flex: 1; min-width: 0; }
  .sc-cta-btns .btn { flex: 1; }
}
