/* =====================================================================
   JT ABSOLUTE · Motion pages (หน้าแรก + หน้าบริการ) — รอบ 20
   ฉากเคลื่อนไหว canvas (assets/js/scene.js) · แปลนไซต์ 3 มิติ · แดชบอร์ดกระจก · แถบเลื่อน/สไลด์ผลงาน
   ใช้ร่วมกับ site.css (ตัวแปรสี/ฟอนต์เดียวกัน) · คลาสใหม่ขึ้นต้นด้วย m- เพื่อไม่ชนของเดิม
   ===================================================================== */
.motion { --disp: var(--display); --stroke2: var(--stroke-2); --glass: rgba(14, 24, 44, .42); }

/* หัวเว็บลอยบนฉากแรก แล้วทึบเมื่อเลื่อน */
.motion .hdr { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(3, 5, 10, .78), rgba(3, 5, 10, 0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.motion .hdr.scrolled, .motion .hdr:has(.burger[aria-expanded="true"]) { background: rgba(3, 5, 10, .9); border-bottom-color: var(--stroke); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }

.m-glass { background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 45%), var(--glass); border: 1px solid var(--stroke); border-radius: 18px; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--stroke2); background: rgba(255, 255, 255, .06); color: var(--text); font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.m-btn:hover { background: rgba(255, 255, 255, .12); border-color: var(--ice); }
.m-btn.solid { background: #fff; color: #06101f; border-color: #fff; }
.m-btn.solid:hover { background: var(--ice); border-color: var(--ice); }
.m-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.m-num { font-family: var(--disp); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-src { font-size: 13px; color: var(--mute); }
.m-sec { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.m-sec + .m-sec { padding-top: 0; }
.m-sec.m-tint { background: linear-gradient(180deg, transparent, rgba(10, 26, 51, .55) 30%, transparent); }

/* ---------- หน้าแรก: ฉากเลื่อน (เราเตอร์ → แสงวาบ → แปลนไซต์) ---------- */
.m-stage { position: relative; height: 100svh; min-height: 560px; }
.m-stage.hero { display: block; padding: 0; overflow: visible; isolation: auto; align-items: initial; }
.m-stage.hero::before { content: none; }
.motion .hero-stats { margin: 0; padding: 0; }
.m-stage.live { height: 300svh; }
.m-scene { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; background: var(--void); }
.m-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-copy { position: absolute; left: max(5vw, 16px); right: max(5vw, 16px); bottom: clamp(28px, 7vh, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: end; z-index: 3; }
.m-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); margin: 0 0 12px; }
.m-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.m-copy h1 { font-size: clamp(36px, 5.2vw, 70px); line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: -.02em; }
.m-copy h1 > span { display: block; opacity: 0; transform: translateY(24px); animation: mWord .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.m-copy h1 > span:nth-child(1) { animation-delay: .5s; }
.m-copy h1 > span:nth-child(2) { animation-delay: .7s; }
@keyframes mWord { to { opacity: 1; transform: none; } }
.m-copy .m-aside > * { opacity: 0; animation: mWord 1s 1.1s forwards; }
.m-copy .m-aside p { color: #c9d6ea; font-size: 15.5px; margin: 0 0 16px; }
.m-copy .cta-row { gap: 10px; }
.m-copy .hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--mute); }
.m-copy .hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.m-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #fff, #eaf7ff 55%, #cfe8ff); opacity: var(--fl, 0); pointer-events: none; z-index: 5; }
.m-sceneB { position: absolute; inset: 0; opacity: var(--b, 0); background: radial-gradient(70% 60% at 60% 50%, #0d1a33, #050913 60%, #020409); z-index: 4; pointer-events: none; }
.m-sceneB.on { pointer-events: auto; }
.m-giant { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--gs, 1.08)); font: 700 clamp(90px, 19vw, 300px)/1 var(--disp); letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(140, 170, 220, .12); background: linear-gradient(180deg, rgba(120, 150, 200, .09), rgba(120, 150, 200, .02)); -webkit-background-clip: text; background-clip: text; }
.m-planwrap { position: absolute; left: 50%; top: 54%; width: min(58vw, 700px); aspect-ratio: 600/440; transform: translate(-50%, -50%) translateY(var(--cy, 0px)); perspective: 1400px; z-index: 2; }
.m-plan { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(var(--pr, -38deg)) scale(.92); transition: transform .2s ease-out; }
.m-plan svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.m-plan .lw { transform: translateZ(16px); }
.m-plan .ls { transform: translateZ(30px); }
.m-plan text { font: 500 13px var(--font); fill: #9fb3cc; }
.m-plan .cab { fill: none; stroke-width: 2.2; stroke-dasharray: 6 7; animation: mDash 1.4s linear infinite; }
@keyframes mDash { to { stroke-dashoffset: -26; } }
.m-plan .cone { animation: mSwing 4.2s ease-in-out infinite alternate; }
@keyframes mSwing { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.m-plan .ring { transform-box: fill-box; transform-origin: center; animation: mRing 2.4s ease-out infinite; }
.m-plan .ring.r2 { animation-delay: .8s; } .m-plan .ring.r3 { animation-delay: 1.6s; }
@keyframes mRing { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.m-plan .air { fill: none; stroke: #a5f3fc; stroke-width: 1.6; stroke-dasharray: 4 6; animation: mDash 1s linear infinite; }
.m-plan .shine { animation: mShine 3.6s ease-in-out infinite; }
@keyframes mShine { from { transform: translateX(-140px); } to { transform: translateX(420px); } }
.m-plan .zap { opacity: 0; animation: mZap 5s infinite; }
@keyframes mZap { 0%, 78% { opacity: 0; } 80% { opacity: 1; } 82% { opacity: .2; } 84% { opacity: 1; } 92%, 100% { opacity: 0; } }
.m-plan .down { stroke-dasharray: 520; stroke-dashoffset: 520; animation: mDown 5s infinite; }
@keyframes mDown { 0%, 80% { stroke-dashoffset: 520; opacity: 0; } 81% { opacity: 1; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.m-plan .g { transition: opacity .5s; }
.m-plan[data-hl] .g:not(.hl) { opacity: .38; }
.m-plan .g.hl { filter: drop-shadow(0 0 6px rgba(165, 243, 252, .7)); }
.m-legend { position: absolute; right: max(5vw, 16px); top: clamp(96px, 15vh, 150px); display: flex; flex-direction: column; gap: 8px; z-index: 3; opacity: var(--tb, 0); }
.m-legend button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--stroke2); background: rgba(10, 18, 34, .7); backdrop-filter: blur(10px); color: var(--text); font: 500 15px var(--font); cursor: pointer; text-align: left; transition: border-color .3s, background .3s; }
.m-legend button i { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 10px var(--c); }
.m-legend button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, rgba(10, 18, 34, .8)); }
.m-legend button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.m-tB { position: absolute; z-index: 3; font: 500 clamp(30px, 4.6vw, 60px)/1.08 var(--disp); color: #f2f7ff; margin: 0; letter-spacing: -.02em; }
.m-tB1 { left: max(5vw, 16px); top: clamp(96px, 15vh, 150px); }
.m-tB2 { right: max(5vw, 16px); bottom: clamp(40px, 9vh, 90px); text-align: right; }
.m-pB { position: absolute; left: max(5vw, 16px); bottom: clamp(40px, 9vh, 90px); max-width: 36ch; color: var(--dim); font-size: 15px; margin: 0; }
.m-pB .m-btn { margin-top: 14px; }
.m-tB, .m-pB { opacity: var(--tb, 0); transform: translateY(calc((1 - var(--tb, 0)) * 20px)); }
.m-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 12px; color: var(--mute); z-index: 3; opacity: var(--hi, 1); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.m-hint::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--ice), transparent); animation: mDrip 1.8s infinite; }
@keyframes mDrip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 980px) {
  .m-copy { grid-template-columns: minmax(0, 1fr); gap: 14px; bottom: 22px; }
  .m-copy .m-aside p { display: none; }
}
@media (max-width: 760px) {
  .m-hint { display: none; }
  .m-copy { bottom: 96px; }
  .m-copy .m-aside { display: none; }   /* มือถือมีแถบติดต่อด่วนด้านล่างอยู่แล้ว */
  .m-planwrap { width: 94vw; top: 50%; }
  .m-legend { left: 16px; right: 16px; top: auto; bottom: 86px; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .m-legend button { min-height: 44px; padding: 6px 12px; font-size: 13px; }
  .m-pB { bottom: auto; top: calc(clamp(96px, 15vh, 150px) + 2.6em); max-width: none; right: 16px; }
  .m-tB2 { bottom: 32px; }
}
/* ฉากยาว 3 หน้าจอเฉพาะเมื่อ JS พร้อม (.live) — ไม่มี JS = ฉากเดียว ไม่ต้องเลื่อนผ่านพื้นที่ว่าง */

/* ---------- สถิติใต้ฉาก ---------- */
.m-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--stroke); background: rgba(6, 11, 22, .6); }
.m-stats .m-stat { padding: 30px max(2.4vw, 16px); display: flex; flex-direction: column; gap: 6px; }
.m-stats .m-stat + .m-stat { border-left: 1px solid var(--stroke); }
.m-stats .m-stat b { font: 600 clamp(34px, 4.4vw, 60px)/1 var(--disp); font-variant-numeric: tabular-nums; background: linear-gradient(100deg, #fff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-stats .m-stat b small { font-size: .45em; }
.m-stats .m-stat > span { color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.m-stats .stars-mini { color: #fbbf24; letter-spacing: 1px; }
@media (max-width: 900px) { .m-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-stats .m-stat:nth-child(3) { border-left: 0; } .m-stats .m-stat:nth-child(n+3) { border-top: 1px solid var(--stroke); } }

/* ---------- การ์ดบริการ ---------- */
.m-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .m-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .m-svc-grid { grid-template-columns: minmax(0, 1fr); } .m-svc { min-height: 0; } .m-svc .m-ic { margin-bottom: 4px; } }
.m-svc { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 250px; padding: 22px; border-radius: 18px; border: 1px solid var(--stroke); color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .3s, transform .3s; }
.m-svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sk); opacity: .85; transition: opacity .4s, transform .8s; }
.m-svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(3, 5, 10, .9)); }
.m-svc:hover { border-color: var(--ice); transform: translateY(-3px); }
.m-svc:hover::before { opacity: 1; transform: scale(1.06); }
.m-svc .m-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--tone, var(--ice)); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); margin-bottom: auto; }
.m-svc .m-kick { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; color: rgba(220, 232, 250, .7); margin-top: 18px; }
.m-svc h3 { font: 600 19px/1.35 var(--disp); margin: 0; }
.m-svc > span { color: #c4d1e4; font-size: 14px; line-height: 1.5; }
.m-svc em { font-style: normal; color: var(--ice); font-size: 13.5px; line-height: 1.45; }
.m-more { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); }
.m-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--stroke); color: var(--dim); text-decoration: none; transition: border-color .2s, color .2s; }
.m-more a:hover { border-color: var(--ice); color: #fff; }
.m-more a svg { color: var(--tone); }

/* ---------- แถบผลงานเลื่อนแนวนอน ---------- */
.m-strip { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-strip::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) { .m-strip { grid-auto-columns: minmax(260px, calc((100% - 32px) / 3)); } }
@media (max-width: 700px) { .m-strip { grid-auto-columns: 82%; } }
.m-strip > li { scroll-snap-align: start; display: flex; }
.m-proj { flex: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--stroke); background: var(--panel); color: var(--text); text-decoration: none; display: flex; flex-direction: column; transition: border-color .3s; }
.m-proj:hover { border-color: var(--ice); }
.m-proj img, .m-proj .m-proj-art { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; transition: transform .6s; }
.m-proj .m-proj-art { display: grid; place-items: center; padding: 20%; background: radial-gradient(80% 80% at 50% 30%, rgba(37, 99, 255, .2), transparent), var(--abyss); }
.m-proj:hover img { transform: scale(1.05); }
.m-proj > div { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.m-proj small { font-size: 12px; color: var(--ice); }
.m-proj b { font-weight: 600; line-height: 1.45; }
.m-proj span { font-size: 13.5px; color: var(--mute); display: inline-flex; align-items: center; gap: 4px; }
.sbar-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.sbar-row[hidden] { display: none; }
.sbar { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.sbar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(160, 190, 240, .14); }
.sbar span { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: linear-gradient(90deg, #22d3ee, #2563ff); box-shadow: 0 0 12px rgba(34, 211, 238, .55); transition: height .2s, margin .2s; }
.sbar:hover span, .sbar.drag span { height: 10px; margin-top: -5px; }
.sbar:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
.sbar-row button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--stroke2); background: rgba(255, 255, 255, .04); color: var(--text); font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s; }
.sbar-row button:hover { background: rgba(34, 211, 238, .12); border-color: var(--ice); }

/* ---------- ถูกที่สุด ไม่เท่ากับคุ้มที่สุด ---------- */
.m-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .m-split { grid-template-columns: minmax(0, 1fr); } }
.m-h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; margin: 0 0 .4em; }
.m-lead { font-size: 17px; color: var(--dim); max-width: 62ch; }
.m-cases { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--stroke); background: var(--panel); margin-top: 18px; }
.cs-track { display: flex; transition: transform .9s cubic-bezier(.65, 0, .25, 1); }
.cs-slide { flex: 0 0 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cs-img { overflow: hidden; min-height: 260px; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 6s linear; }
.cs-slide.on .cs-img img { transform: scale(1.12); }
.m-cases.paused .cs-slide.on .cs-img img { transform: scale(1.06); }
.cs-slide figcaption { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.cs-tag { align-self: flex-start; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(34, 211, 238, .12); color: var(--ice); border: 1px solid rgba(34, 211, 238, .3); }
.cs-slide b { font-size: 17px; line-height: 1.45; }
.cs-slide p { color: var(--dim); font-size: 14px; margin: 0; }
.cs-slide small { color: var(--mute); font-size: 13px; margin-top: auto; display: inline-flex; align-items: center; gap: 4px; }
.cs-slide .link { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.cs-ctl { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-top: 1px solid var(--stroke); }
.cs-dots { display: flex; gap: 6px; flex: 1; }
.cs-dots button { flex: 1; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; }
.cs-dots i { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(160, 190, 240, .18); overflow: hidden; position: relative; }
.cs-dots i::after { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #22d3ee, #2563ff); }
.cs-dots [aria-current] i::after { width: 100%; }
.cs-dots .run i::after { animation: mCsrun 5s linear forwards; }
.m-cases.paused .cs-dots [aria-current] i::after { animation: none; width: 100%; }
@keyframes mCsrun { from { width: 0; } to { width: 100%; } }
.cs-arrow { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--stroke2); background: transparent; color: var(--text); cursor: pointer; }
.cs-arrow:hover { border-color: var(--ice); }
@media (max-width: 600px) { .cs-slide { grid-template-columns: minmax(0, 1fr); } .cs-img { min-height: 0; aspect-ratio: 4/3; } .cs-dots { display: none; } .cs-count { display: block; } }
.cs-count { display: none; flex: 1; text-align: center; font: 500 14px var(--disp); color: var(--dim); }
.m-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--stroke); border-radius: 18px; overflow: hidden; }
.m-vs > div { padding: 22px; }
.m-vs > div:first-child { background: rgba(255, 255, 255, .02); }
.m-vs > div:last-child { background: linear-gradient(160deg, rgba(34, 211, 238, .1), rgba(37, 99, 255, .06)); }
.m-vs h3 { font-size: 16px; margin: 0 0 12px; }
.m-vs ul { margin: 0; padding-left: 18px; color: var(--dim); display: grid; gap: 8px; font-size: 15px; }
.m-vs > div:last-child ul { color: var(--text); }
@media (max-width: 600px) { .m-vs { grid-template-columns: minmax(0, 1fr); } }
.m-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.m-check li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.m-check li::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: rgba(34, 211, 238, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2322d3ee' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border: 1px solid rgba(34, 211, 238, .35); }
.m-check b { display: block; }
.m-check span { color: var(--dim); }

/* ---------- การ์ดตัวเลข ---------- */
.m-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .m-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .m-grid3 { grid-template-columns: minmax(0, 1fr); } }
.m-card { padding: 22px; border-radius: 16px; border: 1px solid var(--stroke); background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; }
a.m-card { transition: border-color .3s, transform .3s; }
a.m-card:hover { border-color: var(--ice); transform: translateY(-3px); }
.m-card p { color: var(--dim); margin: 0; }
.m-card .k { font: 600 clamp(28px, 3.2vw, 40px)/1.05 var(--disp); background: linear-gradient(100deg, #fff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-card em { font-style: normal; color: var(--ice); font-size: 14px; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }
.m-card h3 { margin: 0; font-size: 18px; }
.m-card .m-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--tone, var(--ice)); background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); }

/* ---------- หน้าบริการ: แดชบอร์ดกระจกบนฉากเคลื่อนไหว ---------- */
.m-dash { position: relative; min-height: max(100svh, 720px); overflow: hidden; background: #03060c; }
.m-wx { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-dui { position: relative; z-index: 2; min-height: max(100svh, 720px); display: grid; grid-template-columns: 64px minmax(0, 1fr) clamp(260px, 21vw, 330px); grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px 28px; padding: calc(var(--hdr) + 20px) max(3vw, 16px) 30px; }
.m-rail { grid-row: 1/4; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 22px; align-self: start; }
.m-rail a { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--dim); position: relative; transition: background .25s, color .25s; }
.m-rail a svg { width: 20px; height: 20px; }
.m-rail a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.m-rail a[aria-current] { background: #fff; color: #06101f; }
.m-rail a[aria-current]::before { content: ""; position: absolute; left: -11px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: #fff; }
.m-rail a span { position: absolute; left: 54px; white-space: nowrap; padding: 4px 10px; border-radius: 8px; background: rgba(6, 12, 24, .9); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 5; }
.m-rail a:hover span, .m-rail a:focus-visible span { opacity: 1; }
.m-rail a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.m-rail hr { width: 24px; border: 0; border-top: 1px solid var(--stroke2); margin: 6px 0; }
.m-hd { grid-column: 2; align-self: start; max-width: clamp(400px, 33vw, 560px); }
.m-hd .crumbs { margin-bottom: 12px; }
.m-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; backdrop-filter: blur(8px); margin: 0 0 14px; }
.m-hd h1 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.18; margin: 0 0 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.m-hd p.lead { color: #dbe6f5; font-size: 16px; max-width: 58ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); margin: 0 0 18px; }
.m-hd .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.m-low { grid-column: 2; align-self: end; }
.m-st { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px 18px; margin-bottom: 8px; }
.m-st div { display: flex; flex-direction: column; }
.m-st b { font: 500 clamp(22px, 2.3vw, 34px)/1.05 var(--disp); white-space: nowrap; letter-spacing: -.02em; }
.m-st span { font-size: 13px; color: #d4e0f0; line-height: 1.35; margin-top: 4px; }
.m-curve { position: relative; height: 120px; margin-top: 30px; }
.m-curve svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.m-curve .note { position: absolute; right: 0; top: -26px; max-width: 60%; text-align: right; font-size: 12px; color: #c7d5e8; }
.m-side { grid-column: 3; grid-row: 1/4; display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.m-sp { padding: 18px; border-radius: 20px; }
.m-sp .loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #e6eef9; }
.m-sp .big { font: 500 clamp(32px, 3.2vw, 56px)/1 var(--disp); letter-spacing: -.03em; margin: 14px 0 8px; white-space: nowrap; }
.m-sp .sub { font-size: 13px; color: #d0dcec; line-height: 1.5; margin: 0; }
.m-sp h2 { font-size: 18px; margin: 10px 0 6px; }
.m-sp .cta-row { flex-direction: column; gap: 8px; margin-top: 12px; }
.m-sp .cta-row .btn { width: 100%; }
.m-mini { padding: 14px 16px; border-radius: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.m-mini small { font-size: 12px; color: #c9d6e8; }
.m-mini span { font: 500 22px/1 var(--disp); white-space: nowrap; }
.m-mini em { grid-column: 1/3; font-style: normal; font-size: 12.5px; color: #c9d6e8; }
.m-dui .m-hd > *, .m-low, .m-side > * { animation: mUp .9s cubic-bezier(.2, .8, .2, 1) both; }
.m-hd > *:nth-child(2) { animation-delay: .1s; } .m-hd > *:nth-child(3) { animation-delay: .2s; } .m-hd > *:nth-child(4) { animation-delay: .3s; }
.m-low { animation-delay: .36s; } .m-side > *:nth-child(2) { animation-delay: .2s; } .m-side > *:nth-child(3) { animation-delay: .3s; } .m-side > *:nth-child(4) { animation-delay: .4s; }
@keyframes mUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .m-hd { max-width: none; }
  .m-dui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .m-rail { grid-row: auto; flex-direction: row; overflow-x: auto; justify-content: flex-start; padding: 6px; border-radius: 16px; align-self: stretch; scrollbar-width: none; }
  .m-rail::-webkit-scrollbar { display: none; }
  .m-rail a span, .m-rail a[aria-current]::before, .m-rail hr { display: none; }
  .m-hd, .m-low, .m-side { grid-column: 1; grid-row: auto; }
  .m-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-side .m-sp { grid-column: 1/3; }
  .m-st { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .m-curve { height: 96px; margin: 8px 0 34px; }
  .m-curve .note { top: auto; bottom: -34px; left: 0; max-width: none; text-align: left; }
  .m-st { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-side { grid-template-columns: minmax(0, 1fr); }
  .m-side .m-sp { grid-column: auto; }
}

/* ---------- หน้าบริการ: เนื้อหา ---------- */
.m-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .m-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .m-feat { grid-template-columns: minmax(0, 1fr); } }
.m-learn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .m-learn { grid-template-columns: minmax(0, 1fr); } }
.m-tbl { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 16px; }
.m-tbl table { border-collapse: collapse; width: 100%; font-size: 15px; }
.m-tbl th, .m-tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.m-tbl th { font-weight: 600; color: #fff; background: rgba(255, 255, 255, .04); }
.m-tbl td { color: var(--dim); }
.m-tbl tr:last-child > * { border-bottom: 0; }
@media (max-width: 600px) { .m-tbl table { font-size: 13px; } .m-tbl th, .m-tbl td { padding: 8px; } }
.m-fig { position: relative; border-radius: 18px; border: 1px solid var(--stroke); background: radial-gradient(80% 80% at 50% 0%, rgba(37, 99, 255, .18), transparent), var(--panel); overflow: hidden; margin-top: 18px; }
.m-fig svg { display: block; width: 100%; height: auto; }
.m-fig svg text { font: 500 13px var(--font); fill: #dbe6f5; }
.m-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 20px; overflow: hidden; border: 1px solid var(--stroke2); }
.m-calc .m-calc-in { padding: 24px; display: grid; gap: 16px; background: var(--panel); }
.m-calc label { display: grid; gap: 6px; font-size: 14px; color: var(--dim); }
.m-calc .row { display: flex; justify-content: space-between; gap: 8px; }
.m-calc .row .val { color: #fff; font-family: var(--disp); white-space: nowrap; }
.m-calc input[type=number], .m-calc select { height: 44px; border-radius: 10px; border: 1px solid var(--stroke2); background: #050b16; color: #fff; padding: 0 12px; font: 16px var(--font); }
.m-calc input[type=range] { accent-color: #f6b84b; height: 28px; width: 100%; }
.m-calc .res { padding: 24px; background: radial-gradient(90% 90% at 100% 0%, rgba(246, 184, 75, .3), transparent 60%), linear-gradient(160deg, #1b2a4a, #0b1326); display: flex; flex-direction: column; gap: 12px; }
.m-calc .res .k { font: 500 clamp(40px, 5vw, 64px)/1 var(--disp); color: #fff; white-space: nowrap; }
.m-calc .res dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin: 0; font-size: 15px; }
.m-calc .res dt { color: var(--dim); }
.m-calc .res dd { margin: 0; text-align: right; font-family: var(--disp); white-space: nowrap; }
@media (max-width: 760px) { .m-calc { grid-template-columns: minmax(0, 1fr); } }
.m-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.m-body .side { position: sticky; top: calc(var(--hdr) + 20px); }
@media (max-width: 960px) { .m-body { grid-template-columns: minmax(0, 1fr); } .m-body .side { position: static; } }
.m-body .prose h2:first-child { margin-top: 0; }
.m-srcs { columns: 2; column-gap: 32px; padding-left: 18px; font-size: 14px; color: var(--mute); margin: 0; }
.m-srcs li { break-inside: avoid; margin-bottom: 6px; }
.m-srcs a { color: var(--dim); }
@media (max-width: 700px) { .m-srcs { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  .m-copy h1 > span, .m-copy .m-aside > *, .m-dui .m-hd > *, .m-low, .m-side > * { animation: none; opacity: 1; transform: none; }
  .m-plan *, .m-hint::after, .cs-dots i::after { animation: none !important; }
  .cs-track, .cs-img img { transition: none; }
}

/* =====================================================================
   รอบ 21 — ภาพประกอบเฉพาะบริการ (includes/scene-art.php)
   ===================================================================== */
.m-art { position: absolute; z-index: 1; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.m-art svg { width: 100%; height: 100%; max-width: 700px; max-height: 600px; overflow: visible; }
.ax text { font-family: var(--font); }
.ax .ax-t { font-size: 15px; font-weight: 500; fill: #e6eef9; paint-order: stroke; stroke: rgba(3, 6, 12, .85); stroke-width: 4px; stroke-linejoin: round; }
.ax .ax-s { font-size: 13px; } .ax .ax-xs { font-size: 12px; } .ax .ax-xxs { font-size: 10.5px; stroke-width: 0; }
.ax .ax-b { font-weight: 700; } .ax .ax-ok { fill: #4ade80; } .ax .ax-ok2 { fill: #a5f3fc; } .ax .ax-bad { fill: #fca5a5; }
.ax .ax-dark { fill: #0f172a; stroke-width: 0; } .ax .ax-light { fill: #fff; stroke-width: 0; } .ax .ax-kpi { font-size: 16px; fill: #fff; stroke-width: 0; }
.ax .ax-plate { font: 700 9px var(--font); fill: #0f172a; }
.ax .ax-led7 { font: 600 11px var(--disp); fill: #0ea5e9; }
.ax-mk circle { fill: #22d3ee; stroke: rgba(3, 6, 12, .9); stroke-width: 3; }
.ax-mk text { font: 700 12px var(--disp); fill: #04202a; }
.ax-leg .ax-t { font-size: 13.5px; }
.ax-leg { opacity: .96; }
/* ร่วมกัน */
.ax .ax-blink { animation: axBlink 1.4s steps(2) infinite; }
@keyframes axBlink { 50% { opacity: .25; } }
.ax .ax-led { animation: axLed 1.1s steps(2) infinite; }
@keyframes axLed { 50% { opacity: .2; } }
.ax .ax-spin { transform-box: fill-box; transform-origin: center; animation: axSpin 1s linear infinite; }
@keyframes axSpin { to { transform: rotate(360deg); } }
.ax .ax-cond { animation: axDashF 1.2s linear infinite; }
@keyframes axDashF { to { stroke-dashoffset: -16; } }
.ax .ax-wifi { animation: axFade 1.6s ease-in-out infinite; }
@keyframes axFade { 50% { opacity: .2; } }
/* ไม้กั้น (10 วินาที) */
.ax-gate .ax-lane { animation: axLane .9s linear infinite; }
@keyframes axLane { to { stroke-dashoffset: -28; } }
.ax-gate .ax-car { transform-box: view-box; transform-origin: 0 0; animation: axGCar 10s infinite; }
@keyframes axGCar { 0% { transform: translate(260px, 166px) scale(.14); opacity: 0; animation-timing-function: ease-out; } 5% { opacity: 1; } 30% { transform: translate(260px, 288px) scale(.78); } 54% { transform: translate(260px, 288px) scale(.78); animation-timing-function: ease-in; } 70% { transform: translate(260px, 384px) scale(1.18); } 80% { transform: translate(260px, 470px) scale(1.6); opacity: 1; } 81%, 100% { transform: translate(260px, 470px) scale(1.6); opacity: 0; } }
.ax-gate .ax-arm { transform-box: view-box; transform-origin: 418px 261px; animation: axGArm 10s infinite; }
@keyframes axGArm { 0%, 40% { transform: rotate(0); } 48%, 74% { transform: rotate(80deg); } 84%, 100% { transform: rotate(0); } }
.ax-gate .ax-beam { opacity: 0; animation: axGBeam 10s infinite; }
@keyframes axGBeam { 0%, 30% { opacity: 0; } 33%, 44% { opacity: .32; } 47%, 100% { opacity: 0; } }
.ax-gate .ax-pop, .ax-gate .ax-plateM { opacity: 0; animation: axGPop 10s infinite; }
@keyframes axGPop { 0%, 38% { opacity: 0; } 41%, 64% { opacity: 1; } 68%, 100% { opacity: 0; } }
.ax-gate .ax-plateM { animation-name: axGPlate; }
@keyframes axGPlate { 0%, 39% { opacity: 0; } 42%, 95% { opacity: 1; } 100% { opacity: 0; } }
.ax-gate .ax-lg, .ax-access .ax-lg { opacity: 0; animation: axGGreen 10s infinite; }
.ax-gate .ax-lr, .ax-access .ax-lr { animation: axGRed 10s infinite; }
@keyframes axGGreen { 0%, 47% { opacity: 0; } 48%, 74% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes axGRed { 0%, 47% { opacity: 1; } 48%, 74% { opacity: 0; } 75%, 100% { opacity: 1; } }
.ax-gate .ax-loop { animation: axGLoop 10s infinite; }
@keyframes axGLoop { 0%, 53% { fill-opacity: .05; stroke-opacity: .6; } 56%, 63% { fill-opacity: .32; stroke-opacity: 1; } 68%, 100% { fill-opacity: .05; stroke-opacity: .6; } }
/* Access (10 วินาที) */
.ax-access .ax-person { transform-box: view-box; transform-origin: 0 392px; animation: axAPer 10s infinite; }
@keyframes axAPer { 0% { transform: translateX(-30px); opacity: 0; } 4% { opacity: 1; } 24%, 46% { transform: translateX(104px); } 62% { transform: translateX(280px); opacity: 1; } 72% { transform: translateX(280px) scale(.8); opacity: 0; } 100% { transform: translateX(280px) scale(.8); opacity: 0; } }
.ax-access .ax-dl { animation: axADl 10s infinite; } .ax-access .ax-dr { animation: axADr 10s infinite; }
@keyframes axADl { 0%, 46% { transform: none; } 52%, 72% { transform: translateX(-76px); } 80%, 100% { transform: none; } }
@keyframes axADr { 0%, 46% { transform: none; } 52%, 72% { transform: translateX(76px); } 80%, 100% { transform: none; } }
.ax-access .ax-lg { animation-name: axAGreen; } .ax-access .ax-lr { animation-name: axARed; }
@keyframes axAGreen { 0%, 41% { opacity: 0; } 42%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes axARed { 0%, 41% { opacity: 1; } 42%, 74% { opacity: 0; } 76%, 100% { opacity: 1; } }
.ax-access .ax-scan { opacity: 0; animation: axAScan 10s infinite; }
@keyframes axAScan { 0%, 25% { opacity: 0; transform: translateY(0); } 26% { opacity: 1; } 30% { transform: translateY(42px); } 34% { transform: translateY(0); } 38% { transform: translateY(42px); opacity: 1; } 40%, 100% { opacity: 0; transform: translateY(0); } }
.ax-access .ax-okp { opacity: 0; animation: axAOk 10s infinite; }
@keyframes axAOk { 0%, 40% { opacity: 0; } 42%, 60% { opacity: 1; } 64%, 100% { opacity: 0; } }
.ax-access .ax-row { opacity: 0; animation: axARow 10s infinite; }
@keyframes axARow { 0%, 43% { opacity: 0; } 46%, 94% { opacity: 1; } 100% { opacity: 0; } }
/* Infrastructure (12 วินาที: ไฟดับช่วงกลาง UPS รับโหลด) */
.ax-infra .ax-pOff { opacity: 0; animation: axIOff 12s infinite; } .ax-infra .ax-pOn { animation: axIOn 12s infinite; }
@keyframes axIOff { 0%, 56% { opacity: 0; } 58%, 82% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes axIOn { 0%, 56% { opacity: 1; } 58%, 82% { opacity: 0; } 84%, 100% { opacity: 1; } }
.ax-infra .ax-pwr { animation: axDashF 1.2s linear infinite, axIPwr 12s infinite; }
@keyframes axIPwr { 0%, 56% { stroke-opacity: 1; } 58%, 82% { stroke-opacity: .12; } 84%, 100% { stroke-opacity: 1; } }
.ax-infra .ax-batt { transform-box: fill-box; transform-origin: left center; animation: axIBatt 12s infinite; }
@keyframes axIBatt { 0%, 57% { transform: scaleX(1); fill: #4ade80; } 82% { transform: scaleX(.55); fill: #facc15; } 100% { transform: scaleX(1); fill: #4ade80; } }
.ax-infra .ax-upsled { animation: axIUps 12s infinite; }
@keyframes axIUps { 0%, 56% { fill: #22c55e; } 58%, 82% { fill: #f59e0b; } 84%, 100% { fill: #22c55e; } }
/* แอร์ (12 วินาที: ห้องค่อย ๆ เย็นลง) */
.ax-aircon .ax-air { animation: axDashF .9s linear infinite; }
.ax-aircon .ax-therm { transform-box: fill-box; transform-origin: center bottom; animation: axATherm 12s ease-in-out infinite; }
@keyframes axATherm { 0%, 10% { transform: scaleY(1); fill: #ef4444; } 60%, 92% { transform: scaleY(.5); fill: #38bdf8; } 100% { transform: scaleY(1); fill: #ef4444; } }
.ax-aircon .ax-bulb { animation: axABulb 12s ease-in-out infinite; }
@keyframes axABulb { 0%, 10% { fill: #ef4444; } 60%, 92% { fill: #38bdf8; } 100% { fill: #ef4444; } }
.ax-aircon .ax-hot { animation: axAHot 12s infinite; } .ax-aircon .ax-cool { opacity: 0; animation: axACool 12s infinite; }
@keyframes axAHot { 0%, 40% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes axACool { 0%, 40% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
.ax-aircon .ax-heat { animation: axAHeat 1.8s ease-out infinite; }
@keyframes axAHeat { from { transform: translateY(8px); opacity: 0; } 40% { opacity: .9; } to { transform: translateY(-14px); opacity: 0; } }
.ax-aircon .ax-drip { animation: axADrip 1.6s ease-in infinite; }
@keyframes axADrip { from { transform: translateY(-4px); opacity: 1; } to { transform: translateY(12px); opacity: 0; } }
.ax-aircon .ax-sun { transform-box: fill-box; transform-origin: center; animation: axPulse 3s ease-in-out infinite; }
@keyframes axPulse { 50% { transform: scale(1.08); } }
/* ร้านไอที (8 วินาที) */
.ax-shop .ax-ssd { animation: axSSsd 8s infinite; }
@keyframes axSSsd { 0%, 6% { transform: translateX(-70px); opacity: 0; } 18%, 100% { transform: none; opacity: 1; } }
.ax-shop .ax-prog { transform-box: fill-box; transform-origin: left center; animation: axSProg 8s infinite; }
@keyframes axSProg { 0%, 18% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.ax-shop .ax-c { opacity: 0; animation: axSC 8s infinite; }
.ax-shop .ax-c2 { animation-name: axSC2; } .ax-shop .ax-c3 { animation-name: axSC3; } .ax-shop .ax-c4 { animation-name: axSC4; }
@keyframes axSC { 0%, 28% { opacity: 0; } 32%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes axSC2 { 0%, 40% { opacity: 0; } 44%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes axSC3 { 0%, 52% { opacity: 0; } 56%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes axSC4 { 0%, 64% { opacity: 0; } 68%, 94% { opacity: 1; } 100% { opacity: 0; } }
.ax-shop .ax-needle { transform-box: view-box; transform-origin: 286px 152px; animation: axSNeed 8s ease-in-out infinite; }
@keyframes axSNeed { 0%, 18% { transform: rotate(-70deg); } 70%, 92% { transform: rotate(62deg); } 100% { transform: rotate(-70deg); } }
.ax-shop .ax-paper { animation: axSPaper 4s ease-in-out infinite; }
@keyframes axSPaper { 0%, 10% { transform: translateY(40px); } 60%, 85% { transform: translateY(-6px); } 100% { transform: translateY(40px); } }
.ax-shop .ax-ink { transform-box: fill-box; transform-origin: center bottom; animation: axSInk 6s ease-in-out infinite; }
@keyframes axSInk { 0% { transform: scaleY(.35); } 40%, 100% { transform: scaleY(1); } }
/* IT Outsource (12 วินาที) */
.ax-outsource .ax-bar, .ax-software .ax-bar { transform-box: fill-box; transform-origin: center bottom; animation: axBar 4s ease-in-out infinite alternate; }
@keyframes axBar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.ax-outsource .ax-srvR { opacity: 0; animation: axOSrvR 12s infinite; } .ax-outsource .ax-srvG { animation: axOSrvG 12s infinite; }
@keyframes axOSrvR { 0%, 16% { opacity: 0; } 18%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes axOSrvG { 0%, 16% { opacity: 1; } 18%, 60% { opacity: 0; } 62%, 100% { opacity: 1; } }
.ax-outsource .ax-alert { opacity: 0; animation: axOSrvR 12s infinite; }
.ax-outsource .ax-ticket { opacity: 0; animation: axOTk 12s infinite; }
@keyframes axOTk { 0%, 26% { opacity: 0; } 29%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
.ax-outsource .ax-done { opacity: 0; animation: axODone 12s infinite; }
@keyframes axODone { 0%, 61% { opacity: 0; } 63%, 94% { opacity: 1; } 100% { opacity: 0; } }
.ax-outsource .ax-remote { animation: axDashF .6s linear infinite, axORem 12s infinite; }
@keyframes axORem { 0%, 30% { stroke-opacity: .25; } 34%, 60% { stroke-opacity: 1; } 64%, 100% { stroke-opacity: .25; } }
.ax-outsource .ax-van { animation: axOVan 12s linear infinite; }
@keyframes axOVan { from { transform: translateX(470px); } to { transform: translateX(-60px); } }
/* IT Consult (12 วินาที) */
.ax-consult .ax-err { animation: axCErr 12s infinite; } .ax-consult .ax-fix { opacity: 0; animation: axCFix 12s infinite; }
@keyframes axCErr { 0%, 2% { opacity: 1; } 3% { opacity: .4; } 4%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes axCFix { 0%, 58% { opacity: 0; } 60%, 96% { opacity: 1; } 100% { opacity: 0; } }
.ax-consult .ax-b1 { opacity: 0; animation: axCB1 12s infinite; }
@keyframes axCB1 { 0%, 6% { opacity: 0; transform: translateY(6px); } 9%, 32% { opacity: 1; transform: none; } 35%, 100% { opacity: 0; } }
.ax-consult .ax-b2 { opacity: 0; animation: axCB2 12s infinite; }
@keyframes axCB2 { 0%, 32% { opacity: 0; transform: translateY(6px); } 35%, 56% { opacity: 1; transform: none; } 59%, 100% { opacity: 0; } }
.ax-consult .ax-wave { opacity: 0; animation: axCWave 1.2s ease-out infinite; }
@keyframes axCWave { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; transform: translateX(10px); } }
.ax-consult .ax-plan { opacity: 0; animation: axCPlan 12s infinite; }
@keyframes axCPlan { 0%, 62% { opacity: 0; transform: translateY(8px); } 66%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ax-consult .ax-pl { opacity: 0; animation: axCPl 12s infinite; } .ax-consult .ax-pl2 { animation-name: axCPl2; } .ax-consult .ax-pl3 { animation-name: axCPl3; }
@keyframes axCPl { 0%, 68% { opacity: 0; } 71%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes axCPl2 { 0%, 74% { opacity: 0; } 77%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes axCPl3 { 0%, 80% { opacity: 0; } 83%, 96% { opacity: 1; } 100% { opacity: 0; } }
/* ซอฟต์แวร์ */
.ax-software .ax-line { stroke-dasharray: 200; animation: axSwLine 4s ease-in-out infinite; }
@keyframes axSwLine { 0% { stroke-dashoffset: 200; } 60%, 100% { stroke-dashoffset: 0; } }
.ax-software .ax-code { transform-box: fill-box; transform-origin: left center; animation: axSwCode 4s steps(8) infinite; }
@keyframes axSwCode { 0% { transform: scaleX(0); } 50%, 100% { transform: scaleX(1); } }
.ax-software .ax-noti { opacity: 0; animation: axSwNoti 8s infinite; }
@keyframes axSwNoti { 0%, 40% { opacity: 0; transform: translateY(8px); } 44%, 80% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; } }

/* ภาพบนมือถือ: วางในเนื้อหาระหว่างหัวข้อกับตัวเลข */
@media (max-width: 980px) {
  .m-art { position: relative; inset: auto; width: 100% !important; height: auto !important; left: auto !important; top: auto !important; grid-column: 1; }
  .m-art svg { height: auto; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .ax, .ax * { animation-play-state: paused !important; } }

/* ระบบประกอบด้วยอะไรบ้าง (หมายเลขตรงกับภาพ) */
.m-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; counter-reset: part; list-style: none; padding: 0; margin: 0; }
.m-parts li { position: relative; padding: 18px 18px 18px 60px; border-radius: 14px; border: 1px solid var(--stroke); background: linear-gradient(160deg, rgba(34, 211, 238, .07), rgba(255, 255, 255, .01)); }
.m-parts li::before { counter-increment: part; content: counter(part); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #22d3ee; color: #04202a; font: 700 14px var(--disp); }
.m-parts b { display: block; margin-bottom: 4px; }
.m-parts span { color: var(--dim); font-size: 14.5px; }
/* แผงข้อมูลขวา: ค่าเป็นข้อความยาว */
.m-mini { row-gap: 6px; }
.m-mini span.txt { font-size: 18px; letter-spacing: 0; }

/* ---------- หน้าแรก: แผงระบบตัวอย่างในพื้นที่ว่างของฉากแรก (รอบ 21) ---------- */
.m-hud { position: absolute; left: max(5vw, 16px); top: calc(var(--hdr) + 26px); width: min(38vw, 560px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; z-index: 2; }
.m-hud-cap { grid-column: 1/3; margin: 0 0 2px; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.m-hud-cap i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: axBlink 1.6s steps(2) infinite; }
.m-hc { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(10, 18, 34, .55) 60%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; opacity: 0; animation: mUp .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.m-hc:nth-of-type(1) { animation-delay: 1.3s; } .m-hc:nth-of-type(2) { animation-delay: 1.45s; } .m-hc:nth-of-type(3) { animation-delay: 1.6s; } .m-hc:nth-of-type(4) { animation-delay: 1.75s; } .m-hc:nth-of-type(5) { animation-delay: 1.9s; } .m-hc:nth-of-type(6) { animation-delay: 2.05s; }
.m-hi { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: rgba(255, 255, 255, .06); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.m-hc > div { min-width: 0; flex: 1; }
.m-hc small { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-hc b { display: block; font: 600 14.5px/1.35 var(--font); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-hc b span { font-family: var(--disp); color: var(--c); font-variant-numeric: tabular-nums; }
.m-spark { width: 40px; height: 20px; flex: none; }
.m-spark path { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 120; animation: mSpark 3s ease-in-out infinite; }
@keyframes mSpark { 0% { stroke-dashoffset: 120; } 60%, 100% { stroke-dashoffset: 0; } }
.m-meter { width: 46px; height: 6px; flex: none; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.m-meter i { display: block; height: 100%; width: 70%; background: var(--c); border-radius: 6px; animation: mMeter 4s ease-in-out infinite alternate; }
@keyframes mMeter { from { width: 52%; } to { width: 86%; } }
.m-rec { font-style: normal; color: #f87171; animation: axBlink 1.2s steps(2) infinite; }
.m-fan { width: 22px; height: 22px; flex: none; fill: var(--c); animation: axSpin 1.4s linear infinite; }
.m-ok { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); animation: mPing 2s infinite; }
@keyframes mPing { 70% { box-shadow: 0 0 0 10px transparent; } }
@media (max-width: 980px) { .m-hud { display: none; } }
@media (max-height: 720px) { .m-hc:nth-of-type(n+5) { display: none; } }

/* ---------- ถูกที่สุด ไม่เท่ากับคุ้มที่สุด: โทนอุ่น + แยกสี ตัด/รวม ---------- */
.m-warm { background: radial-gradient(55% 55% at 12% 40%, rgba(251, 146, 60, .13), transparent 72%), radial-gradient(45% 50% at 90% 70%, rgba(244, 63, 94, .1), transparent 72%); }
.m-warm .kick { color: #fdba74; }
.m-warm .m-h2 { background: linear-gradient(100deg, #fff 40%, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-vs > div.bad { background: linear-gradient(160deg, rgba(239, 68, 68, .14), rgba(239, 68, 68, .03)); }
.m-vs > div.good { background: linear-gradient(160deg, rgba(34, 197, 94, .16), rgba(34, 211, 238, .05)); }
.m-vs .bad h3 { color: #fca5a5; } .m-vs .good h3 { color: #86efac; }
.m-vs ul { list-style: none; padding-left: 0; }
.m-vs li { position: relative; padding-left: 26px; }
.m-vs li::before { position: absolute; left: 0; top: .05em; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--font); }
.m-vs .bad li::before { content: "✕"; color: #fca5a5; background: rgba(239, 68, 68, .2); }
.m-vs .good li::before { content: "✓"; color: #86efac; background: rgba(34, 197, 94, .22); }
.m-vs .good li { color: #e6f7ec; }
.m-num3 { counter-reset: n3; }
.m-num3 li::before { counter-increment: n3; content: counter(n3); background: var(--nc, #f59e0b); color: #1a1003; font: 700 14px/28px var(--disp); text-align: center; border: 0; }
.m-num3 li:nth-child(2) { --nc: #a78bfa; } .m-num3 li:nth-child(3) { --nc: #34d399; }
.m-num3 b { color: #fff; }
.cs-tag { background: color-mix(in srgb, var(--tc, #22d3ee) 16%, transparent); color: var(--tc, var(--ice)); border-color: color-mix(in srgb, var(--tc, #22d3ee) 45%, transparent); }

/* ---------- รู้ก่อนตัดสินใจ: การ์ดมีภาพเคลื่อนไหว + สีประจำหัวข้อ ---------- */
.m-fact { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--ac) 28%, var(--stroke)); background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 70%), linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); }
.m-fact .k { background: linear-gradient(100deg, #fff, var(--ac)); -webkit-background-clip: text; background-clip: text; }
.m-fact em { color: var(--ac); }
a.m-fact:hover { border-color: var(--ac); }
.m-fx { display: block; height: 64px; margin-bottom: 4px; }
.m-fx svg { height: 64px; width: auto; max-width: 100%; overflow: visible; }
.m-fx text { font: 500 11px var(--font); fill: var(--mute); }
.fx-line { stroke-dasharray: 260; animation: fxLine 3s ease-in-out infinite; }
@keyframes fxLine { 0% { stroke-dashoffset: 260; } 60%, 100% { stroke-dashoffset: 0; } }
.fx-bolt { animation: fxFlash 3s infinite; }
@keyframes fxFlash { 0%, 30% { opacity: .25; } 32% { opacity: 1; } 34% { opacity: .4; } 36%, 60% { opacity: 1; } 100% { opacity: .25; } }
.fx-sun { transform-box: fill-box; transform-origin: center; animation: axSpin 9s linear infinite; }
.fx-pay { transform-box: fill-box; transform-origin: left center; animation: fxPay 4s ease-in-out infinite; }
@keyframes fxPay { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }
.fx-fan { transform-box: fill-box; transform-origin: center; animation: axSpin 1.2s linear infinite; }
.fx-bill { transform-box: fill-box; transform-origin: center bottom; animation: fxBill 3.4s ease-in-out infinite; }
@keyframes fxBill { 0% { transform: scaleY(1); } 50%, 100% { transform: scaleY(.9); } }
.fx-cam { transform-box: view-box; transform-origin: 33px 28px; animation: fxCam 4s ease-in-out infinite alternate; }
@keyframes fxCam { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
.fx-dot { animation: axBlink 1s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) { .m-hc, .m-hc *, .m-fx * { animation: none !important; opacity: 1; } }

/* =====================================================================
   รอบ 22 — ฉากแรกใหม่ (ฮับบริการ + การ์ดบริการ) · แปลนไซต์เป็นส่วนแยก ไม่มีแสงวาบ
   ===================================================================== */
.m-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--hdr) + clamp(24px, 4vh, 48px)) 0 clamp(36px, 5vh, 56px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); background: radial-gradient(120% 80% at 50% 120%, #101a3d, #03050a 60%); }
.m-hero.hero { align-items: stretch; }
.m-hero.hero::before { content: none; }
.m-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(200, 220, 255, .5) 1px, transparent 1.2px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 60% 40%, #000, transparent); }
.m-aurora i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: .32; animation: mDrift 18s ease-in-out infinite alternate; }
.m-aurora i:nth-child(1) { left: -12vw; top: -14vw; background: #7c3aed; }
.m-aurora i:nth-child(2) { right: -14vw; top: 4vh; background: #0891b2; animation-delay: -6s; }
.m-aurora i:nth-child(3) { left: 30vw; bottom: -26vw; background: #db2777; opacity: .2; animation-delay: -12s; }
@keyframes mDrift { to { transform: translate(6vw, 4vh) scale(1.12); } }
.m-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.m-hero-copy > * { opacity: 0; animation: mUp .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.m-hero-copy > :nth-child(2) { animation-delay: .1s; } .m-hero-copy > :nth-child(3) { animation-delay: .2s; } .m-hero-copy > :nth-child(4) { animation-delay: .3s; } .m-hero-copy > :nth-child(5) { animation-delay: .4s; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.m-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.m-chips i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.m-hero h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 600; }
.m-hero h1 > span { display: block; }
.m-hero h1 b { font-weight: inherit; }
.m-g1 { background: linear-gradient(95deg, #38bdf8, #a78bfa 55%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-g2 { background: linear-gradient(95deg, #fbbf24, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-hero-lead { color: #c9d6ea; font-size: 17px; max-width: 56ch; margin: 0 0 24px; }
.m-hero-lead strong { color: #fff; }
.m-hero .cta-row { gap: 10px; }
.m-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 13px; color: var(--mute); }
.m-hero .hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.m-hero-vis { display: flex; justify-content: center; opacity: 0; animation: mUp 1.1s .3s cubic-bezier(.2, .8, .2, 1) forwards; }
.m-hub { width: min(100%, 560px); height: auto; overflow: visible; }
.m-hub text { font: 600 16px var(--font); paint-order: stroke; stroke: #03050a; stroke-width: 4px; }
.m-hub .hb-jt { font: 700 44px var(--disp); fill: #fff; stroke-width: 0; }
.m-hub .hb-sub { font: 600 11px var(--mono); letter-spacing: .3em; fill: #a5f3fc; stroke-width: 0; }
.hb-r1, .hb-r2, .hb-r3, .hb-spin { transform-box: view-box; transform-origin: 300px 300px; }
.hb-r1 { animation: axSpin 40s linear infinite; } .hb-r2 { animation: axSpin 60s linear infinite reverse; } .hb-r3 { animation: axSpin 90s linear infinite; } .hb-spin { animation: axSpin 8s linear infinite; }
.hb-node { animation: mBob 5s ease-in-out infinite; }
@keyframes mBob { 50% { transform: translateY(-8px); } }
.hb-ping { transform-box: fill-box; transform-origin: center; animation: mPing2 2.6s ease-out infinite; }
@keyframes mPing2 { from { transform: scale(1); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
.hb-core { animation: mGlow 4s ease-in-out infinite; }
@keyframes mGlow { 50% { filter: drop-shadow(0 0 18px rgba(139, 92, 246, .6)); } }
.m-tiles-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 500 12.5px var(--mono); letter-spacing: .03em; color: var(--mute); }
.m-tiles-cap i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: axBlink 1.6s steps(2) infinite; }
.m-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.m-tiles a { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border-radius: 16px; color: var(--text); text-decoration: none; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(8, 14, 30, .7) 70%); backdrop-filter: blur(8px); transition: transform .25s, border-color .25s, box-shadow .25s; }
.m-tiles a::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; background: var(--c); opacity: .8; }
.m-tiles a:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 10px 30px -12px var(--c); }
.m-tiles a:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.m-ti { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.m-tiles a > span:nth-child(2) { min-width: 0; flex: 1; }
.m-tiles small { display: block; font-size: 12.5px; color: var(--c); font-weight: 600; }
.m-tiles b { display: block; font-size: 14px; font-weight: 500; color: #e6eef9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tiles b span { font-family: var(--disp); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-tiles a > svg:last-child { flex: none; color: var(--c); opacity: .7; transition: transform .25s; }
.m-tiles a:hover > svg:last-child { transform: translateX(3px); opacity: 1; }
@media (max-width: 1500px) { .m-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .m-hero { min-height: 0; }
  .m-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .m-hero-vis { order: 2; } .m-hub { width: min(100%, 420px); }
}
@media (max-width: 600px) { .m-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-tiles a { padding: 12px; gap: 10px; } .m-tiles a > svg:last-child { display: none; } .m-ti { width: 34px; height: 34px; } .m-hero .hero-meta { display: none; } }

/* แปลนไซต์: ส่วนของตัวเอง เลื่อนแล้วแปลนค่อย ๆ ตั้งขึ้น (ไม่มีแสงวาบ) */
.m-stage:not(.hero) { height: 100svh; min-height: 620px; }
.m-stage:not(.hero).live { height: 190svh; }
.m-stage .m-sceneB { opacity: 1; --tb: 1; --pr: -38deg; background: radial-gradient(70% 60% at 60% 50%, #0d1a33, #050913 60%, #020409); }
.m-stage .m-planwrap { width: min(50vw, 640px); left: 56%; }
.m-stage .m-pB { max-width: 32ch; }
@media (max-width: 760px) { .m-stage .m-planwrap { width: 94vw; left: 50%; } .m-stage .m-pB { max-width: none; } }

/* หัวข้อส่วนต่าง ๆ บนหน้าแรก: สีประจำส่วน */
.home .m-sec[style*="--acc"] .kick { color: var(--acc); }
.home .m-sec[style*="--acc"] .kick::after { background: linear-gradient(90deg, var(--acc), transparent); }
.home .m-sec[style*="--acc"] h2 { background: linear-gradient(95deg, #fff 55%, var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home .m-sec[style*="--acc"] .link { color: var(--acc); }
@media (prefers-reduced-motion: reduce) { .m-aurora i, .m-hub *, .m-hero-copy > *, .m-hero-vis { animation: none !important; opacity: 1; } }
.m-tiles .m-rec { font-style: normal; color: #fecaca; animation: none; display: inline-flex; align-items: center; gap: 5px; }
.m-tiles .m-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: axBlink 1.2s steps(2) infinite; }
