:root {
  --bg: #0b0906;
  --bg-2: #13100a;
  --surface: #1a150c;
  --line: rgba(212, 175, 90, .22);
  --gold: #d6b062;
  --gold-2: #f0d48f;
  --gold-deep: #9c7a32;
  --text: #f4ecdc;
  --muted: #bfb197;
  --line-green: #06c755;
  --radius: 14px;
  --gap: 10px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Anuphan', 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { line-height: 1.45; margin: 0; font-weight: 700; }
p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: #1a1205; padding: 8px 14px; border-radius: 999px;
}
.skip:focus { top: 12px; }

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

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo-line { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* ---------- แบนเนอร์ ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #2a1f0d 0%, rgba(11, 9, 6, 0) 65%),
    linear-gradient(180deg, #100c07 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__glow {
  position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(214, 176, 98, .16), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 44px;
  text-align: center;
}
.hero__logo {
  width: 96px; height: 96px; margin: 0 auto 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(214, 176, 98, .45), 0 10px 40px rgba(214, 176, 98, .18);
}
.hero__brand {
  font-size: 14px; letter-spacing: .2em; font-weight: 600; color: var(--gold);
  margin-bottom: 10px;
}
.hero__title {
  font-size: clamp(30px, 8.2vw, 60px);
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--text);
  text-wrap: balance;
}
.hero__gold {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-2) 45%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  margin: 16px auto 0; max-width: 34em;
  color: var(--muted); font-size: 16px; line-height: 1.8;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn--line { background: var(--line-green); color: #fff; }
.btn--ghost { border: 1px solid rgba(214, 176, 98, .6); color: var(--gold-2); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn--ghost:hover { background: rgba(214, 176, 98, .1); }
}
/* มือถือ: ซ่อนโปสเตอร์ในแบนเนอร์ เพราะใบเดียวกันขึ้นเป็นรูปแรกของแกลเลอรีทันทีข้างล่าง */
.hero__poster { display: none; margin: 0; }
.hero__poster img { width: 100%; }

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 56px;
    padding-top: 72px; padding-bottom: 80px;
    text-align: left;
  }
  .hero__logo { width: 120px; height: 120px; margin: 0 0 18px; }
  .hero__lead { margin-left: 0; }
  .hero__cta { justify-content: flex-start; }
  .hero__poster { display: block; width: 100%; max-width: 380px; justify-self: end; }
}

/* ---------- ส่วนเนื้อหา ---------- */
.section { padding: 56px 0; }
.section--videos { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; margin-bottom: 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: .08em;
  margin-bottom: 8px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.section__head h2 { font-size: clamp(24px, 6vw, 40px); text-wrap: balance; }
.nw { white-space: nowrap; }
.section__note { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (min-width: 1024px) { .section { padding: 84px 0; } .section__head { margin-bottom: 40px; } }

/* แกลเลอรี: ทุกรูปสัดส่วน 1414x2000 เท่ากัน จัดเป็นตาราง ไม่ครอป ไม่ใส่กรอบ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 480px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .gallery { gap: 22px; } }
.gallery__item {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  transition: transform .2s var(--ease);
}
.gallery__item img { width: 100%; aspect-ratio: 1414 / 2000; }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover { transform: translateY(-3px); } }

/* วิดีโอ: แนวตั้ง 9:16 คงสัดส่วนเดิม */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px var(--gap); }
@media (min-width: 480px) { .videos { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; } }
/* เดสก์ท็อป 4 คอลัมน์ 7 คลิป: แถวสุดท้ายจัดกึ่งกลาง */
@media (min-width: 1024px) {
  .videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 22px; }
  .videos > li { width: calc((100% - 66px) / 4); }
}
.video video { width: 100%; aspect-ratio: 9 / 16; background: #000; }
.video__title { margin-top: 8px; font-weight: 600; font-size: 16px; text-align: center; color: var(--gold-2); }

/* ติดต่อ */
.contact { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 920px; margin: 0 auto; }
@media (min-width: 600px) { .contact { grid-template-columns: repeat(2, 1fr); } }
.contact__card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px;
  align-items: center; height: 100%;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .contact__card:hover { transform: translateY(-3px); border-color: rgba(214, 176, 98, .55); }
}
.contact__icon {
  grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(214, 176, 98, .12); color: var(--gold-2);
}
.contact__icon svg { width: 24px; height: 24px; }
.contact__icon--line { background: var(--line-green); color: #fff; }
.contact__icon--line svg, .contact__icon--fb svg { fill: currentColor; }
.contact__icon--fb { background: #1877f2; color: #fff; }
.contact__label { font-size: 14px; color: var(--muted); align-self: end; }
.contact__value { font-weight: 600; font-size: 16px; line-height: 1.5; align-self: start; overflow-wrap: anywhere; }
.contact__value small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.contact__value--addr { font-weight: 500; font-size: 16px; }

/* ท้ายหน้า */
.footer { padding: 36px 0 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer__inner { display: flex; gap: 16px; align-items: center; }
.footer__inner img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.footer__brand { color: var(--gold); font-weight: 600; letter-spacing: .08em; }
.footer__copy { font-size: 14px; margin-top: 4px; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } }

/* ปุ่มลอยมือถือ: ไลน์ + โทร */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(11, 9, 6, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 16px;
}
.dock__btn--line { background: var(--line-green); color: #fff; }
.dock__btn--call { border: 1px solid rgba(214, 176, 98, .6); color: var(--gold-2); }
@media (min-width: 900px) { .dock { display: none; } }

/* ภาพขยาย */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(5, 4, 3, .96); color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img {
  max-width: calc(100vw - 24px); max-height: calc(100dvh - 96px);
  width: auto; height: auto; object-fit: contain;
}
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(26, 21, 12, .85); border: 1px solid var(--line); color: var(--gold-2);
}
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox__prev { left: 12px; bottom: 16px; }
.lightbox__next { right: 12px; bottom: 16px; }
.lightbox__count { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 15px; pointer-events: none; }
@media (min-width: 900px) {
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__prev { left: 24px; } .lightbox__next { right: 24px; }
}

/* อนิเมชันปรากฏตอนเลื่อนถึง (เปิดเมื่อ JS พร้อมเท่านั้น) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
