/* nav.css — ใช้เฉพาะหน้าแรก (index) ซึ่งไม่ได้โหลด v3.css · ลอกแถบเมนูเดิมของ v3.css มาให้หน้าตาเหมือนหน้าอื่นทุกจุด
   จะแก้แถบเมนู: แก้ที่ v3.css ก่อน แล้วค่อยแก้ไฟล์นี้ให้ตรงกัน */
header{position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(242,240,234,.16);background:#171b21}
header nav.wrap{width:min(1320px,100%);margin:auto;padding-inline:clamp(20px,5vw,58px);height:84px;display:flex;align-items:center;gap:30px;box-sizing:border-box}
header .logo-anim{display:flex;align-items:center}
header .brand-anim-nav{display:block;height:60px;width:auto;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 52px,#000 calc(100% - 52px),transparent),linear-gradient(180deg,transparent,#000 20px,#000 calc(100% - 20px),transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 52px,#000 calc(100% - 52px),transparent),linear-gradient(180deg,transparent,#000 20px,#000 calc(100% - 20px),transparent);mask-composite:intersect}
header .menu{display:flex;align-items:center;gap:5px;margin-left:auto}
header .menu>a{padding:9px 12px;border-radius:8px;color:#9aa5ae;font:500 13.5px "IBM Plex Sans Thai",-apple-system,sans-serif;transition:.15s;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap;text-decoration:none;box-sizing:border-box}
header .menu>a:hover{color:#f2f0ea}
header .menu>a.active{background:#eceae3;color:#161b20}
header .menu>a.quote{margin-left:8px;border-radius:999px;background:#f2f0ea;color:#161b20;padding:10px 18px;font-weight:600}
header .menu>a.quote:hover{background:#fff}
header .menu .soon{display:inline;padding:0;margin-top:0;background:none;border-radius:0;font:400 10px "IBM Plex Mono",monospace;letter-spacing:.06em;text-transform:uppercase;color:#6b747c;margin-left:4px;vertical-align:middle}
header .hamb{display:none;margin-left:auto;border:0;background:none;font-size:22px;min-width:44px;min-height:44px;color:#f2f0ea;cursor:pointer}
@media (min-width:941px) and (max-width:1260px){header .menu{gap:0}header .menu>a.quote{display:none}header .logo-anim{flex-shrink:1;min-width:0}header .menu>a:not(.quote){padding-left:6px;padding-right:6px;font-size:12px}}
@media(max-width:940px){
  header{position:sticky}header nav.wrap{height:76px;position:relative}
  header .brand-anim-nav{height:44px}
  header .hamb{display:block}
  header .menu{display:none;position:absolute;left:0;right:0;top:100%;margin:0;padding:8px 20px 16px;background:#171b21;border-bottom:1px solid rgba(242,240,234,.16);flex-direction:column;align-items:stretch;gap:0}
  header .menu.open{display:flex}
  header .menu>a{padding:14px 4px;font-size:15px;color:#f2f0ea;border-top:1px solid rgba(242,240,234,.16);border-radius:0}
  header .menu>a:first-child{border-top:0}
  header .menu>a.active{background:rgba(242,240,234,.1);color:#f2f0ea}
  header .menu>a.quote{margin:12px 0 0;justify-content:center;color:#161b20;border-radius:999px}
}
