/* ยูนีคโค้ด — wow layer (awwwards-animations): GSAP + ScrollTrigger + Lenis บนระบบ taste-skill เดิม
   โหลดหลัง layout.css · ทุกอย่างที่ขยับปิดเองเมื่อ prefers-reduced-motion · ไม่มี JS = หน้าแสดงครบเหมือนเดิม */
:root {
  --wow-cobalt: #062b8a; --wow-sand: #e6dbc7; --wow-sky: #4f86ff; --wow-ice: #b9d0ff;
  --wow-ease: cubic-bezier(.16, 1, .3, 1);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- แถบความคืบหน้าการเลื่อน */
.wow-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none;
  background: linear-gradient(90deg, var(--wow-cobalt), var(--wow-sky), #9fc2ff); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- เมนูบน: แก้วโปร่งเมื่อเลื่อน + หดลง + ซ่อนตอนเลื่อนลง */
.nav { transition: transform .5s var(--wow-ease), background-color .4s, box-shadow .4s, height .4s; }
html.wow-scrolled .nav { background: color-mix(in oklab, var(--p-bg) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgb(6 43 138 / .45); }
html.wow-hide-nav .nav:not(:hover):not(:focus-within) { transform: translateY(-105%); }

/* ---------- เคอร์เซอร์ */
.wow-cursor, .wow-cursor-dot { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; will-change: transform; }
.wow-cursor { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1.5px solid var(--wow-cobalt);
  display: grid; place-items: center; transition: width .35s var(--wow-ease), height .35s var(--wow-ease), margin .35s var(--wow-ease), background-color .35s, border-color .35s, opacity .3s; }
.wow-cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--wow-cobalt); transition: opacity .3s, transform .1s; }
.wow-cursor > span { font: 500 13px/1 var(--font-text); color: var(--wow-sand); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--wow-ease); white-space: nowrap; }
.wow-cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgb(6 43 138 / .1); }
.wow-cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--wow-cobalt); border-color: var(--wow-cobalt); }
.wow-cursor.is-label > span { opacity: 1; transform: none; }
.wow-cursor.is-label + .wow-cursor-dot, .wow-cursor.is-link + .wow-cursor-dot { opacity: 0; }
.wow-cursor.is-inverse { border-color: var(--wow-sand); } .wow-cursor.is-inverse + .wow-cursor-dot { background: var(--wow-sand); }
.wow-cursor.is-inverse.is-label { background: var(--wow-sand); } .wow-cursor.is-inverse.is-label > span { color: var(--wow-cobalt); }
.wow-cursor.is-hidden, .wow-cursor.is-hidden + .wow-cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .wow-cursor, .wow-cursor-dot { display: none; } }

/* ---------- ม่านเปลี่ยนหน้า */
.wow-curtain { position: fixed; inset: 0; z-index: 10000; pointer-events: none; background: var(--wow-cobalt); color: var(--wow-sand);
  display: grid; place-items: center; transform: translateY(101%); }
.wow-curtain__mark { display: flex; align-items: center; gap: 14px; font: 500 clamp(28px, 4vw, 52px)/1 var(--font-display); letter-spacing: -.02em; }
.wow-curtain__mark .mark { width: 1em; height: 1em; background: var(--wow-sand); }
html.wow-arriving .wow-curtain { transform: none; }

/* ---------- หัวข้อแตกคำ */
.wow-w { display: inline-block; will-change: transform, filter, opacity; }
.wow-grad { background: linear-gradient(100deg, var(--wow-cobalt) 0%, var(--wow-cobalt) 40%, var(--wow-sky) 50%, #8f6bff 58%, var(--wow-cobalt) 68%, var(--wow-cobalt) 100%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ground-inverse .wow-grad, .wow-notes .wow-grad { background-image: linear-gradient(100deg, var(--wow-sand) 0%, var(--wow-sand) 40%, #9fc2ff 50%, #d4b8ff 58%, var(--wow-sand) 68%, var(--wow-sand) 100%); }
.wow-grad .wow-w { -webkit-background-clip: inherit; }

/* ขีดเส้นใต้แบบเขียนมือ */
.wow-scribble { position: relative; display: inline-block; white-space: nowrap; }
.wow-scribble > svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .42em; overflow: visible; pointer-events: none; }
.wow-scribble > svg path { fill: none; stroke: var(--wow-sky); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ground-inverse .wow-scribble > svg path { stroke: #9fc2ff; }

/* รูปกลมแทรกในหัวข้อ (แบบ fastwork "pe[ภาพ]ple") */
.wow-pill { display: inline-flex; vertical-align: -.08em; align-items: center; height: .9em; margin: 0 .12em; overflow: hidden; border-radius: 999px; }
.wow-pill > img { width: .9em; height: .9em; flex: none; object-fit: cover; border-radius: 50%; border: 2px solid var(--p-bg); margin-left: -.22em; box-shadow: 0 4px 10px -4px rgb(6 43 138 / .5); }
.wow-pill > img:first-child { margin-left: 0; }

/* ---------- กรอบภาพ: เอียงตามเมาส์ + แสงสะท้อน */
.wow-tilt { transform-style: preserve-3d; will-change: transform; }
.wow-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .28), transparent 42%); mix-blend-mode: soft-light; }
.wow-tilt:hover > .wow-glare { opacity: 1; }
.frame--photo, .hero__media, .develop { position: relative; }

/* ---------- ฮีโร่หน้าแรก: เครือข่ายจุดเชื่อม + การ์ดลอย */
.wow-net { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero--photo > .wrap { z-index: 2; }
.wow-float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wow-fwrap { position: absolute; left: var(--x); top: var(--y); will-change: transform; }
.wow-fcard { position: relative; width: clamp(150px, 13vw, 210px); padding: 8px 8px 12px; border-radius: 18px; background: rgb(246 241 231 / .94);
  box-shadow: 0 30px 60px -22px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .5) inset; pointer-events: auto; color: var(--wow-cobalt);
  transform: rotate(var(--r, 0deg)); will-change: transform; transition: box-shadow .4s; }
.wow-fcard:hover { box-shadow: 0 40px 70px -20px rgb(0 0 0 / .6), 0 0 0 2px var(--wow-sky) inset; }
.wow-fcard > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.wow-fcard > b { display: block; margin: 10px 4px 0; font: 500 15px/1.35 var(--font-text); }
.wow-fcard > small { display: flex; align-items: center; gap: 6px; margin: 4px 4px 0; font: 400 12px/1.3 var(--font-text); color: #3253a4; }
.wow-fcard > small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fbf6a; box-shadow: 0 0 0 3px rgb(31 191 106 / .22); animation: wow-ping 1.8s infinite; }
@keyframes wow-ping { 50% { box-shadow: 0 0 0 6px rgb(31 191 106 / 0); } }
@media (max-width: 1023px) { .wow-float { display: none; } }

/* ---------- แถบวิ่ง */
.wow-marquee { position: relative; overflow: hidden; padding: 22px 0; background: var(--wow-cobalt); color: var(--wow-sand); white-space: nowrap; user-select: none; }
.wow-marquee__track { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; will-change: transform;
  font: 400 clamp(26px, 3.4vw, 46px)/1.25 var(--font-display); letter-spacing: -.01em; }
.wow-marquee__track i { font-style: normal; color: #9fc2ff; font-size: .6em; display: inline-block; }
.wow-marquee__track span:nth-of-type(even) { -webkit-text-stroke: 1px var(--wow-sand); color: transparent; }

/* ---------- โน้ตปัญหา (sticky notes ลากได้) */
.wow-notes { background: #04205f; color: var(--wow-sand); overflow: hidden;
  --ink: var(--wow-sand); --muted: #c9d3ea; --line: rgb(230 219 199 / .2); }
.wow-notes .section-head { text-align: center; margin-inline: auto; align-items: center; }
.wow-notes .section-head p { margin-inline: auto; color: #c9d3ea; }
.wow-board { position: relative; flex: 1 1 auto; min-height: 420px; margin-top: var(--s-6); touch-action: pan-y; }
.wow-note { position: absolute; left: var(--x); top: var(--y); width: clamp(150px, 15vw, 220px); min-height: clamp(110px, 41%, 190px); padding: 16px 18px 12px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: var(--c); color: #172554;
  font: 500 clamp(17px, 1.35vw, 21px)/1.45 "Mali", var(--font-text); transform: rotate(var(--r)); cursor: grab; user-select: none; touch-action: none;
  box-shadow: 0 1px 0 rgb(0 0 0 / .05), 0 18px 30px -16px rgb(0 0 0 / .55); }
.wow-note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: rgb(255 255 255 / .45); transform: rotate(-3deg); }
.wow-note small { font: 500 12.5px/1.3 var(--font-text); color: #062b8a; display: inline-flex; align-items: center; gap: 6px; opacity: .85; }
.wow-note small::before { content: "→"; }
@media (min-width: 1024px) and (max-height: 800px) { .wow-note { font-size: 16px; line-height: 1.4; } .wow-board { min-height: 300px; } }
.wow-note.is-drag { cursor: grabbing; z-index: 20; box-shadow: 0 40px 60px -20px rgb(0 0 0 / .6); }
@media (max-width: 1023px) {
  .wow-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-height: 0; }
  .wow-note { position: relative; left: auto; top: auto; width: auto; min-height: 140px; }
}
@media (max-width: 639px) { .wow-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .wow-note { font-size: 15px; padding: 14px; min-height: 120px; } .wow-note:nth-child(n+9) { display: none; } }

/* ---------- ใบเสนอราคาจำลอง */
.wow-qd { align-items: center; }
.wow-qd .ticks { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.wow-qd .ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.wow-qd .ticks svg { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.wow-qd .ticks circle { fill: var(--wow-cobalt); } .wow-qd .ticks path { fill: none; stroke: var(--wow-sand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wow-stage { position: relative; perspective: 1400px; display: grid; place-items: center; padding: 20px 0; }
.wow-stage::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; background: radial-gradient(60% 60% at 30% 30%, #c9dafc, transparent 70%), radial-gradient(60% 60% at 75% 70%, #e7d4ff, transparent 70%), #d6c8ae; filter: saturate(1.1); }
.wow-doc { position: relative; width: min(100%, 470px); padding: 28px 28px 24px; border-radius: 18px; background: #fffdf8; color: #0b1b45;
  box-shadow: 0 50px 80px -30px rgb(6 43 138 / .5), 0 0 0 1px rgb(6 43 138 / .06); transform-origin: 50% 100%; }
.wow-doc header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--wow-cobalt); }
.wow-doc header b { display: block; font: 500 24px/1.2 var(--font-display); color: var(--wow-cobalt); }
.wow-doc header span { display: block; font: 400 12.5px/1.5 var(--font-text); color: #51618a; }
.wow-doc header .mark { width: 30px; height: 30px; background: var(--wow-cobalt); }
.wow-doc table { width: 100%; border-collapse: collapse; margin-top: 10px; font: 400 14px/1.4 var(--font-text); }
.wow-doc th { text-align: left; font-weight: 500; font-size: 12px; color: #51618a; padding: 8px 0; }
.wow-doc th:last-child, .wow-doc td:last-child { text-align: right; }
.wow-doc td { padding: 10px 0; border-bottom: 1px dashed #d5dbea; }
.wow-doc td i { display: inline-block; width: 64px; height: 10px; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, #dfe6f7 0%, #b9c9ef 50%, #dfe6f7 100%); background-size: 200% 100%; animation: wow-shimmer 1.6s linear infinite; }
@keyframes wow-shimmer { to { background-position: -200% 0; } }
.wow-doc footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font: 500 15px/1.4 var(--font-text); color: var(--wow-cobalt); }
.wow-seal { position: absolute; right: -22px; bottom: -30px; width: 128px; height: 128px; color: #b4232f; }
.wow-seal svg { width: 100%; height: 100%; overflow: visible; }
.wow-seal text { font: 600 10.5px/1 var(--font-text); letter-spacing: .14em; fill: currentColor; }
.wow-seal circle { fill: none; stroke: currentColor; }
.wow-seal .core { font: 600 15px/1 var(--font-text); letter-spacing: 0; text-anchor: middle; }
@media (max-width: 1023px) { .wow-stage { margin-top: var(--s-6); } }
@media (max-width: 639px) { .wow-doc { padding: 20px 18px; } .wow-seal { width: 100px; height: 100px; right: -6px; bottom: -36px; } }

/* ---------- ตัวเลขหมุน (odometer) */
.wow-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-7); }
.wow-stat { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.wow-stat b { display: flex; font: 400 clamp(56px, 7vw, 104px)/1 var(--font-display); letter-spacing: -.04em; color: var(--wow-cobalt); height: 1em; overflow: hidden; font-variant-numeric: tabular-nums; }
.wow-stat b > span { align-items: center; }
.wow-stat b > span { display: inline-flex; flex-direction: column; }
.wow-stat b > span > span { height: 1em; }
.wow-stat p { margin: var(--s-3) 0 0; line-height: 1.6; }
@media (max-width: 1023px) { .wow-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }

/* ---------- ตราหมุน (ปุ่มวงกลมขอใบเสนอราคา) */
.wow-badge { position: absolute; z-index: 4; left: -46px; bottom: 36px; width: 132px; height: 132px; border-radius: 50%; background: var(--wow-cobalt); color: var(--wow-sand);
  display: grid; place-items: center; box-shadow: 0 24px 40px -18px rgb(6 43 138 / .7); text-decoration: none; }
.wow-badge svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.wow-badge text { font: 500 11.5px/1 var(--font-text); letter-spacing: .1em; fill: currentColor; }
.wow-badge > i { font-style: normal; font-size: 26px; line-height: 1; transition: transform .5s var(--wow-ease); }
.wow-badge:hover > i { transform: rotate(-45deg) scale(1.15); }
@media (max-width: 1023px) { .wow-badge { left: auto; right: 14px; bottom: 14px; width: 104px; height: 104px; } .wow-badge text { font-size: 10px; } }

/* ---------- แกลเลอรีเลื่อนแนวนอน 10 บริการ */
.wow-hs { overflow: hidden; }
.wow-hs .wrap { display: flex; flex-direction: column; }
.wow-hs__track { display: flex; gap: 22px; flex: 1 1 auto; min-height: 0; margin-top: var(--s-6); will-change: transform; }
.wow-hs__card { position: relative; flex: none; width: clamp(280px, 26vw, 380px); height: 100%; min-height: 380px; max-height: 560px; border-radius: var(--r-lg); overflow: hidden;
  color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate; }
.wow-hs__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); transition: transform 1s var(--wow-ease); }
.wow-hs__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(4 22 70 / 0) 30%, rgb(4 22 70 / .88) 100%); transition: background-color .5s; }
.wow-hs__card:hover img { transform: scale(1.16); }
.wow-hs__card:hover::after { background-color: rgb(6 43 138 / .35); }
.wow-hs__card em { font: 400 clamp(64px, 6vw, 92px)/.9 var(--font-display); font-style: normal; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .85); margin-bottom: auto; }
.wow-hs__card b { font: 500 21px/1.35 var(--font-text); }
.wow-hs__card span { margin-top: 6px; font: 400 14px/1.55 var(--font-text); color: rgb(255 255 255 / .8); }
.wow-hs__bar { height: 2px; margin-top: var(--s-5); background: var(--line); position: relative; overflow: hidden; }
.wow-hs__bar > i { position: absolute; inset: 0; background: var(--wow-cobalt); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1023px) {
  .wow-hs__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .wow-hs__card { scroll-snap-align: start; height: auto; min-height: 420px; width: min(78vw, 340px); }
  .wow-hs__bar { display: none; }
}

/* ---------- แผนผังเครือข่าย */
.wow-topo-wrap { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gutter); align-items: center; margin-top: var(--s-6); }
.wow-topo { width: 100%; height: 100%; max-height: 520px; overflow: visible; }
.wow-topo .link { fill: none; stroke: rgb(6 43 138 / .25); stroke-width: 2; }
.wow-topo .link.is-on { stroke: var(--wow-cobalt); stroke-width: 3; }
.wow-topo .flow { fill: none; stroke: var(--wow-sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 26; animation: wow-flow 1.4s linear infinite; opacity: .9; }
@keyframes wow-flow { to { stroke-dashoffset: -28; } }
.wow-topo .node { cursor: pointer; outline: none; }
.wow-topo .node rect { fill: #fffdf8; stroke: var(--wow-cobalt); stroke-width: 1.5; transition: fill .3s; }
.wow-topo .node text { font: 500 15px var(--font-text); fill: var(--wow-cobalt); text-anchor: middle; pointer-events: none; }
.wow-topo .node use, .wow-topo .node .ic { color: var(--wow-cobalt); }
.wow-topo .node:is(:hover, :focus-visible, .is-on) rect { fill: var(--wow-cobalt); }
.wow-topo .node:is(:hover, :focus-visible, .is-on) text { fill: var(--wow-sand); }
.wow-topo .node:is(:hover, :focus-visible, .is-on) .ic { color: var(--wow-sand); }
.wow-topo .pulse { fill: var(--wow-sky); opacity: .0; }
.wow-topo-info { border-left: 2px solid var(--wow-cobalt); padding: 6px 0 6px var(--s-5); min-height: 160px; }
.wow-topo-info b { display: block; font: 500 var(--t-card)/1.35 var(--font-text); margin-bottom: var(--s-2); }
.wow-topo-info p { margin: 0; line-height: 1.75; }
.wow-topo-info small { display: block; margin-top: var(--s-3); color: var(--muted); }
@media (max-width: 1023px) { .wow-topo-wrap { grid-template-columns: minmax(0, 1fr); } .wow-topo { max-height: none; } }

/* ---------- HUD กล้องวงจรปิด */
.wow-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #fff; font: 500 13px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .04em; overflow: hidden; border-radius: inherit; }
.wow-hud::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.wow-hud::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgb(160 200 255 / .16), transparent); animation: wow-scan 3.6s linear infinite; }
@keyframes wow-scan { to { top: 100%; } }
.wow-hud .c { position: absolute; width: 26px; height: 26px; border: 2px solid rgb(255 255 255 / .85); }
.wow-hud .c1 { top: 16px; left: 16px; border-right: 0; border-bottom: 0; } .wow-hud .c2 { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.wow-hud .c3 { bottom: 16px; left: 16px; border-right: 0; border-top: 0; } .wow-hud .c4 { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.wow-hud .rec { position: absolute; top: 26px; left: 52px; display: flex; gap: 8px; align-items: center; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }
.wow-hud .rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; animation: wow-blink 1s steps(2) infinite; }
@keyframes wow-blink { 50% { opacity: 0; } }
.wow-hud .cam { position: absolute; top: 26px; right: 52px; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }
.wow-hud .time { position: absolute; bottom: 26px; left: 52px; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }
.wow-hud .cross { position: absolute; left: var(--hx, 50%); top: var(--hy, 50%); width: 70px; height: 70px; margin: -35px 0 0 -35px; border: 1.5px solid rgb(255 255 255 / .75); border-radius: 50%; opacity: 0; transition: opacity .3s; }
.wow-hud .cross::before, .wow-hud .cross::after { content: ""; position: absolute; background: rgb(255 255 255 / .75); }
.wow-hud .cross::before { left: 50%; top: -12px; bottom: -12px; width: 1.5px; } .wow-hud .cross::after { top: 50%; left: -12px; right: -12px; height: 1.5px; }
.frame:hover > .wow-hud .cross { opacity: 1; }
.frame.wow-cam > img { transition: transform .8s var(--wow-ease); transform-origin: var(--hx, 50%) var(--hy, 50%); }
.frame.wow-cam:hover > img { transform: scale(1.35); }

/* ---------- เทอร์มินัลลอย */
.wow-term { position: absolute; z-index: 3; left: 18px; bottom: 18px; width: min(78%, 400px); border-radius: 14px; background: rgb(8 18 46 / .9); color: #d8e3ff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 30px 50px -20px rgb(0 0 0 / .6); font: 400 13px/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow: hidden; pointer-events: none; }
.wow-term > div { display: flex; gap: 6px; padding: 10px 12px; background: rgb(255 255 255 / .06); }
.wow-term > div i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .wow-term > div i:nth-child(2) { background: #febc2e; } .wow-term > div i:nth-child(3) { background: #28c840; }
.wow-term pre { margin: 0; padding: 12px 14px 14px; min-height: 9.5em; white-space: pre-wrap; font: inherit; }
.wow-term .ok { color: #7ee2a8; } .wow-term .cm { color: #8fb3ff; }
.wow-term .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: #d8e3ff; animation: wow-blink 1s steps(2) infinite; }
@media (max-width: 639px) { .wow-term { font-size: 11.5px; } }

/* ---------- รายการขอบเขต 10 ข้อ (หน้าบริษัท) */
.scope li { position: relative; isolation: isolate; transition: color .4s, padding-left .5s var(--wow-ease); }
.scope li::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: 10px; background: var(--wow-cobalt); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--wow-ease); }
@media (hover: hover) { .scope li:hover { color: var(--wow-sand); padding-left: 10px; } .scope li:hover::before { transform: scaleY(1); } }

/* ---------- แถวรายการ: เส้นใต้วิ่ง */
.rows > li { position: relative; }
.rows > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wow-cobalt); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--wow-ease); }
@media (hover: hover) { .rows > li:hover::after { transform: scaleX(1); } }

/* ---------- ฟอร์ม */
.wow-meter { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font: 500 14px/1.3 var(--font-text); color: var(--p-ink); }
.wow-meter > div { flex: 1; height: 6px; border-radius: 6px; background: rgb(6 43 138 / .12); overflow: hidden; }
.wow-meter > div > i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wow-cobalt), var(--wow-sky)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--wow-ease); }
.quote-form .field { position: relative; }
.quote-form :is(input, select, textarea) { transition: border-color .3s, box-shadow .3s, transform .3s var(--wow-ease); }
.quote-form :is(input, select, textarea):focus { border-color: var(--wow-cobalt); box-shadow: 0 0 0 4px rgb(79 134 255 / .22), 0 14px 26px -16px rgb(6 43 138 / .45); transform: translateY(-2px); }
.quote-form .field.is-done label::after { content: " ✓"; color: #1a8f52; }
.wow-plane { position: fixed; z-index: 9000; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none; color: var(--wow-cobalt); }
.wow-confetti { position: fixed; z-index: 8999; left: 0; top: 0; width: 10px; height: 14px; pointer-events: none; border-radius: 2px; }

/* ---------- ปิดท้าย: ตัวหนังสือยักษ์ + สปอตไลต์ */
.closing { overflow: hidden; }
.wow-giant { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; transform: translateY(34%); overflow: hidden; white-space: nowrap; pointer-events: none; }
.wow-strip { min-height: 220px; }
.wow-qd { align-content: center; align-items: center; }
.wow-qd .section-head { margin-bottom: 0; }
.hero__media { overflow: visible !important; }
.wow-giant > div { display: inline-flex; gap: .5em; font: 500 clamp(80px, 14vw, 220px)/.9 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgb(230 219 199 / .35); will-change: transform; }
.wow-giant > div > span:nth-child(3n+2) { color: rgb(230 219 199 / .1); }
.wow-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 30%), rgb(79 134 255 / .35), transparent 60%); transition: opacity .4s; }

/* ---------- ปุ่มแม่เหล็ก */
.wow-mag { will-change: transform; }
.btn { position: relative; overflow: hidden; isolation: isolate; flex-shrink: 0; }
.btn--primary::after { content: ""; position: absolute; z-index: -1; left: var(--bx, 50%); top: var(--by, 50%); width: 0; height: 0; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--wow-sky); transition: width .5s var(--wow-ease), height .5s var(--wow-ease); }
@media (hover: hover) { .btn--primary:hover::after { width: 260%; height: 600%; } }
.btn--primary:hover { color: #fff; }
.ground-inverse .btn--primary:hover, .footer--dark .btn--primary:hover { color: var(--wow-cobalt); }
.ground-inverse .btn--primary::after, .footer--dark .btn--primary::after { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .wow-hud::after, .wow-term .caret, .wow-topo .flow, .wow-fcard > small::before, .wow-doc td i { animation: none !important; }
  .wow-cursor, .wow-cursor-dot, .wow-net, .wow-progress { display: none !important; }
}

/* system.css ตั้ง .frame > :not(...) { position: relative } — ชั้นซ้อนบนภาพต้องชนะกฎนั้น */
.frame > .wow-hud, .frame > .wow-glare { position: absolute; inset: 0; max-width: none; }
.frame > .wow-term { position: absolute; left: 18px; bottom: 18px; }
/* กันแนวนอนล้นจอ (ตราประทับตอนขยาย, แถบวิ่ง) โดยไม่ทำให้ position: sticky พัง */
html, body { overflow-x: clip; }
main > #quotation { overflow-x: clip; }
