/* ============================================================
   WORLD FILM — shared styles for product pages
   ใช้โทเคนสี/ฟอนต์ชุดเดียวกับ index.html
   แก้ที่ไฟล์นี้ไฟล์เดียว มีผลกับทุกหน้า product
   ============================================================ */
:root {
  --ink: #14223d;
  --ink-soft: #26395c;
  --gold: #c0973f;
  --gold-bright: #d9a53a;
  --gold-soft: #f4ecd8;
  --paper: #fcfbf7;
  --light: #f5f3ec;
  --white: #ffffff;
  --slate: #5b6270;
  --line: #eae6db;
  --line-soft: #f1ede4;
  --maxw: 1200px;
  --shadow-sm: 0 2px 12px rgba(20, 34, 61, 0.05);
  --shadow-md: 0 16px 42px rgba(20, 34, 61, 0.09);
  --shadow-lg: 0 28px 64px rgba(20, 34, 61, 0.12);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---- layout helpers ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: 108px 0;
}
.section--tint {
  background: var(--light);
}
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center {
  justify-content: center;
}
.eyebrow.center::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.h-thai {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: 0.005em;
}
.center {
  text-align: center;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.25s ease;
}
.btn-gold {
  background: var(--gold-bright);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(192, 151, 63, 0.28);
}
.btn-gold:hover {
  background: #c8962c;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(192, 151, 63, 0.34);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-line {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-line:hover {
  background: var(--ink);
  color: #fff;
}

/* ============ top utility bar ============ */
/* ============ floating capsule header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: transparent;
  pointer-events: none;
}
.nav {
  position: relative;
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 9px 0 24px;
  background: rgba(20, 34, 61, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow:
    0 18px 40px rgba(20, 34, 61, 0.2),
    0 4px 10px rgba(20, 34, 61, 0.1);
  transition: box-shadow 0.3s;
}
.header.scrolled .nav {
  box-shadow:
    0 24px 52px rgba(20, 34, 61, 0.3),
    0 6px 14px rgba(20, 34, 61, 0.16);
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 4px;
  list-style: none;
}
.menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.15;
  font-size: 0.88rem;
  font-weight: 500;
  color: #e9ecf2;
  cursor: pointer;
  padding: 7px 15px;
  border-radius: 999px;
  transition: color 0.25s ease-in-out;
}
.menu a::after {
  content: attr(data-th);
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #8fa0bd;
  text-align: center;
  transition: color 0.25s ease-in-out;
}
/* สีทองขึ้นเฉพาะตอนเอาเมาส์ไปชี้เท่านั้น — เมนูของหน้าที่กำลังเปิดอยู่ไม่ต้องเป็นสีทองค้างไว้
   (ถอด .menu a.active ออก 2026-07-30 ตามคำสั่งเจ้าของร้าน — อย่าใส่กลับ) */
.menu a:hover {
  color: var(--gold-bright);
}
.menu a:hover::after {
  color: #c9a75e;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
/* expandable CTA pill — โทร / คัดลอกเบอร์ */
.pill {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--gold-bright);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(217, 165, 58, 0.35);
  transition:
    background 0.28s ease-in-out,
    box-shadow 0.28s ease-in-out;
  white-space: nowrap;
}
.pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
  margin-right: 8px;
}
.pill .pt {
  display: inline-block;
  overflow: hidden;
  max-width: 190px;
  opacity: 1;
  transition:
    max-width 0.28s ease-in-out,
    opacity 0.22s ease-in-out;
}
.pill .pt--hover {
  max-width: 0;
  opacity: 0;
}
.pill:hover {
  background: #c8962c;
  box-shadow: 0 10px 22px rgba(217, 165, 58, 0.45);
}
.pill:hover .pt--num {
  max-width: 0;
  opacity: 0;
}
.pill:hover .pt--hover {
  max-width: 200px;
  opacity: 1;
}
.pill.is-copied {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(20, 34, 61, 0.18);
}
.pill.is-copied svg {
  fill: none;
  stroke: #16a34a;
  stroke-width: 2.4;
}
.nav-call {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-bright);
  place-items: center;
  flex: none;
  box-shadow: 0 6px 14px rgba(217, 165, 58, 0.4);
}
.nav-call svg {
  width: 19px;
  height: 19px;
  fill: var(--ink);
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  cursor: pointer;
  place-items: center;
  color: #e9ecf2;
  flex: none;
}
.burger svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ============ breadcrumb ============ */
.crumb {
  background: var(--light);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.crumb .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  color: var(--slate);
}
.crumb a:hover {
  color: var(--gold);
}
.crumb .sep {
  color: var(--line);
}
.crumb b {
  color: var(--ink);
  font-weight: 600;
}

/* ============ product hero ============ */
.phero {
  padding: 72px 0;
}
.phero .grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
/* swatch ไล่สีแทนรูปจริง — ยังใช้บน 4 หน้าที่เจ้าของยังไม่ส่งภาพสเปกมา (3M 2 รุ่น · Ultra Guard 2 รุ่น) */
.swatch {
  aspect-ratio: 4/5;
  border-radius: 12px;
  position: relative;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(20, 34, 61, 0.18);
}
.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transform: translate(16px, 16px);
  z-index: -1;
  border-radius: 12px;
}
/* หมายเหตุ: ป้าย VLT (.vlt — "35% Visible Light") ในกรอบสีน้ำเงินฝั่งซ้ายของหน้ารุ่น
   ถูกถอดออกทั้ง 10 หน้าสเปก 2026-07-30 ตามคำสั่งเจ้าของร้าน (ถอดทั้ง markup และ CSS)
   ตัวเลข VLT ยังอยู่ในการ์ด 3 เฉด (.sc-vlt) ซึ่งเป็นของคนละส่วน ไม่ได้แตะ */
/* โทนของแต่ละรุ่น */
.swatch.tone-dark {
  background: linear-gradient(160deg, #1a2740, #060b16);
}
.swatch.tone-prem {
  background: linear-gradient(160deg, #23365c, #0d1830 60%, #1b2c4d);
}
.swatch.tone-clear {
  background: linear-gradient(160deg, #44557a, #1d2b49);
}
/* ภาพสเปกจริงของรุ่น (โฟลเดอร์ WEB → assets/sheets/, 2026-09-16) — ใส่แทน swatch ไล่สีในกรอบซ้ายของ hero
   มีเฉพาะ 6 หน้าที่เจ้าของส่งภาพมา (Finnix 5 รุ่น + Regionfilm) · กดแล้วขยายใน #lightbox ของหน้านั้น (คลาส .single = ซ่อนลูกศรเลื่อน) */
.swatch--sheet {
  margin: 0;
  background: #fff;
  cursor: zoom-in;
}
.swatch--sheet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swatch--sheet .zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 34, 61, 0.12);
  border-radius: 30px;
  padding: 5px 12px;
  pointer-events: none;
}
.lightbox.single .lb-nav {
  display: none;
}

.phead .tag {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.phead h1 {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 6px 0 4px;
}
.phead .th {
  font-size: 1.05rem;
  color: var(--slate);
  font-weight: 300;
}
.phead .lead {
  color: var(--slate);
  font-weight: 300;
  margin: 20px 0 26px;
  max-width: 46ch;
}

/* หมายเหตุ: กล่องสถิติ .phl/.hi (VLT / ลดความร้อน / กันรังสี UV) ใต้ชื่อรุ่น
   ถูกถอดออกจากทุกหน้าสเปก 2026-07-27 ตามที่ผู้ใช้สั่ง — CSS ลบทิ้งด้วย */
.phead .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ section head ============ */
.sec-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 60px;
}
.sec-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  margin: 16px 0 0;
}

/* ============ spec table ============ */
.spectable {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spectable .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.spectable .row:last-child {
  border-bottom: none;
}
.spectable .row:nth-child(odd) {
  background: var(--paper);
}
.spectable .k {
  color: var(--slate);
}
.spectable .v {
  font-weight: 600;
  color: var(--ink);
}
.spectable .v em {
  font-style: normal;
  color: var(--gold);
}

/* ============ feature cards ============ */
.fcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 28px;
  transition: 0.35s ease;
  box-shadow: var(--shadow-sm);
}
.fc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.fc:hover .ico {
  color: var(--gold-bright);
}
.fc .ico {
  width: 46px;
  height: 46px;
  color: var(--gold);
  margin-bottom: 16px;
}
.fc .ico svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.fc h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.fc p {
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 300;
}

/* ============ usage list ============ */
.usage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.usage li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 0.96rem;
  box-shadow: var(--shadow-sm);
}
.usage li svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  flex: none;
  margin-top: 2px;
}

/* ============ compare / other models ============ */
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cmc {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 28px 24px;
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.cmc.current {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.cmc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.cmc .nm {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}
.cmc .tg {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.cmc .qspec {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
  background: #faf8f2;
  border-radius: 6px;
  padding: 10px 13px;
  margin: 12px 0 0;
  line-height: 1.5;
}
.cmc .ds {
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 300;
  margin: 12px 0 14px;
  flex: 1;
}
.cmc .now {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}
.cmc .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}
.cmc .go svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  transition: 0.25s;
}
.cmc .go:hover svg {
  transform: translateX(4px);
}
/* ทั้งการ์ดรุ่นกดได้ — ยืดพื้นที่คลิกของลิงก์ "ดูรายละเอียด" ให้คลุมเต็มการ์ด */
.cmc .go::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ============ cta band ============ */
.ctaband {
  background: var(--ink);
  color: #e9ecf2;
  text-align: center;
}
.ctaband h2 {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.ctaband p {
  color: #aeb8cb;
  font-weight: 300;
  max-width: 48ch;
  margin: 14px auto 28px;
}
.ctaband .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ footer ============ */
.footer {
  background: var(--ink);
  color: #aeb8cb;
  padding: 64px 0 26px;
}
.footer .top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer ul {
  list-style: none;
}
.footer li {
  margin-bottom: 10px;
  font-size: 0.94rem;
  font-weight: 300;
}
.footer a:hover {
  color: var(--gold-bright);
}
.footer .fbrand .name {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.footer .fbrand .name b {
  color: var(--gold);
}
.footer .fbrand p {
  font-size: 0.92rem;
  font-weight: 300;
  margin-top: 12px;
  max-width: 34ch;
}
.footer .fsoc {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer .fsoc a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.footer .fsoc a:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.footer .fsoc svg {
  width: 16px;
  height: 16px;
  fill: #cfd6e2;
}
.footer .fsoc a:hover svg {
  fill: var(--ink);
}
.footer .bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 300;
}

/* หมายเหตุ: ปุ่มลอย LINE/โทร (.fab) ถูกถอดออกทั้งเว็บ 2026-07-30 ตามคำสั่งเจ้าของร้าน
   — ถอดทั้ง markup และ CSS ทุกหน้า ไม่ได้เหลือไว้เป็น dead code (กู้จาก git ได้ถ้าจะเอากลับ) */

/* ============ responsive ============ */
@media (max-width: 980px) {
  .phero .grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .swatch {
    max-width: 380px;
  }
  .fcards {
    grid-template-columns: 1fr;
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .footer .top {
    grid-template-columns: 1fr 1fr;
  }
  .menu a::after {
    display: none;
  }
  .menu {
    gap: 0;
  }
  .menu a {
    padding: 7px 12px;
  }
  .pill {
    font-size: 0.85rem;
    padding: 0 16px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .header {
    padding: 10px 0;
  }
  .nav {
    height: 58px;
    padding: 0 8px 0 20px;
  }
  .brand .brand-logo {
    height: 24px;
  }
  .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(20, 34, 61, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 14px 0;
    gap: 0;
    display: none;
    box-shadow: 0 24px 48px rgba(20, 34, 61, 0.3);
  }
  .menu.open {
    display: flex;
  }
  .menu li {
    width: 100%;
    text-align: center;
  }
  .menu a {
    display: block;
    padding: 12px 0;
    min-height: 44px;
  }
  .menu a::after {
    display: block;
  }
  .burger {
    display: grid;
  }
  .nav-call {
    display: grid;
  }
  .pill {
    display: none;
  }
  .usage {
    grid-template-columns: 1fr;
  }
}
/* ============ brand logo (image) ============ */
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
.footer .fbrand .flogo {
  height: 54px;
  width: auto;
  display: block;
  margin-bottom: 2px;
}

/* ============ nav dropdown — film brands ============ */
.menu .has-sub {
  position: relative;
}
.submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: rgba(20, 34, 61, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 22px 44px rgba(20, 34, 61, 0.28);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 60;
}
.submenu::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
.menu .has-sub:hover .submenu,
.menu .has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.submenu li {
  width: 100%;
  text-align: left;
}
.submenu a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  color: #e9ecf2;
}
.submenu a::after {
  display: none;
}
.submenu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold-bright);
}
@media (max-width: 768px) {
  .menu .has-sub {
    width: 100%;
  }
  .menu .has-sub > a {
    position: relative;
  }
  /* ลูกศร accordion: แตะ "Products" เพื่อกาง/หุบรายชื่อแบรนด์ */
  .menu .has-sub > a::before {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease;
  }
  .menu .has-sub.open > a::before {
    transform: translateY(-50%) rotate(-135deg);
  }
  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
  }
  .menu .has-sub.open .submenu {
    max-height: 260px;
    padding: 4px 0 8px;
  }
  .menu .has-sub:hover .submenu,
  .menu .has-sub:focus-within .submenu {
    transform: none;
  }
  .submenu a {
    padding: 9px 0;
    color: #8fa0bd;
    font-weight: 400;
  }
  .submenu a:hover {
    background: transparent;
  }
}

/* note ติดไว้บนหน้าที่ยังใช้สเปกตัวอย่าง (ลบ block .sample-note ออกเมื่อใส่ข้อมูลจริง) */
.sample-note {
  max-width: var(--maxw);
  margin: 18px auto -10px;
  padding: 0 28px;
}
.sample-note span {
  display: block;
  background: #fff8e6;
  border: 1px solid #f0d98a;
  color: #8a6d1f;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.84rem;
  text-align: center;
}

/* ============ Finnix Ceramic shade cards ============ */
.shadegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* รุ่นที่ภาพสเปกมีเฉดเดียว (เช่น UG Super Clear) — จัดการ์ดใบเดียวไว้กึ่งกลาง ด้วยความกว้างเท่าการ์ดปกติ
   แทนที่จะชิดซ้ายแล้วเว้นช่องขวาโล่ง · ใช้ :has() เบราว์เซอร์เก่าไม่รองรับก็แค่กลับไปชิดซ้าย · จอ ≤980 เป็น 1 คอลัมน์อยู่แล้ว */
@media (min-width: 981px) {
  .shadegrid:has(> :first-child:last-child) {
    grid-template-columns: calc((100% - 48px) / 3);
    justify-content: center;
  }
}
.shadecard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.35s ease;
  box-shadow: var(--shadow-sm);
}
.shadecard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.shadecard .sc-top {
  padding: 26px 26px 22px;
  color: #fff;
}
.shadecard .sc-vlt {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: #e7c879;
}
.shadecard .sc-vlt span {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cfd6e2;
  display: block;
  margin-top: 4px;
}
.shadecard .sc-nm {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin-top: 14px;
}
.shadecard .sc-th {
  font-size: 0.86rem;
  color: #c3ccdc;
  font-weight: 300;
  margin-top: 2px;
}
/* .sc-body = กรอบครอบสเปก + แผ่นฟิล์มโปร่งที่สไลด์ขึ้นมา (ต้อง relative + ซ่อนส่วนเกิน) */
/* .sc-head = ช่องหัวการ์ด ซ้อน 2 เลเยอร์: วิวใสอยู่ล่าง / แผ่นฟิล์มน้ำเงินอยู่บน
   ใช้ grid ช่องเดียวเพื่อให้ความสูงยึดเลเยอร์ที่สูงกว่า ข้อความจึงไม่โดนตัด */
.shadecard .sc-head {
  position: relative;
  display: grid;
  overflow: hidden;
  /* เผื่อความสูงไว้ให้เห็นวิวเป็นแถบใหญ่พอตอนฟิล์มเลื่อนขึ้น (ไม่ใช่เหลือแค่ริ้วเดียว) */
  min-height: 232px;
}
.shadecard .sc-head > .sc-view,
.shadecard .sc-head > .sc-top {
  grid-area: 1 / 1;
}
.shadecard .sc-specs {
  padding: 18px 26px 26px;
  flex: 1;
}
.shadecard .sc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.shadecard .sc-row:last-child {
  border-bottom: none;
}
.shadecard .sc-row .k {
  color: var(--slate);
}
.shadecard .sc-row .v {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.shadecard .sc-row .v em {
  font-style: normal;
  color: var(--gold);
}

/* ---- แผ่นฟิล์มน้ำเงิน (.sc-top) สไลด์ขึ้นตอนชี้เมาส์ เผยวิวใส (.sc-view) ที่อยู่ข้างหลัง ---- */
.shadecard .sc-top {
  position: relative;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
/* เส้นทองบาง ๆ ที่ขอบล่างของแผ่นฟิล์ม — ขอบที่กำลังเลื่อนขึ้น */
.shadecard .sc-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-bright),
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}
.shadecard:hover .sc-top,
.shadecard:focus-within .sc-top,
.shadecard.sc-open .sc-top {
  transform: translateY(-100%);
}
.shadecard:hover .sc-top::after,
.shadecard:focus-within .sc-top::after,
.shadecard.sc-open .sc-top::after {
  opacity: 1;
}
/* วิวใสที่รออยู่ข้างหลังแผ่นฟิล์ม */
.shadecard .sc-view {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=800&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
/* ฝ้าบาง ๆ ทับรูปทั้งแผ่น — คุมโทนให้สว่างโปร่ง แต่ยังเห็นวิวชัด */
.shadecard .sc-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.26) 100%
  );
}
/* แผ่นฝ้าขาวใต้ข้อความ — ให้ตัวหนังสืออ่านชัดโดยไม่ต้องบังรูปทั้งใบ
   (พื้นทึบทั้งแผ่น แล้วไล่เฉดจาง ๆ ไว้ "เหนือ" แผ่น ทุกบรรทัดจึงอยู่บนพื้นขาวเสมอ)
   ซ่อนไว้ก่อน แล้วค่อยจาง ๆ ขึ้นตอนฟิล์มเลื่อนพ้น — กันไม่ให้เห็นทะลุแผ่นฟิล์มตอนยังไม่ชี้เมาส์ */
.shadecard .sc-view-in {
  position: relative;
  width: 100%;
  padding: 18px 26px 22px;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transition: opacity 0.35s ease 0.15s;
}
.shadecard:hover .sc-view-in,
.shadecard:focus-within .sc-view-in,
.shadecard.sc-open .sc-view-in {
  opacity: 1;
}
.shadecard .sc-view-in::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 36px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.94)
  );
}
.shadecard .sc-view-k {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.shadecard .sc-view b {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.35;
}
.shadecard .sc-view p {
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--slate);
}
@media (prefers-reduced-motion: reduce) {
  .shadecard .sc-top,
  .shadecard .sc-view-in {
    transition: none;
  }
}
@media (max-width: 980px) {
  .shadegrid {
    grid-template-columns: 1fr;
  }
}

/* ============ brand hero (ชื่อแบรนด์เด่น เหนือ section เลือกรุ่น) ============ */
.bhero {
  padding: 56px 0 8px;
  text-align: center;
}
.bhero h1 {
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin: 14px 0 16px;
}
.bhero .lead {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--slate);
  font-weight: 300;
  font-size: 1.05rem;
}
@media (max-width: 768px) {
  .bhero {
    padding: 40px 0 4px;
  }
  .bhero h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.3rem);
  }
}

/* ============ แถบชื่อแบรนด์ (.bband) — หน้าแบรนด์ทั้ง 4: ชื่อกรมท่า + เส้นทองสั้นใต้ชื่อ ============ */
.bband {
  display: block;
  width: fit-content;
  margin: 14px auto 18px;
}
.bband h1 {
  margin: 0;
  color: var(--ink);
}
.bband::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-bright) 25%,
    var(--gold) 75%,
    transparent
  );
}
.bband--phead {
  margin: 6px 0 14px;
}
.bband--phead::after {
  margin-left: 0;
}
@media (max-width: 768px) {
  .bband {
    margin: 12px auto 14px;
  }
  .bband::after {
    margin-top: 12px;
  }
  .bband--phead {
    margin: 6px 0 12px;
  }
}

/* ============ brand page — models-first premium layout ============ */
.brand-top {
  padding-top: 80px;
  padding-bottom: 104px;
}
.brand-top .sec-head {
  margin-bottom: 56px;
}
.brand-top .compare {
  gap: 28px;
}
.brand-top .cmc {
  position: relative;
  padding: 32px 30px 28px;
  border-radius: 12px;
  overflow: hidden;
}
.brand-top .cmc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.brand-top .cmc:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(20, 34, 61, 0.13);
  border-color: transparent;
}
.brand-top .cmc:hover::before {
  transform: scaleX(1);
}

/* ============ การ์ดรุ่นแบบโลโก้ (.cmc--logo) — จัดองค์ประกอบพรีเมียม ============ */
.cmc.cmc--logo {
  padding: 0;
  overflow: hidden;
}
.cmc--logo .cmc-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 34px 26px;
  position: relative;
  background: radial-gradient(
    120% 95% at 50% 0%,
    #ffffff 0%,
    #faf7f0 55%,
    #f2ecdd 100%
  );
}
/* เส้นทองเรือง ๆ คั่นพาแนลรูปกับแถบลิงก์ */
.cmc--logo .cmc-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}
/* กรอบเส้นทองบาง ๆ ด้านในพาแนล ให้ดูเป็นงานพรีเมียม */
.cmc--logo .cmc-img::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(192, 151, 63, 0.28);
  border-radius: 8px;
  pointer-events: none;
}
.cmc--logo .cmc-img img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmc--logo:hover .cmc-img img {
  transform: scale(1.07);
}
/* แถบ "ดูรายละเอียด" ท้ายการ์ด — ลูกศรวงกลมทองชิดขวา */
.cmc--logo .go {
  margin: 0;
  padding: 15px 20px 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}
.cmc--logo .go svg {
  width: 32px;
  height: 32px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(192, 151, 63, 0.14);
  transition:
    transform 0.25s,
    background 0.25s,
    stroke 0.25s;
}
.cmc--logo:hover .go svg {
  background: var(--gold);
  stroke: #fff;
  transform: translateX(4px);
}
@media (max-width: 768px) {
  .cmc--logo .cmc-img {
    min-height: 240px;
    padding: 28px 22px;
  }
  .cmc--logo .cmc-img img {
    max-height: 180px;
  }
}

/* ============ small-screen polish (มือถือทุกรุ่น) ============ */
@media (max-width: 600px) {
  .phero {
    padding: 40px 0;
  }
  .phero .grid {
    gap: 30px;
  }
  .swatch {
    max-width: 300px;
    margin: 0 auto;
  }
  .section {
    padding: 48px 0;
  }
  .wrap {
    padding: 0 20px;
  }
  .ctaband .cta .btn,
  .phead .cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============ responsive polish — เพิ่มให้ครบตามเงื่อนไข (≤768px) ============ */
@media (max-width: 768px) {
  /* 4. รูป/สื่อ ไม่ล้นจอ */
  img,
  svg,
  iframe,
  video {
    max-width: 100%;
  }
  /* 5. ตารางข้อมูล (ถ้ามี) เลื่อนแนวนอนได้ แทนถูกบีบเล็ก */
  .spectable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* 3.4 touch target — ปุ่ม/ลิงก์กดง่าย สูงอย่างน้อย 44px */
  .menu .submenu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .btn {
    min-height: 44px;
  }
  .cmc .go,
  .brand-go {
    min-height: 44px;
    align-items: center;
  }
}

/* 3.3 ฟอนต์/ระยะห่าง — จอเล็กมาก (≤480px เช่นมือถือ 430px) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: 44px 0;
  }
  .wrap {
    padding: 0 18px;
  }
  .sec-head {
    margin-bottom: 42px;
  }
  .phead h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.3rem);
  }
  .sec-head h2 {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }
  .brand-top {
    padding-top: 44px;
    padding-bottom: 52px;
  }
  .spectable .row {
    padding: 13px 16px;
    font-size: 0.88rem;
  }
  .swatch {
    max-width: 260px;
  }
  /* breadcrumb: ยาวแล้วให้ตัดบรรทัดได้ ไม่โดนบีบ/ล้น */
  .crumb .wrap {
    height: auto;
    min-height: 44px;
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .crumb {
    font-size: 0.8rem;
  }
  .fc {
    padding: 26px 20px;
  }
  .cmc {
    padding: 24px 20px;
  }
  .ctaband h2 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }
  .footer .top {
    gap: 28px;
  }
  .footer {
    padding: 48px 0 22px;
  }
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ============ contact block (ยกมาจากหน้าแรก — ใช้ในหน้าผลงาน/หน้าแบรนด์) ============ */
.featurebar {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 48px;
}
.featurebar .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fitem {
  padding: 40px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fitem:last-child {
  border-right: none;
}
.fitem svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.fitem b {
  font-size: 1rem;
  font-weight: 600;
}
.fitem span {
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 300;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  align-items: center;
}
.ccard {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 30px;
  transition: 0.28s ease;
  box-shadow: var(--shadow-sm);
}
.ccard:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ccard .ci {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.ccard .ci svg {
  width: 22px;
  height: 22px;
  fill: #e7c879;
}
/* ไอคอน LINE จริง — พื้นวงกลมโปร่งใส ให้สีเขียวแบรนด์ขึ้นแทนวงกรมท่า+ไอคอนทอง */
.ccard .ci.ci--line {
  background: transparent;
}
.ccard .ci.ci--line img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}
.ccard .lab {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.ccard .val {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
@media (max-width: 768px) {
  .featurebar .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fitem:nth-child(2) {
    border-right: none;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
}
/* ============ works preview (ผลงานติดตั้ง — ยกมาจากหน้า Project Reference) ============ */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
/* หน้ารุ่นที่มีผลงานจริงแค่ 2 การ์ด (เช่น Crystalize) — จัดกึ่งกลางด้วยความกว้างการ์ดเท่าเดิม แทนที่จะชิดซ้ายเว้นช่องขวาโล่ง
   ใช้ :has() ถ้าเบราว์เซอร์เก่าไม่รองรับก็แค่กลับไปชิดซ้ายตามปกติ · จอ ≤980 ใช้กฎ 2 คอลัมน์ปกติอยู่แล้ว */
@media (min-width: 981px) {
  .works:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, calc((100% - 52px) / 3));
    justify-content: center;
  }
}
.workcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: 0.35s ease;
}
.workcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
/* พื้นที่รูป — degrade เป็นกรมท่าถ้ารูปไม่โหลด (เหมือน tile หน้าแรก) */
.workcard .thumb {
  aspect-ratio: 4/3;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.workcard .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 55%, rgba(15, 25, 47, 0.55));
  opacity: 0;
  transition: 0.3s;
}
.workcard:hover .thumb::after {
  opacity: 1;
}
.workcard .cat {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  padding: 5px 14px;
}
/* gallery จุดสลับรูปในการ์ดผลงาน (ยกมาจาก works.html — ไม่มีปุ่มลูกศร/lightbox) */
.workcard .gslide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.workcard .gslide.on {
  opacity: 1;
}
.workcard .gnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 25, 47, 0.45);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: 0.25s ease;
}
.workcard .thumb:hover .gnav {
  opacity: 1;
}
.workcard .gnav:hover {
  background: var(--gold);
  color: var(--ink);
}
.workcard .gprev {
  left: 10px;
}
.workcard .gnext {
  right: 10px;
}
.workcard .gnav svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workcard .gdots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 0;
  background: var(--white);
}
.workcard .gdots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--line);
  transition: 0.25s ease;
}
.workcard .gdots button:hover {
  background: var(--gold);
}
.workcard .gdots button.active {
  background: var(--gold);
  transform: scale(1.3);
}
/* ============ lightbox (กดรูปแล้วเด้งขยายเต็มจอ) ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 16, 30, 0.92);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: min(88vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox .lb-close,
.lightbox .lb-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}
.lightbox .lb-close:hover,
.lightbox .lb-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.lightbox .lb-close {
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
}
.lightbox .lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.lightbox .lb-prev {
  left: 22px;
}
.lightbox .lb-next {
  right: 22px;
}
.lightbox .lb-close svg,
.lightbox .lb-nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 768px) {
  .lightbox .lb-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox .lb-close {
    width: 34px;
    height: 34px;
    top: 14px;
    right: 14px;
  }
  .lightbox .lb-prev {
    left: 10px;
  }
  .lightbox .lb-next {
    right: 10px;
  }
}
.workcard .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.workcard h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.workcard .meta {
  font-size: 0.88rem;
  color: var(--slate);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.workcard .meta svg {
  width: 15px;
  height: 15px;
  fill: var(--gold);
  flex: none;
}
.workcard .film {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.workcard .film b {
  color: var(--gold);
  font-weight: 600;
}
.workcard .go {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.workcard .go svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  transition: 0.25s;
}
.workcard:hover .go svg {
  transform: translateX(4px);
}
/* ปุ่มดูผลงานทั้งหมดใต้กริด */
.more {
  text-align: center;
  margin-top: 52px;
}
@media (max-width: 980px) {
  .works {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .works {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .works {
    gap: 18px;
  }
  .workcard .body {
    padding: 18px 20px 20px;
  }
  .more {
    margin-top: 34px;
  }
}

/* ============ nav micro-interactions (premium/buttery) ============ */
@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav {
  animation: navIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* smart hide: เลื่อนลงซ่อน เลื่อนขึ้นโผล่ (คลาส nav-hidden จาก JS) */
.header {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.header.nav-hidden {
  transform: translateY(-130%);
}
.menu a {
  transition:
    color 0.25s ease-in-out,
    background 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}
.menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px) scale(1.02);
}
.pill {
  transition:
    background 0.28s ease-in-out,
    box-shadow 0.28s ease-in-out,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.pill:hover {
  transform: translateY(-1px) scale(1.02);
}
.pill:active {
  transform: translateY(0) scale(0.96);
}
.burger,
.nav-call {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease;
}
.burger:hover {
  border-color: rgba(255, 255, 255, 0.45);
}
.nav-call:hover {
  transform: translateY(-1px);
}
.burger:active,
.nav-call:active {
  transform: scale(0.9);
}
/* dropdown: scale นุ่ม + ไล่จังหวะรายการ + ค้างให้เลือกก่อนปิด (grace delay) */
.submenu {
  transform-origin: top center;
  transform: translateX(-50%) translateY(10px) scale(0.97);
  transition:
    opacity 0.25s ease 0.35s,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
    visibility 0s linear 0.6s;
}
.menu .has-sub:hover .submenu,
.menu .has-sub:focus-within .submenu {
  transform: translateX(-50%) translateY(0) scale(1);
  transition-delay: 0s;
}
.submenu li {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.35s;
}
.menu .has-sub:hover .submenu li,
.menu .has-sub:focus-within .submenu li {
  opacity: 1;
  transform: translateY(0);
}
.menu .has-sub:hover .submenu li:nth-child(1),
.menu .has-sub:focus-within .submenu li:nth-child(1) {
  transition-delay: 0.05s;
}
.menu .has-sub:hover .submenu li:nth-child(2),
.menu .has-sub:focus-within .submenu li:nth-child(2) {
  transition-delay: 0.1s;
}
.menu .has-sub:hover .submenu li:nth-child(3),
.menu .has-sub:focus-within .submenu li:nth-child(3) {
  transition-delay: 0.15s;
}
.menu .has-sub:hover .submenu li:nth-child(4),
.menu .has-sub:focus-within .submenu li:nth-child(4) {
  transition-delay: 0.2s;
}
@media (max-width: 768px) {
  /* แผงเมนูมือถือ: เปิดแบบ stagger — และล้าง transform ของ dropdown เดสก์ท็อป */
  .menu a {
    border-radius: 14px;
  }
  .menu a:hover {
    transform: none;
  }
  .submenu,
  .menu .has-sub:hover .submenu,
  .menu .has-sub:focus-within .submenu {
    transform: none;
  }
  .submenu li {
    opacity: 1;
    transform: none;
  }
  .menu.open {
    animation: navItemIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .menu.open > li {
    animation: navItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .menu.open > li:nth-child(1) {
    animation-delay: 0.05s;
  }
  .menu.open > li:nth-child(2) {
    animation-delay: 0.1s;
  }
  .menu.open > li:nth-child(3) {
    animation-delay: 0.15s;
  }
  .menu.open > li:nth-child(4) {
    animation-delay: 0.2s;
  }
  .menu.open > li:nth-child(5) {
    animation-delay: 0.25s;
  }
}
